Skip to content

Commit

Permalink
feat: Switch to string enums for compute (#685)
Browse files Browse the repository at this point in the history
Also introduce gapic_yaml for java clients to override default LRO configuration (which has too way too long timeouts).

Also cleanup regenerate other files (grpc_service_config and service yaml)
Source-Link: googleapis/googleapis@8ce4ea6

Source-Link: googleapis/googleapis-gen@55e242c
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ29tcHV0ZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNTVlMjQyYzdjZjVlNjAwZmFiYjhkNzY3YmQwNmY0ZmRmYWQ2YTAxNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Nov 22, 2021
1 parent 2e7bb0f commit 5d969a2
Show file tree
Hide file tree
Showing 134 changed files with 17,911 additions and 16,178 deletions.
Expand Up @@ -748,7 +748,7 @@ public void ListPeeringRoutesRequestObject()
// Initialize request argument(s)
ListPeeringRoutesNetworksRequest request = new ListPeeringRoutesNetworksRequest
{
Direction = ListPeeringRoutesNetworksRequest.Types.Direction.UndefinedDirection,
Direction = "",
Region = "",
OrderBy = "",
Project = "",
Expand Down Expand Up @@ -803,7 +803,7 @@ public async Task ListPeeringRoutesRequestObjectAsync()
// Initialize request argument(s)
ListPeeringRoutesNetworksRequest request = new ListPeeringRoutesNetworksRequest
{
Direction = ListPeeringRoutesNetworksRequest.Types.Direction.UndefinedDirection,
Direction = "",
Region = "",
OrderBy = "",
Project = "",
Expand Down
Expand Up @@ -46,17 +46,17 @@ public void GetRequestObject()
CreationTimestamp = "creation_timestamp235e59a1",
Users = { "users2a5cc69b", },
Region = "regionedb20d96",
Status = Address.Types.Status.Reserved,
Status = "status5444cb9a",
Network = "networkd22ce091",
AddressType = Address.Types.AddressType.Internal,
IpVersion = Address.Types.IpVersion.UndefinedIpVersion,
AddressType = "address_type6c7d490a",
IpVersion = "ip_versionde91b460",
Subnetwork = "subnetworkf55bf572",
Purpose = Address.Types.Purpose.IpsecInterconnect,
Purpose = "purposebb6b064d",
Description = "description2cf9da67",
PrefixLength = -686118004,
SelfLink = "self_link7e87f12d",
Address_ = "address04984d88",
NetworkTier = Address.Types.NetworkTier.Standard,
NetworkTier = "network_tiere6fea951",
};
mockGrpcClient.Setup(x => x.Get(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AddressesClient client = new AddressesClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -84,17 +84,17 @@ public void GetRequestObject()
CreationTimestamp = "creation_timestamp235e59a1",
Users = { "users2a5cc69b", },
Region = "regionedb20d96",
Status = Address.Types.Status.Reserved,
Status = "status5444cb9a",
Network = "networkd22ce091",
AddressType = Address.Types.AddressType.Internal,
IpVersion = Address.Types.IpVersion.UndefinedIpVersion,
AddressType = "address_type6c7d490a",
IpVersion = "ip_versionde91b460",
Subnetwork = "subnetworkf55bf572",
Purpose = Address.Types.Purpose.IpsecInterconnect,
Purpose = "purposebb6b064d",
Description = "description2cf9da67",
PrefixLength = -686118004,
SelfLink = "self_link7e87f12d",
Address_ = "address04984d88",
NetworkTier = Address.Types.NetworkTier.Standard,
NetworkTier = "network_tiere6fea951",
};
mockGrpcClient.Setup(x => x.GetAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Address>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AddressesClient client = new AddressesClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -124,17 +124,17 @@ public void Get()
CreationTimestamp = "creation_timestamp235e59a1",
Users = { "users2a5cc69b", },
Region = "regionedb20d96",
Status = Address.Types.Status.Reserved,
Status = "status5444cb9a",
Network = "networkd22ce091",
AddressType = Address.Types.AddressType.Internal,
IpVersion = Address.Types.IpVersion.UndefinedIpVersion,
AddressType = "address_type6c7d490a",
IpVersion = "ip_versionde91b460",
Subnetwork = "subnetworkf55bf572",
Purpose = Address.Types.Purpose.IpsecInterconnect,
Purpose = "purposebb6b064d",
Description = "description2cf9da67",
PrefixLength = -686118004,
SelfLink = "self_link7e87f12d",
Address_ = "address04984d88",
NetworkTier = Address.Types.NetworkTier.Standard,
NetworkTier = "network_tiere6fea951",
};
mockGrpcClient.Setup(x => x.Get(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AddressesClient client = new AddressesClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -162,17 +162,17 @@ public void Get()
CreationTimestamp = "creation_timestamp235e59a1",
Users = { "users2a5cc69b", },
Region = "regionedb20d96",
Status = Address.Types.Status.Reserved,
Status = "status5444cb9a",
Network = "networkd22ce091",
AddressType = Address.Types.AddressType.Internal,
IpVersion = Address.Types.IpVersion.UndefinedIpVersion,
AddressType = "address_type6c7d490a",
IpVersion = "ip_versionde91b460",
Subnetwork = "subnetworkf55bf572",
Purpose = Address.Types.Purpose.IpsecInterconnect,
Purpose = "purposebb6b064d",
Description = "description2cf9da67",
PrefixLength = -686118004,
SelfLink = "self_link7e87f12d",
Address_ = "address04984d88",
NetworkTier = Address.Types.NetworkTier.Standard,
NetworkTier = "network_tiere6fea951",
};
mockGrpcClient.Setup(x => x.GetAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Address>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AddressesClient client = new AddressesClientImpl(mockGrpcClient.Object, null);
Expand Down
Expand Up @@ -46,7 +46,7 @@ public void GetRequestObject()
Zone = "zone255f4ea8",
CreationTimestamp = "creation_timestamp235e59a1",
Region = "regionedb20d96",
Status = Autoscaler.Types.Status.Pending,
Status = "status5444cb9a",
Target = "targetaefbae42",
AutoscalingPolicy = new AutoscalingPolicy(),
RecommendedSize = 213286470,
Expand Down Expand Up @@ -90,7 +90,7 @@ public void GetRequestObject()
Zone = "zone255f4ea8",
CreationTimestamp = "creation_timestamp235e59a1",
Region = "regionedb20d96",
Status = Autoscaler.Types.Status.Pending,
Status = "status5444cb9a",
Target = "targetaefbae42",
AutoscalingPolicy = new AutoscalingPolicy(),
RecommendedSize = 213286470,
Expand Down Expand Up @@ -136,7 +136,7 @@ public void Get()
Zone = "zone255f4ea8",
CreationTimestamp = "creation_timestamp235e59a1",
Region = "regionedb20d96",
Status = Autoscaler.Types.Status.Pending,
Status = "status5444cb9a",
Target = "targetaefbae42",
AutoscalingPolicy = new AutoscalingPolicy(),
RecommendedSize = 213286470,
Expand Down Expand Up @@ -180,7 +180,7 @@ public void Get()
Zone = "zone255f4ea8",
CreationTimestamp = "creation_timestamp235e59a1",
Region = "regionedb20d96",
Status = Autoscaler.Types.Status.Pending,
Status = "status5444cb9a",
Target = "targetaefbae42",
AutoscalingPolicy = new AutoscalingPolicy(),
RecommendedSize = 213286470,
Expand Down
Expand Up @@ -53,9 +53,9 @@ public void GetRequestObject()
PortName = "port_namebaaa4cd4",
MaxStreamDuration = new Duration(),
TimeoutSec = -1529270667,
Protocol = BackendService.Types.Protocol.Udp,
Protocol = "protocola08b7881",
FailoverPolicy = new BackendServiceFailoverPolicy(),
LocalityLbPolicy = BackendService.Types.LocalityLbPolicy.UndefinedLocalityLbPolicy,
LocalityLbPolicy = "locality_lb_policyc8722098",
Region = "regionedb20d96",
SecurityPolicy = "security_policy76596315",
CdnPolicy = new BackendServiceCdnPolicy(),
Expand All @@ -64,7 +64,7 @@ public void GetRequestObject()
EnableCDN = false,
LogConfig = new BackendServiceLogConfig(),
OutlierDetection = new OutlierDetection(),
LoadBalancingScheme = BackendService.Types.LoadBalancingScheme.UndefinedLoadBalancingScheme,
LoadBalancingScheme = "load_balancing_scheme21346104",
AffinityCookieTtlSec = -328985636,
CustomResponseHeaders =
{
Expand All @@ -79,7 +79,7 @@ public void GetRequestObject()
Subsetting = new Subsetting(),
SelfLink = "self_link7e87f12d",
ConnectionDraining = new ConnectionDraining(),
SessionAffinity = BackendService.Types.SessionAffinity.GeneratedCookie,
SessionAffinity = "session_affinitye702dadf",
SecuritySettings = new SecuritySettings(),
Backends = { new Backend(), },
};
Expand Down Expand Up @@ -116,9 +116,9 @@ public void GetRequestObject()
PortName = "port_namebaaa4cd4",
MaxStreamDuration = new Duration(),
TimeoutSec = -1529270667,
Protocol = BackendService.Types.Protocol.Udp,
Protocol = "protocola08b7881",
FailoverPolicy = new BackendServiceFailoverPolicy(),
LocalityLbPolicy = BackendService.Types.LocalityLbPolicy.UndefinedLocalityLbPolicy,
LocalityLbPolicy = "locality_lb_policyc8722098",
Region = "regionedb20d96",
SecurityPolicy = "security_policy76596315",
CdnPolicy = new BackendServiceCdnPolicy(),
Expand All @@ -127,7 +127,7 @@ public void GetRequestObject()
EnableCDN = false,
LogConfig = new BackendServiceLogConfig(),
OutlierDetection = new OutlierDetection(),
LoadBalancingScheme = BackendService.Types.LoadBalancingScheme.UndefinedLoadBalancingScheme,
LoadBalancingScheme = "load_balancing_scheme21346104",
AffinityCookieTtlSec = -328985636,
CustomResponseHeaders =
{
Expand All @@ -142,7 +142,7 @@ public void GetRequestObject()
Subsetting = new Subsetting(),
SelfLink = "self_link7e87f12d",
ConnectionDraining = new ConnectionDraining(),
SessionAffinity = BackendService.Types.SessionAffinity.GeneratedCookie,
SessionAffinity = "session_affinitye702dadf",
SecuritySettings = new SecuritySettings(),
Backends = { new Backend(), },
};
Expand Down Expand Up @@ -181,9 +181,9 @@ public void Get()
PortName = "port_namebaaa4cd4",
MaxStreamDuration = new Duration(),
TimeoutSec = -1529270667,
Protocol = BackendService.Types.Protocol.Udp,
Protocol = "protocola08b7881",
FailoverPolicy = new BackendServiceFailoverPolicy(),
LocalityLbPolicy = BackendService.Types.LocalityLbPolicy.UndefinedLocalityLbPolicy,
LocalityLbPolicy = "locality_lb_policyc8722098",
Region = "regionedb20d96",
SecurityPolicy = "security_policy76596315",
CdnPolicy = new BackendServiceCdnPolicy(),
Expand All @@ -192,7 +192,7 @@ public void Get()
EnableCDN = false,
LogConfig = new BackendServiceLogConfig(),
OutlierDetection = new OutlierDetection(),
LoadBalancingScheme = BackendService.Types.LoadBalancingScheme.UndefinedLoadBalancingScheme,
LoadBalancingScheme = "load_balancing_scheme21346104",
AffinityCookieTtlSec = -328985636,
CustomResponseHeaders =
{
Expand All @@ -207,7 +207,7 @@ public void Get()
Subsetting = new Subsetting(),
SelfLink = "self_link7e87f12d",
ConnectionDraining = new ConnectionDraining(),
SessionAffinity = BackendService.Types.SessionAffinity.GeneratedCookie,
SessionAffinity = "session_affinitye702dadf",
SecuritySettings = new SecuritySettings(),
Backends = { new Backend(), },
};
Expand Down Expand Up @@ -244,9 +244,9 @@ public void Get()
PortName = "port_namebaaa4cd4",
MaxStreamDuration = new Duration(),
TimeoutSec = -1529270667,
Protocol = BackendService.Types.Protocol.Udp,
Protocol = "protocola08b7881",
FailoverPolicy = new BackendServiceFailoverPolicy(),
LocalityLbPolicy = BackendService.Types.LocalityLbPolicy.UndefinedLocalityLbPolicy,
LocalityLbPolicy = "locality_lb_policyc8722098",
Region = "regionedb20d96",
SecurityPolicy = "security_policy76596315",
CdnPolicy = new BackendServiceCdnPolicy(),
Expand All @@ -255,7 +255,7 @@ public void Get()
EnableCDN = false,
LogConfig = new BackendServiceLogConfig(),
OutlierDetection = new OutlierDetection(),
LoadBalancingScheme = BackendService.Types.LoadBalancingScheme.UndefinedLoadBalancingScheme,
LoadBalancingScheme = "load_balancing_scheme21346104",
AffinityCookieTtlSec = -328985636,
CustomResponseHeaders =
{
Expand All @@ -270,7 +270,7 @@ public void Get()
Subsetting = new Subsetting(),
SelfLink = "self_link7e87f12d",
ConnectionDraining = new ConnectionDraining(),
SessionAffinity = BackendService.Types.SessionAffinity.GeneratedCookie,
SessionAffinity = "session_affinitye702dadf",
SecuritySettings = new SecuritySettings(),
Backends = { new Backend(), },
};
Expand Down
Expand Up @@ -71,7 +71,7 @@ public void GetRequestObject()
SourceSnapshot = "source_snapshot1fcf3da1",
Region = "regionedb20d96",
LabelFingerprint = "label_fingerprint06ccff3a",
Status = Disk.Types.Status.Deleting,
Status = "status5444cb9a",
ProvisionedIops = -3779563869670119518L,
SourceStorageObject = "source_storage_object4e059972",
DiskEncryptionKey = new CustomerEncryptionKey(),
Expand Down Expand Up @@ -149,7 +149,7 @@ public void GetRequestObject()
SourceSnapshot = "source_snapshot1fcf3da1",
Region = "regionedb20d96",
LabelFingerprint = "label_fingerprint06ccff3a",
Status = Disk.Types.Status.Deleting,
Status = "status5444cb9a",
ProvisionedIops = -3779563869670119518L,
SourceStorageObject = "source_storage_object4e059972",
DiskEncryptionKey = new CustomerEncryptionKey(),
Expand Down Expand Up @@ -229,7 +229,7 @@ public void Get()
SourceSnapshot = "source_snapshot1fcf3da1",
Region = "regionedb20d96",
LabelFingerprint = "label_fingerprint06ccff3a",
Status = Disk.Types.Status.Deleting,
Status = "status5444cb9a",
ProvisionedIops = -3779563869670119518L,
SourceStorageObject = "source_storage_object4e059972",
DiskEncryptionKey = new CustomerEncryptionKey(),
Expand Down Expand Up @@ -307,7 +307,7 @@ public void Get()
SourceSnapshot = "source_snapshot1fcf3da1",
Region = "regionedb20d96",
LabelFingerprint = "label_fingerprint06ccff3a",
Status = Disk.Types.Status.Deleting,
Status = "status5444cb9a",
ProvisionedIops = -3779563869670119518L,
SourceStorageObject = "source_storage_object4e059972",
DiskEncryptionKey = new CustomerEncryptionKey(),
Expand Down
Expand Up @@ -48,7 +48,7 @@ public void GetRequestObject()
},
CreationTimestamp = "creation_timestamp235e59a1",
LabelFingerprint = "label_fingerprint06ccff3a",
RedundancyType = ExternalVpnGateway.Types.RedundancyType.UndefinedRedundancyType,
RedundancyType = "redundancy_type9eb42ca0",
Description = "description2cf9da67",
SelfLink = "self_link7e87f12d",
Labels =
Expand Down Expand Up @@ -87,7 +87,7 @@ public void GetRequestObject()
},
CreationTimestamp = "creation_timestamp235e59a1",
LabelFingerprint = "label_fingerprint06ccff3a",
RedundancyType = ExternalVpnGateway.Types.RedundancyType.UndefinedRedundancyType,
RedundancyType = "redundancy_type9eb42ca0",
Description = "description2cf9da67",
SelfLink = "self_link7e87f12d",
Labels =
Expand Down Expand Up @@ -128,7 +128,7 @@ public void Get()
},
CreationTimestamp = "creation_timestamp235e59a1",
LabelFingerprint = "label_fingerprint06ccff3a",
RedundancyType = ExternalVpnGateway.Types.RedundancyType.UndefinedRedundancyType,
RedundancyType = "redundancy_type9eb42ca0",
Description = "description2cf9da67",
SelfLink = "self_link7e87f12d",
Labels =
Expand Down Expand Up @@ -167,7 +167,7 @@ public void Get()
},
CreationTimestamp = "creation_timestamp235e59a1",
LabelFingerprint = "label_fingerprint06ccff3a",
RedundancyType = ExternalVpnGateway.Types.RedundancyType.UndefinedRedundancyType,
RedundancyType = "redundancy_type9eb42ca0",
Description = "description2cf9da67",
SelfLink = "self_link7e87f12d",
Labels =
Expand Down
Expand Up @@ -409,7 +409,7 @@ public void GetRuleRequestObject()
{
Kind = "kindf7aa39d9",
Match = new FirewallPolicyRuleMatcher(),
Direction = FirewallPolicyRule.Types.Direction.Ingress,
Direction = "direction7bc372ef",
Action = "action09558c41",
Disabled = false,
EnableLogging = false,
Expand Down Expand Up @@ -446,7 +446,7 @@ public void GetRuleRequestObject()
{
Kind = "kindf7aa39d9",
Match = new FirewallPolicyRuleMatcher(),
Direction = FirewallPolicyRule.Types.Direction.Ingress,
Direction = "direction7bc372ef",
Action = "action09558c41",
Disabled = false,
EnableLogging = false,
Expand Down Expand Up @@ -484,7 +484,7 @@ public void GetRule()
{
Kind = "kindf7aa39d9",
Match = new FirewallPolicyRuleMatcher(),
Direction = FirewallPolicyRule.Types.Direction.Ingress,
Direction = "direction7bc372ef",
Action = "action09558c41",
Disabled = false,
EnableLogging = false,
Expand Down Expand Up @@ -520,7 +520,7 @@ public void GetRule()
{
Kind = "kindf7aa39d9",
Match = new FirewallPolicyRuleMatcher(),
Direction = FirewallPolicyRule.Types.Direction.Ingress,
Direction = "direction7bc372ef",
Action = "action09558c41",
Disabled = false,
EnableLogging = false,
Expand Down

0 comments on commit 5d969a2

Please sign in to comment.