Enum google_api_proto::google::cloud::compute::v1::quota::Metric

source ·
#[repr(i32)]
pub enum Metric {
Show 165 variants UndefinedMetric = 0, A2Cpus = 153_206_585, AffinityGroups = 108_303_563, Autoscalers = 471_248_988, BackendBuckets = 137_626_846, BackendServices = 269_623_753, C2dCpus = 508_182_517, C2Cpus = 317_601_211, C3Cpus = 346_230_362, Commitments = 456_141_790, CommittedA2Cpus = 59_330_902, CommittedC2dCpus = 282_390_904, CommittedC2Cpus = 223_725_528, CommittedC3Cpus = 252_354_679, CommittedCpus = 292_394_702, CommittedE2Cpus = 388_120_154, CommittedLicenses = 357_606_869, CommittedLocalSsdTotalGb = 308_393_480, CommittedM3Cpus = 585_985, CommittedMemoryOptimizedCpus = 489_057_886, CommittedN2aCpus = 40_064_304, CommittedN2dCpus = 125_951_757, CommittedN2Cpus = 322_589_603, CommittedNvidiaA10080gbGpus = 464_326_565, CommittedNvidiaA100Gpus = 375_799_445, CommittedNvidiaH100Gpus = 71_649_180, CommittedNvidiaK80Gpus = 3_857_188, CommittedNvidiaL4Gpus = 19_163_645, CommittedNvidiaP100Gpus = 107_528_100, CommittedNvidiaP4Gpus = 347_952_897, CommittedNvidiaT4Gpus = 139_871_237, CommittedNvidiaV100Gpus = 219_562, CommittedT2aCpus = 296_378_986, CommittedT2dCpus = 382_266_439, CommittedZ3Cpus = 263_844_686, Cpus = 2_075_595, CpusAllRegions = 470_911_149, DisksTotalGb = 353_520_543, E2Cpus = 481_995_837, ExternalManagedForwardingRules = 150_790_089, ExternalNetworkLbForwardingRules = 374_298_265, ExternalProtocolForwardingRules = 63_478_888, ExternalVpnGateways = 272_457_134, Firewalls = 374_485_843, ForwardingRules = 432_668_949, GlobalExternalManagedBackendServices = 164_566_753, GlobalExternalManagedForwardingRules = 327_611_949, GlobalExternalProxyLbBackendServices = 400_256_169, GlobalInternalAddresses = 42_738_332, GlobalInternalManagedBackendServices = 256_608_303, GlobalInternalTrafficDirectorBackendServices = 323_514_196, GpusAllRegions = 39_387_177, HdbTotalGb = 319_316_271, HdbTotalIops = 309_720_317, HdbTotalThroughput = 20_981_374, HealthChecks = 289_347_502, Images = 15_562_360, Instances = 131_337_822, InstanceGroups = 355_919_038, InstanceGroupManagers = 101_798_192, InstanceTemplates = 226_188_271, Interconnects = 415_204_741, InterconnectAttachmentsPerRegion = 159_968_086, InterconnectAttachmentsTotalMbps = 425_090_419, InterconnectTotalGbps = 285_341_866, InternalAddresses = 197_899_392, InternalTrafficDirectorForwardingRules = 266_433_668, InPlaceSnapshots = 151_359_133, InUseAddresses = 402_125_072, InUseBackupSchedules = 32_786_705, InUseSnapshotSchedules = 462_104_083, LocalSsdTotalGb = 330_878_021, M1Cpus = 37_203_366, M2Cpus = 65_832_517, M3Cpus = 94_461_668, MachineImages = 446_986_640, N2aCpus = 265_855_917, N2dCpus = 351_743_370, N2Cpus = 416_465_286, Networks = 485_481_477, NetworkAttachments = 149_028_575, NetworkEndpointGroups = 102_144_909, NetworkFirewallPolicies = 101_117_374, NetLbSecurityPoliciesPerRegion = 157_892_269, NetLbSecurityPolicyRulesPerRegion = 356_090_931, NetLbSecurityPolicyRuleAttributesPerRegion = 311_243_888, NodeGroups = 24_624_817, NodeTemplates = 474_896_668, NvidiaA10080gbGpus = 286_389_320, NvidiaA100Gpus = 504_872_978, NvidiaK80Gpus = 163_886_599, NvidiaL4Gpus = 491_923_130, NvidiaP100Gpus = 236_601_633, NvidiaP100VwsGpus = 213_970_574, NvidiaP4Gpus = 283_841_470, NvidiaP4VwsGpus = 528_296_619, NvidiaT4Gpus = 75_759_810, NvidiaT4VwsGpus = 319_813_039, NvidiaV100Gpus = 129_293_095, PacketMirrorings = 15_578_407, PdExtremeTotalProvisionedIops = 69_593_965, PreemptibleCpus = 251_184_841, PreemptibleLocalSsdGb = 260_819_336, PreemptibleNvidiaA10080gbGpus = 151_942_410, PreemptibleNvidiaA100Gpus = 68_832_784, PreemptibleNvidiaH100Gpus = 301_553_431, PreemptibleNvidiaK80Gpus = 374_960_201, PreemptibleNvidiaL4Gpus = 100_408_376, PreemptibleNvidiaP100Gpus = 337_432_351, PreemptibleNvidiaP100VwsGpus = 313_544_076, PreemptibleNvidiaP4Gpus = 429_197_628, PreemptibleNvidiaP4VwsGpus = 252_981_545, PreemptibleNvidiaT4Gpus = 221_115_968, PreemptibleNvidiaT4VwsGpus = 44_497_965, PreemptibleNvidiaV100Gpus = 230_123_813, PreemptibleTpuLiteDeviceV5 = 174_262_523, PreemptibleTpuLitePodsliceV5 = 112_281_796, PreemptibleTpuPodsliceV4 = 425_541_132, PscIlbConsumerForwardingRulesPerProducerNetwork = 231_164_291, PscInternalLbForwardingRules = 169_005_435, PublicAdvertisedPrefixes = 471_371_980, PublicDelegatedPrefixes = 532_465_974, RegionalAutoscalers = 29_363_772, RegionalExternalManagedBackendServices = 4_240_989, RegionalExternalNetworkLbBackendServices = 409_564_525, RegionalInstanceGroupManagers = 37_543_696, RegionalInternalLbBackendServices = 137_983_760, RegionalInternalManagedBackendServices = 96_282_539, RegionalInternalTrafficDirectorBackendServices = 483_162_968, Reservations = 32_644_647, ResourcePolicies = 83_955_297, Routers = 493_018_666, Routes = 275_680_074, SecurityPolicies = 189_518_703, SecurityPoliciesPerRegion = 249_041_734, SecurityPolicyAdvancedRulesPerRegion = 371_815_341, SecurityPolicyCevalRules = 470_815_689, SecurityPolicyRules = 203_549_225, SecurityPolicyRulesPerRegion = 126_510_156, ServiceAttachments = 471_521_510, Snapshots = 343_405_327, SsdTotalGb = 161_732_561, SslCertificates = 378_372_399, SslPolicies = 523_254_339, StaticAddresses = 93_624_049, StaticByoipAddresses = 275_809_649, StaticExternalIpv6AddressRanges = 472_346_774, Subnetworks = 421_330_469, T2aCpus = 522_170_599, T2dCpus = 71_187_140, TargetHttpsProxies = 219_522_506, TargetHttpProxies = 164_117_155, TargetInstances = 284_519_728, TargetPools = 348_261_257, TargetSslProxies = 159_216_235, TargetTcpProxies = 182_243_136, TargetVpnGateways = 75_029_928, TpuLiteDeviceV5 = 449_577_597, TpuLitePodsliceV5 = 12_708_294, TpuPodsliceV4 = 214_467_530, UrlMaps = 378_660_743, VariableIpv6PublicDelegatedPrefixes = 128_400_161, VpnGateways = 35_620_282, VpnTunnels = 104_327_296, XpnServiceProjects = 95_191_981,
}
Expand description

