From fc2160a30e40b2374c6b1ed97416ed77bf9e63ee Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Dec 2020 02:22:09 -0800 Subject: [PATCH] feat: Automated regeneration of compute alpha client (#1684) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-09 02:07:31,839 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-compute-alpha nothing to commit, working tree clean 2020-12-09 02:07:31,868 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth compute alpha DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth compute alpha bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.5 Installing i18n 1.8.5 Fetching minitest 5.14.2 Installing minitest 5.14.2 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.8 Installing tzinfo 1.2.8 Fetching activesupport 5.0.7.2 Installing activesupport 5.0.7.2 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.3.1 Installing json 2.3.1 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.26.0 Installing tins 1.26.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching crack 0.4.4 Installing crack 0.4.4 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.1.0 Installing faraday 1.1.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching rexml 3.2.4 Installing rexml 3.2.4 Using google-api-client 0.51.0 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.0 Installing rspec-support 3.10.0 Fetching rspec-core 3.10.0 Installing rspec-core 3.10.0 Fetching rspec-expectations 3.10.0 Installing rspec-expectations 3.10.0 Fetching rspec-mocks 3.10.0 Installing rspec-mocks 3.10.0 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.25 Installing yard 0.9.25 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.0 Installing redcarpet 3.5.0 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 31 Gemfile dependencies, 78 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen generated --api=compute.alpha --names-out=/workspace/api_names_out.yaml Loading compute, version alpha from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/compute.alpha.json W, [2020-12-09T10:07:55.417918 #237] WARN -- : Found reserved property 'methods' W, [2020-12-09T10:07:55.417980 #237] WARN -- : Changed to 'methods_prop' conflict google/apis/compute_alpha.rb Wrote metadata to generated/google/apis/compute_alpha/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/compute_alpha/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/13e6b812-a54d-4bbb-9ab8-105f680377a2/targets - [ ] To automatically regenerate this PR, check this box. --- api_names_out.yaml | 90 +++ generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 730 ++++++++++++++++-- .../apis/compute_alpha/representations.rb | 172 ++++- .../google/apis/compute_alpha/service.rb | 282 ++++++- .../google/apis/compute_alpha/synth.metadata | 11 + 6 files changed, 1197 insertions(+), 90 deletions(-) create mode 100644 generated/google/apis/compute_alpha/synth.metadata diff --git a/api_names_out.yaml b/api_names_out.yaml index 6a3199740..4fad859ee 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -29320,6 +29320,8 @@ "/compute:alpha/AcceleratorTypesScopedList/warning/data/datum/value": value "/compute:alpha/AcceleratorTypesScopedList/warning/message": message "/compute:alpha/AccessConfig": access_config +"/compute:alpha/AccessConfig/externalIpv6": external_ipv6 +"/compute:alpha/AccessConfig/externalIpv6PrefixLength": external_ipv6_prefix_length "/compute:alpha/AccessConfig/kind": kind "/compute:alpha/AccessConfig/name": name "/compute:alpha/AccessConfig/natIP": nat_ip @@ -29443,6 +29445,8 @@ "/compute:alpha/AllocationList/warning/data/datum/key": key "/compute:alpha/AllocationList/warning/data/datum/value": value "/compute:alpha/AllocationList/warning/message": message +"/compute:alpha/AllocationShareSettings": allocation_share_settings +"/compute:alpha/AllocationShareSettings/shareType": share_type "/compute:alpha/AllocationSpecificSKUAllocation": allocation_specific_sku_allocation "/compute:alpha/AllocationSpecificSKUAllocation/count": count "/compute:alpha/AllocationSpecificSKUAllocation/inUseCount": in_use_count @@ -29511,6 +29515,7 @@ "/compute:alpha/AttachedDisk/deviceName": device_name "/compute:alpha/AttachedDisk/diskEncryptionKey": disk_encryption_key "/compute:alpha/AttachedDisk/diskSizeGb": disk_size_gb +"/compute:alpha/AttachedDisk/forceAttach": force_attach "/compute:alpha/AttachedDisk/guestOsFeatures": guest_os_features "/compute:alpha/AttachedDisk/guestOsFeatures/guest_os_feature": guest_os_feature "/compute:alpha/AttachedDisk/index": index @@ -29696,6 +29701,7 @@ "/compute:alpha/BackendBucket/customResponseHeaders": custom_response_headers "/compute:alpha/BackendBucket/customResponseHeaders/custom_response_header": custom_response_header "/compute:alpha/BackendBucket/description": description +"/compute:alpha/BackendBucket/edgeSecurityPolicy": edge_security_policy "/compute:alpha/BackendBucket/enableCdn": enable_cdn "/compute:alpha/BackendBucket/id": id "/compute:alpha/BackendBucket/kind": kind @@ -29747,6 +29753,7 @@ "/compute:alpha/BackendService/circuitBreakers": circuit_breakers "/compute:alpha/BackendService/cloudFunctionBackend": cloud_function_backend "/compute:alpha/BackendService/connectionDraining": connection_draining +"/compute:alpha/BackendService/connectionTrackingPolicy": connection_tracking_policy "/compute:alpha/BackendService/consistentHash": consistent_hash "/compute:alpha/BackendService/creationTimestamp": creation_timestamp "/compute:alpha/BackendService/customRequestHeaders": custom_request_headers @@ -29754,6 +29761,7 @@ "/compute:alpha/BackendService/customResponseHeaders": custom_response_headers "/compute:alpha/BackendService/customResponseHeaders/custom_response_header": custom_response_header "/compute:alpha/BackendService/description": description +"/compute:alpha/BackendService/edgeSecurityPolicy": edge_security_policy "/compute:alpha/BackendService/enableCDN": enable_cdn "/compute:alpha/BackendService/failoverPolicy": failover_policy "/compute:alpha/BackendService/failoverRatio": failover_ratio @@ -29826,6 +29834,8 @@ "/compute:alpha/BackendServiceCloudFunctionBackend": backend_service_cloud_function_backend "/compute:alpha/BackendServiceCloudFunctionBackend/functionName": function_name "/compute:alpha/BackendServiceCloudFunctionBackend/targetProject": target_project +"/compute:alpha/BackendServiceConnectionTrackingPolicy": backend_service_connection_tracking_policy +"/compute:alpha/BackendServiceConnectionTrackingPolicy/connectionPersistenceOnUnhealthyBackends": connection_persistence_on_unhealthy_backends "/compute:alpha/BackendServiceFailoverPolicy": backend_service_failover_policy "/compute:alpha/BackendServiceFailoverPolicy/disableConnectionDrainOnFailover": disable_connection_drain_on_failover "/compute:alpha/BackendServiceFailoverPolicy/dropTrafficIfUnhealthy": drop_traffic_if_unhealthy @@ -29924,7 +29934,9 @@ "/compute:alpha/BulkInsertInstanceResource/count": count "/compute:alpha/BulkInsertInstanceResource/instance": instance "/compute:alpha/BulkInsertInstanceResource/instanceProperties": instance_properties +"/compute:alpha/BulkInsertInstanceResource/locationPolicy": location_policy "/compute:alpha/BulkInsertInstanceResource/minCount": min_count +"/compute:alpha/BulkInsertInstanceResource/namePattern": name_pattern "/compute:alpha/BulkInsertInstanceResource/predefinedNames": predefined_names "/compute:alpha/BulkInsertInstanceResource/predefinedNames/predefined_name": predefined_name "/compute:alpha/BulkInsertInstanceResource/sourceInstanceTemplate": source_instance_template @@ -30402,6 +30414,7 @@ "/compute:alpha/FirewallPolicyRule/action": action "/compute:alpha/FirewallPolicyRule/description": description "/compute:alpha/FirewallPolicyRule/direction": direction +"/compute:alpha/FirewallPolicyRule/disabled": disabled "/compute:alpha/FirewallPolicyRule/enableLogging": enable_logging "/compute:alpha/FirewallPolicyRule/kind": kind "/compute:alpha/FirewallPolicyRule/match": match @@ -30410,6 +30423,8 @@ "/compute:alpha/FirewallPolicyRule/ruleTupleCount": rule_tuple_count "/compute:alpha/FirewallPolicyRule/targetResources": target_resources "/compute:alpha/FirewallPolicyRule/targetResources/target_resource": target_resource +"/compute:alpha/FirewallPolicyRule/targetSecureLabels": target_secure_labels +"/compute:alpha/FirewallPolicyRule/targetSecureLabels/target_secure_label": target_secure_label "/compute:alpha/FirewallPolicyRule/targetServiceAccounts": target_service_accounts "/compute:alpha/FirewallPolicyRule/targetServiceAccounts/target_service_account": target_service_account "/compute:alpha/FirewallPolicyRuleMatcher": firewall_policy_rule_matcher @@ -30419,6 +30434,8 @@ "/compute:alpha/FirewallPolicyRuleMatcher/layer4Configs/layer4_config": layer4_config "/compute:alpha/FirewallPolicyRuleMatcher/srcIpRanges": src_ip_ranges "/compute:alpha/FirewallPolicyRuleMatcher/srcIpRanges/src_ip_range": src_ip_range +"/compute:alpha/FirewallPolicyRuleMatcher/srcSecureLabels": src_secure_labels +"/compute:alpha/FirewallPolicyRuleMatcher/srcSecureLabels/src_secure_label": src_secure_label "/compute:alpha/FirewallPolicyRuleMatcherLayer4Config": firewall_policy_rule_matcher_layer4_config "/compute:alpha/FirewallPolicyRuleMatcherLayer4Config/ipProtocol": ip_protocol "/compute:alpha/FirewallPolicyRuleMatcherLayer4Config/ports": ports @@ -31082,6 +31099,8 @@ "/compute:alpha/Instance/scheduling": scheduling "/compute:alpha/Instance/secureLabels": secure_labels "/compute:alpha/Instance/secureLabels/secure_label": secure_label +"/compute:alpha/Instance/secureTags": secure_tags +"/compute:alpha/Instance/secureTags/secure_tag": secure_tag "/compute:alpha/Instance/selfLink": self_link "/compute:alpha/Instance/selfLinkWithId": self_link_with_id "/compute:alpha/Instance/serviceAccounts": service_accounts @@ -31280,6 +31299,7 @@ "/compute:alpha/InstanceGroupManagerUpdatePolicy/maxUnavailable": max_unavailable "/compute:alpha/InstanceGroupManagerUpdatePolicy/minReadySec": min_ready_sec "/compute:alpha/InstanceGroupManagerUpdatePolicy/minimalAction": minimal_action +"/compute:alpha/InstanceGroupManagerUpdatePolicy/mostDisruptiveAllowedAction": most_disruptive_allowed_action "/compute:alpha/InstanceGroupManagerUpdatePolicy/replacementMethod": replacement_method "/compute:alpha/InstanceGroupManagerUpdatePolicy/type": type "/compute:alpha/InstanceGroupManagerVersion": instance_group_manager_version @@ -31504,10 +31524,18 @@ "/compute:alpha/InstancesAddResourcePoliciesRequest/resourcePolicies": resource_policies "/compute:alpha/InstancesAddResourcePoliciesRequest/resourcePolicies/resource_policy": resource_policy "/compute:alpha/InstancesGetEffectiveFirewallsResponse": instances_get_effective_firewalls_response +"/compute:alpha/InstancesGetEffectiveFirewallsResponse/firewallPolicys": firewall_policys +"/compute:alpha/InstancesGetEffectiveFirewallsResponse/firewallPolicys/firewall_policy": firewall_policy "/compute:alpha/InstancesGetEffectiveFirewallsResponse/firewalls": firewalls "/compute:alpha/InstancesGetEffectiveFirewallsResponse/firewalls/firewall": firewall "/compute:alpha/InstancesGetEffectiveFirewallsResponse/organizationFirewalls": organization_firewalls "/compute:alpha/InstancesGetEffectiveFirewallsResponse/organizationFirewalls/organization_firewall": organization_firewall +"/compute:alpha/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy": instances_get_effective_firewalls_response_effective_firewall_policy +"/compute:alpha/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy/displayName": display_name +"/compute:alpha/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy/name": name +"/compute:alpha/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy/rules": rules +"/compute:alpha/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy/rules/rule": rule +"/compute:alpha/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy/type": type "/compute:alpha/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy": instances_get_effective_firewalls_response_organization_firewall_policy "/compute:alpha/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy/id": id "/compute:alpha/InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy/rules": rules @@ -31572,6 +31600,12 @@ "/compute:alpha/InstantSnapshot/sourceDiskId": source_disk_id "/compute:alpha/InstantSnapshot/status": status "/compute:alpha/InstantSnapshot/zone": zone +"/compute:alpha/InstantSnapshotExportParams": instant_snapshot_export_params +"/compute:alpha/InstantSnapshotExportParams/baseInstantSnapshot": base_instant_snapshot +"/compute:alpha/InstantSnapshotExportParams/bucketName": bucket_name +"/compute:alpha/InstantSnapshotExportParams/encryptionKey": encryption_key +"/compute:alpha/InstantSnapshotExportParams/objectName": object_name +"/compute:alpha/InstantSnapshotExportParams/outputType": output_type "/compute:alpha/InstantSnapshotList": instant_snapshot_list "/compute:alpha/InstantSnapshotList/id": id "/compute:alpha/InstantSnapshotList/items": items @@ -31629,6 +31663,7 @@ "/compute:alpha/InterconnectAttachment/cloudRouterIpAddress": cloud_router_ip_address "/compute:alpha/InterconnectAttachment/creationTimestamp": creation_timestamp "/compute:alpha/InterconnectAttachment/customerRouterIpAddress": customer_router_ip_address +"/compute:alpha/InterconnectAttachment/dataplaneVersion": dataplane_version "/compute:alpha/InterconnectAttachment/description": description "/compute:alpha/InterconnectAttachment/edgeAvailabilityDomain": edge_availability_domain "/compute:alpha/InterconnectAttachment/encryption": encryption @@ -31893,6 +31928,11 @@ "/compute:alpha/LocalDisk/diskCount": disk_count "/compute:alpha/LocalDisk/diskSizeGb": disk_size_gb "/compute:alpha/LocalDisk/diskType": disk_type +"/compute:alpha/LocationPolicy": location_policy +"/compute:alpha/LocationPolicy/locations": locations +"/compute:alpha/LocationPolicy/locations/location": location +"/compute:alpha/LocationPolicyLocation": location_policy_location +"/compute:alpha/LocationPolicyLocation/preference": preference "/compute:alpha/LogConfig": log_config "/compute:alpha/LogConfig/cloudAudit": cloud_audit "/compute:alpha/LogConfig/counter": counter @@ -32256,12 +32296,17 @@ "/compute:alpha/NetworkInterface/aliasIpRanges": alias_ip_ranges "/compute:alpha/NetworkInterface/aliasIpRanges/alias_ip_range": alias_ip_range "/compute:alpha/NetworkInterface/fingerprint": fingerprint +"/compute:alpha/NetworkInterface/internalIpv6PrefixLength": internal_ipv6_prefix_length +"/compute:alpha/NetworkInterface/ipv6AccessConfigs": ipv6_access_configs +"/compute:alpha/NetworkInterface/ipv6AccessConfigs/ipv6_access_config": ipv6_access_config "/compute:alpha/NetworkInterface/ipv6Address": ipv6_address "/compute:alpha/NetworkInterface/kind": kind "/compute:alpha/NetworkInterface/name": name "/compute:alpha/NetworkInterface/network": network "/compute:alpha/NetworkInterface/networkIP": network_ip +"/compute:alpha/NetworkInterface/nicType": nic_type "/compute:alpha/NetworkInterface/queueCount": queue_count +"/compute:alpha/NetworkInterface/stackType": stack_type "/compute:alpha/NetworkInterface/subnetwork": subnetwork "/compute:alpha/NetworkList": network_list "/compute:alpha/NetworkList/id": id @@ -32300,10 +32345,18 @@ "/compute:alpha/NetworksAddPeeringRequest/networkPeering": network_peering "/compute:alpha/NetworksAddPeeringRequest/peerNetwork": peer_network "/compute:alpha/NetworksGetEffectiveFirewallsResponse": networks_get_effective_firewalls_response +"/compute:alpha/NetworksGetEffectiveFirewallsResponse/firewallPolicys": firewall_policys +"/compute:alpha/NetworksGetEffectiveFirewallsResponse/firewallPolicys/firewall_policy": firewall_policy "/compute:alpha/NetworksGetEffectiveFirewallsResponse/firewalls": firewalls "/compute:alpha/NetworksGetEffectiveFirewallsResponse/firewalls/firewall": firewall "/compute:alpha/NetworksGetEffectiveFirewallsResponse/organizationFirewalls": organization_firewalls "/compute:alpha/NetworksGetEffectiveFirewallsResponse/organizationFirewalls/organization_firewall": organization_firewall +"/compute:alpha/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy": networks_get_effective_firewalls_response_effective_firewall_policy +"/compute:alpha/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy/displayName": display_name +"/compute:alpha/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy/name": name +"/compute:alpha/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy/rules": rules +"/compute:alpha/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy/rules/rule": rule +"/compute:alpha/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy/type": type "/compute:alpha/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy": networks_get_effective_firewalls_response_organization_firewall_policy "/compute:alpha/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy/id": id "/compute:alpha/NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy/rules": rules @@ -33192,6 +33245,7 @@ "/compute:alpha/Reservation/name": name "/compute:alpha/Reservation/selfLink": self_link "/compute:alpha/Reservation/selfLinkWithId": self_link_with_id +"/compute:alpha/Reservation/shareSettings": share_settings "/compute:alpha/Reservation/specificReservation": specific_reservation "/compute:alpha/Reservation/specificReservationRequired": specific_reservation_required "/compute:alpha/Reservation/status": status @@ -33445,6 +33499,7 @@ "/compute:alpha/Router/bgpPeers/bgp_peer": bgp_peer "/compute:alpha/Router/creationTimestamp": creation_timestamp "/compute:alpha/Router/description": description +"/compute:alpha/Router/encryptedInterconnectRouter": encrypted_interconnect_router "/compute:alpha/Router/id": id "/compute:alpha/Router/interfaces": interfaces "/compute:alpha/Router/interfaces/interface": interface @@ -33696,6 +33751,7 @@ "/compute:alpha/Scheduling/locationHint": location_hint "/compute:alpha/Scheduling/longTermRelease": long_term_release "/compute:alpha/Scheduling/maintenanceFreezeDurationHours": maintenance_freeze_duration_hours +"/compute:alpha/Scheduling/maintenanceInterval": maintenance_interval "/compute:alpha/Scheduling/minNodeCpus": min_node_cpus "/compute:alpha/Scheduling/nodeAffinities": node_affinities "/compute:alpha/Scheduling/nodeAffinities/node_affinity": node_affinity @@ -33729,6 +33785,7 @@ "/compute:alpha/SecurityPoliciesWafConfig": security_policies_waf_config "/compute:alpha/SecurityPoliciesWafConfig/wafRules": waf_rules "/compute:alpha/SecurityPolicy": security_policy +"/compute:alpha/SecurityPolicy/adaptiveProtectionConfig": adaptive_protection_config "/compute:alpha/SecurityPolicy/associations": associations "/compute:alpha/SecurityPolicy/associations/association": association "/compute:alpha/SecurityPolicy/cloudArmorConfig": cloud_armor_config @@ -33749,6 +33806,11 @@ "/compute:alpha/SecurityPolicy/selfLink": self_link "/compute:alpha/SecurityPolicy/selfLinkWithId": self_link_with_id "/compute:alpha/SecurityPolicy/type": type +"/compute:alpha/SecurityPolicyAdaptiveProtectionConfig": security_policy_adaptive_protection_config +"/compute:alpha/SecurityPolicyAdaptiveProtectionConfig/layer7DdosDefenseConfig": layer7_ddos_defense_config +"/compute:alpha/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig": security_policy_adaptive_protection_config_layer7_ddos_defense_config +"/compute:alpha/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig/enable": enable +"/compute:alpha/SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig/ruleVisibility": rule_visibility "/compute:alpha/SecurityPolicyAssociation": security_policy_association "/compute:alpha/SecurityPolicyAssociation/attachmentId": attachment_id "/compute:alpha/SecurityPolicyAssociation/displayName": display_name @@ -33781,6 +33843,7 @@ "/compute:alpha/SecurityPolicyRule/preview": preview "/compute:alpha/SecurityPolicyRule/priority": priority "/compute:alpha/SecurityPolicyRule/rateLimitOptions": rate_limit_options +"/compute:alpha/SecurityPolicyRule/ruleNumber": rule_number "/compute:alpha/SecurityPolicyRule/ruleTupleCount": rule_tuple_count "/compute:alpha/SecurityPolicyRule/targetResources": target_resources "/compute:alpha/SecurityPolicyRule/targetResources/target_resource": target_resource @@ -34122,11 +34185,13 @@ "/compute:alpha/Subnetwork/description": description "/compute:alpha/Subnetwork/enableFlowLogs": enable_flow_logs "/compute:alpha/Subnetwork/enablePrivateV6Access": enable_private_v6_access +"/compute:alpha/Subnetwork/externalIpv6Prefix": external_ipv6_prefix "/compute:alpha/Subnetwork/fingerprint": fingerprint "/compute:alpha/Subnetwork/flowSampling": flow_sampling "/compute:alpha/Subnetwork/gatewayAddress": gateway_address "/compute:alpha/Subnetwork/id": id "/compute:alpha/Subnetwork/ipCidrRange": ip_cidr_range +"/compute:alpha/Subnetwork/ipv6AccessType": ipv6_access_type "/compute:alpha/Subnetwork/ipv6CidrRange": ipv6_cidr_range "/compute:alpha/Subnetwork/kind": kind "/compute:alpha/Subnetwork/logConfig": log_config @@ -34145,6 +34210,7 @@ "/compute:alpha/Subnetwork/secondaryIpRanges/secondary_ip_range": secondary_ip_range "/compute:alpha/Subnetwork/selfLink": self_link "/compute:alpha/Subnetwork/selfLinkWithId": self_link_with_id +"/compute:alpha/Subnetwork/stackType": stack_type "/compute:alpha/Subnetwork/state": state "/compute:alpha/SubnetworkAggregatedList": subnetwork_aggregated_list "/compute:alpha/SubnetworkAggregatedList/id": id @@ -34320,6 +34386,7 @@ "/compute:alpha/TargetHttpsProxy/clientSslPolicy": client_ssl_policy "/compute:alpha/TargetHttpsProxy/creationTimestamp": creation_timestamp "/compute:alpha/TargetHttpsProxy/description": description +"/compute:alpha/TargetHttpsProxy/fingerprint": fingerprint "/compute:alpha/TargetHttpsProxy/httpFilters": http_filters "/compute:alpha/TargetHttpsProxy/httpFilters/http_filter": http_filter "/compute:alpha/TargetHttpsProxy/id": id @@ -34538,6 +34605,7 @@ "/compute:alpha/TargetTcpProxy/id": id "/compute:alpha/TargetTcpProxy/kind": kind "/compute:alpha/TargetTcpProxy/name": name +"/compute:alpha/TargetTcpProxy/proxyBind": proxy_bind "/compute:alpha/TargetTcpProxy/proxyHeader": proxy_header "/compute:alpha/TargetTcpProxy/selfLink": self_link "/compute:alpha/TargetTcpProxy/service": service @@ -35190,6 +35258,10 @@ "/compute:alpha/compute.backendBuckets.patch/backendBucket": backend_bucket "/compute:alpha/compute.backendBuckets.patch/project": project "/compute:alpha/compute.backendBuckets.patch/requestId": request_id +"/compute:alpha/compute.backendBuckets.setEdgeSecurityPolicy": set_backend_bucket_edge_security_policy +"/compute:alpha/compute.backendBuckets.setEdgeSecurityPolicy/backendBucket": backend_bucket +"/compute:alpha/compute.backendBuckets.setEdgeSecurityPolicy/project": project +"/compute:alpha/compute.backendBuckets.setEdgeSecurityPolicy/requestId": request_id "/compute:alpha/compute.backendBuckets.setIamPolicy": set_backend_bucket_iam_policy "/compute:alpha/compute.backendBuckets.setIamPolicy/project": project "/compute:alpha/compute.backendBuckets.setIamPolicy/resource": resource @@ -35241,6 +35313,10 @@ "/compute:alpha/compute.backendServices.patch/backendService": backend_service "/compute:alpha/compute.backendServices.patch/project": project "/compute:alpha/compute.backendServices.patch/requestId": request_id +"/compute:alpha/compute.backendServices.setEdgeSecurityPolicy": set_backend_service_edge_security_policy +"/compute:alpha/compute.backendServices.setEdgeSecurityPolicy/backendService": backend_service +"/compute:alpha/compute.backendServices.setEdgeSecurityPolicy/project": project +"/compute:alpha/compute.backendServices.setEdgeSecurityPolicy/requestId": request_id "/compute:alpha/compute.backendServices.setSecurityPolicy": set_backend_service_security_policy "/compute:alpha/compute.backendServices.setSecurityPolicy/backendService": backend_service "/compute:alpha/compute.backendServices.setSecurityPolicy/project": project @@ -37484,6 +37560,11 @@ "/compute:alpha/compute.regionInstantSnapshots.delete/project": project "/compute:alpha/compute.regionInstantSnapshots.delete/region": region "/compute:alpha/compute.regionInstantSnapshots.delete/requestId": request_id +"/compute:alpha/compute.regionInstantSnapshots.export": export_region_instant_snapshot +"/compute:alpha/compute.regionInstantSnapshots.export/instantSnapshot": instant_snapshot +"/compute:alpha/compute.regionInstantSnapshots.export/project": project +"/compute:alpha/compute.regionInstantSnapshots.export/region": region +"/compute:alpha/compute.regionInstantSnapshots.export/requestId": request_id "/compute:alpha/compute.regionInstantSnapshots.get": get_region_instant_snapshot "/compute:alpha/compute.regionInstantSnapshots.get/instantSnapshot": instant_snapshot "/compute:alpha/compute.regionInstantSnapshots.get/project": project @@ -38223,6 +38304,10 @@ "/compute:alpha/compute.targetHttpsProxies.list/pageToken": page_token "/compute:alpha/compute.targetHttpsProxies.list/project": project "/compute:alpha/compute.targetHttpsProxies.list/returnPartialSuccess": return_partial_success +"/compute:alpha/compute.targetHttpsProxies.patch": patch_target_https_proxy +"/compute:alpha/compute.targetHttpsProxies.patch/project": project +"/compute:alpha/compute.targetHttpsProxies.patch/requestId": request_id +"/compute:alpha/compute.targetHttpsProxies.patch/targetHttpsProxy": target_https_proxy "/compute:alpha/compute.targetHttpsProxies.setCertificateMap": set_target_https_proxy_certificate_map "/compute:alpha/compute.targetHttpsProxies.setCertificateMap/project": project "/compute:alpha/compute.targetHttpsProxies.setCertificateMap/requestId": request_id @@ -38615,6 +38700,11 @@ "/compute:alpha/compute.zoneInstantSnapshots.delete/project": project "/compute:alpha/compute.zoneInstantSnapshots.delete/requestId": request_id "/compute:alpha/compute.zoneInstantSnapshots.delete/zone": zone +"/compute:alpha/compute.zoneInstantSnapshots.export": export_zone_instant_snapshot +"/compute:alpha/compute.zoneInstantSnapshots.export/instantSnapshot": instant_snapshot +"/compute:alpha/compute.zoneInstantSnapshots.export/project": project +"/compute:alpha/compute.zoneInstantSnapshots.export/requestId": request_id +"/compute:alpha/compute.zoneInstantSnapshots.export/zone": zone "/compute:alpha/compute.zoneInstantSnapshots.get": get_zone_instant_snapshot "/compute:alpha/compute.zoneInstantSnapshots.get/instantSnapshot": instant_snapshot "/compute:alpha/compute.zoneInstantSnapshots.get/project": project diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 62ef4dd0b..56357496e 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20200910' + REVISION = '20201102' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 81f3ef0fc..8b75bd52b 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -471,6 +471,19 @@ module Google class AccessConfig include Google::Apis::Core::Hashable + # [Output Only] The first IPv6 address of the external IPv6 range associated + # with this instance, prefix length is stored in externalIpv6PrefixLength in + # ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork + # associated with the instance will be allocated dynamically. + # Corresponds to the JSON property `externalIpv6` + # @return [String] + attr_accessor :external_ipv6 + + # [Output Only] The prefix length of the external IPv6 range. + # Corresponds to the JSON property `externalIpv6PrefixLength` + # @return [Fixnum] + attr_accessor :external_ipv6_prefix_length + # [Output Only] Type of the resource. Always compute#accessConfig for access # configs. # Corresponds to the JSON property `kind` @@ -540,6 +553,8 @@ module Google # Update properties of this object def update!(**args) + @external_ipv6 = args[:external_ipv6] if args.key?(:external_ipv6) + @external_ipv6_prefix_length = args[:external_ipv6_prefix_length] if args.key?(:external_ipv6_prefix_length) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @nat_ip = args[:nat_ip] if args.key?(:nat_ip) @@ -668,6 +683,9 @@ module Google # - `VPC_PEERING` for addresses that are reserved for VPC peer networks. # - `NAT_AUTO` for addresses that are external IP addresses automatically # reserved for Cloud NAT. + # - `IPSEC_INTERCONNECT` for addresses created from a private IP range that are + # reserved for a VLAN attachment in an IPsec encrypted Interconnect + # configuration. These addresses are regional resources. # Corresponds to the JSON property `purpose` # @return [String] attr_accessor :purpose @@ -1134,6 +1152,25 @@ module Google end end + # + class AllocationShareSettings + include Google::Apis::Core::Hashable + + # Type of sharing for this shared-reservation + # Corresponds to the JSON property `shareType` + # @return [String] + attr_accessor :share_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @share_type = args[:share_type] if args.key?(:share_type) + end + end + # class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk include Google::Apis::Core::Hashable @@ -1195,6 +1232,13 @@ module Google # @return [Fixnum] attr_accessor :maintenance_freeze_duration_hours + # Specifies whether this VM may be a stable fleet VM. Setting this to "Periodic" + # designates this VM as a Stable Fleet VM. + # See go/stable-fleet-ug for more details. + # Corresponds to the JSON property `maintenanceInterval` + # @return [String] + attr_accessor :maintenance_interval + # Minimum cpu platform the reservation. # Corresponds to the JSON property `minCpuPlatform` # @return [String] @@ -1211,6 +1255,7 @@ module Google @location_hint = args[:location_hint] if args.key?(:location_hint) @machine_type = args[:machine_type] if args.key?(:machine_type) @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours) + @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) end end @@ -1298,6 +1343,14 @@ module Google # @return [Fixnum] attr_accessor :disk_size_gb + # [Input Only] Whether to force attach the regional disk even if it's currently + # attached to another instance. If you try to force attach a zonal disk to an + # instance, you will receive an error. + # Corresponds to the JSON property `forceAttach` + # @return [Boolean] + attr_accessor :force_attach + alias_method :force_attach?, :force_attach + # A list of features to enable on the guest operating system. Applicable only # for bootable images. Read Enabling guest operating system features to see a # list of available options. @@ -1397,6 +1450,7 @@ module Google @device_name = args[:device_name] if args.key?(:device_name) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @force_attach = args[:force_attach] if args.key?(:force_attach) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @index = args[:index] if args.key?(:index) @initialize_params = args[:initialize_params] if args.key?(:initialize_params) @@ -1753,8 +1807,8 @@ module Google # Represents an Autoscaler resource. # Google Compute Engine has two Autoscaler resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/autoscalers) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionAutoscalers) + # * [Zonal](/compute/docs/reference/rest/`$api_version`/autoscalers) * [Regional] + # (/compute/docs/reference/rest/`$api_version`/regionAutoscalers) # Use autoscalers to automatically add or delete instances from a managed # instance group according to your defined autoscaling policy. For more # information, read Autoscaling Groups of Instances. @@ -2860,6 +2914,12 @@ module Google # @return [String] attr_accessor :description + # [Output Only] The resource URL for the edge security policy associated with + # this backend bucket. + # Corresponds to the JSON property `edgeSecurityPolicy` + # @return [String] + attr_accessor :edge_security_policy + # If true, enable Cloud CDN for this BackendBucket. # Corresponds to the JSON property `enableCdn` # @return [Boolean] @@ -2907,6 +2967,7 @@ module Google @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers) @description = args[:description] if args.key?(:description) + @edge_security_policy = args[:edge_security_policy] if args.key?(:edge_security_policy) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @@ -2978,12 +3039,17 @@ module Google # Negative caching allows per-status code TTLs to be set, in order to apply fine- # grained caching for common errors or redirects. This can reduce the load on - # your origin and improve end-user experience by reducing response latency. By - # default, Cloud CDN will apply the following default TTLs to these status codes: - # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not - # Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method - # Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s These - # defaults can be overridden in negative_caching_policy + # your origin and improve end-user experience by reducing response latency. When + # the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative + # caching applies to responses with the specified response code that lack any + # Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is + # set to FORCE_CACHE_ALL, negative caching applies to all responses with the + # specified response code, and override any caching headers. By default, Cloud + # CDN will apply the following default TTLs to these status codes: HTTP 300 ( + # Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), + # 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not + # Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults + # can be overridden in negative_caching_policy. # Corresponds to the JSON property `negativeCaching` # @return [Boolean] attr_accessor :negative_caching @@ -3087,9 +3153,10 @@ module Google # @return [Fixnum] attr_accessor :code - # The TTL (in seconds) to cache responses with the corresponding status code for. - # The maximum allowed value is 1800s (30 minutes), noting that infrequently - # accessed objects may be evicted from the cache before the defined TTL. + # The TTL (in seconds) for which to cache responses with the corresponding + # status code. The maximum allowed value is 1800s (30 minutes), noting that + # infrequently accessed objects may be evicted from the cache before the defined + # TTL. # Corresponds to the JSON property `ttl` # @return [Fixnum] attr_accessor :ttl @@ -3269,6 +3336,11 @@ module Google # @return [Google::Apis::ComputeAlpha::ConnectionDraining] attr_accessor :connection_draining + # Connection Tracking configuration for this BackendService. + # Corresponds to the JSON property `connectionTrackingPolicy` + # @return [Google::Apis::ComputeAlpha::BackendServiceConnectionTrackingPolicy] + attr_accessor :connection_tracking_policy + # This message defines settings for a consistent hash style load balancer. # Corresponds to the JSON property `consistentHash` # @return [Google::Apis::ComputeAlpha::ConsistentHashLoadBalancerSettings] @@ -3295,6 +3367,12 @@ module Google # @return [String] attr_accessor :description + # [Output Only] The resource URL for the edge security policy associated with + # this backend service. + # Corresponds to the JSON property `edgeSecurityPolicy` + # @return [String] + attr_accessor :edge_security_policy + # If true, enables Cloud CDN for the backend service. Only applicable if the # loadBalancingScheme is EXTERNAL and the protocol is HTTP or HTTPS. # Corresponds to the JSON property `enableCDN` @@ -3521,11 +3599,13 @@ module Google @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy) @circuit_breakers = args[:circuit_breakers] if args.key?(:circuit_breakers) @connection_draining = args[:connection_draining] if args.key?(:connection_draining) + @connection_tracking_policy = args[:connection_tracking_policy] if args.key?(:connection_tracking_policy) @consistent_hash = args[:consistent_hash] if args.key?(:consistent_hash) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers) @custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers) @description = args[:description] if args.key?(:description) + @edge_security_policy = args[:edge_security_policy] if args.key?(:edge_security_policy) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @failover_policy = args[:failover_policy] if args.key?(:failover_policy) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @@ -3744,12 +3824,17 @@ module Google # Negative caching allows per-status code TTLs to be set, in order to apply fine- # grained caching for common errors or redirects. This can reduce the load on - # your origin and improve end-user experience by reducing response latency. By - # default, Cloud CDN will apply the following default TTLs to these status codes: - # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not - # Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method - # Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s These - # defaults can be overridden in negative_caching_policy + # your origin and improve end-user experience by reducing response latency. When + # the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative + # caching applies to responses with the specified response code that lack any + # Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is + # set to FORCE_CACHE_ALL, negative caching applies to all responses with the + # specified response code, and override any caching headers. By default, Cloud + # CDN will apply the following default TTLs to these status codes: HTTP 300 ( + # Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), + # 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not + # Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults + # can be overridden in negative_caching_policy. # Corresponds to the JSON property `negativeCaching` # @return [Boolean] attr_accessor :negative_caching @@ -3854,9 +3939,10 @@ module Google # @return [Fixnum] attr_accessor :code - # The TTL (in seconds) to cache responses with the corresponding status code for. - # The maximum allowed value is 1800s (30 minutes), noting that infrequently - # accessed objects may be evicted from the cache before the defined TTL. + # The TTL (in seconds) for which to cache responses with the corresponding + # status code. The maximum allowed value is 1800s (30 minutes), noting that + # infrequently accessed objects may be evicted from the cache before the defined + # TTL. # Corresponds to the JSON property `ttl` # @return [Fixnum] attr_accessor :ttl @@ -3872,6 +3958,37 @@ module Google end end + # Connection Tracking configuration for this BackendService. + class BackendServiceConnectionTrackingPolicy + include Google::Apis::Core::Hashable + + # Specifies connection persistence when backends are unhealthy. The default + # value is DEFAULT_FOR_PROTOCOL. + # If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy + # backends only for connection-oriented protocols (TCP and SCTP) and only if the + # Tracking Mode is PER_CONNECTION (default tracking mode) or the Session + # Affinity is configured for 5-tuple. They do not persist for UDP. + # If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing + # connections on the unhealthy backend are never persisted on the unhealthy + # backend. They are always diverted to newly selected healthy backends (unless + # all backends are unhealthy). + # If set to ALWAYS_PERSIST, existing connections always persist on unhealthy + # backends regardless of protocol and session affinity. It is generally not + # recommended to use this mode overriding the default. + # Corresponds to the JSON property `connectionPersistenceOnUnhealthyBackends` + # @return [String] + attr_accessor :connection_persistence_on_unhealthy_backends + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @connection_persistence_on_unhealthy_backends = args[:connection_persistence_on_unhealthy_backends] if args.key?(:connection_persistence_on_unhealthy_backends) + end + end + # Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover # or failback, this field indicates whether connection draining will be honored. # GCP has a fixed connection draining timeout of 10 minutes. A setting of true @@ -4573,8 +4690,7 @@ module Google class Binding include Google::Apis::Core::Hashable - # A client-specified ID for this binding. Expected to be globally unique to - # support the internal bindings-by-ID API. + # # Corresponds to the JSON property `bindingId` # @return [String] attr_accessor :binding_id @@ -4678,6 +4794,12 @@ module Google # @return [Google::Apis::ComputeAlpha::InstanceProperties] attr_accessor :instance_properties + # Configuration for location policy among multiple possible locations (e.g. + # preferences for zone selection among zones in a single region). + # Corresponds to the JSON property `locationPolicy` + # @return [Google::Apis::ComputeAlpha::LocationPolicy] + attr_accessor :location_policy + # The minimum number of instances to create. If no min_count is specified then # count is used as the default value. If min_count instances cannot be created, # then no instances will be created. @@ -4685,6 +4807,20 @@ module Google # @return [Fixnum] attr_accessor :min_count + # Instance name pattern. Name pattern includes a parameter to specify the auto- + # incrementing portion of the name, in a form of consecutive hash (#) chars, + # each of them corresponding to one digit of an instance name. For example: + # name_pattern = inst-####-prod will generate names starting with inst-0001-prod, + # inst-0002-prod, up to required count. If there exist instances matching the + # name pattern in the same project and zone, the initial instance number will be + # equal to the maximum existing instance number + 1 (e.g. if there exists an + # instance with name inst-0030-prod, then the generated names will start with + # inst-0031-prod). The name pattern placeholder #...# can contain up to 18 + # characters. + # Corresponds to the JSON property `namePattern` + # @return [String] + attr_accessor :name_pattern + # List of predefined names. The number of names provided must be equal to count. # Corresponds to the JSON property `predefinedNames` # @return [Array] @@ -4714,7 +4850,9 @@ module Google @count = args[:count] if args.key?(:count) @instance = args[:instance] if args.key?(:instance) @instance_properties = args[:instance_properties] if args.key?(:instance_properties) + @location_policy = args[:location_policy] if args.key?(:location_policy) @min_count = args[:min_count] if args.key?(:min_count) + @name_pattern = args[:name_pattern] if args.key?(:name_pattern) @predefined_names = args[:predefined_names] if args.key?(:predefined_names) @source_instance_template = args[:source_instance_template] if args.key?(:source_instance_template) end @@ -7167,7 +7305,7 @@ module Google # @return [String] attr_accessor :target_shape - # Zones where the regional managed instance group will create and manage + # Zones where the regional managed instance group will create and manage its # instances. # Corresponds to the JSON property `zones` # @return [Array] @@ -8443,6 +8581,14 @@ module Google # @return [String] attr_accessor :direction + # Denotes whether the firewall policy rule is disabled. When set to true, the + # firewall policy rule is not enforced and traffic behaves as if it did not + # exist. If this is unspecified, the firewall policy rule will be enabled. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + # Denotes whether to enable logging for a particular rule. If logging is enabled, # logs will be exported to the configured export destination in Stackdriver. # Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging @@ -8464,12 +8610,6 @@ module Google # @return [Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher] attr_accessor :match - # If set to true, the specified action is not enforced. - # Corresponds to the JSON property `preview` - # @return [Boolean] - attr_accessor :preview - alias_method :preview?, :preview - # An integer indicating the priority of a rule in the list. The priority must be # a positive value between 0 and 2147483647. Rules are evaluated from highest to # lowest priority where 0 is the highest priority and 2147483647 is the lowest @@ -8490,6 +8630,17 @@ module Google # @return [Array] attr_accessor :target_resources + # A list of secure labels that controls which instances the firewall rule + # applies to. If targetSecureLabel are specified, then the firewall rule applies + # only to instances in the VPC network that have one of those secure labels. + # targetSecureLabel may not be set at the same time as targetServiceAccounts. If + # neither targetServiceAccounts nor targetSecureLabel are specified, the + # firewall rule applies to all instances on the specified network. Maximum + # number of target label values allowed is 256. + # Corresponds to the JSON property `targetSecureLabels` + # @return [Array] + attr_accessor :target_secure_labels + # A list of service accounts indicating the sets of instances that are applied # with this rule. # Corresponds to the JSON property `targetServiceAccounts` @@ -8505,13 +8656,14 @@ module Google @action = args[:action] if args.key?(:action) @description = args[:description] if args.key?(:description) @direction = args[:direction] if args.key?(:direction) + @disabled = args[:disabled] if args.key?(:disabled) @enable_logging = args[:enable_logging] if args.key?(:enable_logging) @kind = args[:kind] if args.key?(:kind) @match = args[:match] if args.key?(:match) - @preview = args[:preview] if args.key?(:preview) @priority = args[:priority] if args.key?(:priority) @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) @target_resources = args[:target_resources] if args.key?(:target_resources) + @target_secure_labels = args[:target_secure_labels] if args.key?(:target_secure_labels) @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts) end end @@ -8537,6 +8689,12 @@ module Google # @return [Array] attr_accessor :src_ip_ranges + # List of firewall label values, which should be matched at the source of the + # traffic. Maximum number of source label values allowed is 256. + # Corresponds to the JSON property `srcSecureLabels` + # @return [Array] + attr_accessor :src_secure_labels + def initialize(**args) update!(**args) end @@ -8546,6 +8704,7 @@ module Google @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges) @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs) @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges) + @src_secure_labels = args[:src_secure_labels] if args.key?(:src_secure_labels) end end @@ -8652,6 +8811,8 @@ module Google # ip_address_specifications). # Must be set to `0.0.0.0` when the target is targetGrpcProxy that has # validateForProxyless field set to true. + # For Private Service Connect forwarding rules that forward traffic to Google + # APIs, IP address must be provided. # Corresponds to the JSON property `IPAddress` # @return [String] attr_accessor :ip_address @@ -8822,6 +8983,8 @@ module Google # For internal load balancing, this field identifies the network that the load # balanced IP should belong to for this Forwarding Rule. If this field is not # specified, the default network will be used. + # For Private Service Connect forwarding rules that forward traffic to Google + # APIs, a network must be provided. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network @@ -8931,6 +9094,15 @@ module Google # resource. The forwarded traffic must be of a type appropriate to the target # object. For more information, see the "Target" column in [Port specifications]( # /load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). + # For Private Service Connect forwarding rules that forward traffic to Google + # APIs, provide the name of a supported Google API bundle. Currently, the + # supported Google API bundles include: + # + # - vpc-sc - GCP APIs that support VPC Service Controls. For more information + # about which APIs support VPC Service Controls, refer to VPC-SC supported + # products and limitations. + # - all-apis - All GCP APIs. For more information about which APIs are supported + # with this bundle, refer to Private Google Access-specific domains and VIPs. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -9931,12 +10103,16 @@ module Google # Google Compute Engine has two Health Check resources: # * [Global](/compute/docs/reference/rest/`$api_version`/healthChecks) * [ # Regional](/compute/docs/reference/rest/`$api_version`/regionHealthChecks) - # Internal HTTP(S) load balancers must use regional health checks. Internal TCP/ - # UDP load balancers can use either regional or global health checks. All other - # types of GCP load balancers and managed instance group auto-healing must use - # global health checks. For more information, read Health Check Concepts. - # To perform health checks on network load balancers, you must use either - # httpHealthChecks or httpsHealthChecks. + # Internal HTTP(S) load balancers must use regional health checks (`compute.v1. + # regionHealthChecks`). + # Traffic Director must use global health checks (`compute.v1.HealthChecks`). + # Internal TCP/UDP load balancers can use either regional or global health + # checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`). + # External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed + # instance group auto-healing must use global health checks (`compute.v1. + # HealthChecks`). + # Network load balancers must use legacy HTTP health checks (httpHealthChecks). + # For more information, see Health checks overview. class HealthCheck include Google::Apis::Core::Hashable @@ -13069,6 +13245,12 @@ module Google # @return [Array] attr_accessor :secure_labels + # Secure tags to apply to this instance. These can be later modified by the + # update method. Maximum number of secure tags allowed is 300. + # Corresponds to the JSON property `secureTags` + # @return [Array] + attr_accessor :secure_tags + # [Output Only] Server-defined URL for this resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -13197,6 +13379,7 @@ module Google @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @scheduling = args[:scheduling] if args.key?(:scheduling) @secure_labels = args[:secure_labels] if args.key?(:secure_labels) + @secure_tags = args[:secure_tags] if args.key?(:secure_tags) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @@ -13750,8 +13933,8 @@ module Google # @return [String] attr_accessor :description - # Policy specifying intended distribution of instances in regional managed - # instance group. + # Policy specifying the intended distribution of managed instances across zones + # in a regional managed instance group. # Corresponds to the JSON property `distributionPolicy` # @return [Google::Apis::ComputeAlpha::DistributionPolicy] attr_accessor :distribution_policy @@ -13786,7 +13969,9 @@ module Google # The URL of the instance template that is specified for this managed instance # group. The group uses this template to create all new instances in the managed - # instance group. + # instance group. The templates for existing instances in the group do not + # change unless you run recreateInstances, run applyUpdatesToInstances, or set + # the group's updatePolicy.type to PROACTIVE. # Corresponds to the JSON property `instanceTemplate` # @return [String] attr_accessor :instance_template @@ -13884,7 +14069,7 @@ module Google # @return [Array] attr_accessor :versions - # [Output Only] The URL of the zone where the managed instance group is located ( + # [Output Only] The URL of a zone where the managed instance group is located ( # for zonal resources). # Corresponds to the JSON property `zone` # @return [String] @@ -14511,6 +14696,17 @@ module Google # @return [String] attr_accessor :minimal_action + # Most disruptive action that is allowed to be taken on an instance. You can + # specify either NONE to forbid any actions, REFRESH to allow actions that do + # not need instance restart, RESTART to allow actions that can be applied + # without instance replacing or REPLACE to allow all possible actions. If the + # Updater determines that the minimal update action needed is more disruptive + # than most disruptive allowed action you specify it will not perform the update + # at all. + # Corresponds to the JSON property `mostDisruptiveAllowedAction` + # @return [String] + attr_accessor :most_disruptive_allowed_action + # What action should be used to replace instances. See minimal_action.REPLACE # Corresponds to the JSON property `replacementMethod` # @return [String] @@ -14536,6 +14732,7 @@ module Google @max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable) @min_ready_sec = args[:min_ready_sec] if args.key?(:min_ready_sec) @minimal_action = args[:minimal_action] if args.key?(:minimal_action) + @most_disruptive_allowed_action = args[:most_disruptive_allowed_action] if args.key?(:most_disruptive_allowed_action) @replacement_method = args[:replacement_method] if args.key?(:replacement_method) @type = args[:type] if args.key?(:type) end @@ -14547,7 +14744,11 @@ module Google # The URL of the instance template that is specified for this managed instance # group. The group uses this template to create new instances in the managed - # instance group until the `targetSize` for this version is reached. + # instance group until the `targetSize` for this version is reached. The + # templates for existing instances in the group do not change unless you run + # recreateInstances, run applyUpdatesToInstances, or set the group's + # updatePolicy.type to PROACTIVE; in those cases, existing instances are updated + # until the `targetSize` for this version is reached. # Corresponds to the JSON property `instanceTemplate` # @return [String] attr_accessor :instance_template @@ -15080,7 +15281,9 @@ module Google # The URL of the instance template that is specified for this managed instance # group. The group uses this template to create all new instances in the managed - # instance group. + # instance group. The templates for existing instances in the group do not + # change unless you run recreateInstances, run applyUpdatesToInstances, or set + # the group's updatePolicy.type to PROACTIVE. # Corresponds to the JSON property `instanceTemplate` # @return [String] attr_accessor :instance_template @@ -16257,6 +16460,11 @@ module Google class InstancesGetEffectiveFirewallsResponse include Google::Apis::Core::Hashable + # Effective firewalls from firewall policies. + # Corresponds to the JSON property `firewallPolicys` + # @return [Array] + attr_accessor :firewall_policys + # Effective firewalls on the instance. # Corresponds to the JSON property `firewalls` # @return [Array] @@ -16273,11 +16481,49 @@ module Google # Update properties of this object def update!(**args) + @firewall_policys = args[:firewall_policys] if args.key?(:firewall_policys) @firewalls = args[:firewalls] if args.key?(:firewalls) @organization_firewalls = args[:organization_firewalls] if args.key?(:organization_firewalls) end end + # + class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy + include Google::Apis::Core::Hashable + + # [Output Only] The display name of the firewall policy. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # [Output Only] The name of the firewall policy. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The rules that apply to the network. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + # [Output Only] The type of the firewall policy. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @rules = args[:rules] if args.key?(:rules) + @type = args[:type] if args.key?(:type) + end + end + # A pruned SecurityPolicy containing ID and any applicable firewall rules. class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy include Google::Apis::Core::Hashable @@ -16764,6 +17010,55 @@ module Google end end + # + class InstantSnapshotExportParams + include Google::Apis::Core::Hashable + + # An optional base instant snapshot that this resource is compared against. If + # not specified, all blocks of this resource are exported. The base instant + # snapshot and this resource must be created from the same disk. The base + # instant snapshot must be created earlier in time than this resource. + # Corresponds to the JSON property `baseInstantSnapshot` + # @return [String] + attr_accessor :base_instant_snapshot + + # The name of an existing bucket in Cloud Storage where the changed blocks will + # be stored. The Google Service Account must have read and write access to this + # bucket. The bucket has to be in the same region as this resource. + # Corresponds to the JSON property `bucketName` + # @return [String] + attr_accessor :bucket_name + + # Encryption key used to encrypt the instant snapshot. + # Corresponds to the JSON property `encryptionKey` + # @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey] + attr_accessor :encryption_key + + # Name of the output Bigstore object storing the changed blocks. Object name + # must be less than 1024 bytes in length. + # Corresponds to the JSON property `objectName` + # @return [String] + attr_accessor :object_name + + # The format of the output file. + # Corresponds to the JSON property `outputType` + # @return [String] + attr_accessor :output_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @base_instant_snapshot = args[:base_instant_snapshot] if args.key?(:base_instant_snapshot) + @bucket_name = args[:bucket_name] if args.key?(:bucket_name) + @encryption_key = args[:encryption_key] if args.key?(:encryption_key) + @object_name = args[:object_name] if args.key?(:object_name) + @output_type = args[:output_type] if args.key?(:output_type) + end + end + # Contains a list of InstantSnapshot resources. class InstantSnapshotList include Google::Apis::Core::Hashable @@ -17193,6 +17488,11 @@ module Google # @return [String] attr_accessor :customer_router_ip_address + # [Output Only] Dataplane version for this InterconnectAttachment. + # Corresponds to the JSON property `dataplaneVersion` + # @return [Fixnum] + attr_accessor :dataplane_version + # An optional description of this resource. # Corresponds to the JSON property `description` # @return [String] @@ -17211,7 +17511,14 @@ module Google # @return [String] attr_accessor :edge_availability_domain - # Indicates the user-supplied encryption option of this interconnect attachment. + # Indicates the user-supplied encryption option of this interconnect attachment: + # - NONE is the default value, which means that the attachment carries + # unencrypted traffic. VMs can send traffic to, or receive traffic from, this + # type of attachment. + # - IPSEC indicates that the attachment carries only traffic encrypted by an + # IPsec device such as an HA VPN gateway. VMs cannot directly send traffic to, + # or receive traffic from, such an attachment. To use IPsec over Interconnect, + # create the attachment using this option. # Corresponds to the JSON property `encryption` # @return [String] attr_accessor :encryption @@ -17407,6 +17714,7 @@ module Google @cloud_router_ip_address = args[:cloud_router_ip_address] if args.key?(:cloud_router_ip_address) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @customer_router_ip_address = args[:customer_router_ip_address] if args.key?(:customer_router_ip_address) + @dataplane_version = args[:dataplane_version] if args.key?(:dataplane_version) @description = args[:description] if args.key?(:description) @edge_availability_domain = args[:edge_availability_domain] if args.key?(:edge_availability_domain) @encryption = args[:encryption] if args.key?(:encryption) @@ -19330,6 +19638,47 @@ module Google end end + # Configuration for location policy among multiple possible locations (e.g. + # preferences for zone selection among zones in a single region). + class LocationPolicy + include Google::Apis::Core::Hashable + + # Location configurations mapped by location name. Currently only zone names are + # supported and must be represented as valid internal URLs, like: zones/us- + # central1-a. + # Corresponds to the JSON property `locations` + # @return [Hash] + attr_accessor :locations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locations = args[:locations] if args.key?(:locations) + end + end + + # + class LocationPolicyLocation + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `preference` + # @return [String] + attr_accessor :preference + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @preference = args[:preference] if args.key?(:preference) + end + end + # Specifies what kind of log the caller must write class LogConfig include Google::Apis::Core::Hashable @@ -21155,7 +21504,7 @@ module Google include Google::Apis::Core::Hashable # Optional serving service. - # The service name must be 1-63 characters long, and comply with RFC1035. + # The service name is case-sensitive and must be 1-63 characters long. # Example value: "default", "my-service". # Corresponds to the JSON property `service` # @return [String] @@ -21173,7 +21522,7 @@ module Google attr_accessor :url_mask # Optional serving version. - # The version must be 1-63 characters long, and comply with RFC1035. + # The version name is case-sensitive and must be 1-100 characters long. # Example value: "v1", "v2". # Corresponds to the JSON property `version` # @return [String] @@ -21774,6 +22123,18 @@ module Google # @return [String] attr_accessor :fingerprint + # [Output Only] The prefix length of the primary internal IPv6 range. + # Corresponds to the JSON property `internalIpv6PrefixLength` + # @return [Fixnum] + attr_accessor :internal_ipv6_prefix_length + + # An array of IPv6 access configurations for this interface. Currently, only one + # IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig + # specified, then this instance will have no external IPv6 Internet access. + # Corresponds to the JSON property `ipv6AccessConfigs` + # @return [Array] + attr_accessor :ipv6_access_configs + # [Output Only] An IPv6 internal network address for this network interface. # Corresponds to the JSON property `ipv6Address` # @return [String] @@ -21812,15 +22173,26 @@ module Google # @return [String] attr_accessor :network_ip - # The networking queue count for the network interface. Both Rx and Tx queues - # will be set to this number. If it's not specified by the user, a default - # number of queues will be assigned. For Virtio-net, each interface will get ( - # min(#vCPU, 32) / #vNIC) queues. For gVNIC, each interface will get (min(#vCPU / - # 2, 16) / #vNIC) qeueus. + # The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. + # Corresponds to the JSON property `nicType` + # @return [String] + attr_accessor :nic_type + + # The networking queue count that's specified by users for the network interface. + # Both Rx and Tx queues will be set to this number. It'll be empty if not + # specified by the users. # Corresponds to the JSON property `queueCount` # @return [Fixnum] attr_accessor :queue_count + # The stack type for this network interface to identify whether the IPv6 feature + # is enabled or not. If not specified, IPV4_ONLY will be used. + # This field can be both set at instance creation and update network interface + # operations. + # Corresponds to the JSON property `stackType` + # @return [String] + attr_accessor :stack_type + # The URL of the Subnetwork resource for this instance. If the network resource # is in legacy mode, do not specify this field. If the network is in auto subnet # mode, specifying the subnetwork is optional. If the network is in custom @@ -21843,12 +22215,16 @@ module Google @access_configs = args[:access_configs] if args.key?(:access_configs) @alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @internal_ipv6_prefix_length = args[:internal_ipv6_prefix_length] if args.key?(:internal_ipv6_prefix_length) + @ipv6_access_configs = args[:ipv6_access_configs] if args.key?(:ipv6_access_configs) @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_ip = args[:network_ip] if args.key?(:network_ip) + @nic_type = args[:nic_type] if args.key?(:nic_type) @queue_count = args[:queue_count] if args.key?(:queue_count) + @stack_type = args[:stack_type] if args.key?(:stack_type) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end end @@ -22179,6 +22555,11 @@ module Google class NetworksGetEffectiveFirewallsResponse include Google::Apis::Core::Hashable + # Effective firewalls from firewall policy. + # Corresponds to the JSON property `firewallPolicys` + # @return [Array] + attr_accessor :firewall_policys + # Effective firewalls on the network. # Corresponds to the JSON property `firewalls` # @return [Array] @@ -22195,11 +22576,49 @@ module Google # Update properties of this object def update!(**args) + @firewall_policys = args[:firewall_policys] if args.key?(:firewall_policys) @firewalls = args[:firewalls] if args.key?(:firewalls) @organization_firewalls = args[:organization_firewalls] if args.key?(:organization_firewalls) end end + # + class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy + include Google::Apis::Core::Hashable + + # [Output Only] The display name of the firewall policy. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # [Output Only] The name of the firewall policy. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The rules that apply to the network. + # Corresponds to the JSON property `rules` + # @return [Array] + attr_accessor :rules + + # [Output Only] The type of the firewall policy. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @rules = args[:rules] if args.key?(:rules) + @type = args[:type] if args.key?(:type) + end + end + # A pruned SecurityPolicy containing ID and any applicable firewall rules. class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy include Google::Apis::Core::Hashable @@ -29012,6 +29431,11 @@ module Google # @return [String] attr_accessor :self_link_with_id + # Share-settings for shared-reservation + # Corresponds to the JSON property `shareSettings` + # @return [Google::Apis::ComputeAlpha::AllocationShareSettings] + attr_accessor :share_settings + # This reservation type allows to pre allocate specific instance configuration. # Corresponds to the JSON property `specificReservation` # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation] @@ -29050,6 +29474,7 @@ module Google @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @share_settings = args[:share_settings] if args.key?(:share_settings) @specific_reservation = args[:specific_reservation] if args.key?(:specific_reservation) @specific_reservation_required = args[:specific_reservation_required] if args.key?(:specific_reservation_required) @status = args[:status] if args.key?(:status) @@ -30450,8 +30875,9 @@ module Google attr_accessor :next_hop_gateway # The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should - # handle matching packets. You can only specify the forwarding rule as a partial - # or full URL. For example, the following are all valid URLs: + # handle matching packets or the IP address of the forwarding Rule. For example, + # the following are all valid URLs: + # - 10.128.0.56 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/ # forwardingRules/forwardingRule # - regions/region/forwardingRules/forwardingRule @@ -30763,6 +31189,13 @@ module Google # @return [String] attr_accessor :description + # Field to indicate if a router is dedicated to use with encrypted Interconnect + # Attachment (Encrypted Interconnect feature). + # Corresponds to the JSON property `encryptedInterconnectRouter` + # @return [Boolean] + attr_accessor :encrypted_interconnect_router + alias_method :encrypted_interconnect_router?, :encrypted_interconnect_router + # [Output Only] The unique identifier for the resource. This identifier is # defined by the server. # Corresponds to the JSON property `id` @@ -30828,6 +31261,7 @@ module Google @bgp_peers = args[:bgp_peers] if args.key?(:bgp_peers) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @encrypted_interconnect_router = args[:encrypted_interconnect_router] if args.key?(:encrypted_interconnect_router) @id = args[:id] if args.key?(:id) @interfaces = args[:interfaces] if args.key?(:interfaces) @kind = args[:kind] if args.key?(:kind) @@ -31145,10 +31579,10 @@ module Google # @return [String] attr_accessor :peer_ip_address - # URI of the VM instance that is used as third party router appliances such as - # Next Gen Firewalls, Virtual Routers, SD-WAN. The VM instance must live in - # zones contained in the same region as this Cloud Router. The VM instance is - # the peer side of the BGP session. + # URI of the VM instance that is used as third-party router appliances such as + # Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance + # must be located in zones contained in the same region as this Cloud Router. + # The VM instance is the peer side of the BGP session. # Corresponds to the JSON property `routerApplianceInstance` # @return [String] attr_accessor :router_appliance_instance @@ -31313,17 +31747,17 @@ module Google # @return [String] attr_accessor :name - # The regional private internal IP address that will be used to establish BGP - # session to a VM instance, which is used as third party router appliances such - # as Next Gen Firewalls, Virtual Routers, SD-WAN. + # The regional private internal IP address that is used to establish BGP + # sessions to a VM instance acting as a third-party Router Appliance, such as a + # Next Gen Firewall, a Virtual Router, or an SD-WAN VM. # Corresponds to the JSON property `privateIpAddress` # @return [String] attr_accessor :private_ip_address # Name of the interface that will be redundant with the current interface you # are creating. The redundantInterface must belong to the same Cloud Router as - # the interface here. To establish the BGP session to SD-WAN VM, you must create - # two BGP peers, and the two BGP peers need to be attached to two separate + # the interface here. To establish the BGP session to a Router Appliance VM, you + # must create two BGP peers. The two BGP peers must be attached to two separate # interfaces that are redundant with each other. The redundant_interface must be # 1-63 characters long, and comply with RFC1035. Specifically, the # redundant_interface must be 1-63 characters long and match the regular @@ -31334,9 +31768,9 @@ module Google # @return [String] attr_accessor :redundant_interface - # The URL of the subnetwork resource this interface belongs to, it must be in - # the same region as the router. When you establish a BGP session to a VM - # instance using this interface, the VM instance must belong to the same + # The URL of the subnetwork resource that this interface belongs to, which must + # be in the same region as the Cloud Router. When you establish a BGP session to + # a VM instance using this interface, the VM instance must belong to the same # subnetwork as the subnetwork specified here. # Corresponds to the JSON property `subnetwork` # @return [String] @@ -32447,6 +32881,13 @@ module Google # @return [Fixnum] attr_accessor :maintenance_freeze_duration_hours + # Specifies whether this VM may be a stable fleet VM. Setting this to "Periodic" + # designates this VM as a Stable Fleet VM. + # See go/stable-fleet-ug for more details. + # Corresponds to the JSON property `maintenanceInterval` + # @return [String] + attr_accessor :maintenance_interval + # The minimum number of virtual CPUs this instance will consume when running on # a sole-tenant node. # Corresponds to the JSON property `minNodeCpus` @@ -32486,6 +32927,7 @@ module Google @latency_tolerant = args[:latency_tolerant] if args.key?(:latency_tolerant) @location_hint = args[:location_hint] if args.key?(:location_hint) @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours) + @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus) @node_affinities = args[:node_affinities] if args.key?(:node_affinities) @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) @@ -32611,13 +33053,18 @@ module Google end end - # Represents a Cloud Armor Security Policy resource. + # Represents a Google Cloud Armor security policy resource. # Only external backend services that use load balancers can reference a - # Security Policy. For more information, read Cloud Armor Security Policy - # Concepts. (== resource_for `$api_version`.securityPolicies ==) + # security policy. For more information, see Google Cloud Armor security policy + # overview. (== resource_for `$api_version`.securityPolicies ==) class SecurityPolicy include Google::Apis::Core::Hashable + # Configuration options for Cloud Armor Adaptive Protection (CAAP). + # Corresponds to the JSON property `adaptiveProtectionConfig` + # @return [Google::Apis::ComputeAlpha::SecurityPolicyAdaptiveProtectionConfig] + attr_accessor :adaptive_protection_config + # A list of associations that belong to this policy. # Corresponds to the JSON property `associations` # @return [Array] @@ -32744,6 +33191,7 @@ module Google # Update properties of this object def update!(**args) + @adaptive_protection_config = args[:adaptive_protection_config] if args.key?(:adaptive_protection_config) @associations = args[:associations] if args.key?(:associations) @cloud_armor_config = args[:cloud_armor_config] if args.key?(:cloud_armor_config) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @@ -32764,6 +33212,52 @@ module Google end end + # Configuration options for Cloud Armor Adaptive Protection (CAAP). + class SecurityPolicyAdaptiveProtectionConfig + include Google::Apis::Core::Hashable + + # Configuration options for L7 DDoS detection. + # Corresponds to the JSON property `layer7DdosDefenseConfig` + # @return [Google::Apis::ComputeAlpha::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig] + attr_accessor :layer7_ddos_defense_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @layer7_ddos_defense_config = args[:layer7_ddos_defense_config] if args.key?(:layer7_ddos_defense_config) + end + end + + # Configuration options for L7 DDoS detection. + class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig + include Google::Apis::Core::Hashable + + # If set to true, enables CAAP for L7 DDoS detection. + # Corresponds to the JSON property `enable` + # @return [Boolean] + attr_accessor :enable + alias_method :enable?, :enable + + # Rule visibility can be one of the following: STANDARD - opaque rules. (default) + # PREMIUM - transparent rules. + # Corresponds to the JSON property `ruleVisibility` + # @return [String] + attr_accessor :rule_visibility + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable = args[:enable] if args.key?(:enable) + @rule_visibility = args[:rule_visibility] if args.key?(:rule_visibility) + end + end + # class SecurityPolicyAssociation include Google::Apis::Core::Hashable @@ -33018,6 +33512,13 @@ module Google # @return [Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions] attr_accessor :rate_limit_options + # Identifier for the rule. This is only unique within the given security policy. + # This can only be set during rule creation, if rule number is not specified it + # will be generated by the server. + # Corresponds to the JSON property `ruleNumber` + # @return [Fixnum] + attr_accessor :rule_number + # [Output Only] Calculation of the complexity of a single firewall security # policy rule. # Corresponds to the JSON property `ruleTupleCount` @@ -33053,6 +33554,7 @@ module Google @preview = args[:preview] if args.key?(:preview) @priority = args[:priority] if args.key?(:priority) @rate_limit_options = args[:rate_limit_options] if args.key?(:rate_limit_options) + @rule_number = args[:rule_number] if args.key?(:rule_number) @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) @target_resources = args[:target_resources] if args.key?(:target_resources) @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts) @@ -33530,13 +34032,15 @@ module Google class ServiceAttachment include Google::Apis::Core::Hashable - # + # The connection preference of service attachment. The value can be set to + # ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always + # accepts the connection from consumer forwarding rules. # Corresponds to the JSON property `connectionPreference` # @return [String] attr_accessor :connection_preference - # An array of forwarding rules for all the consumers connected to this service - # attachment. + # [Output Only] An array of forwarding rules for all the consumers connected to + # this service attachment. # Corresponds to the JSON property `consumerForwardingRules` # @return [Array] attr_accessor :consumer_forwarding_rules @@ -35183,10 +35687,10 @@ module Google end end - # Represents a Cloud Armor Security Policy resource. - # Only external backend services used by HTTP or HTTPS load balancers can - # reference a Security Policy. For more information, read read Cloud Armor - # Security Policy Concepts. (== resource_for `$api_version`.sslPolicies ==) + # Represents an SSL Policy resource. + # Use SSL policies to control the SSL features, such as versions and cipher + # suites, offered by an HTTPS or SSL Proxy load balancer. For more information, + # read SSL Policy Concepts. (== resource_for `$api_version`.sslPolicies ==) class SslPolicy include Google::Apis::Core::Hashable @@ -35512,6 +36016,12 @@ module Google attr_accessor :enable_private_v6_access alias_method :enable_private_v6_access?, :enable_private_v6_access + # [Output Only] The range of external IPv6 addresses that are owned by this + # subnetwork. + # Corresponds to the JSON property `externalIpv6Prefix` + # @return [String] + attr_accessor :external_ipv6_prefix + # Fingerprint of this resource. A hash of the contents stored in this object. # This field is used in optimistic locking. This field will be ignored when # inserting a Subnetwork. An up-to-date fingerprint must be provided in order to @@ -35554,6 +36064,14 @@ module Google # @return [String] attr_accessor :ip_cidr_range + # The access type of IPv6 address this subnet holds. It's immutable and can only + # be specified during creation or the first time the subnet is updated into + # IPV4_IPV6 dual stack. If the ipv6_type is EXTERNAL then this subnet cannot + # enable direct path. + # Corresponds to the JSON property `ipv6AccessType` + # @return [String] + attr_accessor :ipv6_access_type + # [Output Only] The range of internal IPv6 addresses that are owned by this # subnetwork. # Corresponds to the JSON property `ipv6CidrRange` @@ -35667,6 +36185,13 @@ module Google # @return [String] attr_accessor :self_link_with_id + # The stack type for this subnet to identify whether the IPv6 feature is enabled + # or not. If not specified IPV4_ONLY will be used. + # This field can be both set at resource creation time and updated using patch. + # Corresponds to the JSON property `stackType` + # @return [String] + attr_accessor :stack_type + # [Output Only] The state of the subnetwork, which can be one of READY or # DRAINING. A subnetwork that is READY is ready to be used. The state of # DRAINING is only applicable to subnetworks that have the purpose set to @@ -35689,11 +36214,13 @@ module Google @description = args[:description] if args.key?(:description) @enable_flow_logs = args[:enable_flow_logs] if args.key?(:enable_flow_logs) @enable_private_v6_access = args[:enable_private_v6_access] if args.key?(:enable_private_v6_access) + @external_ipv6_prefix = args[:external_ipv6_prefix] if args.key?(:external_ipv6_prefix) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @flow_sampling = args[:flow_sampling] if args.key?(:flow_sampling) @gateway_address = args[:gateway_address] if args.key?(:gateway_address) @id = args[:id] if args.key?(:id) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @ipv6_access_type = args[:ipv6_access_type] if args.key?(:ipv6_access_type) @ipv6_cidr_range = args[:ipv6_cidr_range] if args.key?(:ipv6_cidr_range) @kind = args[:kind] if args.key?(:kind) @log_config = args[:log_config] if args.key?(:log_config) @@ -35709,6 +36236,7 @@ module Google @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @stack_type = args[:stack_type] if args.key?(:stack_type) @state = args[:state] if args.key?(:state) end end @@ -36678,9 +37206,14 @@ module Google # @return [String] attr_accessor :name - # This field only applies when the loadBalancingScheme is INTERNAL_SELF_MANAGED. - # When set to true the Envoy binds on the IP address specified by the forwarding - # rule. Default is false. + # This field only applies when the forwarding rule that references this target + # proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # When this field is set to true, Envoy proxies set up inbound traffic + # interception and bind to the IP address and port specified in the forwarding + # rule. This is generally useful when using Traffic Director to configure Envoy + # as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy + # proxy listens for inbound requests and handles requests when it receives them. + # The default is false. # Corresponds to the JSON property `proxyBind` # @return [Boolean] attr_accessor :proxy_bind @@ -37174,6 +37707,17 @@ module Google # @return [String] attr_accessor :description + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a TargetHttpsProxy. An up-to-date fingerprint must be provided in + # order to patch the TargetHttpsProxy; otherwise, the request will fail with + # error 412 conditionNotMet. To see the latest fingerprint, make a get() request + # to retrieve the TargetHttpsProxy. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + # URLs to networkservices.HttpFilter resources enabled for xDS clients using # this configuration. For example, https://networkservices.googleapis.com/beta/ # projects/project/locations/locationhttpFilters/httpFilter Only filters that @@ -37211,9 +37755,14 @@ module Google # @return [String] attr_accessor :name - # This field only applies when the loadBalancingScheme is INTERNAL_SELF_MANAGED. - # When set to true the Envoy binds on the IP address specified by the forwarding - # rule. Default is false. + # This field only applies when the forwarding rule that references this target + # proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # When this field is set to true, Envoy proxies set up inbound traffic + # interception and bind to the IP address and port specified in the forwarding + # rule. This is generally useful when using Traffic Director to configure Envoy + # as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy + # proxy listens for inbound requests and handles requests when it receives them. + # The default is false. # Corresponds to the JSON property `proxyBind` # @return [Boolean] attr_accessor :proxy_bind @@ -37295,6 +37844,7 @@ module Google @certificate_map = args[:certificate_map] if args.key?(:certificate_map) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @http_filters = args[:http_filters] if args.key?(:http_filters) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @@ -37995,9 +38545,9 @@ module Google class TargetPool include Google::Apis::Core::Hashable - # This field is applicable only when the containing target pool is serving a - # forwarding rule as the primary pool, and its failoverRatio field is properly - # set to a value between [0, 1]. + # The server-defined URL for the resource. This field is applicable only when + # the containing target pool is serving a forwarding rule as the primary pool, + # and its failoverRatio field is properly set to a value between [0, 1]. # backupPool and failoverRatio together define the fallback behavior of the # primary target pool: if the ratio of the healthy instances in the primary pool # is at or below failoverRatio, traffic arriving at the load-balanced IP will be @@ -38956,6 +39506,19 @@ module Google # @return [String] attr_accessor :name + # This field only applies when the forwarding rule that references this target + # proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # When this field is set to true, Envoy proxies set up inbound traffic + # interception and bind to the IP address and port specified in the forwarding + # rule. This is generally useful when using Traffic Director to configure Envoy + # as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy + # proxy listens for inbound requests and handles requests when it receives them. + # The default is false. + # Corresponds to the JSON property `proxyBind` + # @return [Boolean] + attr_accessor :proxy_bind + alias_method :proxy_bind?, :proxy_bind + # Specifies the type of proxy header to append before sending data to the # backend, either NONE or PROXY_V1. The default is NONE. # Corresponds to the JSON property `proxyHeader` @@ -38983,6 +39546,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) + @proxy_bind = args[:proxy_bind] if args.key?(:proxy_bind) @proxy_header = args[:proxy_header] if args.key?(:proxy_header) @self_link = args[:self_link] if args.key?(:self_link) @service = args[:service] if args.key?(:service) diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 3a055a0e4..9b413ef4a 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -166,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AllocationShareSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk class Representation < Google::Apis::Core::JsonRepresentation; end @@ -424,6 +430,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendServiceConnectionTrackingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendServiceFailoverPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1930,6 +1942,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2014,6 +2032,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstantSnapshotExportParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstantSnapshotList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2326,6 +2350,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LocationPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class LocationPolicyLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2716,6 +2752,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4192,6 +4234,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class SecurityPolicyAdaptiveProtectionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecurityPolicyAssociation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5705,6 +5759,8 @@ module Google class AccessConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :external_ipv6, as: 'externalIpv6' + property :external_ipv6_prefix_length, as: 'externalIpv6PrefixLength' property :kind, as: 'kind' property :name, as: 'name' property :nat_ip, as: 'natIP' @@ -5852,6 +5908,13 @@ module Google end end + class AllocationShareSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :share_type, as: 'shareType' + end + end + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5870,6 +5933,7 @@ module Google property :location_hint, as: 'locationHint' property :machine_type, as: 'machineType' property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours' + property :maintenance_interval, as: 'maintenanceInterval' property :min_cpu_platform, as: 'minCpuPlatform' end end @@ -5893,6 +5957,7 @@ module Google property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' + property :force_attach, as: 'forceAttach' collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation property :index, as: 'index' @@ -6212,6 +6277,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' collection :custom_response_headers, as: 'customResponseHeaders' property :description, as: 'description' + property :edge_security_policy, as: 'edgeSecurityPolicy' property :enable_cdn, as: 'enableCdn' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' @@ -6299,12 +6365,15 @@ module Google property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeAlpha::ConnectionDraining, decorator: Google::Apis::ComputeAlpha::ConnectionDraining::Representation + property :connection_tracking_policy, as: 'connectionTrackingPolicy', class: Google::Apis::ComputeAlpha::BackendServiceConnectionTrackingPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceConnectionTrackingPolicy::Representation + property :consistent_hash, as: 'consistentHash', class: Google::Apis::ComputeAlpha::ConsistentHashLoadBalancerSettings, decorator: Google::Apis::ComputeAlpha::ConsistentHashLoadBalancerSettings::Representation property :creation_timestamp, as: 'creationTimestamp' collection :custom_request_headers, as: 'customRequestHeaders' collection :custom_response_headers, as: 'customResponseHeaders' property :description, as: 'description' + property :edge_security_policy, as: 'edgeSecurityPolicy' property :enable_cdn, as: 'enableCDN' property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeAlpha::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceFailoverPolicy::Representation @@ -6407,6 +6476,13 @@ module Google end end + class BackendServiceConnectionTrackingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :connection_persistence_on_unhealthy_backends, as: 'connectionPersistenceOnUnhealthyBackends' + end + end + class BackendServiceFailoverPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6599,7 +6675,10 @@ module Google property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeAlpha::InstanceProperties, decorator: Google::Apis::ComputeAlpha::InstanceProperties::Representation + property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeAlpha::LocationPolicy, decorator: Google::Apis::ComputeAlpha::LocationPolicy::Representation + property :min_count, :numeric_string => true, as: 'minCount' + property :name_pattern, as: 'namePattern' collection :predefined_names, as: 'predefinedNames' property :source_instance_template, as: 'sourceInstanceTemplate' end @@ -7479,14 +7558,15 @@ module Google property :action, as: 'action' property :description, as: 'description' property :direction, as: 'direction' + property :disabled, as: 'disabled' property :enable_logging, as: 'enableLogging' property :kind, as: 'kind' property :match, as: 'match', class: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher::Representation - property :preview, as: 'preview' property :priority, as: 'priority' property :rule_tuple_count, as: 'ruleTupleCount' collection :target_resources, as: 'targetResources' + collection :target_secure_labels, as: 'targetSecureLabels' collection :target_service_accounts, as: 'targetServiceAccounts' end end @@ -7498,6 +7578,7 @@ module Google collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcherLayer4Config::Representation collection :src_ip_ranges, as: 'srcIpRanges' + collection :src_secure_labels, as: 'srcSecureLabels' end end @@ -8504,6 +8585,7 @@ module Google property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation collection :secure_labels, as: 'secureLabels' + collection :secure_tags, as: 'secureTags' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation @@ -8836,6 +8918,7 @@ module Google property :min_ready_sec, as: 'minReadySec' property :minimal_action, as: 'minimalAction' + property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction' property :replacement_method, as: 'replacementMethod' property :type, as: 'type' end @@ -9331,6 +9414,8 @@ module Google class InstancesGetEffectiveFirewallsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :firewall_policys, as: 'firewallPolicys', class: Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy, decorator: Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy::Representation + collection :firewalls, as: 'firewalls', class: Google::Apis::ComputeAlpha::Firewall, decorator: Google::Apis::ComputeAlpha::Firewall::Representation collection :organization_firewalls, as: 'organizationFirewalls', class: Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy, decorator: Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy::Representation @@ -9338,6 +9423,17 @@ module Google end end + class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation + + property :type, as: 'type' + end + end + class InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9470,6 +9566,18 @@ module Google end end + class InstantSnapshotExportParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :base_instant_snapshot, as: 'baseInstantSnapshot' + property :bucket_name, as: 'bucketName' + property :encryption_key, as: 'encryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation + + property :object_name, as: 'objectName' + property :output_type, as: 'outputType' + end + end + class InstantSnapshotList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9552,6 +9660,7 @@ module Google property :cloud_router_ip_address, as: 'cloudRouterIpAddress' property :creation_timestamp, as: 'creationTimestamp' property :customer_router_ip_address, as: 'customerRouterIpAddress' + property :dataplane_version, as: 'dataplaneVersion' property :description, as: 'description' property :edge_availability_domain, as: 'edgeAvailabilityDomain' property :encryption, as: 'encryption' @@ -10072,6 +10181,21 @@ module Google end end + class LocationPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :locations, as: 'locations', class: Google::Apis::ComputeAlpha::LocationPolicyLocation, decorator: Google::Apis::ComputeAlpha::LocationPolicyLocation::Representation + + end + end + + class LocationPolicyLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :preference, as: 'preference' + end + end + class LogConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10695,12 +10819,17 @@ module Google collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeAlpha::AliasIpRange, decorator: Google::Apis::ComputeAlpha::AliasIpRange::Representation property :fingerprint, :base64 => true, as: 'fingerprint' + property :internal_ipv6_prefix_length, as: 'internalIpv6PrefixLength' + collection :ipv6_access_configs, as: 'ipv6AccessConfigs', class: Google::Apis::ComputeAlpha::AccessConfig, decorator: Google::Apis::ComputeAlpha::AccessConfig::Representation + property :ipv6_address, as: 'ipv6Address' property :kind, as: 'kind' property :name, as: 'name' property :network, as: 'network' property :network_ip, as: 'networkIP' + property :nic_type, as: 'nicType' property :queue_count, as: 'queueCount' + property :stack_type, as: 'stackType' property :subnetwork, as: 'subnetwork' end end @@ -10778,6 +10907,8 @@ module Google class NetworksGetEffectiveFirewallsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :firewall_policys, as: 'firewallPolicys', class: Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy, decorator: Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy::Representation + collection :firewalls, as: 'firewalls', class: Google::Apis::ComputeAlpha::Firewall, decorator: Google::Apis::ComputeAlpha::Firewall::Representation collection :organization_firewalls, as: 'organizationFirewalls', class: Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy, decorator: Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy::Representation @@ -10785,6 +10916,17 @@ module Google end end + class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation + + property :type, as: 'type' + end + end + class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12556,6 +12698,8 @@ module Google property :name, as: 'name' property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' + property :share_settings, as: 'shareSettings', class: Google::Apis::ComputeAlpha::AllocationShareSettings, decorator: Google::Apis::ComputeAlpha::AllocationShareSettings::Representation + property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation::Representation property :specific_reservation_required, as: 'specificReservationRequired' @@ -13026,6 +13170,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :encrypted_interconnect_router, as: 'encryptedInterconnectRouter' property :id, :numeric_string => true, as: 'id' collection :interfaces, as: 'interfaces', class: Google::Apis::ComputeAlpha::RouterInterface, decorator: Google::Apis::ComputeAlpha::RouterInterface::Representation @@ -13406,6 +13551,7 @@ module Google property :latency_tolerant, as: 'latencyTolerant' property :location_hint, as: 'locationHint' property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours' + property :maintenance_interval, as: 'maintenanceInterval' property :min_node_cpus, as: 'minNodeCpus' collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeAlpha::SchedulingNodeAffinity, decorator: Google::Apis::ComputeAlpha::SchedulingNodeAffinity::Representation @@ -13458,6 +13604,8 @@ module Google class SecurityPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + property :adaptive_protection_config, as: 'adaptiveProtectionConfig', class: Google::Apis::ComputeAlpha::SecurityPolicyAdaptiveProtectionConfig, decorator: Google::Apis::ComputeAlpha::SecurityPolicyAdaptiveProtectionConfig::Representation + collection :associations, as: 'associations', class: Google::Apis::ComputeAlpha::SecurityPolicyAssociation, decorator: Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation property :cloud_armor_config, as: 'cloudArmorConfig', class: Google::Apis::ComputeAlpha::SecurityPolicyCloudArmorConfig, decorator: Google::Apis::ComputeAlpha::SecurityPolicyCloudArmorConfig::Representation @@ -13481,6 +13629,22 @@ module Google end end + class SecurityPolicyAdaptiveProtectionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :layer7_ddos_defense_config, as: 'layer7DdosDefenseConfig', class: Google::Apis::ComputeAlpha::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig, decorator: Google::Apis::ComputeAlpha::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig::Representation + + end + end + + class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable, as: 'enable' + property :rule_visibility, as: 'ruleVisibility' + end + end + class SecurityPolicyAssociation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -13550,6 +13714,7 @@ module Google property :priority, as: 'priority' property :rate_limit_options, as: 'rateLimitOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions::Representation + property :rule_number, :numeric_string => true, as: 'ruleNumber' property :rule_tuple_count, as: 'ruleTupleCount' collection :target_resources, as: 'targetResources' collection :target_service_accounts, as: 'targetServiceAccounts' @@ -14167,11 +14332,13 @@ module Google property :description, as: 'description' property :enable_flow_logs, as: 'enableFlowLogs' property :enable_private_v6_access, as: 'enablePrivateV6Access' + property :external_ipv6_prefix, as: 'externalIpv6Prefix' property :fingerprint, :base64 => true, as: 'fingerprint' property :flow_sampling, as: 'flowSampling' property :gateway_address, as: 'gatewayAddress' property :id, :numeric_string => true, as: 'id' property :ip_cidr_range, as: 'ipCidrRange' + property :ipv6_access_type, as: 'ipv6AccessType' property :ipv6_cidr_range, as: 'ipv6CidrRange' property :kind, as: 'kind' property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::SubnetworkLogConfig, decorator: Google::Apis::ComputeAlpha::SubnetworkLogConfig::Representation @@ -14189,6 +14356,7 @@ module Google property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' + property :stack_type, as: 'stackType' property :state, as: 'state' end end @@ -14564,6 +14732,7 @@ module Google property :certificate_map, as: 'certificateMap' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' collection :http_filters, as: 'httpFilters' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' @@ -15014,6 +15183,7 @@ module Google property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' property :name, as: 'name' + property :proxy_bind, as: 'proxyBind' property :proxy_header, as: 'proxyHeader' property :self_link, as: 'selfLink' property :service, as: 'service' diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 10c70cb3a..2bb10166d 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -1516,6 +1516,58 @@ module Google execute_or_queue_command(command, &block) end + # Sets the edge security policy for the specified backend bucket. + # @param [String] project + # Project ID for this request. + # @param [String] backend_bucket + # Name of the BackendService resource to which the security policy should be set. + # The name should conform to RFC1035. + # @param [Google::Apis::ComputeAlpha::SecurityPolicyReference] security_policy_reference_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_backend_bucket_edge_security_policy(project, backend_bucket, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyReference::Representation + command.request_object = security_policy_reference_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['backendBucket'] = backend_bucket unless backend_bucket.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] project @@ -2140,6 +2192,58 @@ module Google execute_or_queue_command(command, &block) end + # Sets the edge security policy for the specified backend service. + # @param [String] project + # Project ID for this request. + # @param [String] backend_service + # Name of the BackendService resource to which the edge security policy should + # be set. The name should conform to RFC1035. + # @param [Google::Apis::ComputeAlpha::SecurityPolicyReference] security_policy_reference_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_backend_service_edge_security_policy(project, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyReference::Representation + command.request_object = security_policy_reference_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['backendService'] = backend_service unless backend_service.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets the security policy for the specified backend service. # @param [String] project # Project ID for this request. @@ -9086,7 +9190,8 @@ module Google # Specifies the instance template to use when creating new instances in this # group. The templates for existing instances in the group do not change unless - # you recreate them. + # you run recreateInstances, run applyUpdatesToInstances, or set the group's + # updatePolicy.type to PROACTIVE. # @param [String] project # Project ID for this request. # @param [String] zone @@ -11140,9 +11245,9 @@ module Google # - projects/project/global/instanceTemplates/instanceTemplate # - global/instanceTemplates/instanceTemplate # @param [String] source_machine_image - # Specifies instance machine to create the instance. + # Specifies the machine image to use to create the instance. # This field is optional. It can be a full or partial URL. For example, the - # following are all valid URLs to an instance template: + # following are all valid URLs to a machine image: # - https://www.googleapis.com/compute/v1/projects/project/global/global/ # machineImages/machineImage # - projects/project/global/global/machineImages/machineImage @@ -18583,7 +18688,7 @@ module Google # @param [Boolean] replace_existing_association # Indicates whether or not to replace it if an association of the attachment # already exists. This is false by default, in which case an error will be - # returned if an assocation already exists. + # returned if an association already exists. # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so # that if you must retry your request, the server will know to ignore the @@ -25713,6 +25818,61 @@ module Google execute_or_queue_command(command, &block) end + # Export the changed blocks between two instant snapshots to a customer?s bucket + # in the user specified format. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the zone for this request. + # @param [String] instant_snapshot + # Name of the instant snapshot to export. + # @param [Google::Apis::ComputeAlpha::InstantSnapshotExportParams] instant_snapshot_export_params_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_region_instant_snapshot(project, region, instant_snapshot, instant_snapshot_export_params_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}/export', options) + command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshotExportParams::Representation + command.request_object = instant_snapshot_export_params_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns the specified InstantSnapshot resource in the specified region. # @param [String] project # Project ID for this request. @@ -27839,6 +27999,8 @@ module Google # Initiates a cache invalidation operation, invalidating the specified path, # scoped to the specified UrlMap. + # For more information, see [Invalidating cached content](/cdn/docs/invalidating- + # cached-content). # @param [String] project # Project ID for this request. # @param [String] region @@ -32536,7 +32698,7 @@ module Google end # Patches the specified subnetwork with the data included in the request. Only - # certain fields can up updated with a patch request as indicated in the field + # certain fields can be updated with a patch request as indicated in the field # descriptions. You must specify the current fingerprint of the subnetwork # resource being patched. # @param [String] project @@ -33772,6 +33934,59 @@ module Google execute_or_queue_command(command, &block) end + # Patches the specified TargetHttpsProxy resource with the data included in the + # request. This method supports PATCH semantics and uses JSON merge patch format + # and processing rules. (== suppress_warning http-rest-shadowed ==) + # @param [String] project + # Project ID for this request. + # @param [String] target_https_proxy + # Name of the TargetHttpsProxy resource to patch. + # @param [Google::Apis::ComputeAlpha::TargetHttpsProxy] target_https_proxy_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_target_https_proxy(project, target_https_proxy, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) + command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation + command.request_object = target_https_proxy_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['targetHttpsProxy'] = target_https_proxy unless target_https_proxy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Changes the Certificate Map for TargetHttpsProxy. # @param [String] project # Project ID for this request. @@ -36563,6 +36778,8 @@ module Google # Initiates a cache invalidation operation, invalidating the specified path, # scoped to the specified UrlMap. + # For more information, see [Invalidating cached content](/cdn/docs/invalidating- + # cached-content). # @param [String] project # Project ID for this request. # @param [String] url_map @@ -38177,6 +38394,61 @@ module Google execute_or_queue_command(command, &block) end + # Export the changed blocks between two instant snapshots to a customer?s bucket + # in the user specified format. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instant_snapshot + # Name of the instant snapshot to export. + # @param [Google::Apis::ComputeAlpha::InstantSnapshotExportParams] instant_snapshot_export_params_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_zone_instant_snapshot(project, zone, instant_snapshot, instant_snapshot_export_params_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}/export', options) + command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshotExportParams::Representation + command.request_object = instant_snapshot_export_params_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Returns the specified InstantSnapshot resource in the specified zone. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/compute_alpha/synth.metadata b/generated/google/apis/compute_alpha/synth.metadata new file mode 100644 index 000000000..2dbcf5316 --- /dev/null +++ b/generated/google/apis/compute_alpha/synth.metadata @@ -0,0 +1,11 @@ +{ + "sources": [ + { + "git": { + "name": ".", + "remote": "https://github.com/googleapis/google-api-ruby-client.git", + "sha": "0492accc8a44d0f28a484a67f7940d74246ab88d" + } + } + ] +} \ No newline at end of file