From b1423d56605c38e3f85673eb221b5230cebef800 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 28 Sep 2025 10:05:57 +0000 Subject: [PATCH] feat: Automated regeneration of compute v1 client --- api_names_out.yaml | 159 +++ generated/google-apis-compute_v1/CHANGELOG.md | 4 + .../lib/google/apis/compute_v1/classes.rb | 565 +++++++- .../lib/google/apis/compute_v1/gem_version.rb | 4 +- .../google/apis/compute_v1/representations.rb | 246 ++++ .../lib/google/apis/compute_v1/service.rb | 1265 +++++++++++++++-- 6 files changed, 2153 insertions(+), 90 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 41bf745ccbe..87cd51209bd 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -115711,6 +115711,10 @@ "/compute:v1/CustomerEncryptionKeyProtectedDisk": customer_encryption_key_protected_disk "/compute:v1/CustomerEncryptionKeyProtectedDisk/diskEncryptionKey": disk_encryption_key "/compute:v1/CustomerEncryptionKeyProtectedDisk/source": source +"/compute:v1/Date": date +"/compute:v1/Date/day": day +"/compute:v1/Date/month": month +"/compute:v1/Date/year": year "/compute:v1/DeprecationStatus": deprecation_status "/compute:v1/DeprecationStatus/deleted": deleted "/compute:v1/DeprecationStatus/deprecated": deprecated @@ -116702,6 +116706,7 @@ "/compute:v1/Image/licenses": licenses "/compute:v1/Image/licenses/license": license "/compute:v1/Image/name": name +"/compute:v1/Image/params": params "/compute:v1/Image/rawDisk": raw_disk "/compute:v1/Image/rawDisk/containerType": container_type "/compute:v1/Image/rawDisk/sha1Checksum": sha1_checksum @@ -116739,6 +116744,9 @@ "/compute:v1/ImageList/warning/data/datum/key": key "/compute:v1/ImageList/warning/data/datum/value": value "/compute:v1/ImageList/warning/message": message +"/compute:v1/ImageParams": image_params +"/compute:v1/ImageParams/resourceManagerTags": resource_manager_tags +"/compute:v1/ImageParams/resourceManagerTags/resource_manager_tag": resource_manager_tag "/compute:v1/InitialStateConfig": initial_state_config "/compute:v1/InitialStateConfig/dbs": dbs "/compute:v1/InitialStateConfig/dbs/db": db @@ -117485,6 +117493,7 @@ "/compute:v1/Interconnect/satisfiesPzs": satisfies_pzs "/compute:v1/Interconnect/selfLink": self_link "/compute:v1/Interconnect/state": state +"/compute:v1/Interconnect/subzone": subzone "/compute:v1/InterconnectApplicationAwareInterconnect": interconnect_application_aware_interconnect "/compute:v1/InterconnectApplicationAwareInterconnect/bandwidthPercentagePolicy": bandwidth_percentage_policy "/compute:v1/InterconnectApplicationAwareInterconnect/profileDescription": profile_description @@ -118982,6 +118991,10 @@ "/compute:v1/OperationsScopedList/warning/data/datum/key": key "/compute:v1/OperationsScopedList/warning/data/datum/value": value "/compute:v1/OperationsScopedList/warning/message": message +"/compute:v1/OrganizationSecurityPoliciesListAssociationsResponse": organization_security_policies_list_associations_response +"/compute:v1/OrganizationSecurityPoliciesListAssociationsResponse/associations": associations +"/compute:v1/OrganizationSecurityPoliciesListAssociationsResponse/associations/association": association +"/compute:v1/OrganizationSecurityPoliciesListAssociationsResponse/kind": kind "/compute:v1/OutlierDetection": outlier_detection "/compute:v1/OutlierDetection/baseEjectionTime": base_ejection_time "/compute:v1/OutlierDetection/consecutiveErrors": consecutive_errors @@ -119136,6 +119149,44 @@ "/compute:v1/PreservedStatePreservedNetworkIpIpAddress": preserved_state_preserved_network_ip_ip_address "/compute:v1/PreservedStatePreservedNetworkIpIpAddress/address": address "/compute:v1/PreservedStatePreservedNetworkIpIpAddress/literal": literal +"/compute:v1/PreviewFeature": preview_feature +"/compute:v1/PreviewFeature/activationStatus": activation_status +"/compute:v1/PreviewFeature/creationTimestamp": creation_timestamp +"/compute:v1/PreviewFeature/description": description +"/compute:v1/PreviewFeature/id": id +"/compute:v1/PreviewFeature/kind": kind +"/compute:v1/PreviewFeature/name": name +"/compute:v1/PreviewFeature/rolloutOperation": rollout_operation +"/compute:v1/PreviewFeature/selfLink": self_link +"/compute:v1/PreviewFeature/status": status +"/compute:v1/PreviewFeatureList": preview_feature_list +"/compute:v1/PreviewFeatureList/etag": etag +"/compute:v1/PreviewFeatureList/id": id +"/compute:v1/PreviewFeatureList/items": items +"/compute:v1/PreviewFeatureList/items/item": item +"/compute:v1/PreviewFeatureList/nextPageToken": next_page_token +"/compute:v1/PreviewFeatureList/selfLink": self_link +"/compute:v1/PreviewFeatureList/unreachables": unreachables +"/compute:v1/PreviewFeatureList/unreachables/unreachable": unreachable +"/compute:v1/PreviewFeatureList/warning": warning +"/compute:v1/PreviewFeatureList/warning/code": code +"/compute:v1/PreviewFeatureList/warning/data": data +"/compute:v1/PreviewFeatureList/warning/data/datum": datum +"/compute:v1/PreviewFeatureList/warning/data/datum/key": key +"/compute:v1/PreviewFeatureList/warning/data/datum/value": value +"/compute:v1/PreviewFeatureList/warning/message": message +"/compute:v1/PreviewFeatureRolloutOperation": preview_feature_rollout_operation +"/compute:v1/PreviewFeatureRolloutOperation/rolloutInput": rollout_input +"/compute:v1/PreviewFeatureRolloutOperationRolloutInput": preview_feature_rollout_operation_rollout_input +"/compute:v1/PreviewFeatureRolloutOperationRolloutInput/name": name +"/compute:v1/PreviewFeatureRolloutOperationRolloutInput/predefinedRolloutPlan": predefined_rollout_plan +"/compute:v1/PreviewFeatureStatus": preview_feature_status +"/compute:v1/PreviewFeatureStatus/description": description +"/compute:v1/PreviewFeatureStatus/helpLink": help_link +"/compute:v1/PreviewFeatureStatus/releaseStatus": release_status +"/compute:v1/PreviewFeatureStatusReleaseStatus": preview_feature_status_release_status +"/compute:v1/PreviewFeatureStatusReleaseStatus/stage": stage +"/compute:v1/PreviewFeatureStatusReleaseStatus/updateDate": update_date "/compute:v1/Project": project "/compute:v1/Project/cloudArmorTier": cloud_armor_tier "/compute:v1/Project/commonInstanceMetadata": common_instance_metadata @@ -119673,6 +119724,14 @@ "/compute:v1/ReservationSubBlocksListResponse/warning/data/datum/key": key "/compute:v1/ReservationSubBlocksListResponse/warning/data/datum/value": value "/compute:v1/ReservationSubBlocksListResponse/warning/message": message +"/compute:v1/ReservationSubBlocksReportFaultyRequest": reservation_sub_blocks_report_faulty_request +"/compute:v1/ReservationSubBlocksReportFaultyRequest/disruptionSchedule": disruption_schedule +"/compute:v1/ReservationSubBlocksReportFaultyRequest/failureComponent": failure_component +"/compute:v1/ReservationSubBlocksReportFaultyRequest/faultReasons": fault_reasons +"/compute:v1/ReservationSubBlocksReportFaultyRequest/faultReasons/fault_reason": fault_reason +"/compute:v1/ReservationSubBlocksReportFaultyRequestFaultReason": reservation_sub_blocks_report_faulty_request_fault_reason +"/compute:v1/ReservationSubBlocksReportFaultyRequestFaultReason/behavior": behavior +"/compute:v1/ReservationSubBlocksReportFaultyRequestFaultReason/description": description "/compute:v1/ReservationsBlocksPerformMaintenanceRequest": reservations_blocks_perform_maintenance_request "/compute:v1/ReservationsBlocksPerformMaintenanceRequest/maintenanceScope": maintenance_scope "/compute:v1/ReservationsPerformMaintenanceRequest": reservations_perform_maintenance_request @@ -120285,6 +120344,8 @@ "/compute:v1/SecurityPolicy": security_policy "/compute:v1/SecurityPolicy/adaptiveProtectionConfig": adaptive_protection_config "/compute:v1/SecurityPolicy/advancedOptionsConfig": advanced_options_config +"/compute:v1/SecurityPolicy/associations": associations +"/compute:v1/SecurityPolicy/associations/association": association "/compute:v1/SecurityPolicy/creationTimestamp": creation_timestamp "/compute:v1/SecurityPolicy/ddosProtectionConfig": ddos_protection_config "/compute:v1/SecurityPolicy/description": description @@ -120300,6 +120361,7 @@ "/compute:v1/SecurityPolicy/rules": rules "/compute:v1/SecurityPolicy/rules/rule": rule "/compute:v1/SecurityPolicy/selfLink": self_link +"/compute:v1/SecurityPolicy/shortName": short_name "/compute:v1/SecurityPolicy/type": type "/compute:v1/SecurityPolicy/userDefinedFields": user_defined_fields "/compute:v1/SecurityPolicy/userDefinedFields/user_defined_field": user_defined_field @@ -120336,6 +120398,16 @@ "/compute:v1/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig": security_policy_advanced_options_config_json_custom_config "/compute:v1/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig/contentTypes": content_types "/compute:v1/SecurityPolicyAdvancedOptionsConfigJsonCustomConfig/contentTypes/content_type": content_type +"/compute:v1/SecurityPolicyAssociation": security_policy_association +"/compute:v1/SecurityPolicyAssociation/attachmentId": attachment_id +"/compute:v1/SecurityPolicyAssociation/displayName": display_name +"/compute:v1/SecurityPolicyAssociation/excludedFolders": excluded_folders +"/compute:v1/SecurityPolicyAssociation/excludedFolders/excluded_folder": excluded_folder +"/compute:v1/SecurityPolicyAssociation/excludedProjects": excluded_projects +"/compute:v1/SecurityPolicyAssociation/excludedProjects/excluded_project": excluded_project +"/compute:v1/SecurityPolicyAssociation/name": name +"/compute:v1/SecurityPolicyAssociation/securityPolicyId": security_policy_id +"/compute:v1/SecurityPolicyAssociation/shortName": short_name "/compute:v1/SecurityPolicyDdosProtectionConfig": security_policy_ddos_protection_config "/compute:v1/SecurityPolicyDdosProtectionConfig/ddosProtection": ddos_protection "/compute:v1/SecurityPolicyList": security_policy_list @@ -120603,6 +120675,7 @@ "/compute:v1/Snapshot/licenses/license": license "/compute:v1/Snapshot/locationHint": location_hint "/compute:v1/Snapshot/name": name +"/compute:v1/Snapshot/params": params "/compute:v1/Snapshot/satisfiesPzi": satisfies_pzi "/compute:v1/Snapshot/satisfiesPzs": satisfies_pzs "/compute:v1/Snapshot/selfLink": self_link @@ -120636,6 +120709,9 @@ "/compute:v1/SnapshotList/warning/data/datum/key": key "/compute:v1/SnapshotList/warning/data/datum/value": value "/compute:v1/SnapshotList/warning/message": message +"/compute:v1/SnapshotParams": snapshot_params +"/compute:v1/SnapshotParams/resourceManagerTags": resource_manager_tags +"/compute:v1/SnapshotParams/resourceManagerTags/resource_manager_tag": resource_manager_tag "/compute:v1/SnapshotSettings": snapshot_settings "/compute:v1/SnapshotSettings/storageLocation": storage_location "/compute:v1/SnapshotSettingsStorageLocationSettings": snapshot_settings_storage_location_settings @@ -122132,6 +122208,9 @@ "/compute:v1/compute.backendServices.get": get_backend_service "/compute:v1/compute.backendServices.get/backendService": backend_service "/compute:v1/compute.backendServices.get/project": project +"/compute:v1/compute.backendServices.getEffectiveSecurityPolicies": get_backend_service_effective_security_policies +"/compute:v1/compute.backendServices.getEffectiveSecurityPolicies/backendService": backend_service +"/compute:v1/compute.backendServices.getEffectiveSecurityPolicies/project": project "/compute:v1/compute.backendServices.getHealth": get_backend_service_health "/compute:v1/compute.backendServices.getHealth/backendService": backend_service "/compute:v1/compute.backendServices.getHealth/project": project @@ -124062,6 +124141,66 @@ "/compute:v1/compute.nodeTypes.list/project": project "/compute:v1/compute.nodeTypes.list/returnPartialSuccess": return_partial_success "/compute:v1/compute.nodeTypes.list/zone": zone +"/compute:v1/compute.organizationSecurityPolicies.addAssociation": add_organization_security_policy_association +"/compute:v1/compute.organizationSecurityPolicies.addAssociation/replaceExistingAssociation": replace_existing_association +"/compute:v1/compute.organizationSecurityPolicies.addAssociation/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.addAssociation/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.addRule": add_organization_security_policy_rule +"/compute:v1/compute.organizationSecurityPolicies.addRule/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.addRule/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.copyRules": copy_organization_security_policy_rules +"/compute:v1/compute.organizationSecurityPolicies.copyRules/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.copyRules/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.copyRules/sourceSecurityPolicy": source_security_policy +"/compute:v1/compute.organizationSecurityPolicies.delete": delete_organization_security_policy +"/compute:v1/compute.organizationSecurityPolicies.delete/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.delete/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.get": get_organization_security_policy +"/compute:v1/compute.organizationSecurityPolicies.get/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.getAssociation": get_organization_security_policy_association +"/compute:v1/compute.organizationSecurityPolicies.getAssociation/name": name +"/compute:v1/compute.organizationSecurityPolicies.getAssociation/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.getRule": get_organization_security_policy_rule +"/compute:v1/compute.organizationSecurityPolicies.getRule/priority": priority +"/compute:v1/compute.organizationSecurityPolicies.getRule/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.insert": insert_organization_security_policy +"/compute:v1/compute.organizationSecurityPolicies.insert/parentId": parent_id +"/compute:v1/compute.organizationSecurityPolicies.insert/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.list": list_organization_security_policies +"/compute:v1/compute.organizationSecurityPolicies.list/filter": filter +"/compute:v1/compute.organizationSecurityPolicies.list/maxResults": max_results +"/compute:v1/compute.organizationSecurityPolicies.list/orderBy": order_by +"/compute:v1/compute.organizationSecurityPolicies.list/pageToken": page_token +"/compute:v1/compute.organizationSecurityPolicies.list/parentId": parent_id +"/compute:v1/compute.organizationSecurityPolicies.list/returnPartialSuccess": return_partial_success +"/compute:v1/compute.organizationSecurityPolicies.listAssociations": list_organization_security_policy_associations +"/compute:v1/compute.organizationSecurityPolicies.listAssociations/targetResource": target_resource +"/compute:v1/compute.organizationSecurityPolicies.listPreconfiguredExpressionSets": list_organization_security_policy_preconfigured_expression_sets +"/compute:v1/compute.organizationSecurityPolicies.listPreconfiguredExpressionSets/filter": filter +"/compute:v1/compute.organizationSecurityPolicies.listPreconfiguredExpressionSets/maxResults": max_results +"/compute:v1/compute.organizationSecurityPolicies.listPreconfiguredExpressionSets/orderBy": order_by +"/compute:v1/compute.organizationSecurityPolicies.listPreconfiguredExpressionSets/pageToken": page_token +"/compute:v1/compute.organizationSecurityPolicies.listPreconfiguredExpressionSets/parentId": parent_id +"/compute:v1/compute.organizationSecurityPolicies.listPreconfiguredExpressionSets/returnPartialSuccess": return_partial_success +"/compute:v1/compute.organizationSecurityPolicies.move": move_organization_security_policy +"/compute:v1/compute.organizationSecurityPolicies.move/parentId": parent_id +"/compute:v1/compute.organizationSecurityPolicies.move/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.move/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.patch": patch_organization_security_policy +"/compute:v1/compute.organizationSecurityPolicies.patch/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.patch/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.patchRule": patch_organization_security_policy_rule +"/compute:v1/compute.organizationSecurityPolicies.patchRule/priority": priority +"/compute:v1/compute.organizationSecurityPolicies.patchRule/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.patchRule/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.removeAssociation": remove_organization_security_policy_association +"/compute:v1/compute.organizationSecurityPolicies.removeAssociation/name": name +"/compute:v1/compute.organizationSecurityPolicies.removeAssociation/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.removeAssociation/securityPolicy": security_policy +"/compute:v1/compute.organizationSecurityPolicies.removeRule": remove_organization_security_policy_rule +"/compute:v1/compute.organizationSecurityPolicies.removeRule/priority": priority +"/compute:v1/compute.organizationSecurityPolicies.removeRule/requestId": request_id +"/compute:v1/compute.organizationSecurityPolicies.removeRule/securityPolicy": security_policy "/compute:v1/compute.packetMirrorings.aggregatedList": aggregated_packet_mirroring_list "/compute:v1/compute.packetMirrorings.aggregatedList/filter": filter "/compute:v1/compute.packetMirrorings.aggregatedList/includeAllScopes": include_all_scopes @@ -124101,6 +124240,20 @@ "/compute:v1/compute.packetMirrorings.testIamPermissions/project": project "/compute:v1/compute.packetMirrorings.testIamPermissions/region": region "/compute:v1/compute.packetMirrorings.testIamPermissions/resource": resource +"/compute:v1/compute.previewFeatures.get": get_preview_feature +"/compute:v1/compute.previewFeatures.get/previewFeature": preview_feature +"/compute:v1/compute.previewFeatures.get/project": project +"/compute:v1/compute.previewFeatures.list": list_preview_features +"/compute:v1/compute.previewFeatures.list/filter": filter +"/compute:v1/compute.previewFeatures.list/maxResults": max_results +"/compute:v1/compute.previewFeatures.list/orderBy": order_by +"/compute:v1/compute.previewFeatures.list/pageToken": page_token +"/compute:v1/compute.previewFeatures.list/project": project +"/compute:v1/compute.previewFeatures.list/returnPartialSuccess": return_partial_success +"/compute:v1/compute.previewFeatures.update": update_preview_feature +"/compute:v1/compute.previewFeatures.update/previewFeature": preview_feature +"/compute:v1/compute.previewFeatures.update/project": project +"/compute:v1/compute.previewFeatures.update/requestId": request_id "/compute:v1/compute.projects.disableXpnHost": disable_project_xpn_host "/compute:v1/compute.projects.disableXpnHost/project": project "/compute:v1/compute.projects.disableXpnHost/requestId": request_id @@ -125183,6 +125336,12 @@ "/compute:v1/compute.reservationSubBlocks.performMaintenance/requestId": request_id "/compute:v1/compute.reservationSubBlocks.performMaintenance/reservationSubBlock": reservation_sub_block "/compute:v1/compute.reservationSubBlocks.performMaintenance/zone": zone +"/compute:v1/compute.reservationSubBlocks.reportFaulty": report_reservation_sub_block_faulty +"/compute:v1/compute.reservationSubBlocks.reportFaulty/parentName": parent_name +"/compute:v1/compute.reservationSubBlocks.reportFaulty/project": project +"/compute:v1/compute.reservationSubBlocks.reportFaulty/requestId": request_id +"/compute:v1/compute.reservationSubBlocks.reportFaulty/reservationSubBlock": reservation_sub_block +"/compute:v1/compute.reservationSubBlocks.reportFaulty/zone": zone "/compute:v1/compute.reservations.aggregatedList": aggregated_reservation_list "/compute:v1/compute.reservations.aggregatedList/filter": filter "/compute:v1/compute.reservations.aggregatedList/includeAllScopes": include_all_scopes diff --git a/generated/google-apis-compute_v1/CHANGELOG.md b/generated/google-apis-compute_v1/CHANGELOG.md index ccf7a4100d1..987fe1f2c16 100644 --- a/generated/google-apis-compute_v1/CHANGELOG.md +++ b/generated/google-apis-compute_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-compute_v1 +### v0.132.0 (2025-09-28) + +* Regenerated from discovery document revision 20250916 + ### v0.131.0 (2025-09-21) * Regenerated from discovery document revision 20250909 diff --git a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/classes.rb b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/classes.rb index 480db4ec5cb..bdf449e1e38 100644 --- a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/classes.rb +++ b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/classes.rb @@ -7091,6 +7091,47 @@ def update!(**args) end end + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + class Date + include Google::Apis::Core::Hashable + + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month + # and day. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + # Deprecation status for a public resource. class DeprecationStatus include Google::Apis::Core::Hashable @@ -14390,6 +14431,11 @@ class Image # @return [String] attr_accessor :name + # Additional image params. + # Corresponds to the JSON property `params` + # @return [Google::Apis::ComputeV1::ImageParams] + attr_accessor :params + # The parameters of the raw disk image. # Corresponds to the JSON property `rawDisk` # @return [Google::Apis::ComputeV1::Image::RawDisk] @@ -14530,6 +14576,7 @@ def update!(**args) @license_codes = args[:license_codes] if args.key?(:license_codes) @licenses = args[:licenses] if args.key?(:licenses) @name = args[:name] if args.key?(:name) + @params = args[:params] if args.key?(:params) @raw_disk = args[:raw_disk] if args.key?(:raw_disk) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @@ -14726,6 +14773,28 @@ def update!(**args) end end + # Additional image params. + class ImageParams + include Google::Apis::Core::Hashable + + # Resource manager tags to be bound to the image. Tag keys and values have the + # same definition as resource manager tags. Keys must be in the format `tagKeys/` + # tag_key_id``, and values are in the format `tagValues/456`. The field is + # ignored (both PUT & PATCH) when empty. + # Corresponds to the JSON property `resourceManagerTags` + # @return [Hash] + attr_accessor :resource_manager_tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags) + end + end + # Initial State for shielded instance, these are public keys which are safe to # store in public class InitialStateConfig @@ -20527,6 +20596,12 @@ class Interconnect # @return [String] attr_accessor :state + # Specific subzone in the InterconnectLocation that represents where this + # connection is to be provisioned. + # Corresponds to the JSON property `subzone` + # @return [String] + attr_accessor :subzone + def initialize(**args) update!(**args) end @@ -20566,6 +20641,7 @@ def update!(**args) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @state = args[:state] if args.key?(:state) + @subzone = args[:subzone] if args.key?(:subzone) end end @@ -32126,6 +32202,33 @@ def update!(**args) end end + # + class OrganizationSecurityPoliciesListAssociationsResponse + include Google::Apis::Core::Hashable + + # A list of associations. + # Corresponds to the JSON property `associations` + # @return [Array] + attr_accessor :associations + + # [Output Only] Type of securityPolicy associations. Always compute# + # organizationSecurityPoliciesListAssociations for lists of securityPolicy + # associations. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @associations = args[:associations] if args.key?(:associations) + @kind = args[:kind] if args.key?(:kind) + end + end + # Settings controlling the eviction of unhealthy hosts from the load balancing # pool for the backend service. class OutlierDetection @@ -33360,6 +33463,308 @@ def update!(**args) end end + # Represents a single Google Compute Engine preview feature. + class PreviewFeature + include Google::Apis::Core::Hashable + + # Specifies whether the feature is enabled or disabled. + # Corresponds to the JSON property `activationStatus` + # @return [String] + attr_accessor :activation_status + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # [Output Only] Description of the feature. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # [Output only] The type of the feature. Always "compute#previewFeature" for + # preview features. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Name of the feature. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Represents the rollout operation + # Corresponds to the JSON property `rolloutOperation` + # @return [Google::Apis::ComputeV1::PreviewFeatureRolloutOperation] + attr_accessor :rollout_operation + + # [Output Only] Server-defined URL for the resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] The status of the feature. + # Corresponds to the JSON property `status` + # @return [Google::Apis::ComputeV1::PreviewFeatureStatus] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @activation_status = args[:activation_status] if args.key?(:activation_status) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @rollout_operation = args[:rollout_operation] if args.key?(:rollout_operation) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + end + end + + # + class PreviewFeatureList + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # [Output Only] Unique identifier for the resource; defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A list of PreviewFeature resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Server-defined URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Unreachable resources. end_interface: + # MixerListResponseWithEtagBuilder + # Corresponds to the JSON property `unreachables` + # @return [Array] + attr_accessor :unreachables + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::PreviewFeatureList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @unreachables = args[:unreachables] if args.key?(:unreachables) + @warning = args[:warning] if args.key?(:warning) + end + + # [Output Only] Informational warning message. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: " + # data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # [Output Only] A warning data value corresponding to the key. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + end + end + + # Represents the rollout operation + class PreviewFeatureRolloutOperation + include Google::Apis::Core::Hashable + + # Represents the input for the rollout operation. + # Corresponds to the JSON property `rolloutInput` + # @return [Google::Apis::ComputeV1::PreviewFeatureRolloutOperationRolloutInput] + attr_accessor :rollout_input + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rollout_input = args[:rollout_input] if args.key?(:rollout_input) + end + end + + # Represents the input for the rollout operation. + class PreviewFeatureRolloutOperationRolloutInput + include Google::Apis::Core::Hashable + + # The name of the rollout plan Ex. organizations//locations/global/rolloutPlans/ + # Ex. folders//locations/global/rolloutPlans/ Ex. projects//locations/global/ + # rolloutPlans/. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Predefined rollout plan. + # Corresponds to the JSON property `predefinedRolloutPlan` + # @return [String] + attr_accessor :predefined_rollout_plan + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @predefined_rollout_plan = args[:predefined_rollout_plan] if args.key?(:predefined_rollout_plan) + end + end + + # [Output Only] The status of the feature. + class PreviewFeatureStatus + include Google::Apis::Core::Hashable + + # [Output Only] The description of the feature. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] Link to the public documentation for the feature. + # Corresponds to the JSON property `helpLink` + # @return [String] + attr_accessor :help_link + + # [Output Only] The release status of the feature. + # Corresponds to the JSON property `releaseStatus` + # @return [Google::Apis::ComputeV1::PreviewFeatureStatusReleaseStatus] + attr_accessor :release_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @help_link = args[:help_link] if args.key?(:help_link) + @release_status = args[:release_status] if args.key?(:release_status) + end + end + + # [Output Only] The release status of the feature. + class PreviewFeatureStatusReleaseStatus + include Google::Apis::Core::Hashable + + # [Output Only] The stage of the feature. + # Corresponds to the JSON property `stage` + # @return [String] + attr_accessor :stage + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `updateDate` + # @return [Google::Apis::ComputeV1::Date] + attr_accessor :update_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @stage = args[:stage] if args.key?(:stage) + @update_date = args[:update_date] if args.key?(:update_date) + end + end + # Represents a Project resource. A project is used to organize resources in a # Google Cloud Platform environment. For more information, read about the # Resource Hierarchy. @@ -37573,6 +37978,62 @@ def update!(**args) end end + # + class ReservationSubBlocksReportFaultyRequest + include Google::Apis::Core::Hashable + + # The disruption schedule for the subBlock. + # Corresponds to the JSON property `disruptionSchedule` + # @return [String] + attr_accessor :disruption_schedule + + # The component that experienced the fault. + # Corresponds to the JSON property `failureComponent` + # @return [String] + attr_accessor :failure_component + + # The reasons for the fault experienced with the subBlock. + # Corresponds to the JSON property `faultReasons` + # @return [Array] + attr_accessor :fault_reasons + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disruption_schedule = args[:disruption_schedule] if args.key?(:disruption_schedule) + @failure_component = args[:failure_component] if args.key?(:failure_component) + @fault_reasons = args[:fault_reasons] if args.key?(:fault_reasons) + end + end + + # The reason for the fault experienced with the subBlock. + class ReservationSubBlocksReportFaultyRequestFaultReason + include Google::Apis::Core::Hashable + + # The behavior of the fault experienced with the subBlock. + # Corresponds to the JSON property `behavior` + # @return [String] + attr_accessor :behavior + + # The description of the fault experienced with the subBlock. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @behavior = args[:behavior] if args.key?(:behavior) + @description = args[:description] if args.key?(:description) + end + end + # class ReservationsBlocksPerformMaintenanceRequest include Google::Apis::Core::Hashable @@ -42176,6 +42637,11 @@ class SecurityPolicy # @return [Google::Apis::ComputeV1::SecurityPolicyAdvancedOptionsConfig] attr_accessor :advanced_options_config + # A list of associations that belong to this policy. + # Corresponds to the JSON property `associations` + # @return [Array] + attr_accessor :associations + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -42270,6 +42736,18 @@ class SecurityPolicy # @return [String] attr_accessor :self_link + # User-provided name of the organization security policy. The name should be + # unique in the organization in which the security policy is created. This + # should only be used when SecurityPolicyType is CLOUD_ARMOR. The name must be 1- + # 63 characters long, and comply with https://www.ietf.org/rfc/rfc1035.txt. + # Specifically, the name must be 1-63 characters long and match the regular + # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must + # be a lowercase letter, and all following characters must be a dash, lowercase + # letter, or digit, except the last character, which cannot be a dash. + # Corresponds to the JSON property `shortName` + # @return [String] + attr_accessor :short_name + # The type indicates the intended use of the security policy. - CLOUD_ARMOR: # Cloud Armor backend security policies can be configured to filter incoming # HTTP requests targeting backend services. They filter requests before they hit @@ -42307,6 +42785,7 @@ def initialize(**args) def update!(**args) @adaptive_protection_config = args[:adaptive_protection_config] if args.key?(:adaptive_protection_config) @advanced_options_config = args[:advanced_options_config] if args.key?(:advanced_options_config) + @associations = args[:associations] if args.key?(:associations) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @ddos_protection_config = args[:ddos_protection_config] if args.key?(:ddos_protection_config) @description = args[:description] if args.key?(:description) @@ -42320,6 +42799,7 @@ def update!(**args) @region = args[:region] if args.key?(:region) @rules = args[:rules] if args.key?(:rules) @self_link = args[:self_link] if args.key?(:self_link) + @short_name = args[:short_name] if args.key?(:short_name) @type = args[:type] if args.key?(:type) @user_defined_fields = args[:user_defined_fields] if args.key?(:user_defined_fields) end @@ -42548,6 +43028,61 @@ def update!(**args) end end + # + class SecurityPolicyAssociation + include Google::Apis::Core::Hashable + + # The resource that the security policy is attached to. + # Corresponds to the JSON property `attachmentId` + # @return [String] + attr_accessor :attachment_id + + # [Output Only] The display name of the security policy of the association. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A list of folders to exclude from the security policy. + # Corresponds to the JSON property `excludedFolders` + # @return [Array] + attr_accessor :excluded_folders + + # A list of projects to exclude from the security policy. + # Corresponds to the JSON property `excludedProjects` + # @return [Array] + attr_accessor :excluded_projects + + # The name for an association. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Output Only] The security policy ID of the association. + # Corresponds to the JSON property `securityPolicyId` + # @return [String] + attr_accessor :security_policy_id + + # [Output Only] The short name of the security policy of the association. + # Corresponds to the JSON property `shortName` + # @return [String] + attr_accessor :short_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attachment_id = args[:attachment_id] if args.key?(:attachment_id) + @display_name = args[:display_name] if args.key?(:display_name) + @excluded_folders = args[:excluded_folders] if args.key?(:excluded_folders) + @excluded_projects = args[:excluded_projects] if args.key?(:excluded_projects) + @name = args[:name] if args.key?(:name) + @security_policy_id = args[:security_policy_id] if args.key?(:security_policy_id) + @short_name = args[:short_name] if args.key?(:short_name) + end + end + # class SecurityPolicyDdosProtectionConfig include Google::Apis::Core::Hashable @@ -44474,7 +45009,7 @@ def update!(**args) # Represents a Persistent Disk Snapshot resource. You can use snapshots to back # up data on a regular interval. For more information, read Creating persistent - # disk snapshots. LINT.IfChange + # disk snapshots. class Snapshot include Google::Apis::Core::Hashable @@ -44607,6 +45142,11 @@ class Snapshot # @return [String] attr_accessor :name + # Additional snapshot params. + # Corresponds to the JSON property `params` + # @return [Google::Apis::ComputeV1::SnapshotParams] + attr_accessor :params + # Output only. Reserved for future use. # Corresponds to the JSON property `satisfiesPzi` # @return [Boolean] @@ -44748,6 +45288,7 @@ def update!(**args) @licenses = args[:licenses] if args.key?(:licenses) @location_hint = args[:location_hint] if args.key?(:location_hint) @name = args[:name] if args.key?(:name) + @params = args[:params] if args.key?(:params) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @@ -44886,6 +45427,28 @@ def update!(**args) end end + # Additional snapshot params. + class SnapshotParams + include Google::Apis::Core::Hashable + + # Resource manager tags to be bound to the snapshot. Tag keys and values have + # the same definition as resource manager tags. Keys must be in the format ` + # tagKeys/`tag_key_id``, and values are in the format `tagValues/456`. The field + # is ignored (both PUT & PATCH) when empty. + # Corresponds to the JSON property `resourceManagerTags` + # @return [Hash] + attr_accessor :resource_manager_tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags) + end + end + # class SnapshotSettings include Google::Apis::Core::Hashable diff --git a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/gem_version.rb b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/gem_version.rb index 1c54b51b664..a9179374b68 100644 --- a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/gem_version.rb +++ b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ComputeV1 # Version of the google-apis-compute_v1 gem - GEM_VERSION = "0.131.0" + GEM_VERSION = "0.132.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250909" + REVISION = "20250916" end end end diff --git a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/representations.rb b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/representations.rb index ad45693825d..3d2b6828457 100644 --- a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/representations.rb +++ b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/representations.rb @@ -850,6 +850,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeprecationStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1726,6 +1732,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ImageParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InitialStateConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4096,6 +4108,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class OrganizationSecurityPoliciesListAssociationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OutlierDetection class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4258,6 +4276,54 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class PreviewFeature + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PreviewFeatureList + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Warning + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Datum + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class PreviewFeatureRolloutOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PreviewFeatureRolloutOperationRolloutInput + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PreviewFeatureStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PreviewFeatureStatusReleaseStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Project class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4900,6 +4966,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ReservationSubBlocksReportFaultyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationSubBlocksReportFaultyRequestFaultReason + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ReservationsBlocksPerformMaintenanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5542,6 +5620,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class SecurityPolicyAssociation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecurityPolicyDdosProtectionConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5854,6 +5938,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class SnapshotParams + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SnapshotSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -8894,6 +8984,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + class DeprecationStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10539,6 +10638,8 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :license_codes, as: 'licenseCodes' collection :licenses, as: 'licenses' property :name, as: 'name' + property :params, as: 'params', class: Google::Apis::ComputeV1::ImageParams, decorator: Google::Apis::ComputeV1::ImageParams::Representation + property :raw_disk, as: 'rawDisk', class: Google::Apis::ComputeV1::Image::RawDisk, decorator: Google::Apis::ComputeV1::Image::RawDisk::Representation property :satisfies_pzi, as: 'satisfiesPzi' @@ -10613,6 +10714,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ImageParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :resource_manager_tags, as: 'resourceManagerTags' + end + end + class InitialStateConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12136,6 +12244,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :satisfies_pzs, as: 'satisfiesPzs' property :self_link, as: 'selfLink' property :state, as: 'state' + property :subzone, as: 'subzone' end end @@ -15057,6 +15166,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class OrganizationSecurityPoliciesListAssociationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :associations, as: 'associations', class: Google::Apis::ComputeV1::SecurityPolicyAssociation, decorator: Google::Apis::ComputeV1::SecurityPolicyAssociation::Representation + + property :kind, as: 'kind' + end + end + class OutlierDetection # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -15361,6 +15479,91 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class PreviewFeature + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :activation_status, as: 'activationStatus' + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :id, :numeric_string => true, as: 'id' + property :kind, as: 'kind' + property :name, as: 'name' + property :rollout_operation, as: 'rolloutOperation', class: Google::Apis::ComputeV1::PreviewFeatureRolloutOperation, decorator: Google::Apis::ComputeV1::PreviewFeatureRolloutOperation::Representation + + property :self_link, as: 'selfLink' + property :status, as: 'status', class: Google::Apis::ComputeV1::PreviewFeatureStatus, decorator: Google::Apis::ComputeV1::PreviewFeatureStatus::Representation + + end + end + + class PreviewFeatureList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :etag, as: 'etag' + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::PreviewFeature, decorator: Google::Apis::ComputeV1::PreviewFeature::Representation + + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + collection :unreachables, as: 'unreachables' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::PreviewFeatureList::Warning, decorator: Google::Apis::ComputeV1::PreviewFeatureList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::PreviewFeatureList::Warning::Datum, decorator: Google::Apis::ComputeV1::PreviewFeatureList::Warning::Datum::Representation + + property :message, as: 'message' + end + + class Datum + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + end + end + + class PreviewFeatureRolloutOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rollout_input, as: 'rolloutInput', class: Google::Apis::ComputeV1::PreviewFeatureRolloutOperationRolloutInput, decorator: Google::Apis::ComputeV1::PreviewFeatureRolloutOperationRolloutInput::Representation + + end + end + + class PreviewFeatureRolloutOperationRolloutInput + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :predefined_rollout_plan, as: 'predefinedRolloutPlan' + end + end + + class PreviewFeatureStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :help_link, as: 'helpLink' + property :release_status, as: 'releaseStatus', class: Google::Apis::ComputeV1::PreviewFeatureStatusReleaseStatus, decorator: Google::Apis::ComputeV1::PreviewFeatureStatusReleaseStatus::Representation + + end + end + + class PreviewFeatureStatusReleaseStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :stage, as: 'stage' + property :update_date, as: 'updateDate', class: Google::Apis::ComputeV1::Date, decorator: Google::Apis::ComputeV1::Date::Representation + + end + end + class Project # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -16481,6 +16684,24 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ReservationSubBlocksReportFaultyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disruption_schedule, as: 'disruptionSchedule' + property :failure_component, as: 'failureComponent' + collection :fault_reasons, as: 'faultReasons', class: Google::Apis::ComputeV1::ReservationSubBlocksReportFaultyRequestFaultReason, decorator: Google::Apis::ComputeV1::ReservationSubBlocksReportFaultyRequestFaultReason::Representation + + end + end + + class ReservationSubBlocksReportFaultyRequestFaultReason + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :behavior, as: 'behavior' + property :description, as: 'description' + end + end + class ReservationsBlocksPerformMaintenanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -17625,6 +17846,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :advanced_options_config, as: 'advancedOptionsConfig', class: Google::Apis::ComputeV1::SecurityPolicyAdvancedOptionsConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyAdvancedOptionsConfig::Representation + collection :associations, as: 'associations', class: Google::Apis::ComputeV1::SecurityPolicyAssociation, decorator: Google::Apis::ComputeV1::SecurityPolicyAssociation::Representation + property :creation_timestamp, as: 'creationTimestamp' property :ddos_protection_config, as: 'ddosProtectionConfig', class: Google::Apis::ComputeV1::SecurityPolicyDdosProtectionConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyDdosProtectionConfig::Representation @@ -17641,6 +17864,7 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :rules, as: 'rules', class: Google::Apis::ComputeV1::SecurityPolicyRule, decorator: Google::Apis::ComputeV1::SecurityPolicyRule::Representation property :self_link, as: 'selfLink' + property :short_name, as: 'shortName' property :type, as: 'type' collection :user_defined_fields, as: 'userDefinedFields', class: Google::Apis::ComputeV1::SecurityPolicyUserDefinedField, decorator: Google::Apis::ComputeV1::SecurityPolicyUserDefinedField::Representation @@ -17708,6 +17932,19 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class SecurityPolicyAssociation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attachment_id, as: 'attachmentId' + property :display_name, as: 'displayName' + collection :excluded_folders, as: 'excludedFolders' + collection :excluded_projects, as: 'excludedProjects' + property :name, as: 'name' + property :security_policy_id, as: 'securityPolicyId' + property :short_name, as: 'shortName' + end + end + class SecurityPolicyDdosProtectionConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -18224,6 +18461,8 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :licenses, as: 'licenses' property :location_hint, as: 'locationHint' property :name, as: 'name' + property :params, as: 'params', class: Google::Apis::ComputeV1::SnapshotParams, decorator: Google::Apis::ComputeV1::SnapshotParams::Representation + property :satisfies_pzi, as: 'satisfiesPzi' property :satisfies_pzs, as: 'satisfiesPzs' property :self_link, as: 'selfLink' @@ -18280,6 +18519,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class SnapshotParams + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :resource_manager_tags, as: 'resourceManagerTags' + end + end + class SnapshotSettings # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/service.rb b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/service.rb index 34a8760bcaa..8a620ade413 100644 --- a/generated/google-apis-compute_v1/lib/google/apis/compute_v1/service.rb +++ b/generated/google-apis-compute_v1/lib/google/apis/compute_v1/service.rb @@ -2116,6 +2116,40 @@ def get_backend_service(project, backend_service, fields: nil, quota_user: nil, execute_or_queue_command(command, &block) end + # Returns effective security policies applied to this backend service. + # @param [String] project + # Project ID for this request. + # @param [String] backend_service + # Name of the Backend Service for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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 get_backend_service_effective_security_policies(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies', options) + command.params['project'] = project unless project.nil? + command.params['backendService'] = backend_service unless backend_service.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 + # Gets the most recent health check results for this BackendService. Example # request body: ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" # ` @@ -24013,10 +24047,831 @@ def list_node_types(project, zone, filter: nil, max_results: nil, order_by: nil, execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of packetMirrorings. To prevent failure, Google - # recommends that you set the `returnPartialSuccess` parameter to `true`. - # @param [String] project - # Project ID for this request. + # Inserts an association for the specified security policy. This has billing + # implications. Projects in the hierarchy with effective hierarchical security + # policies will be automatically enrolled into Cloud Armor Enterprise if not + # already enrolled. Use of this API to modify firewall policies is deprecated. + # Use firewallPolicies.addAssociation instead if possible. + # @param [String] security_policy + # Name of the security policy to update. + # @param [Google::Apis::ComputeV1::SecurityPolicyAssociation] security_policy_association_object + # @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 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 + # 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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 add_organization_security_policy_association(security_policy, security_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addAssociation', options) + command.request_representation = Google::Apis::ComputeV1::SecurityPolicyAssociation::Representation + command.request_object = security_policy_association_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.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 + + # Inserts a rule into a security policy. + # @param [String] security_policy + # Name of the security policy to update. + # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 add_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/addRule', options) + command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation + command.request_object = security_policy_rule_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.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 + + # Copies rules to the specified security policy. Use of this API to modify + # firewall policies is deprecated. Use firewallPolicies.copyRules instead. + # @param [String] security_policy + # Name of the security policy to update. + # @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] source_security_policy + # The security policy from which to copy rules. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 copy_organization_security_policy_rules(security_policy, request_id: nil, source_security_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/copyRules', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['sourceSecurityPolicy'] = source_security_policy unless source_security_policy.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 + + # Deletes the specified policy. Use of this API to remove firewall policies is + # deprecated. Use firewallPolicies.delete instead. + # @param [String] security_policy + # Name of the security policy to delete. + # @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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 delete_organization_security_policy(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'locations/global/securityPolicies/{securityPolicy}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.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 + + # List all of the ordered rules present in a single specified policy. Use of + # this API to read firewall policies is deprecated. Use firewallPolicies.get + # instead. + # @param [String] security_policy + # Name of the security policy to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SecurityPolicy] + # + # @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 get_organization_security_policy(security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}', options) + command.response_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation + command.response_class = Google::Apis::ComputeV1::SecurityPolicy + command.params['securityPolicy'] = security_policy unless security_policy.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 + + # Gets an association with the specified name. Use of this API to read firewall + # policies is deprecated. Use firewallPolicies.getAssociation instead if + # possible. + # @param [String] security_policy + # Name of the security policy to which the queried rule belongs. + # @param [String] name + # The name of the association to get from the security policy. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyAssociation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SecurityPolicyAssociation] + # + # @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 get_organization_security_policy_association(security_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getAssociation', options) + command.response_representation = Google::Apis::ComputeV1::SecurityPolicyAssociation::Representation + command.response_class = Google::Apis::ComputeV1::SecurityPolicyAssociation + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['name'] = name unless name.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 + + # Gets a rule at the specified priority. Use of this API to read firewall + # policies is deprecated. Use firewallPolicies.getRule instead. + # @param [String] security_policy + # Name of the security policy to which the queried rule belongs. + # @param [Fixnum] priority + # The priority of the rule to get from the security policy. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyRule] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SecurityPolicyRule] + # + # @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 get_organization_security_policy_rule(security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'locations/global/securityPolicies/{securityPolicy}/getRule', options) + command.response_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation + command.response_class = Google::Apis::ComputeV1::SecurityPolicyRule + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['priority'] = priority unless priority.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 + + # Creates a new policy in the specified project using the data included in the + # request. Use of this API to insert firewall policies is deprecated. Use + # firewallPolicies.insert instead. + # @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_object + # @param [String] parent_id + # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if + # the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is + # an organization. + # @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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_organization_security_policy(security_policy_object = nil, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies', options) + command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation + command.request_object = security_policy_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.query['parentId'] = parent_id unless parent_id.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 + + # List all the policies that have been configured for the specified project. Use + # of this API to read firewall policies is deprecated. Use firewallPolicies.list + # instead. + # @param [String] filter + # A filter expression that filters resources listed in the response. Most + # Compute resources support two types of filter expressions: expressions that + # support regular expressions and expressions that follow API improvement + # proposal AIP-160. These two types of filter expressions cannot be mixed in one + # request. If you want to use AIP-160, your expression must specify the field + # name, an operator, and the value that you want to use for filtering. The value + # must be a string, a number, or a boolean. The operator must be either `=`, `!=` + # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute + # Engine instances, you can exclude instances named `example-instance` by + # specifying `name != example-instance`. The `:*` comparison can be used to test + # whether a key has been defined. For example, to find all objects with `owner` + # label use: ``` labels.owner:* ``` You can also filter nested fields. For + # example, you could specify `scheduling.automaticRestart = false` to include + # instances only if they are not scheduled for automatic restarts. You can use + # filtering on nested fields to filter based on resource labels. To filter on + # multiple expressions, provide each separate expression within parentheses. For + # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel + # Skylake") ``` By default, each expression is an `AND` expression. However, you + # can include `AND` and `OR` expressions explicitly. For example: ``` ( + # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND ( + # scheduling.automaticRestart = true) ``` If you want to use a regular + # expression, use the `eq` (equal) or `ne` (not equal) operator against a single + # un-parenthesized expression with or without quotes or against multiple + # parenthesized expressions. Examples: `fieldname eq unquoted literal` ` + # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `( + # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is + # interpreted as a regular expression using Google RE2 library syntax. The + # literal value must match the entire field. For example, to filter for + # instances that do not end with name "instance", you would use `name ne .* + # instance`. You cannot combine constraints on multiple fields using regular + # expressions. + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [String] parent_id + # Parent ID for this request. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false. For example, when partial success + # behavior is enabled, aggregatedList for a single zone scope either returns all + # resources in the zone or no resources, with an error code. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::SecurityPolicyList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SecurityPolicyList] + # + # @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 list_organization_security_policies(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'locations/global/securityPolicies', options) + command.response_representation = Google::Apis::ComputeV1::SecurityPolicyList::Representation + command.response_class = Google::Apis::ComputeV1::SecurityPolicyList + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['parentId'] = parent_id unless parent_id.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 + + # Lists associations of a specified target, i.e., organization or folder. Use of + # this API to read firewall policies is deprecated. Use firewallPolicies. + # listAssociations instead if possible. + # @param [String] target_resource + # The target resource to list associations. It is an organization, or a folder. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse] + # + # @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 list_organization_security_policy_associations(target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'locations/global/securityPolicies/listAssociations', options) + command.response_representation = Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse::Representation + command.response_class = Google::Apis::ComputeV1::OrganizationSecurityPoliciesListAssociationsResponse + command.query['targetResource'] = target_resource unless target_resource.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 + + # Gets the current list of preconfigured Web Application Firewall (WAF) + # expressions. + # @param [String] filter + # A filter expression that filters resources listed in the response. Most + # Compute resources support two types of filter expressions: expressions that + # support regular expressions and expressions that follow API improvement + # proposal AIP-160. These two types of filter expressions cannot be mixed in one + # request. If you want to use AIP-160, your expression must specify the field + # name, an operator, and the value that you want to use for filtering. The value + # must be a string, a number, or a boolean. The operator must be either `=`, `!=` + # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute + # Engine instances, you can exclude instances named `example-instance` by + # specifying `name != example-instance`. The `:*` comparison can be used to test + # whether a key has been defined. For example, to find all objects with `owner` + # label use: ``` labels.owner:* ``` You can also filter nested fields. For + # example, you could specify `scheduling.automaticRestart = false` to include + # instances only if they are not scheduled for automatic restarts. You can use + # filtering on nested fields to filter based on resource labels. To filter on + # multiple expressions, provide each separate expression within parentheses. For + # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel + # Skylake") ``` By default, each expression is an `AND` expression. However, you + # can include `AND` and `OR` expressions explicitly. For example: ``` ( + # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND ( + # scheduling.automaticRestart = true) ``` If you want to use a regular + # expression, use the `eq` (equal) or `ne` (not equal) operator against a single + # un-parenthesized expression with or without quotes or against multiple + # parenthesized expressions. Examples: `fieldname eq unquoted literal` ` + # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `( + # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is + # interpreted as a regular expression using Google RE2 library syntax. The + # literal value must match the entire field. For example, to filter for + # instances that do not end with name "instance", you would use `name ne .* + # instance`. You cannot combine constraints on multiple fields using regular + # expressions. + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [String] parent_id + # Parent ID for this request. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false. For example, when partial success + # behavior is enabled, aggregatedList for a single zone scope either returns all + # resources in the zone or no resources, with an error code. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse] + # + # @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 list_organization_security_policy_preconfigured_expression_sets(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'locations/global/securityPolicies/listPreconfiguredExpressionSets', options) + command.response_representation = Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation + command.response_class = Google::Apis::ComputeV1::SecurityPoliciesListPreconfiguredExpressionSetsResponse + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['parentId'] = parent_id unless parent_id.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 + + # Moves the specified security policy. Use of this API to modify firewall + # policies is deprecated. Use firewallPolicies.move instead. + # @param [String] security_policy + # Name of the security policy to update. + # @param [String] parent_id + # The new parent of the security policy. + # @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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 move_organization_security_policy(security_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/move', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['parentId'] = parent_id unless parent_id.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 + + # Patches the specified policy with the data included in the request. Use of + # this API to modify firewall policies is deprecated. Use firewallPolicies.patch + # instead. + # @param [String] security_policy + # Name of the security policy to update. + # @param [Google::Apis::ComputeV1::SecurityPolicy] security_policy_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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_organization_security_policy(security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options) + command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation + command.request_object = security_policy_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.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 + + # Patches a rule at the specified priority. Use of this API to modify firewall + # policies is deprecated. Use firewallPolicies.patchRule instead. + # @param [String] security_policy + # Name of the security policy to update. + # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object + # @param [Fixnum] priority + # The priority of the rule to patch. + # @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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options) + command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation + command.request_object = security_policy_rule_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['priority'] = priority unless priority.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 + + # Removes an association for the specified security policy. Use of this API to + # modify firewall policies is deprecated. Use firewallPolicies.removeAssociation + # instead if possible. + # @param [String] security_policy + # Name of the security policy to update. + # @param [String] name + # Name for the attachment that will be removed. + # @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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['name'] = name unless name.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 + + # Deletes a rule at the specified priority. + # @param [String] security_policy + # Name of the security policy to update. + # @param [Fixnum] priority + # The priority of the rule to remove from the security policy. + # @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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['securityPolicy'] = security_policy unless security_policy.nil? + command.query['priority'] = priority unless priority.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 + + # Retrieves an aggregated list of packetMirrorings. To prevent failure, Google + # recommends that you set the `returnPartialSuccess` parameter to `true`. + # @param [String] project + # Project ID for this request. # @param [String] filter # A filter expression that filters resources listed in the response. Most # Compute resources support two types of filter expressions: expressions that @@ -24153,13 +25008,103 @@ def aggregated_packet_mirroring_list(project, filter: nil, include_all_scopes: n # @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 delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.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 PacketMirroring resource. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] packet_mirroring + # Name of the PacketMirroring resource to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::PacketMirroring] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::PacketMirroring] + # + # @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 get_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command.response_representation = Google::Apis::ComputeV1::PacketMirroring::Representation + command.response_class = Google::Apis::ComputeV1::PacketMirroring + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.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 + + # Creates a PacketMirroring resource in the specified project and region using + # the data included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 insert_packet_mirroring(project, region, packet_mirroring_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}/packetMirrorings', options) + command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation + command.request_object = packet_mirroring_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? - command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.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? @@ -24167,13 +25112,65 @@ def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, execute_or_queue_command(command, &block) end - # Returns the specified PacketMirroring resource. + # Retrieves a list of PacketMirroring resources available to the specified + # project and region. # @param [String] project # Project ID for this request. # @param [String] region # Name of the region for this request. - # @param [String] packet_mirroring - # Name of the PacketMirroring resource to return. + # @param [String] filter + # A filter expression that filters resources listed in the response. Most + # Compute resources support two types of filter expressions: expressions that + # support regular expressions and expressions that follow API improvement + # proposal AIP-160. These two types of filter expressions cannot be mixed in one + # request. If you want to use AIP-160, your expression must specify the field + # name, an operator, and the value that you want to use for filtering. The value + # must be a string, a number, or a boolean. The operator must be either `=`, `!=` + # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute + # Engine instances, you can exclude instances named `example-instance` by + # specifying `name != example-instance`. The `:*` comparison can be used to test + # whether a key has been defined. For example, to find all objects with `owner` + # label use: ``` labels.owner:* ``` You can also filter nested fields. For + # example, you could specify `scheduling.automaticRestart = false` to include + # instances only if they are not scheduled for automatic restarts. You can use + # filtering on nested fields to filter based on resource labels. To filter on + # multiple expressions, provide each separate expression within parentheses. For + # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel + # Skylake") ``` By default, each expression is an `AND` expression. However, you + # can include `AND` and `OR` expressions explicitly. For example: ``` ( + # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND ( + # scheduling.automaticRestart = true) ``` If you want to use a regular + # expression, use the `eq` (equal) or `ne` (not equal) operator against a single + # un-parenthesized expression with or without quotes or against multiple + # parenthesized expressions. Examples: `fieldname eq unquoted literal` ` + # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `( + # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is + # interpreted as a regular expression using Google RE2 library syntax. The + # literal value must match the entire field. For example, to filter for + # instances that do not end with name "instance", you would use `name ne .* + # instance`. You cannot combine constraints on multiple fields using regular + # expressions. + # @param [Fixnum] max_results + # The maximum number of results per page that should be returned. If the number + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + # @param [String] order_by + # Sorts list results by a certain order. By default, results are returned in + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. + # @param [String] page_token + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false. For example, when partial success + # behavior is enabled, aggregatedList for a single zone scope either returns all + # resources in the zone or no resources, with an error code. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -24185,33 +25182,40 @@ def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeV1::PacketMirroring] parsed result object + # @yieldparam result [Google::Apis::ComputeV1::PacketMirroringList] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ComputeV1::PacketMirroring] + # @return [Google::Apis::ComputeV1::PacketMirroringList] # # @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 get_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) - command.response_representation = Google::Apis::ComputeV1::PacketMirroring::Representation - command.response_class = Google::Apis::ComputeV1::PacketMirroring + def list_packet_mirrorings(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings', options) + command.response_representation = Google::Apis::ComputeV1::PacketMirroringList::Representation + command.response_class = Google::Apis::ComputeV1::PacketMirroringList command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? - command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 - # Creates a PacketMirroring resource in the specified project and region using - # the data included in the request. + # Patches the specified PacketMirroring resource with the data included in the + # request. This method supports PATCH semantics and uses JSON merge patch format + # and processing rules. # @param [String] project # Project ID for this request. # @param [String] region # Name of the region for this request. + # @param [String] packet_mirroring + # Name of the PacketMirroring resource to patch. # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_object # @param [String] request_id # An optional request ID to identify requests. Specify a unique request ID so @@ -24242,14 +25246,15 @@ def get_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_u # @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 insert_packet_mirroring(project, region, packet_mirroring_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}/packetMirrorings', options) + def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation command.request_object = packet_mirroring_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? + command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.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? @@ -24257,12 +25262,87 @@ def insert_packet_mirroring(project, region, packet_mirroring_object = nil, requ execute_or_queue_command(command, &block) end - # Retrieves a list of PacketMirroring resources available to the specified - # project and region. + # Returns permissions that a caller has on the specified resource. # @param [String] project # Project ID for this request. # @param [String] region - # Name of the region for this request. + # The name of the region for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::TestPermissionsResponse] + # + # @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 test_packet_mirroring_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['resource'] = resource unless resource.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 details of the given PreviewFeature. + # @param [String] project + # Project ID for this request. + # @param [String] preview_feature + # Name of the PreviewFeature for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::PreviewFeature] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::PreviewFeature] + # + # @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 get_preview_feature(project, preview_feature, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/global/previewFeatures/{previewFeature}', options) + command.response_representation = Google::Apis::ComputeV1::PreviewFeature::Representation + command.response_class = Google::Apis::ComputeV1::PreviewFeature + command.params['project'] = project unless project.nil? + command.params['previewFeature'] = preview_feature unless preview_feature.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 details of the given PreviewFeature. + # @param [String] project + # Project ID for this request. # @param [String] filter # A filter expression that filters resources listed in the response. Most # Compute resources support two types of filter expressions: expressions that @@ -24327,20 +25407,19 @@ def insert_packet_mirroring(project, region, packet_mirroring_object = nil, requ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeV1::PacketMirroringList] parsed result object + # @yieldparam result [Google::Apis::ComputeV1::PreviewFeatureList] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::ComputeV1::PacketMirroringList] + # @return [Google::Apis::ComputeV1::PreviewFeatureList] # # @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 list_packet_mirrorings(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings', options) - command.response_representation = Google::Apis::ComputeV1::PacketMirroringList::Representation - command.response_class = Google::Apis::ComputeV1::PacketMirroringList + def list_preview_features(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/global/previewFeatures', options) + command.response_representation = Google::Apis::ComputeV1::PreviewFeatureList::Representation + command.response_class = Google::Apis::ComputeV1::PreviewFeatureList command.params['project'] = project unless project.nil? - command.params['region'] = region unless region.nil? command.query['filter'] = filter unless filter.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? @@ -24352,16 +25431,13 @@ def list_packet_mirrorings(project, region, filter: nil, max_results: nil, order execute_or_queue_command(command, &block) end - # Patches the specified PacketMirroring resource with the data included in the - # request. This method supports PATCH semantics and uses JSON merge patch format - # and processing rules. + # Patches the given PreviewFeature. This method is used to enable or disable a + # PreviewFeature. # @param [String] project # Project ID for this request. - # @param [String] region - # Name of the region for this request. - # @param [String] packet_mirroring - # Name of the PacketMirroring resource to patch. - # @param [Google::Apis::ComputeV1::PacketMirroring] packet_mirroring_object + # @param [String] preview_feature + # Name of the PreviewFeature for this request. + # @param [Google::Apis::ComputeV1::PreviewFeature] preview_feature_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 @@ -24391,15 +25467,14 @@ def list_packet_mirrorings(project, region, filter: nil, max_results: nil, order # @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_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) - command.request_representation = Google::Apis::ComputeV1::PacketMirroring::Representation - command.request_object = packet_mirroring_object + def update_preview_feature(project, preview_feature, preview_feature_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'projects/{project}/global/previewFeatures/{previewFeature}', options) + command.request_representation = Google::Apis::ComputeV1::PreviewFeature::Representation + command.request_object = preview_feature_object command.response_representation = Google::Apis::ComputeV1::Operation::Representation command.response_class = Google::Apis::ComputeV1::Operation command.params['project'] = project unless project.nil? - command.params['region'] = region unless region.nil? - command.params['packetMirroring'] = packet_mirroring unless packet_mirroring.nil? + command.params['previewFeature'] = preview_feature unless preview_feature.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? @@ -24407,48 +25482,6 @@ def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_o execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] region - # The name of the region for this request. - # @param [String] resource - # Name or id of the resource for this request. - # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [String] user_ip - # Legacy name for parameter that has been superseded by `quotaUser`. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeV1::TestPermissionsResponse] - # - # @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 test_packet_mirroring_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['region'] = region unless region.nil? - command.params['resource'] = resource unless resource.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 - # Disable this project as a shared VPC host project. # @param [String] project # Project ID for this request. @@ -36457,6 +37490,64 @@ def perform_reservation_sub_block_maintenance(project, zone, parent_name, reserv execute_or_queue_command(command, &block) end + # Allows customers to report a faulty subBlock. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. Zone name should conform to RFC1035. + # @param [String] parent_name + # The name of the parent reservation and parent block. In the format of + # reservations/`reservation_name`/reservationBlocks/`reservation_block_name` + # @param [String] reservation_sub_block + # The name of the reservation subBlock. Name should conform to RFC1035 or be a + # resource ID. + # @param [Google::Apis::ComputeV1::ReservationSubBlocksReportFaultyRequest] reservation_sub_blocks_report_faulty_request_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 + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] user_ip + # Legacy name for parameter that has been superseded by `quotaUser`. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::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 report_reservation_sub_block_faulty(project, zone, parent_name, reservation_sub_block, reservation_sub_blocks_report_faulty_request_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}/{parentName}/reservationSubBlocks/{reservationSubBlock}/reportFaulty', options) + command.request_representation = Google::Apis::ComputeV1::ReservationSubBlocksReportFaultyRequest::Representation + command.request_object = reservation_sub_blocks_report_faulty_request_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['parentName'] = parent_name unless parent_name.nil? + command.params['reservationSubBlock'] = reservation_sub_block unless reservation_sub_block.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 + # Retrieves an aggregated list of reservations. To prevent failure, Google # recommends that you set the `returnPartialSuccess` parameter to `true`. # @param [String] project