[Output Only] Name of the quota metric.

Variants§

§

UndefinedMetric = 0

A value indicating that the enum field is not set.

§

A2Cpus = 153_206_585

§

AffinityGroups = 108_303_563

§

Autoscalers = 471_248_988

§

BackendBuckets = 137_626_846

§

BackendServices = 269_623_753

§

C2dCpus = 508_182_517

§

C2Cpus = 317_601_211

§

C3Cpus = 346_230_362

§

Commitments = 456_141_790

§

CommittedA2Cpus = 59_330_902

§

CommittedC2dCpus = 282_390_904

§

CommittedC2Cpus = 223_725_528

§

CommittedC3Cpus = 252_354_679

§

CommittedCpus = 292_394_702

§

CommittedE2Cpus = 388_120_154

§

CommittedLicenses = 357_606_869

§

CommittedLocalSsdTotalGb = 308_393_480

§

CommittedM3Cpus = 585_985

§

CommittedMemoryOptimizedCpus = 489_057_886

§

CommittedN2aCpus = 40_064_304

§

CommittedN2dCpus = 125_951_757

§

CommittedN2Cpus = 322_589_603

§

CommittedNvidiaA10080gbGpus = 464_326_565

§

CommittedNvidiaA100Gpus = 375_799_445

§

CommittedNvidiaH100Gpus = 71_649_180

§

CommittedNvidiaK80Gpus = 3_857_188

§

CommittedNvidiaL4Gpus = 19_163_645

§

CommittedNvidiaP100Gpus = 107_528_100

§

CommittedNvidiaP4Gpus = 347_952_897

§

CommittedNvidiaT4Gpus = 139_871_237

§

CommittedNvidiaV100Gpus = 219_562

§

CommittedT2aCpus = 296_378_986

§

CommittedT2dCpus = 382_266_439

§

CommittedZ3Cpus = 263_844_686

§

Cpus = 2_075_595

Guest CPUs

§

CpusAllRegions = 470_911_149

§

DisksTotalGb = 353_520_543

§

E2Cpus = 481_995_837

§

ExternalManagedForwardingRules = 150_790_089

§

ExternalNetworkLbForwardingRules = 374_298_265

§

ExternalProtocolForwardingRules = 63_478_888

§

ExternalVpnGateways = 272_457_134

§

Firewalls = 374_485_843

§

ForwardingRules = 432_668_949

§

GlobalExternalManagedBackendServices = 164_566_753

§

GlobalExternalManagedForwardingRules = 327_611_949

§

GlobalExternalProxyLbBackendServices = 400_256_169

§

GlobalInternalAddresses = 42_738_332

§

GlobalInternalManagedBackendServices = 256_608_303

§

GlobalInternalTrafficDirectorBackendServices = 323_514_196

§

GpusAllRegions = 39_387_177

§

HdbTotalGb = 319_316_271

§

HdbTotalIops = 309_720_317

§

HdbTotalThroughput = 20_981_374

§

HealthChecks = 289_347_502

§

Images = 15_562_360

§

Instances = 131_337_822

§

InstanceGroups = 355_919_038

§

InstanceGroupManagers = 101_798_192

§

InstanceTemplates = 226_188_271

§

Interconnects = 415_204_741

§

InterconnectAttachmentsPerRegion = 159_968_086

§

InterconnectAttachmentsTotalMbps = 425_090_419

§

InterconnectTotalGbps = 285_341_866

§

InternalAddresses = 197_899_392

§

InternalTrafficDirectorForwardingRules = 266_433_668

§

InPlaceSnapshots = 151_359_133

§

InUseAddresses = 402_125_072

§

InUseBackupSchedules = 32_786_705

§

InUseSnapshotSchedules = 462_104_083

§

LocalSsdTotalGb = 330_878_021

§

M1Cpus = 37_203_366

§

M2Cpus = 65_832_517

§

M3Cpus = 94_461_668

§

MachineImages = 446_986_640

§

N2aCpus = 265_855_917

§

N2dCpus = 351_743_370

§

N2Cpus = 416_465_286

§

Networks = 485_481_477

§

NetworkAttachments = 149_028_575

§

NetworkEndpointGroups = 102_144_909

§

NetworkFirewallPolicies = 101_117_374

§

NetLbSecurityPoliciesPerRegion = 157_892_269

§

NetLbSecurityPolicyRulesPerRegion = 356_090_931

§

NetLbSecurityPolicyRuleAttributesPerRegion = 311_243_888

§

NodeGroups = 24_624_817

§

NodeTemplates = 474_896_668

§

NvidiaA10080gbGpus = 286_389_320

§

NvidiaA100Gpus = 504_872_978

§

NvidiaK80Gpus = 163_886_599

§

NvidiaL4Gpus = 491_923_130

§

NvidiaP100Gpus = 236_601_633

§

NvidiaP100VwsGpus = 213_970_574

§

NvidiaP4Gpus = 283_841_470

§

NvidiaP4VwsGpus = 528_296_619

§

NvidiaT4Gpus = 75_759_810

§

NvidiaT4VwsGpus = 319_813_039

§

NvidiaV100Gpus = 129_293_095

§

PacketMirrorings = 15_578_407

§

PdExtremeTotalProvisionedIops = 69_593_965

§

PreemptibleCpus = 251_184_841

§

PreemptibleLocalSsdGb = 260_819_336

§

PreemptibleNvidiaA10080gbGpus = 151_942_410

§

PreemptibleNvidiaA100Gpus = 68_832_784

§

PreemptibleNvidiaH100Gpus = 301_553_431

§

PreemptibleNvidiaK80Gpus = 374_960_201

§

PreemptibleNvidiaL4Gpus = 100_408_376

§

PreemptibleNvidiaP100Gpus = 337_432_351

§

PreemptibleNvidiaP100VwsGpus = 313_544_076

§

PreemptibleNvidiaP4Gpus = 429_197_628

§

PreemptibleNvidiaP4VwsGpus = 252_981_545

§

PreemptibleNvidiaT4Gpus = 221_115_968

§

PreemptibleNvidiaT4VwsGpus = 44_497_965

§

PreemptibleNvidiaV100Gpus = 230_123_813

§

PreemptibleTpuLiteDeviceV5 = 174_262_523

§

PreemptibleTpuLitePodsliceV5 = 112_281_796

§

PreemptibleTpuPodsliceV4 = 425_541_132

§

PscIlbConsumerForwardingRulesPerProducerNetwork = 231_164_291

§

PscInternalLbForwardingRules = 169_005_435

§

PublicAdvertisedPrefixes = 471_371_980

§

PublicDelegatedPrefixes = 532_465_974

§

RegionalAutoscalers = 29_363_772

§

RegionalExternalManagedBackendServices = 4_240_989

§

RegionalExternalNetworkLbBackendServices = 409_564_525

§

RegionalInstanceGroupManagers = 37_543_696

§

RegionalInternalLbBackendServices = 137_983_760

§

RegionalInternalManagedBackendServices = 96_282_539

§

RegionalInternalTrafficDirectorBackendServices = 483_162_968

§

Reservations = 32_644_647

§

ResourcePolicies = 83_955_297

§

Routers = 493_018_666

§

Routes = 275_680_074

§

SecurityPolicies = 189_518_703

§

SecurityPoliciesPerRegion = 249_041_734

§

SecurityPolicyAdvancedRulesPerRegion = 371_815_341

§

SecurityPolicyCevalRules = 470_815_689

§

SecurityPolicyRules = 203_549_225

§

SecurityPolicyRulesPerRegion = 126_510_156

§

ServiceAttachments = 471_521_510

§

Snapshots = 343_405_327

The total number of snapshots allowed for a single project.

§

SsdTotalGb = 161_732_561

§

SslCertificates = 378_372_399

§

SslPolicies = 523_254_339

§

StaticAddresses = 93_624_049

§

StaticByoipAddresses = 275_809_649

§

StaticExternalIpv6AddressRanges = 472_346_774

§

Subnetworks = 421_330_469

§

T2aCpus = 522_170_599

§

T2dCpus = 71_187_140

§

TargetHttpsProxies = 219_522_506

§

TargetHttpProxies = 164_117_155

§

TargetInstances = 284_519_728

§

TargetPools = 348_261_257

§

TargetSslProxies = 159_216_235

§

TargetTcpProxies = 182_243_136

§

TargetVpnGateways = 75_029_928

§

TpuLiteDeviceV5 = 449_577_597

§

TpuLitePodsliceV5 = 12_708_294

§

TpuPodsliceV4 = 214_467_530

§

UrlMaps = 378_660_743

§

VariableIpv6PublicDelegatedPrefixes = 128_400_161

§

VpnGateways = 35_620_282

§

VpnTunnels = 104_327_296

§

XpnServiceProjects = 95_191_981

Implementations§

source§

impl Metric

source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of Metric.

source

pub fn from_i32(value: i32) -> Option<Metric>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a Metric, or None if value is not a valid variant.

source§

impl Metric

source

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

source

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations§

source§

impl Clone for Metric

source§

fn clone(&self) -> Metric

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metric

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metric

source§

fn default() -> Metric

Returns the “default value” for a type. Read more
source§

impl From<Metric> for i32

source§

fn from(value: Metric) -> i32

Converts to this type from the input type.
source§

impl Hash for Metric

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Metric

source§

fn cmp(&self, other: &Metric) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Metric

source§

fn eq(&self, other: &Metric) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Metric

source§

fn partial_cmp(&self, other: &Metric) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<i32> for Metric

§

type Error = UnknownEnumValue

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<Metric, UnknownEnumValue>

Performs the conversion.
source§

impl Copy for Metric

source§

impl Eq for Metric

source§

impl StructuralPartialEq for Metric

Auto Trait Implementations§

§

impl Freeze for Metric

§

impl RefUnwindSafe for Metric

§

impl Send for Metric

§

impl Sync for Metric

§

impl Unpin for Metric

§

impl UnwindSafe for Metric

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more