From 1c37257c0c64956f566515cb2932a24853047f0b Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 23 Mar 2019 00:37:29 +0000 Subject: [PATCH] Autogenerated update (2019-03-23) Update: - cloudasset_v1beta1 - cloudtasks_v2 - cloudtasks_v2beta3 - compute_alpha - compute_beta - compute_v1 - dataproc_v1beta2 - dialogflow_v2 - dialogflow_v2beta1 - jobs_v3p1beta1 - logging_v2beta1 - serviceconsumermanagement_v1 - servicemanagement_v1 --- api_names_out.yaml | 627 +++++++ generated/google/apis/cloudasset_v1.rb | 34 + .../google/apis/cloudasset_v1/classes.rb | 805 +++++++++ .../apis/cloudasset_v1/representations.rb | 263 +++ .../google/apis/cloudasset_v1/service.rb | 190 +++ generated/google/apis/cloudasset_v1beta1.rb | 2 +- generated/google/apis/cloudtasks_v2.rb | 2 +- .../google/apis/cloudtasks_v2/classes.rb | 1334 +++++++++++++++ .../apis/cloudtasks_v2/representations.rb | 350 ++++ .../google/apis/cloudtasks_v2/service.rb | 728 ++++++++ generated/google/apis/cloudtasks_v2beta3.rb | 2 +- .../google/apis/cloudtasks_v2beta3/classes.rb | 208 ++- .../google/apis/cloudtasks_v2beta3/service.rb | 5 +- generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 1502 +++++++++++------ .../apis/compute_alpha/representations.rb | 615 ++++--- .../google/apis/compute_alpha/service.rb | 1162 +++++++------ generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 1361 +++++++++------ .../apis/compute_beta/representations.rb | 565 ++++--- generated/google/apis/compute_beta/service.rb | 1073 ++++++------ generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 126 ++ .../google/apis/compute_v1/representations.rb | 63 + generated/google/apis/compute_v1/service.rb | 151 ++ generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 97 +- .../apis/dataproc_v1beta2/representations.rb | 34 +- .../google/apis/dataproc_v1beta2/service.rb | 14 +- generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 101 +- .../google/apis/dialogflow_v2/service.rb | 64 +- generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 101 +- .../google/apis/dialogflow_v2beta1/service.rb | 64 +- generated/google/apis/jobs_v3p1beta1.rb | 2 +- .../google/apis/jobs_v3p1beta1/classes.rb | 20 +- generated/google/apis/logging_v2beta1.rb | 2 +- .../apis/serviceconsumermanagement_v1.rb | 2 +- .../serviceconsumermanagement_v1/classes.rb | 80 +- .../serviceconsumermanagement_v1/service.rb | 96 +- generated/google/apis/servicemanagement_v1.rb | 2 +- 42 files changed, 8969 insertions(+), 2890 deletions(-) create mode 100644 generated/google/apis/cloudasset_v1.rb create mode 100644 generated/google/apis/cloudasset_v1/classes.rb create mode 100644 generated/google/apis/cloudasset_v1/representations.rb create mode 100644 generated/google/apis/cloudasset_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index a71ec72b3..10257f233 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -15039,6 +15039,90 @@ "/classroom:v1/fields": fields "/classroom:v1/key": key "/classroom:v1/quotaUser": quota_user +"/cloudasset:v1/Asset": asset +"/cloudasset:v1/Asset/assetType": asset_type +"/cloudasset:v1/Asset/iamPolicy": iam_policy +"/cloudasset:v1/Asset/name": name +"/cloudasset:v1/Asset/resource": resource +"/cloudasset:v1/AuditConfig": audit_config +"/cloudasset:v1/AuditConfig/auditLogConfigs": audit_log_configs +"/cloudasset:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/cloudasset:v1/AuditConfig/service": service +"/cloudasset:v1/AuditLogConfig": audit_log_config +"/cloudasset:v1/AuditLogConfig/exemptedMembers": exempted_members +"/cloudasset:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/cloudasset:v1/AuditLogConfig/logType": log_type +"/cloudasset:v1/BatchGetAssetsHistoryResponse": batch_get_assets_history_response +"/cloudasset:v1/BatchGetAssetsHistoryResponse/assets": assets +"/cloudasset:v1/BatchGetAssetsHistoryResponse/assets/asset": asset +"/cloudasset:v1/Binding": binding +"/cloudasset:v1/Binding/condition": condition +"/cloudasset:v1/Binding/members": members +"/cloudasset:v1/Binding/members/member": member +"/cloudasset:v1/Binding/role": role +"/cloudasset:v1/ExportAssetsRequest": export_assets_request +"/cloudasset:v1/ExportAssetsRequest/assetTypes": asset_types +"/cloudasset:v1/ExportAssetsRequest/assetTypes/asset_type": asset_type +"/cloudasset:v1/ExportAssetsRequest/contentType": content_type +"/cloudasset:v1/ExportAssetsRequest/outputConfig": output_config +"/cloudasset:v1/ExportAssetsRequest/readTime": read_time +"/cloudasset:v1/Expr": expr +"/cloudasset:v1/Expr/description": description +"/cloudasset:v1/Expr/expression": expression +"/cloudasset:v1/Expr/location": location +"/cloudasset:v1/Expr/title": title +"/cloudasset:v1/GcsDestination": gcs_destination +"/cloudasset:v1/GcsDestination/uri": uri +"/cloudasset:v1/Operation": operation +"/cloudasset:v1/Operation/done": done +"/cloudasset:v1/Operation/error": error +"/cloudasset:v1/Operation/metadata": metadata +"/cloudasset:v1/Operation/metadata/metadatum": metadatum +"/cloudasset:v1/Operation/name": name +"/cloudasset:v1/Operation/response": response +"/cloudasset:v1/Operation/response/response": response +"/cloudasset:v1/OutputConfig": output_config +"/cloudasset:v1/OutputConfig/gcsDestination": gcs_destination +"/cloudasset:v1/Policy": policy +"/cloudasset:v1/Policy/auditConfigs": audit_configs +"/cloudasset:v1/Policy/auditConfigs/audit_config": audit_config +"/cloudasset:v1/Policy/bindings": bindings +"/cloudasset:v1/Policy/bindings/binding": binding +"/cloudasset:v1/Policy/etag": etag +"/cloudasset:v1/Policy/version": version +"/cloudasset:v1/Resource": resource +"/cloudasset:v1/Resource/data": data +"/cloudasset:v1/Resource/data/datum": datum +"/cloudasset:v1/Resource/discoveryDocumentUri": discovery_document_uri +"/cloudasset:v1/Resource/discoveryName": discovery_name +"/cloudasset:v1/Resource/parent": parent +"/cloudasset:v1/Resource/resourceUrl": resource_url +"/cloudasset:v1/Resource/version": version +"/cloudasset:v1/Status": status +"/cloudasset:v1/Status/code": code +"/cloudasset:v1/Status/details": details +"/cloudasset:v1/Status/details/detail": detail +"/cloudasset:v1/Status/details/detail/detail": detail +"/cloudasset:v1/Status/message": message +"/cloudasset:v1/TemporalAsset": temporal_asset +"/cloudasset:v1/TemporalAsset/asset": asset +"/cloudasset:v1/TemporalAsset/deleted": deleted +"/cloudasset:v1/TemporalAsset/window": window +"/cloudasset:v1/TimeWindow": time_window +"/cloudasset:v1/TimeWindow/endTime": end_time +"/cloudasset:v1/TimeWindow/startTime": start_time +"/cloudasset:v1/cloudasset.batchGetAssetsHistory/assetNames": asset_names +"/cloudasset:v1/cloudasset.batchGetAssetsHistory/contentType": content_type +"/cloudasset:v1/cloudasset.batchGetAssetsHistory/parent": parent +"/cloudasset:v1/cloudasset.batchGetAssetsHistory/readTimeWindow.endTime": read_time_window_end_time +"/cloudasset:v1/cloudasset.batchGetAssetsHistory/readTimeWindow.startTime": read_time_window_start_time +"/cloudasset:v1/cloudasset.exportAssets": export_assets +"/cloudasset:v1/cloudasset.exportAssets/parent": parent +"/cloudasset:v1/cloudasset.operations.get": get_operation +"/cloudasset:v1/cloudasset.operations.get/name": name +"/cloudasset:v1/fields": fields +"/cloudasset:v1/key": key +"/cloudasset:v1/quotaUser": quota_user "/cloudasset:v1beta1/Asset": asset "/cloudasset:v1beta1/Asset/assetType": asset_type "/cloudasset:v1beta1/Asset/iamPolicy": iam_policy @@ -19005,10 +19089,50 @@ "/cloudshell:v1alpha1/fields": fields "/cloudshell:v1alpha1/key": key "/cloudshell:v1alpha1/quotaUser": quota_user +"/cloudtasks:v2/AppEngineHttpRequest": app_engine_http_request +"/cloudtasks:v2/AppEngineHttpRequest/appEngineRouting": app_engine_routing +"/cloudtasks:v2/AppEngineHttpRequest/body": body +"/cloudtasks:v2/AppEngineHttpRequest/headers": headers +"/cloudtasks:v2/AppEngineHttpRequest/headers/header": header +"/cloudtasks:v2/AppEngineHttpRequest/httpMethod": http_method +"/cloudtasks:v2/AppEngineHttpRequest/relativeUri": relative_uri +"/cloudtasks:v2/AppEngineRouting": app_engine_routing +"/cloudtasks:v2/AppEngineRouting/host": host +"/cloudtasks:v2/AppEngineRouting/instance": instance +"/cloudtasks:v2/AppEngineRouting/service": service +"/cloudtasks:v2/AppEngineRouting/version": version +"/cloudtasks:v2/Attempt": attempt +"/cloudtasks:v2/Attempt/dispatchTime": dispatch_time +"/cloudtasks:v2/Attempt/responseStatus": response_status +"/cloudtasks:v2/Attempt/responseTime": response_time +"/cloudtasks:v2/Attempt/scheduleTime": schedule_time +"/cloudtasks:v2/Binding": binding +"/cloudtasks:v2/Binding/condition": condition +"/cloudtasks:v2/Binding/members": members +"/cloudtasks:v2/Binding/members/member": member +"/cloudtasks:v2/Binding/role": role +"/cloudtasks:v2/CreateTaskRequest": create_task_request +"/cloudtasks:v2/CreateTaskRequest/responseView": response_view +"/cloudtasks:v2/CreateTaskRequest/task": task +"/cloudtasks:v2/Empty": empty +"/cloudtasks:v2/Expr": expr +"/cloudtasks:v2/Expr/description": description +"/cloudtasks:v2/Expr/expression": expression +"/cloudtasks:v2/Expr/location": location +"/cloudtasks:v2/Expr/title": title +"/cloudtasks:v2/GetIamPolicyRequest": get_iam_policy_request "/cloudtasks:v2/ListLocationsResponse": list_locations_response "/cloudtasks:v2/ListLocationsResponse/locations": locations "/cloudtasks:v2/ListLocationsResponse/locations/location": location "/cloudtasks:v2/ListLocationsResponse/nextPageToken": next_page_token +"/cloudtasks:v2/ListQueuesResponse": list_queues_response +"/cloudtasks:v2/ListQueuesResponse/nextPageToken": next_page_token +"/cloudtasks:v2/ListQueuesResponse/queues": queues +"/cloudtasks:v2/ListQueuesResponse/queues/queue": queue +"/cloudtasks:v2/ListTasksResponse": list_tasks_response +"/cloudtasks:v2/ListTasksResponse/nextPageToken": next_page_token +"/cloudtasks:v2/ListTasksResponse/tasks": tasks +"/cloudtasks:v2/ListTasksResponse/tasks/task": task "/cloudtasks:v2/Location": location "/cloudtasks:v2/Location/displayName": display_name "/cloudtasks:v2/Location/labels": labels @@ -19017,6 +19141,58 @@ "/cloudtasks:v2/Location/metadata": metadata "/cloudtasks:v2/Location/metadata/metadatum": metadatum "/cloudtasks:v2/Location/name": name +"/cloudtasks:v2/PauseQueueRequest": pause_queue_request +"/cloudtasks:v2/Policy": policy +"/cloudtasks:v2/Policy/bindings": bindings +"/cloudtasks:v2/Policy/bindings/binding": binding +"/cloudtasks:v2/Policy/etag": etag +"/cloudtasks:v2/Policy/version": version +"/cloudtasks:v2/PurgeQueueRequest": purge_queue_request +"/cloudtasks:v2/Queue": queue +"/cloudtasks:v2/Queue/appEngineRoutingOverride": app_engine_routing_override +"/cloudtasks:v2/Queue/name": name +"/cloudtasks:v2/Queue/purgeTime": purge_time +"/cloudtasks:v2/Queue/rateLimits": rate_limits +"/cloudtasks:v2/Queue/retryConfig": retry_config +"/cloudtasks:v2/Queue/state": state +"/cloudtasks:v2/RateLimits": rate_limits +"/cloudtasks:v2/RateLimits/maxBurstSize": max_burst_size +"/cloudtasks:v2/RateLimits/maxConcurrentDispatches": max_concurrent_dispatches +"/cloudtasks:v2/RateLimits/maxDispatchesPerSecond": max_dispatches_per_second +"/cloudtasks:v2/ResumeQueueRequest": resume_queue_request +"/cloudtasks:v2/RetryConfig": retry_config +"/cloudtasks:v2/RetryConfig/maxAttempts": max_attempts +"/cloudtasks:v2/RetryConfig/maxBackoff": max_backoff +"/cloudtasks:v2/RetryConfig/maxDoublings": max_doublings +"/cloudtasks:v2/RetryConfig/maxRetryDuration": max_retry_duration +"/cloudtasks:v2/RetryConfig/minBackoff": min_backoff +"/cloudtasks:v2/RunTaskRequest": run_task_request +"/cloudtasks:v2/RunTaskRequest/responseView": response_view +"/cloudtasks:v2/SetIamPolicyRequest": set_iam_policy_request +"/cloudtasks:v2/SetIamPolicyRequest/policy": policy +"/cloudtasks:v2/Status": status +"/cloudtasks:v2/Status/code": code +"/cloudtasks:v2/Status/details": details +"/cloudtasks:v2/Status/details/detail": detail +"/cloudtasks:v2/Status/details/detail/detail": detail +"/cloudtasks:v2/Status/message": message +"/cloudtasks:v2/Task": task +"/cloudtasks:v2/Task/appEngineHttpRequest": app_engine_http_request +"/cloudtasks:v2/Task/createTime": create_time +"/cloudtasks:v2/Task/dispatchCount": dispatch_count +"/cloudtasks:v2/Task/dispatchDeadline": dispatch_deadline +"/cloudtasks:v2/Task/firstAttempt": first_attempt +"/cloudtasks:v2/Task/lastAttempt": last_attempt +"/cloudtasks:v2/Task/name": name +"/cloudtasks:v2/Task/responseCount": response_count +"/cloudtasks:v2/Task/scheduleTime": schedule_time +"/cloudtasks:v2/Task/view": view +"/cloudtasks:v2/TestIamPermissionsRequest": test_iam_permissions_request +"/cloudtasks:v2/TestIamPermissionsRequest/permissions": permissions +"/cloudtasks:v2/TestIamPermissionsRequest/permissions/permission": permission +"/cloudtasks:v2/TestIamPermissionsResponse": test_iam_permissions_response +"/cloudtasks:v2/TestIamPermissionsResponse/permissions": permissions +"/cloudtasks:v2/TestIamPermissionsResponse/permissions/permission": permission "/cloudtasks:v2/cloudtasks.projects.locations.get": get_project_location "/cloudtasks:v2/cloudtasks.projects.locations.get/name": name "/cloudtasks:v2/cloudtasks.projects.locations.list": list_project_locations @@ -19024,6 +19200,46 @@ "/cloudtasks:v2/cloudtasks.projects.locations.list/name": name "/cloudtasks:v2/cloudtasks.projects.locations.list/pageSize": page_size "/cloudtasks:v2/cloudtasks.projects.locations.list/pageToken": page_token +"/cloudtasks:v2/cloudtasks.projects.locations.queues.create": create_project_location_queue +"/cloudtasks:v2/cloudtasks.projects.locations.queues.create/parent": parent +"/cloudtasks:v2/cloudtasks.projects.locations.queues.delete": delete_project_location_queue +"/cloudtasks:v2/cloudtasks.projects.locations.queues.delete/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.get": get_project_location_queue +"/cloudtasks:v2/cloudtasks.projects.locations.queues.get/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.getIamPolicy": get_queue_iam_policy +"/cloudtasks:v2/cloudtasks.projects.locations.queues.getIamPolicy/resource": resource +"/cloudtasks:v2/cloudtasks.projects.locations.queues.list": list_project_location_queues +"/cloudtasks:v2/cloudtasks.projects.locations.queues.list/filter": filter +"/cloudtasks:v2/cloudtasks.projects.locations.queues.list/pageSize": page_size +"/cloudtasks:v2/cloudtasks.projects.locations.queues.list/pageToken": page_token +"/cloudtasks:v2/cloudtasks.projects.locations.queues.list/parent": parent +"/cloudtasks:v2/cloudtasks.projects.locations.queues.patch": patch_project_location_queue +"/cloudtasks:v2/cloudtasks.projects.locations.queues.patch/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.patch/updateMask": update_mask +"/cloudtasks:v2/cloudtasks.projects.locations.queues.pause": pause_queue +"/cloudtasks:v2/cloudtasks.projects.locations.queues.pause/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.purge": purge_queue +"/cloudtasks:v2/cloudtasks.projects.locations.queues.purge/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.resume": resume_queue +"/cloudtasks:v2/cloudtasks.projects.locations.queues.resume/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.setIamPolicy": set_queue_iam_policy +"/cloudtasks:v2/cloudtasks.projects.locations.queues.setIamPolicy/resource": resource +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.create": create_task +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.create/parent": parent +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.delete": delete_project_location_queue_task +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.delete/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.get": get_project_location_queue_task +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.get/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.get/responseView": response_view +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.list": list_project_location_queue_tasks +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.list/pageSize": page_size +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.list/pageToken": page_token +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.list/parent": parent +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.list/responseView": response_view +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.run": run_task +"/cloudtasks:v2/cloudtasks.projects.locations.queues.tasks.run/name": name +"/cloudtasks:v2/cloudtasks.projects.locations.queues.testIamPermissions": test_queue_iam_permissions +"/cloudtasks:v2/cloudtasks.projects.locations.queues.testIamPermissions/resource": resource "/cloudtasks:v2/fields": fields "/cloudtasks:v2/key": key "/cloudtasks:v2/quotaUser": quota_user @@ -20860,6 +21076,20 @@ "/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk": allocation_specific_sku_allocation_allocated_instance_properties_allocated_disk "/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk/diskSizeGb": disk_size_gb "/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk/interface": interface +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk": allocation_specific_sku_allocation_allocated_instance_properties_reserved_disk +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk/diskSizeGb": disk_size_gb +"/compute:alpha/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk/interface": interface +"/compute:alpha/AllocationSpecificSKUAllocationReservedInstanceProperties": allocation_specific_sku_allocation_reserved_instance_properties +"/compute:alpha/AllocationSpecificSKUAllocationReservedInstanceProperties/guestAccelerators": guest_accelerators +"/compute:alpha/AllocationSpecificSKUAllocationReservedInstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator +"/compute:alpha/AllocationSpecificSKUAllocationReservedInstanceProperties/localSsds": local_ssds +"/compute:alpha/AllocationSpecificSKUAllocationReservedInstanceProperties/localSsds/local_ssd": local_ssd +"/compute:alpha/AllocationSpecificSKUAllocationReservedInstanceProperties/machineType": machine_type +"/compute:alpha/AllocationSpecificSKUAllocationReservedInstanceProperties/minCpuPlatform": min_cpu_platform +"/compute:alpha/AllocationSpecificSKUReservation": allocation_specific_sku_reservation +"/compute:alpha/AllocationSpecificSKUReservation/count": count +"/compute:alpha/AllocationSpecificSKUReservation/inUseCount": in_use_count +"/compute:alpha/AllocationSpecificSKUReservation/instanceProperties": instance_properties "/compute:alpha/AllocationsList": allocations_list "/compute:alpha/AllocationsList/id": id "/compute:alpha/AllocationsList/items": items @@ -20906,6 +21136,7 @@ "/compute:alpha/AttachedDisk/licenses/license": license "/compute:alpha/AttachedDisk/mode": mode "/compute:alpha/AttachedDisk/savedState": saved_state +"/compute:alpha/AttachedDisk/shieldedInstanceInitialState": shielded_instance_initial_state "/compute:alpha/AttachedDisk/source": source "/compute:alpha/AttachedDisk/type": type "/compute:alpha/AttachedDiskInitializeParams": attached_disk_initialize_params @@ -21233,6 +21464,8 @@ "/compute:alpha/Commitment/name": name "/compute:alpha/Commitment/plan": plan "/compute:alpha/Commitment/region": region +"/compute:alpha/Commitment/reservations": reservations +"/compute:alpha/Commitment/reservations/reservation": reservation "/compute:alpha/Commitment/resources": resources "/compute:alpha/Commitment/resources/resource": resource "/compute:alpha/Commitment/selfLink": self_link @@ -21542,6 +21775,9 @@ "/compute:alpha/ExternalVpnGatewayList/warning/data/datum/key": key "/compute:alpha/ExternalVpnGatewayList/warning/data/datum/value": value "/compute:alpha/ExternalVpnGatewayList/warning/message": message +"/compute:alpha/FileContentBuffer": file_content_buffer +"/compute:alpha/FileContentBuffer/content": content +"/compute:alpha/FileContentBuffer/fileType": file_type "/compute:alpha/Firewall": firewall "/compute:alpha/Firewall/allowed": allowed "/compute:alpha/Firewall/allowed/allowed": allowed @@ -21615,6 +21851,8 @@ "/compute:alpha/ForwardingRule/labels": labels "/compute:alpha/ForwardingRule/labels/label": label "/compute:alpha/ForwardingRule/loadBalancingScheme": load_balancing_scheme +"/compute:alpha/ForwardingRule/metadataFilters": metadata_filters +"/compute:alpha/ForwardingRule/metadataFilters/metadata_filter": metadata_filter "/compute:alpha/ForwardingRule/name": name "/compute:alpha/ForwardingRule/network": network "/compute:alpha/ForwardingRule/networkTier": network_tier @@ -22095,6 +22333,7 @@ "/compute:alpha/Image/rawDisk/source": source "/compute:alpha/Image/selfLink": self_link "/compute:alpha/Image/selfLinkWithId": self_link_with_id +"/compute:alpha/Image/shieldedInstanceInitialState": shielded_instance_initial_state "/compute:alpha/Image/sourceDisk": source_disk "/compute:alpha/Image/sourceDiskEncryptionKey": source_disk_encryption_key "/compute:alpha/Image/sourceDiskId": source_disk_id @@ -22122,6 +22361,14 @@ "/compute:alpha/ImageList/warning/data/datum/key": key "/compute:alpha/ImageList/warning/data/datum/value": value "/compute:alpha/ImageList/warning/message": message +"/compute:alpha/InitialStateConfig": initial_state_config +"/compute:alpha/InitialStateConfig/dbs": dbs +"/compute:alpha/InitialStateConfig/dbs/db": db +"/compute:alpha/InitialStateConfig/dbxs": dbxs +"/compute:alpha/InitialStateConfig/dbxs/dbx": dbx +"/compute:alpha/InitialStateConfig/keks": keks +"/compute:alpha/InitialStateConfig/keks/kek": kek +"/compute:alpha/InitialStateConfig/pk": pk "/compute:alpha/Instance": instance "/compute:alpha/Instance/allocationAffinity": allocation_affinity "/compute:alpha/Instance/canIpForward": can_ip_forward @@ -22151,6 +22398,7 @@ "/compute:alpha/Instance/networkInterfaces": network_interfaces "/compute:alpha/Instance/networkInterfaces/network_interface": network_interface "/compute:alpha/Instance/preservedStateSizeGb": preserved_state_size_gb +"/compute:alpha/Instance/reservationAffinity": reservation_affinity "/compute:alpha/Instance/resourcePolicies": resource_policies "/compute:alpha/Instance/resourcePolicies/resource_policy": resource_policy "/compute:alpha/Instance/scheduling": scheduling @@ -22379,6 +22627,9 @@ "/compute:alpha/InstanceGroupManagersListPerInstanceConfigsResp/warning/data/datum/key": key "/compute:alpha/InstanceGroupManagersListPerInstanceConfigsResp/warning/data/datum/value": value "/compute:alpha/InstanceGroupManagersListPerInstanceConfigsResp/warning/message": message +"/compute:alpha/InstanceGroupManagersPatchPerInstanceConfigsReq": instance_group_managers_patch_per_instance_configs_req +"/compute:alpha/InstanceGroupManagersPatchPerInstanceConfigsReq/perInstanceConfigs": per_instance_configs +"/compute:alpha/InstanceGroupManagersPatchPerInstanceConfigsReq/perInstanceConfigs/per_instance_config": per_instance_config "/compute:alpha/InstanceGroupManagersRecreateInstancesRequest": instance_group_managers_recreate_instances_request "/compute:alpha/InstanceGroupManagersRecreateInstancesRequest/instances": instances "/compute:alpha/InstanceGroupManagersRecreateInstancesRequest/instances/instance": instance @@ -22490,6 +22741,7 @@ "/compute:alpha/InstanceProperties/minCpuPlatform": min_cpu_platform "/compute:alpha/InstanceProperties/networkInterfaces": network_interfaces "/compute:alpha/InstanceProperties/networkInterfaces/network_interface": network_interface +"/compute:alpha/InstanceProperties/reservationAffinity": reservation_affinity "/compute:alpha/InstanceProperties/scheduling": scheduling "/compute:alpha/InstanceProperties/serviceAccounts": service_accounts "/compute:alpha/InstanceProperties/serviceAccounts/service_account": service_account @@ -23094,6 +23346,7 @@ "/compute:alpha/NetworkEndpoint": network_endpoint "/compute:alpha/NetworkEndpoint/annotations": annotations "/compute:alpha/NetworkEndpoint/annotations/annotation": annotation +"/compute:alpha/NetworkEndpoint/fqdn": fqdn "/compute:alpha/NetworkEndpoint/instance": instance "/compute:alpha/NetworkEndpoint/ipAddress": ip_address "/compute:alpha/NetworkEndpoint/port": port @@ -23442,6 +23695,7 @@ "/compute:alpha/NotificationEndpoint/region": region "/compute:alpha/NotificationEndpoint/selfLink": self_link "/compute:alpha/NotificationEndpointGrpcSettings": notification_endpoint_grpc_settings +"/compute:alpha/NotificationEndpointGrpcSettings/authority": authority "/compute:alpha/NotificationEndpointGrpcSettings/endpoint": endpoint "/compute:alpha/NotificationEndpointGrpcSettings/payloadName": payload_name "/compute:alpha/NotificationEndpointGrpcSettings/retryDurationSec": retry_duration_sec @@ -23534,6 +23788,10 @@ "/compute:alpha/OperationsScopedList/warning/data/datum/key": key "/compute:alpha/OperationsScopedList/warning/data/datum/value": value "/compute:alpha/OperationsScopedList/warning/message": message +"/compute:alpha/OrganizationSecurityPoliciesListAssociationsResponse": organization_security_policies_list_associations_response +"/compute:alpha/OrganizationSecurityPoliciesListAssociationsResponse/associations": associations +"/compute:alpha/OrganizationSecurityPoliciesListAssociationsResponse/associations/association": association +"/compute:alpha/OrganizationSecurityPoliciesListAssociationsResponse/kind": kind "/compute:alpha/OriginAuthenticationMethod": origin_authentication_method "/compute:alpha/OriginAuthenticationMethod/jwt": jwt "/compute:alpha/OutlierDetection": outlier_detection @@ -23716,6 +23974,9 @@ "/compute:alpha/RegionCommitmentsUpdateAllocationsRequest": region_commitments_update_allocations_request "/compute:alpha/RegionCommitmentsUpdateAllocationsRequest/allocations": allocations "/compute:alpha/RegionCommitmentsUpdateAllocationsRequest/allocations/allocation": allocation +"/compute:alpha/RegionCommitmentsUpdateReservationsRequest": region_commitments_update_reservations_request +"/compute:alpha/RegionCommitmentsUpdateReservationsRequest/reservations": reservations +"/compute:alpha/RegionCommitmentsUpdateReservationsRequest/reservations/reservation": reservation "/compute:alpha/RegionDiskTypeList": region_disk_type_list "/compute:alpha/RegionDiskTypeList/id": id "/compute:alpha/RegionDiskTypeList/items": items @@ -23771,6 +24032,9 @@ "/compute:alpha/RegionInstanceGroupManagerList/warning/data/datum/key": key "/compute:alpha/RegionInstanceGroupManagerList/warning/data/datum/value": value "/compute:alpha/RegionInstanceGroupManagerList/warning/message": message +"/compute:alpha/RegionInstanceGroupManagerPatchInstanceConfigReq": region_instance_group_manager_patch_instance_config_req +"/compute:alpha/RegionInstanceGroupManagerPatchInstanceConfigReq/perInstanceConfigs": per_instance_configs +"/compute:alpha/RegionInstanceGroupManagerPatchInstanceConfigReq/perInstanceConfigs/per_instance_config": per_instance_config "/compute:alpha/RegionInstanceGroupManagerUpdateInstanceConfigReq": region_instance_group_manager_update_instance_config_req "/compute:alpha/RegionInstanceGroupManagerUpdateInstanceConfigReq/perInstanceConfigs": per_instance_configs "/compute:alpha/RegionInstanceGroupManagerUpdateInstanceConfigReq/perInstanceConfigs/per_instance_config": per_instance_config @@ -23867,6 +24131,63 @@ "/compute:alpha/RegionUrlMapsValidateRequest/resource": resource "/compute:alpha/RequestMirrorPolicy": request_mirror_policy "/compute:alpha/RequestMirrorPolicy/backendService": backend_service +"/compute:alpha/Reservation": reservation +"/compute:alpha/Reservation/commitment": commitment +"/compute:alpha/Reservation/creationTimestamp": creation_timestamp +"/compute:alpha/Reservation/description": description +"/compute:alpha/Reservation/id": id +"/compute:alpha/Reservation/kind": kind +"/compute:alpha/Reservation/name": name +"/compute:alpha/Reservation/selfLink": self_link +"/compute:alpha/Reservation/selfLinkWithId": self_link_with_id +"/compute:alpha/Reservation/specificReservation": specific_reservation +"/compute:alpha/Reservation/specificReservationRequired": specific_reservation_required +"/compute:alpha/Reservation/zone": zone +"/compute:alpha/ReservationAffinity": reservation_affinity +"/compute:alpha/ReservationAffinity/consumeReservationType": consume_reservation_type +"/compute:alpha/ReservationAffinity/key": key +"/compute:alpha/ReservationAffinity/values": values +"/compute:alpha/ReservationAffinity/values/value": value +"/compute:alpha/ReservationAggregatedList": reservation_aggregated_list +"/compute:alpha/ReservationAggregatedList/id": id +"/compute:alpha/ReservationAggregatedList/items": items +"/compute:alpha/ReservationAggregatedList/items/item": item +"/compute:alpha/ReservationAggregatedList/kind": kind +"/compute:alpha/ReservationAggregatedList/nextPageToken": next_page_token +"/compute:alpha/ReservationAggregatedList/selfLink": self_link +"/compute:alpha/ReservationAggregatedList/warning": warning +"/compute:alpha/ReservationAggregatedList/warning/code": code +"/compute:alpha/ReservationAggregatedList/warning/data": data +"/compute:alpha/ReservationAggregatedList/warning/data/datum": datum +"/compute:alpha/ReservationAggregatedList/warning/data/datum/key": key +"/compute:alpha/ReservationAggregatedList/warning/data/datum/value": value +"/compute:alpha/ReservationAggregatedList/warning/message": message +"/compute:alpha/ReservationList": reservation_list +"/compute:alpha/ReservationList/id": id +"/compute:alpha/ReservationList/items": items +"/compute:alpha/ReservationList/items/item": item +"/compute:alpha/ReservationList/kind": kind +"/compute:alpha/ReservationList/nextPageToken": next_page_token +"/compute:alpha/ReservationList/selfLink": self_link +"/compute:alpha/ReservationList/warning": warning +"/compute:alpha/ReservationList/warning/code": code +"/compute:alpha/ReservationList/warning/data": data +"/compute:alpha/ReservationList/warning/data/datum": datum +"/compute:alpha/ReservationList/warning/data/datum/key": key +"/compute:alpha/ReservationList/warning/data/datum/value": value +"/compute:alpha/ReservationList/warning/message": message +"/compute:alpha/ReservationsResizeRequest": reservations_resize_request +"/compute:alpha/ReservationsResizeRequest/specificSkuCount": specific_sku_count +"/compute:alpha/ReservationsScopedList": reservations_scoped_list +"/compute:alpha/ReservationsScopedList/reservations": reservations +"/compute:alpha/ReservationsScopedList/reservations/reservation": reservation +"/compute:alpha/ReservationsScopedList/warning": warning +"/compute:alpha/ReservationsScopedList/warning/code": code +"/compute:alpha/ReservationsScopedList/warning/data": data +"/compute:alpha/ReservationsScopedList/warning/data/datum": datum +"/compute:alpha/ReservationsScopedList/warning/data/datum/key": key +"/compute:alpha/ReservationsScopedList/warning/data/datum/value": value +"/compute:alpha/ReservationsScopedList/warning/message": message "/compute:alpha/ResourceCommitment": resource_commitment "/compute:alpha/ResourceCommitment/acceleratorType": accelerator_type "/compute:alpha/ResourceCommitment/amount": amount @@ -24138,6 +24459,8 @@ "/compute:alpha/RouterNat": router_nat "/compute:alpha/RouterNat/autoAllocatedNatIps": auto_allocated_nat_ips "/compute:alpha/RouterNat/autoAllocatedNatIps/auto_allocated_nat_ip": auto_allocated_nat_ip +"/compute:alpha/RouterNat/drainNatIps": drain_nat_ips +"/compute:alpha/RouterNat/drainNatIps/drain_nat_ip": drain_nat_ip "/compute:alpha/RouterNat/icmpIdleTimeoutSec": icmp_idle_timeout_sec "/compute:alpha/RouterNat/logConfig": log_config "/compute:alpha/RouterNat/minPortsPerVm": min_ports_per_vm @@ -24188,6 +24511,10 @@ "/compute:alpha/RouterStatusNatStatus": router_status_nat_status "/compute:alpha/RouterStatusNatStatus/autoAllocatedNatIps": auto_allocated_nat_ips "/compute:alpha/RouterStatusNatStatus/autoAllocatedNatIps/auto_allocated_nat_ip": auto_allocated_nat_ip +"/compute:alpha/RouterStatusNatStatus/drainAutoAllocatedNatIps": drain_auto_allocated_nat_ips +"/compute:alpha/RouterStatusNatStatus/drainAutoAllocatedNatIps/drain_auto_allocated_nat_ip": drain_auto_allocated_nat_ip +"/compute:alpha/RouterStatusNatStatus/drainUserAllocatedNatIps": drain_user_allocated_nat_ips +"/compute:alpha/RouterStatusNatStatus/drainUserAllocatedNatIps/drain_user_allocated_nat_ip": drain_user_allocated_nat_ip "/compute:alpha/RouterStatusNatStatus/minExtraNatIpsNeeded": min_extra_nat_ips_needed "/compute:alpha/RouterStatusNatStatus/name": name "/compute:alpha/RouterStatusNatStatus/numVmEndpointsWithNatMappings": num_vm_endpoints_with_nat_mappings @@ -24293,6 +24620,7 @@ "/compute:alpha/SecurityPolicy/labels": labels "/compute:alpha/SecurityPolicy/labels/label": label "/compute:alpha/SecurityPolicy/name": name +"/compute:alpha/SecurityPolicy/ruleTupleCount": rule_tuple_count "/compute:alpha/SecurityPolicy/rules": rules "/compute:alpha/SecurityPolicy/rules/rule": rule "/compute:alpha/SecurityPolicy/selfLink": self_link @@ -24301,6 +24629,7 @@ "/compute:alpha/SecurityPolicyAssociation": security_policy_association "/compute:alpha/SecurityPolicyAssociation/attachmentId": attachment_id "/compute:alpha/SecurityPolicyAssociation/name": name +"/compute:alpha/SecurityPolicyAssociation/securityPolicyId": security_policy_id "/compute:alpha/SecurityPolicyList": security_policy_list "/compute:alpha/SecurityPolicyList/id": id "/compute:alpha/SecurityPolicyList/items": items @@ -24326,6 +24655,7 @@ "/compute:alpha/SecurityPolicyRule/preview": preview "/compute:alpha/SecurityPolicyRule/priority": priority "/compute:alpha/SecurityPolicyRule/rateLimitOptions": rate_limit_options +"/compute:alpha/SecurityPolicyRule/ruleTupleCount": rule_tuple_count "/compute:alpha/SecurityPolicyRule/targetResources": target_resources "/compute:alpha/SecurityPolicyRule/targetResources/target_resource": target_resource "/compute:alpha/SecurityPolicyRuleMatcher": security_policy_rule_matcher @@ -24619,6 +24949,7 @@ "/compute:alpha/Subnetwork/privateIpGoogleAccess": private_ip_google_access "/compute:alpha/Subnetwork/privateIpv6GoogleAccess": private_ipv6_google_access "/compute:alpha/Subnetwork/purpose": purpose +"/compute:alpha/Subnetwork/rangeType": range_type "/compute:alpha/Subnetwork/region": region "/compute:alpha/Subnetwork/role": role "/compute:alpha/Subnetwork/secondaryIpRanges": secondary_ip_ranges @@ -24662,8 +24993,10 @@ "/compute:alpha/SubnetworkSecondaryRange": subnetwork_secondary_range "/compute:alpha/SubnetworkSecondaryRange/ipCidrRange": ip_cidr_range "/compute:alpha/SubnetworkSecondaryRange/rangeName": range_name +"/compute:alpha/SubnetworkSecondaryRange/rangeType": range_type "/compute:alpha/SubnetworksExpandIpCidrRangeRequest": subnetworks_expand_ip_cidr_range_request "/compute:alpha/SubnetworksExpandIpCidrRangeRequest/ipCidrRange": ip_cidr_range +"/compute:alpha/SubnetworksExpandIpCidrRangeRequest/rangeType": range_type "/compute:alpha/SubnetworksScopedList": subnetworks_scoped_list "/compute:alpha/SubnetworksScopedList/subnetworks": subnetworks "/compute:alpha/SubnetworksScopedList/subnetworks/subnetwork": subnetwork @@ -25175,8 +25508,11 @@ "/compute:alpha/VmEndpointNatMappings/interfaceNatMappings": interface_nat_mappings "/compute:alpha/VmEndpointNatMappings/interfaceNatMappings/interface_nat_mapping": interface_nat_mapping "/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings": vm_endpoint_nat_mappings_interface_nat_mappings +"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/drainNatIpPortRanges": drain_nat_ip_port_ranges +"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/drainNatIpPortRanges/drain_nat_ip_port_range": drain_nat_ip_port_range "/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/natIpPortRanges": nat_ip_port_ranges "/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/natIpPortRanges/nat_ip_port_range": nat_ip_port_range +"/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/numTotalDrainNatPorts": num_total_drain_nat_ports "/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/numTotalNatPorts": num_total_nat_ports "/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/sourceAliasIpRange": source_alias_ip_range "/compute:alpha/VmEndpointNatMappingsInterfaceNatMappings/sourceVirtualIp": source_virtual_ip @@ -25239,9 +25575,27 @@ "/compute:alpha/VpnGatewayList/warning/data/datum/key": key "/compute:alpha/VpnGatewayList/warning/data/datum/value": value "/compute:alpha/VpnGatewayList/warning/message": message +"/compute:alpha/VpnGatewayStatus": vpn_gateway_status +"/compute:alpha/VpnGatewayStatus/vpnConnections": vpn_connections +"/compute:alpha/VpnGatewayStatus/vpnConnections/vpn_connection": vpn_connection +"/compute:alpha/VpnGatewayStatusHighAvailabilityRequirementState": vpn_gateway_status_high_availability_requirement_state +"/compute:alpha/VpnGatewayStatusHighAvailabilityRequirementState/state": state +"/compute:alpha/VpnGatewayStatusHighAvailabilityRequirementState/unsatisfiedReason": unsatisfied_reason +"/compute:alpha/VpnGatewayStatusTunnel": vpn_gateway_status_tunnel +"/compute:alpha/VpnGatewayStatusTunnel/localGatewayInterface": local_gateway_interface +"/compute:alpha/VpnGatewayStatusTunnel/peerGatewayInterface": peer_gateway_interface +"/compute:alpha/VpnGatewayStatusTunnel/tunnelUrl": tunnel_url +"/compute:alpha/VpnGatewayStatusVpnConnection": vpn_gateway_status_vpn_connection +"/compute:alpha/VpnGatewayStatusVpnConnection/peerExternalGateway": peer_external_gateway +"/compute:alpha/VpnGatewayStatusVpnConnection/peerGcpGateway": peer_gcp_gateway +"/compute:alpha/VpnGatewayStatusVpnConnection/state": state +"/compute:alpha/VpnGatewayStatusVpnConnection/tunnels": tunnels +"/compute:alpha/VpnGatewayStatusVpnConnection/tunnels/tunnel": tunnel "/compute:alpha/VpnGatewayVpnGatewayInterface": vpn_gateway_vpn_gateway_interface "/compute:alpha/VpnGatewayVpnGatewayInterface/id": id "/compute:alpha/VpnGatewayVpnGatewayInterface/ipAddress": ip_address +"/compute:alpha/VpnGatewaysGetStatusResponse": vpn_gateways_get_status_response +"/compute:alpha/VpnGatewaysGetStatusResponse/result": result "/compute:alpha/VpnGatewaysScopedList": vpn_gateways_scoped_list "/compute:alpha/VpnGatewaysScopedList/vpnGateways": vpn_gateways "/compute:alpha/VpnGatewaysScopedList/vpnGateways/vpn_gateway": vpn_gateway @@ -26128,6 +26482,11 @@ "/compute:alpha/compute.instanceGroupManagers.patch/project": project "/compute:alpha/compute.instanceGroupManagers.patch/requestId": request_id "/compute:alpha/compute.instanceGroupManagers.patch/zone": zone +"/compute:alpha/compute.instanceGroupManagers.patchPerInstanceConfigs": patch_instance_group_manager_per_instance_configs +"/compute:alpha/compute.instanceGroupManagers.patchPerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:alpha/compute.instanceGroupManagers.patchPerInstanceConfigs/project": project +"/compute:alpha/compute.instanceGroupManagers.patchPerInstanceConfigs/requestId": request_id +"/compute:alpha/compute.instanceGroupManagers.patchPerInstanceConfigs/zone": zone "/compute:alpha/compute.instanceGroupManagers.recreateInstances": recreate_instance_group_manager_instances "/compute:alpha/compute.instanceGroupManagers.recreateInstances/instanceGroupManager": instance_group_manager "/compute:alpha/compute.instanceGroupManagers.recreateInstances/project": project @@ -26952,6 +27311,7 @@ "/compute:alpha/compute.organizationSecurityPolicies.copyRules": copy_organization_security_policy_rules "/compute:alpha/compute.organizationSecurityPolicies.copyRules/requestId": request_id "/compute:alpha/compute.organizationSecurityPolicies.copyRules/securityPolicy": security_policy +"/compute:alpha/compute.organizationSecurityPolicies.copyRules/sourceSecurityPolicy": source_security_policy "/compute:alpha/compute.organizationSecurityPolicies.delete": delete_organization_security_policy "/compute:alpha/compute.organizationSecurityPolicies.delete/requestId": request_id "/compute:alpha/compute.organizationSecurityPolicies.delete/securityPolicy": security_policy @@ -26972,7 +27332,10 @@ "/compute:alpha/compute.organizationSecurityPolicies.list/orderBy": order_by "/compute:alpha/compute.organizationSecurityPolicies.list/pageToken": page_token "/compute:alpha/compute.organizationSecurityPolicies.list/parentId": parent_id +"/compute:alpha/compute.organizationSecurityPolicies.listAssociations": list_organization_security_policy_associations +"/compute:alpha/compute.organizationSecurityPolicies.listAssociations/targetResource": target_resource "/compute:alpha/compute.organizationSecurityPolicies.move": move_organization_security_policy +"/compute:alpha/compute.organizationSecurityPolicies.move/parentId": parent_id "/compute:alpha/compute.organizationSecurityPolicies.move/requestId": request_id "/compute:alpha/compute.organizationSecurityPolicies.move/securityPolicy": security_policy "/compute:alpha/compute.organizationSecurityPolicies.patch": patch_organization_security_policy @@ -27138,6 +27501,11 @@ "/compute:alpha/compute.regionCommitments.updateAllocations/project": project "/compute:alpha/compute.regionCommitments.updateAllocations/region": region "/compute:alpha/compute.regionCommitments.updateAllocations/requestId": request_id +"/compute:alpha/compute.regionCommitments.updateReservations": update_region_commitment_reservations +"/compute:alpha/compute.regionCommitments.updateReservations/commitment": commitment +"/compute:alpha/compute.regionCommitments.updateReservations/project": project +"/compute:alpha/compute.regionCommitments.updateReservations/region": region +"/compute:alpha/compute.regionCommitments.updateReservations/requestId": request_id "/compute:alpha/compute.regionDiskTypes.get": get_region_disk_type "/compute:alpha/compute.regionDiskTypes.get/diskType": disk_type "/compute:alpha/compute.regionDiskTypes.get/project": project @@ -27330,6 +27698,11 @@ "/compute:alpha/compute.regionInstanceGroupManagers.patch/project": project "/compute:alpha/compute.regionInstanceGroupManagers.patch/region": region "/compute:alpha/compute.regionInstanceGroupManagers.patch/requestId": request_id +"/compute:alpha/compute.regionInstanceGroupManagers.patchPerInstanceConfigs": patch_region_instance_group_manager_per_instance_configs +"/compute:alpha/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:alpha/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/project": project +"/compute:alpha/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/region": region +"/compute:alpha/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/requestId": request_id "/compute:alpha/compute.regionInstanceGroupManagers.recreateInstances": recreate_region_instance_group_manager_instances "/compute:alpha/compute.regionInstanceGroupManagers.recreateInstances/instanceGroupManager": instance_group_manager "/compute:alpha/compute.regionInstanceGroupManagers.recreateInstances/project": project @@ -27580,6 +27953,49 @@ "/compute:alpha/compute.regions.list/orderBy": order_by "/compute:alpha/compute.regions.list/pageToken": page_token "/compute:alpha/compute.regions.list/project": project +"/compute:alpha/compute.reservations.aggregatedList": aggregated_reservation_list +"/compute:alpha/compute.reservations.aggregatedList/filter": filter +"/compute:alpha/compute.reservations.aggregatedList/maxResults": max_results +"/compute:alpha/compute.reservations.aggregatedList/orderBy": order_by +"/compute:alpha/compute.reservations.aggregatedList/pageToken": page_token +"/compute:alpha/compute.reservations.aggregatedList/project": project +"/compute:alpha/compute.reservations.delete": delete_reservation +"/compute:alpha/compute.reservations.delete/project": project +"/compute:alpha/compute.reservations.delete/requestId": request_id +"/compute:alpha/compute.reservations.delete/reservation": reservation +"/compute:alpha/compute.reservations.delete/zone": zone +"/compute:alpha/compute.reservations.get": get_reservation +"/compute:alpha/compute.reservations.get/project": project +"/compute:alpha/compute.reservations.get/reservation": reservation +"/compute:alpha/compute.reservations.get/zone": zone +"/compute:alpha/compute.reservations.getIamPolicy": get_reservation_iam_policy +"/compute:alpha/compute.reservations.getIamPolicy/project": project +"/compute:alpha/compute.reservations.getIamPolicy/resource": resource +"/compute:alpha/compute.reservations.getIamPolicy/zone": zone +"/compute:alpha/compute.reservations.insert": insert_reservation +"/compute:alpha/compute.reservations.insert/project": project +"/compute:alpha/compute.reservations.insert/requestId": request_id +"/compute:alpha/compute.reservations.insert/zone": zone +"/compute:alpha/compute.reservations.list": list_reservations +"/compute:alpha/compute.reservations.list/filter": filter +"/compute:alpha/compute.reservations.list/maxResults": max_results +"/compute:alpha/compute.reservations.list/orderBy": order_by +"/compute:alpha/compute.reservations.list/pageToken": page_token +"/compute:alpha/compute.reservations.list/project": project +"/compute:alpha/compute.reservations.list/zone": zone +"/compute:alpha/compute.reservations.resize": resize_reservation +"/compute:alpha/compute.reservations.resize/project": project +"/compute:alpha/compute.reservations.resize/requestId": request_id +"/compute:alpha/compute.reservations.resize/reservation": reservation +"/compute:alpha/compute.reservations.resize/zone": zone +"/compute:alpha/compute.reservations.setIamPolicy": set_reservation_iam_policy +"/compute:alpha/compute.reservations.setIamPolicy/project": project +"/compute:alpha/compute.reservations.setIamPolicy/resource": resource +"/compute:alpha/compute.reservations.setIamPolicy/zone": zone +"/compute:alpha/compute.reservations.testIamPermissions": test_reservation_iam_permissions +"/compute:alpha/compute.reservations.testIamPermissions/project": project +"/compute:alpha/compute.reservations.testIamPermissions/resource": resource +"/compute:alpha/compute.reservations.testIamPermissions/zone": zone "/compute:alpha/compute.resourcePolicies.aggregatedList": aggregated_resource_policy_list "/compute:alpha/compute.resourcePolicies.aggregatedList/filter": filter "/compute:alpha/compute.resourcePolicies.aggregatedList/maxResults": max_results @@ -27636,6 +28052,7 @@ "/compute:alpha/compute.routers.getNatMappingInfo": get_router_nat_mapping_info "/compute:alpha/compute.routers.getNatMappingInfo/filter": filter "/compute:alpha/compute.routers.getNatMappingInfo/maxResults": max_results +"/compute:alpha/compute.routers.getNatMappingInfo/natName": nat_name "/compute:alpha/compute.routers.getNatMappingInfo/orderBy": order_by "/compute:alpha/compute.routers.getNatMappingInfo/pageToken": page_token "/compute:alpha/compute.routers.getNatMappingInfo/project": project @@ -28194,6 +28611,10 @@ "/compute:alpha/compute.vpnGateways.get/project": project "/compute:alpha/compute.vpnGateways.get/region": region "/compute:alpha/compute.vpnGateways.get/vpnGateway": vpn_gateway +"/compute:alpha/compute.vpnGateways.getStatus": get_vpn_gateway_status +"/compute:alpha/compute.vpnGateways.getStatus/project": project +"/compute:alpha/compute.vpnGateways.getStatus/region": region +"/compute:alpha/compute.vpnGateways.getStatus/vpnGateway": vpn_gateway "/compute:alpha/compute.vpnGateways.insert": insert_vpn_gateway "/compute:alpha/compute.vpnGateways.insert/project": project "/compute:alpha/compute.vpnGateways.insert/region": region @@ -28461,6 +28882,20 @@ "/compute:beta/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk": allocation_specific_sku_allocation_allocated_instance_properties_allocated_disk "/compute:beta/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk/diskSizeGb": disk_size_gb "/compute:beta/AllocationSpecificSKUAllocationAllocatedInstancePropertiesAllocatedDisk/interface": interface +"/compute:beta/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk": allocation_specific_sku_allocation_allocated_instance_properties_reserved_disk +"/compute:beta/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk/diskSizeGb": disk_size_gb +"/compute:beta/AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk/interface": interface +"/compute:beta/AllocationSpecificSKUAllocationReservedInstanceProperties": allocation_specific_sku_allocation_reserved_instance_properties +"/compute:beta/AllocationSpecificSKUAllocationReservedInstanceProperties/guestAccelerators": guest_accelerators +"/compute:beta/AllocationSpecificSKUAllocationReservedInstanceProperties/guestAccelerators/guest_accelerator": guest_accelerator +"/compute:beta/AllocationSpecificSKUAllocationReservedInstanceProperties/localSsds": local_ssds +"/compute:beta/AllocationSpecificSKUAllocationReservedInstanceProperties/localSsds/local_ssd": local_ssd +"/compute:beta/AllocationSpecificSKUAllocationReservedInstanceProperties/machineType": machine_type +"/compute:beta/AllocationSpecificSKUAllocationReservedInstanceProperties/minCpuPlatform": min_cpu_platform +"/compute:beta/AllocationSpecificSKUReservation": allocation_specific_sku_reservation +"/compute:beta/AllocationSpecificSKUReservation/count": count +"/compute:beta/AllocationSpecificSKUReservation/inUseCount": in_use_count +"/compute:beta/AllocationSpecificSKUReservation/instanceProperties": instance_properties "/compute:beta/AllocationsResizeRequest": allocations_resize_request "/compute:beta/AllocationsResizeRequest/specificSkuCount": specific_sku_count "/compute:beta/AllocationsScopedList": allocations_scoped_list @@ -28590,6 +29025,7 @@ "/compute:beta/Backend/balancingMode": balancing_mode "/compute:beta/Backend/capacityScaler": capacity_scaler "/compute:beta/Backend/description": description +"/compute:beta/Backend/failover": failover "/compute:beta/Backend/group": group "/compute:beta/Backend/maxConnections": max_connections "/compute:beta/Backend/maxConnectionsPerEndpoint": max_connections_per_endpoint @@ -28637,6 +29073,7 @@ "/compute:beta/BackendService/customRequestHeaders/custom_request_header": custom_request_header "/compute:beta/BackendService/description": description "/compute:beta/BackendService/enableCDN": enable_cdn +"/compute:beta/BackendService/failoverPolicy": failover_policy "/compute:beta/BackendService/fingerprint": fingerprint "/compute:beta/BackendService/healthChecks": health_checks "/compute:beta/BackendService/healthChecks/health_check": health_check @@ -28673,6 +29110,10 @@ "/compute:beta/BackendServiceCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec "/compute:beta/BackendServiceCdnPolicy/signedUrlKeyNames": signed_url_key_names "/compute:beta/BackendServiceCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name +"/compute:beta/BackendServiceFailoverPolicy": backend_service_failover_policy +"/compute:beta/BackendServiceFailoverPolicy/disableConnectionDrainOnFailover": disable_connection_drain_on_failover +"/compute:beta/BackendServiceFailoverPolicy/dropTrafficIfUnhealthy": drop_traffic_if_unhealthy +"/compute:beta/BackendServiceFailoverPolicy/failoverRatio": failover_ratio "/compute:beta/BackendServiceGroupHealth": backend_service_group_health "/compute:beta/BackendServiceGroupHealth/healthStatus": health_status "/compute:beta/BackendServiceGroupHealth/healthStatus/health_status": health_status @@ -28738,6 +29179,8 @@ "/compute:beta/Commitment/name": name "/compute:beta/Commitment/plan": plan "/compute:beta/Commitment/region": region +"/compute:beta/Commitment/reservations": reservations +"/compute:beta/Commitment/reservations/reservation": reservation "/compute:beta/Commitment/resources": resources "/compute:beta/Commitment/resources/resource": resource "/compute:beta/Commitment/selfLink": self_link @@ -29364,6 +29807,7 @@ "/compute:beta/Instance/name": name "/compute:beta/Instance/networkInterfaces": network_interfaces "/compute:beta/Instance/networkInterfaces/network_interface": network_interface +"/compute:beta/Instance/reservationAffinity": reservation_affinity "/compute:beta/Instance/scheduling": scheduling "/compute:beta/Instance/selfLink": self_link "/compute:beta/Instance/serviceAccounts": service_accounts @@ -29527,6 +29971,11 @@ "/compute:beta/InstanceGroupManagersAbandonInstancesRequest": instance_group_managers_abandon_instances_request "/compute:beta/InstanceGroupManagersAbandonInstancesRequest/instances": instances "/compute:beta/InstanceGroupManagersAbandonInstancesRequest/instances/instance": instance +"/compute:beta/InstanceGroupManagersApplyUpdatesRequest": instance_group_managers_apply_updates_request +"/compute:beta/InstanceGroupManagersApplyUpdatesRequest/instances": instances +"/compute:beta/InstanceGroupManagersApplyUpdatesRequest/instances/instance": instance +"/compute:beta/InstanceGroupManagersApplyUpdatesRequest/minimalAction": minimal_action +"/compute:beta/InstanceGroupManagersApplyUpdatesRequest/mostDisruptiveAllowedAction": most_disruptive_allowed_action "/compute:beta/InstanceGroupManagersDeleteInstancesRequest": instance_group_managers_delete_instances_request "/compute:beta/InstanceGroupManagersDeleteInstancesRequest/instances": instances "/compute:beta/InstanceGroupManagersDeleteInstancesRequest/instances/instance": instance @@ -29642,6 +30091,7 @@ "/compute:beta/InstanceProperties/minCpuPlatform": min_cpu_platform "/compute:beta/InstanceProperties/networkInterfaces": network_interfaces "/compute:beta/InstanceProperties/networkInterfaces/network_interface": network_interface +"/compute:beta/InstanceProperties/reservationAffinity": reservation_affinity "/compute:beta/InstanceProperties/scheduling": scheduling "/compute:beta/InstanceProperties/serviceAccounts": service_accounts "/compute:beta/InstanceProperties/serviceAccounts/service_account": service_account @@ -30536,6 +30986,9 @@ "/compute:beta/RegionCommitmentsUpdateAllocationsRequest": region_commitments_update_allocations_request "/compute:beta/RegionCommitmentsUpdateAllocationsRequest/allocations": allocations "/compute:beta/RegionCommitmentsUpdateAllocationsRequest/allocations/allocation": allocation +"/compute:beta/RegionCommitmentsUpdateReservationsRequest": region_commitments_update_reservations_request +"/compute:beta/RegionCommitmentsUpdateReservationsRequest/reservations": reservations +"/compute:beta/RegionCommitmentsUpdateReservationsRequest/reservations/reservation": reservation "/compute:beta/RegionDiskTypeList": region_disk_type_list "/compute:beta/RegionDiskTypeList/id": id "/compute:beta/RegionDiskTypeList/items": items @@ -30589,6 +31042,11 @@ "/compute:beta/RegionInstanceGroupManagersAbandonInstancesRequest": region_instance_group_managers_abandon_instances_request "/compute:beta/RegionInstanceGroupManagersAbandonInstancesRequest/instances": instances "/compute:beta/RegionInstanceGroupManagersAbandonInstancesRequest/instances/instance": instance +"/compute:beta/RegionInstanceGroupManagersApplyUpdatesRequest": region_instance_group_managers_apply_updates_request +"/compute:beta/RegionInstanceGroupManagersApplyUpdatesRequest/instances": instances +"/compute:beta/RegionInstanceGroupManagersApplyUpdatesRequest/instances/instance": instance +"/compute:beta/RegionInstanceGroupManagersApplyUpdatesRequest/minimalAction": minimal_action +"/compute:beta/RegionInstanceGroupManagersApplyUpdatesRequest/mostDisruptiveAllowedAction": most_disruptive_allowed_action "/compute:beta/RegionInstanceGroupManagersDeleteInstancesRequest": region_instance_group_managers_delete_instances_request "/compute:beta/RegionInstanceGroupManagersDeleteInstancesRequest/instances": instances "/compute:beta/RegionInstanceGroupManagersDeleteInstancesRequest/instances/instance": instance @@ -30652,6 +31110,62 @@ "/compute:beta/RegionSetPolicyRequest/bindings/binding": binding "/compute:beta/RegionSetPolicyRequest/etag": etag "/compute:beta/RegionSetPolicyRequest/policy": policy +"/compute:beta/Reservation": reservation +"/compute:beta/Reservation/commitment": commitment +"/compute:beta/Reservation/creationTimestamp": creation_timestamp +"/compute:beta/Reservation/description": description +"/compute:beta/Reservation/id": id +"/compute:beta/Reservation/kind": kind +"/compute:beta/Reservation/name": name +"/compute:beta/Reservation/selfLink": self_link +"/compute:beta/Reservation/specificReservation": specific_reservation +"/compute:beta/Reservation/specificReservationRequired": specific_reservation_required +"/compute:beta/Reservation/zone": zone +"/compute:beta/ReservationAffinity": reservation_affinity +"/compute:beta/ReservationAffinity/consumeReservationType": consume_reservation_type +"/compute:beta/ReservationAffinity/key": key +"/compute:beta/ReservationAffinity/values": values +"/compute:beta/ReservationAffinity/values/value": value +"/compute:beta/ReservationAggregatedList": reservation_aggregated_list +"/compute:beta/ReservationAggregatedList/id": id +"/compute:beta/ReservationAggregatedList/items": items +"/compute:beta/ReservationAggregatedList/items/item": item +"/compute:beta/ReservationAggregatedList/kind": kind +"/compute:beta/ReservationAggregatedList/nextPageToken": next_page_token +"/compute:beta/ReservationAggregatedList/selfLink": self_link +"/compute:beta/ReservationAggregatedList/warning": warning +"/compute:beta/ReservationAggregatedList/warning/code": code +"/compute:beta/ReservationAggregatedList/warning/data": data +"/compute:beta/ReservationAggregatedList/warning/data/datum": datum +"/compute:beta/ReservationAggregatedList/warning/data/datum/key": key +"/compute:beta/ReservationAggregatedList/warning/data/datum/value": value +"/compute:beta/ReservationAggregatedList/warning/message": message +"/compute:beta/ReservationList": reservation_list +"/compute:beta/ReservationList/id": id +"/compute:beta/ReservationList/items": items +"/compute:beta/ReservationList/items/item": item +"/compute:beta/ReservationList/kind": kind +"/compute:beta/ReservationList/nextPageToken": next_page_token +"/compute:beta/ReservationList/selfLink": self_link +"/compute:beta/ReservationList/warning": warning +"/compute:beta/ReservationList/warning/code": code +"/compute:beta/ReservationList/warning/data": data +"/compute:beta/ReservationList/warning/data/datum": datum +"/compute:beta/ReservationList/warning/data/datum/key": key +"/compute:beta/ReservationList/warning/data/datum/value": value +"/compute:beta/ReservationList/warning/message": message +"/compute:beta/ReservationsResizeRequest": reservations_resize_request +"/compute:beta/ReservationsResizeRequest/specificSkuCount": specific_sku_count +"/compute:beta/ReservationsScopedList": reservations_scoped_list +"/compute:beta/ReservationsScopedList/reservations": reservations +"/compute:beta/ReservationsScopedList/reservations/reservation": reservation +"/compute:beta/ReservationsScopedList/warning": warning +"/compute:beta/ReservationsScopedList/warning/code": code +"/compute:beta/ReservationsScopedList/warning/data": data +"/compute:beta/ReservationsScopedList/warning/data/datum": datum +"/compute:beta/ReservationsScopedList/warning/data/datum/key": key +"/compute:beta/ReservationsScopedList/warning/data/datum/value": value +"/compute:beta/ReservationsScopedList/warning/message": message "/compute:beta/ResourceCommitment": resource_commitment "/compute:beta/ResourceCommitment/acceleratorType": accelerator_type "/compute:beta/ResourceCommitment/amount": amount @@ -31724,9 +32238,27 @@ "/compute:beta/VpnGatewayList/warning/data/datum/key": key "/compute:beta/VpnGatewayList/warning/data/datum/value": value "/compute:beta/VpnGatewayList/warning/message": message +"/compute:beta/VpnGatewayStatus": vpn_gateway_status +"/compute:beta/VpnGatewayStatus/vpnConnections": vpn_connections +"/compute:beta/VpnGatewayStatus/vpnConnections/vpn_connection": vpn_connection +"/compute:beta/VpnGatewayStatusHighAvailabilityRequirementState": vpn_gateway_status_high_availability_requirement_state +"/compute:beta/VpnGatewayStatusHighAvailabilityRequirementState/state": state +"/compute:beta/VpnGatewayStatusHighAvailabilityRequirementState/unsatisfiedReason": unsatisfied_reason +"/compute:beta/VpnGatewayStatusTunnel": vpn_gateway_status_tunnel +"/compute:beta/VpnGatewayStatusTunnel/localGatewayInterface": local_gateway_interface +"/compute:beta/VpnGatewayStatusTunnel/peerGatewayInterface": peer_gateway_interface +"/compute:beta/VpnGatewayStatusTunnel/tunnelUrl": tunnel_url +"/compute:beta/VpnGatewayStatusVpnConnection": vpn_gateway_status_vpn_connection +"/compute:beta/VpnGatewayStatusVpnConnection/peerExternalGateway": peer_external_gateway +"/compute:beta/VpnGatewayStatusVpnConnection/peerGcpGateway": peer_gcp_gateway +"/compute:beta/VpnGatewayStatusVpnConnection/state": state +"/compute:beta/VpnGatewayStatusVpnConnection/tunnels": tunnels +"/compute:beta/VpnGatewayStatusVpnConnection/tunnels/tunnel": tunnel "/compute:beta/VpnGatewayVpnGatewayInterface": vpn_gateway_vpn_gateway_interface "/compute:beta/VpnGatewayVpnGatewayInterface/id": id "/compute:beta/VpnGatewayVpnGatewayInterface/ipAddress": ip_address +"/compute:beta/VpnGatewaysGetStatusResponse": vpn_gateways_get_status_response +"/compute:beta/VpnGatewaysGetStatusResponse/result": result "/compute:beta/VpnGatewaysScopedList": vpn_gateways_scoped_list "/compute:beta/VpnGatewaysScopedList/vpnGateways": vpn_gateways "/compute:beta/VpnGatewaysScopedList/vpnGateways/vpn_gateway": vpn_gateway @@ -32454,6 +32986,10 @@ "/compute:beta/compute.instanceGroupManagers.aggregatedList/orderBy": order_by "/compute:beta/compute.instanceGroupManagers.aggregatedList/pageToken": page_token "/compute:beta/compute.instanceGroupManagers.aggregatedList/project": project +"/compute:beta/compute.instanceGroupManagers.applyUpdatesToInstances": apply_instance_group_manager_updates_to_instances +"/compute:beta/compute.instanceGroupManagers.applyUpdatesToInstances/instanceGroupManager": instance_group_manager +"/compute:beta/compute.instanceGroupManagers.applyUpdatesToInstances/project": project +"/compute:beta/compute.instanceGroupManagers.applyUpdatesToInstances/zone": zone "/compute:beta/compute.instanceGroupManagers.delete": delete_instance_group_manager "/compute:beta/compute.instanceGroupManagers.delete/instanceGroupManager": instance_group_manager "/compute:beta/compute.instanceGroupManagers.delete/project": project @@ -33302,6 +33838,11 @@ "/compute:beta/compute.regionCommitments.updateAllocations/project": project "/compute:beta/compute.regionCommitments.updateAllocations/region": region "/compute:beta/compute.regionCommitments.updateAllocations/requestId": request_id +"/compute:beta/compute.regionCommitments.updateReservations": update_region_commitment_reservations +"/compute:beta/compute.regionCommitments.updateReservations/commitment": commitment +"/compute:beta/compute.regionCommitments.updateReservations/project": project +"/compute:beta/compute.regionCommitments.updateReservations/region": region +"/compute:beta/compute.regionCommitments.updateReservations/requestId": request_id "/compute:beta/compute.regionDiskTypes.get": get_region_disk_type "/compute:beta/compute.regionDiskTypes.get/diskType": disk_type "/compute:beta/compute.regionDiskTypes.get/project": project @@ -33376,6 +33917,10 @@ "/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/project": project "/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/region": region "/compute:beta/compute.regionInstanceGroupManagers.abandonInstances/requestId": request_id +"/compute:beta/compute.regionInstanceGroupManagers.applyUpdatesToInstances": apply_region_instance_group_manager_updates_to_instances +"/compute:beta/compute.regionInstanceGroupManagers.applyUpdatesToInstances/instanceGroupManager": instance_group_manager +"/compute:beta/compute.regionInstanceGroupManagers.applyUpdatesToInstances/project": project +"/compute:beta/compute.regionInstanceGroupManagers.applyUpdatesToInstances/region": region "/compute:beta/compute.regionInstanceGroupManagers.delete": delete_region_instance_group_manager "/compute:beta/compute.regionInstanceGroupManagers.delete/instanceGroupManager": instance_group_manager "/compute:beta/compute.regionInstanceGroupManagers.delete/project": project @@ -33501,6 +34046,49 @@ "/compute:beta/compute.regions.list/orderBy": order_by "/compute:beta/compute.regions.list/pageToken": page_token "/compute:beta/compute.regions.list/project": project +"/compute:beta/compute.reservations.aggregatedList": aggregated_reservation_list +"/compute:beta/compute.reservations.aggregatedList/filter": filter +"/compute:beta/compute.reservations.aggregatedList/maxResults": max_results +"/compute:beta/compute.reservations.aggregatedList/orderBy": order_by +"/compute:beta/compute.reservations.aggregatedList/pageToken": page_token +"/compute:beta/compute.reservations.aggregatedList/project": project +"/compute:beta/compute.reservations.delete": delete_reservation +"/compute:beta/compute.reservations.delete/project": project +"/compute:beta/compute.reservations.delete/requestId": request_id +"/compute:beta/compute.reservations.delete/reservation": reservation +"/compute:beta/compute.reservations.delete/zone": zone +"/compute:beta/compute.reservations.get": get_reservation +"/compute:beta/compute.reservations.get/project": project +"/compute:beta/compute.reservations.get/reservation": reservation +"/compute:beta/compute.reservations.get/zone": zone +"/compute:beta/compute.reservations.getIamPolicy": get_reservation_iam_policy +"/compute:beta/compute.reservations.getIamPolicy/project": project +"/compute:beta/compute.reservations.getIamPolicy/resource": resource +"/compute:beta/compute.reservations.getIamPolicy/zone": zone +"/compute:beta/compute.reservations.insert": insert_reservation +"/compute:beta/compute.reservations.insert/project": project +"/compute:beta/compute.reservations.insert/requestId": request_id +"/compute:beta/compute.reservations.insert/zone": zone +"/compute:beta/compute.reservations.list": list_reservations +"/compute:beta/compute.reservations.list/filter": filter +"/compute:beta/compute.reservations.list/maxResults": max_results +"/compute:beta/compute.reservations.list/orderBy": order_by +"/compute:beta/compute.reservations.list/pageToken": page_token +"/compute:beta/compute.reservations.list/project": project +"/compute:beta/compute.reservations.list/zone": zone +"/compute:beta/compute.reservations.resize": resize_reservation +"/compute:beta/compute.reservations.resize/project": project +"/compute:beta/compute.reservations.resize/requestId": request_id +"/compute:beta/compute.reservations.resize/reservation": reservation +"/compute:beta/compute.reservations.resize/zone": zone +"/compute:beta/compute.reservations.setIamPolicy": set_reservation_iam_policy +"/compute:beta/compute.reservations.setIamPolicy/project": project +"/compute:beta/compute.reservations.setIamPolicy/resource": resource +"/compute:beta/compute.reservations.setIamPolicy/zone": zone +"/compute:beta/compute.reservations.testIamPermissions": test_reservation_iam_permissions +"/compute:beta/compute.reservations.testIamPermissions/project": project +"/compute:beta/compute.reservations.testIamPermissions/resource": resource +"/compute:beta/compute.reservations.testIamPermissions/zone": zone "/compute:beta/compute.resourcePolicies.aggregatedList": aggregated_resource_policy_list "/compute:beta/compute.resourcePolicies.aggregatedList/filter": filter "/compute:beta/compute.resourcePolicies.aggregatedList/maxResults": max_results @@ -34079,6 +34667,10 @@ "/compute:beta/compute.vpnGateways.get/project": project "/compute:beta/compute.vpnGateways.get/region": region "/compute:beta/compute.vpnGateways.get/vpnGateway": vpn_gateway +"/compute:beta/compute.vpnGateways.getStatus": get_vpn_gateway_status +"/compute:beta/compute.vpnGateways.getStatus/project": project +"/compute:beta/compute.vpnGateways.getStatus/region": region +"/compute:beta/compute.vpnGateways.getStatus/vpnGateway": vpn_gateway "/compute:beta/compute.vpnGateways.insert": insert_vpn_gateway "/compute:beta/compute.vpnGateways.insert/project": project "/compute:beta/compute.vpnGateways.insert/region": region @@ -35060,6 +35652,8 @@ "/compute:v1/Instance/selfLink": self_link "/compute:v1/Instance/serviceAccounts": service_accounts "/compute:v1/Instance/serviceAccounts/service_account": service_account +"/compute:v1/Instance/shieldedInstanceConfig": shielded_instance_config +"/compute:v1/Instance/shieldedInstanceIntegrityPolicy": shielded_instance_integrity_policy "/compute:v1/Instance/startRestricted": start_restricted "/compute:v1/Instance/status": status "/compute:v1/Instance/statusMessage": status_message @@ -36460,6 +37054,19 @@ "/compute:v1/ServiceAccount/email": email "/compute:v1/ServiceAccount/scopes": scopes "/compute:v1/ServiceAccount/scopes/scope": scope +"/compute:v1/ShieldedInstanceConfig": shielded_instance_config +"/compute:v1/ShieldedInstanceConfig/enableIntegrityMonitoring": enable_integrity_monitoring +"/compute:v1/ShieldedInstanceConfig/enableSecureBoot": enable_secure_boot +"/compute:v1/ShieldedInstanceConfig/enableVtpm": enable_vtpm +"/compute:v1/ShieldedInstanceIdentity": shielded_instance_identity +"/compute:v1/ShieldedInstanceIdentity/encryptionKey": encryption_key +"/compute:v1/ShieldedInstanceIdentity/kind": kind +"/compute:v1/ShieldedInstanceIdentity/signingKey": signing_key +"/compute:v1/ShieldedInstanceIdentityEntry": shielded_instance_identity_entry +"/compute:v1/ShieldedInstanceIdentityEntry/ekCert": ek_cert +"/compute:v1/ShieldedInstanceIdentityEntry/ekPub": ek_pub +"/compute:v1/ShieldedInstanceIntegrityPolicy": shielded_instance_integrity_policy +"/compute:v1/ShieldedInstanceIntegrityPolicy/updateAutoLearnPolicy": update_auto_learn_policy "/compute:v1/SignedUrlKey": signed_url_key "/compute:v1/SignedUrlKey/keyName": key_name "/compute:v1/SignedUrlKey/keyValue": key_value @@ -37780,6 +38387,10 @@ "/compute:v1/compute.instances.getSerialPortOutput/project": project "/compute:v1/compute.instances.getSerialPortOutput/start": start "/compute:v1/compute.instances.getSerialPortOutput/zone": zone +"/compute:v1/compute.instances.getShieldedInstanceIdentity": get_instance_shielded_instance_identity +"/compute:v1/compute.instances.getShieldedInstanceIdentity/instance": instance +"/compute:v1/compute.instances.getShieldedInstanceIdentity/project": project +"/compute:v1/compute.instances.getShieldedInstanceIdentity/zone": zone "/compute:v1/compute.instances.insert": insert_instance "/compute:v1/compute.instances.insert/project": project "/compute:v1/compute.instances.insert/requestId": request_id @@ -37857,6 +38468,11 @@ "/compute:v1/compute.instances.setServiceAccount/project": project "/compute:v1/compute.instances.setServiceAccount/requestId": request_id "/compute:v1/compute.instances.setServiceAccount/zone": zone +"/compute:v1/compute.instances.setShieldedInstanceIntegrityPolicy": set_instance_shielded_instance_integrity_policy +"/compute:v1/compute.instances.setShieldedInstanceIntegrityPolicy/instance": instance +"/compute:v1/compute.instances.setShieldedInstanceIntegrityPolicy/project": project +"/compute:v1/compute.instances.setShieldedInstanceIntegrityPolicy/requestId": request_id +"/compute:v1/compute.instances.setShieldedInstanceIntegrityPolicy/zone": zone "/compute:v1/compute.instances.setTags": set_instance_tags "/compute:v1/compute.instances.setTags/instance": instance "/compute:v1/compute.instances.setTags/project": project @@ -37897,6 +38513,11 @@ "/compute:v1/compute.instances.updateNetworkInterface/project": project "/compute:v1/compute.instances.updateNetworkInterface/requestId": request_id "/compute:v1/compute.instances.updateNetworkInterface/zone": zone +"/compute:v1/compute.instances.updateShieldedInstanceConfig": update_instance_shielded_instance_config +"/compute:v1/compute.instances.updateShieldedInstanceConfig/instance": instance +"/compute:v1/compute.instances.updateShieldedInstanceConfig/project": project +"/compute:v1/compute.instances.updateShieldedInstanceConfig/requestId": request_id +"/compute:v1/compute.instances.updateShieldedInstanceConfig/zone": zone "/compute:v1/compute.interconnectAttachments.aggregatedList": aggregated_interconnect_attachment_list "/compute:v1/compute.interconnectAttachments.aggregatedList/filter": filter "/compute:v1/compute.interconnectAttachments.aggregatedList/maxResults": max_results @@ -47395,6 +48016,7 @@ "/dataproc:v1beta2/GceClusterConfig/metadata": metadata "/dataproc:v1beta2/GceClusterConfig/metadata/metadatum": metadatum "/dataproc:v1beta2/GceClusterConfig/networkUri": network_uri +"/dataproc:v1beta2/GceClusterConfig/reservationAffinity": reservation_affinity "/dataproc:v1beta2/GceClusterConfig/serviceAccount": service_account "/dataproc:v1beta2/GceClusterConfig/serviceAccountScopes": service_account_scopes "/dataproc:v1beta2/GceClusterConfig/serviceAccountScopes/service_account_scope": service_account_scope @@ -47609,6 +48231,11 @@ "/dataproc:v1beta2/RegexValidation": regex_validation "/dataproc:v1beta2/RegexValidation/regexes": regexes "/dataproc:v1beta2/RegexValidation/regexes/regex": regex +"/dataproc:v1beta2/ReservationAffinity": reservation_affinity +"/dataproc:v1beta2/ReservationAffinity/consumeReservationType": consume_reservation_type +"/dataproc:v1beta2/ReservationAffinity/key": key +"/dataproc:v1beta2/ReservationAffinity/values": values +"/dataproc:v1beta2/ReservationAffinity/values/value": value "/dataproc:v1beta2/SecurityConfig": security_config "/dataproc:v1beta2/SecurityConfig/kerberosConfig": kerberos_config "/dataproc:v1beta2/SetIamPolicyRequest": set_iam_policy_request diff --git a/generated/google/apis/cloudasset_v1.rb b/generated/google/apis/cloudasset_v1.rb new file mode 100644 index 000000000..35d4592cc --- /dev/null +++ b/generated/google/apis/cloudasset_v1.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/cloudasset_v1/service.rb' +require 'google/apis/cloudasset_v1/classes.rb' +require 'google/apis/cloudasset_v1/representations.rb' + +module Google + module Apis + # Cloud Asset API + # + # The cloud asset API manages the history and inventory of cloud resources. + # + # @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview + module CloudassetV1 + VERSION = 'V1' + REVISION = '20190321' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/cloudasset_v1/classes.rb b/generated/google/apis/cloudasset_v1/classes.rb new file mode 100644 index 000000000..b5435aed1 --- /dev/null +++ b/generated/google/apis/cloudasset_v1/classes.rb @@ -0,0 +1,805 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudassetV1 + + # Cloud asset. This includes all Google Cloud Platform resources, + # Cloud IAM policies, and other non-GCP assets. + class Asset + include Google::Apis::Core::Hashable + + # Type of the asset. Example: "compute.googleapis.com/Disk". + # Corresponds to the JSON property `assetType` + # @return [String] + attr_accessor :asset_type + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `iamPolicy` + # @return [Google::Apis::CloudassetV1::Policy] + attr_accessor :iam_policy + + # The full name of the asset. For example: + # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ + # instance1`. + # See [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + # for more information. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Representation of a cloud resource. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::CloudassetV1::Resource] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_type = args[:asset_type] if args.key?(:asset_type) + @iam_policy = args[:iam_policy] if args.key?(:iam_policy) + @name = args[:name] if args.key?(:name) + @resource = args[:resource] if args.key?(:resource) + end + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # `, + # ` + # "log_type": "ADMIN_READ", + # ` + # ] + # `, + # ` + # "service": "fooservice.googleapis.com" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:bar@gmail.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts foo@gmail.com from DATA_READ logging, and + # bar@gmail.com from DATA_WRITE logging. + class AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. + # Example: + # ` + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # ` + # ] + # ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # foo@gmail.com from DATA_READ logging. + class AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + + # Batch get assets history response. + class BatchGetAssetsHistoryResponse + include Google::Apis::Core::Hashable + + # A list of assets with valid time windows. + # Corresponds to the JSON property `assets` + # @return [Array] + attr_accessor :assets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @assets = args[:assets] if args.key?(:assets) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudassetV1::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Export asset request. + class ExportAssetsRequest + include Google::Apis::Core::Hashable + + # A list of asset types of which to take a snapshot for. For example: + # "compute.googleapis.com/Disk". If specified, only matching assets will be + # returned. + # See [Introduction to Cloud Asset + # Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset- + # inventory/overview) + # for all supported asset types. + # Corresponds to the JSON property `assetTypes` + # @return [Array] + attr_accessor :asset_types + + # Asset content type. If not specified, no content but the asset name will be + # returned. + # Corresponds to the JSON property `contentType` + # @return [String] + attr_accessor :content_type + + # Output configuration for export assets destination. + # Corresponds to the JSON property `outputConfig` + # @return [Google::Apis::CloudassetV1::OutputConfig] + attr_accessor :output_config + + # Timestamp to take an asset snapshot. This can only be set to a timestamp + # between 2018-10-02 UTC (inclusive) and the current time. If not specified, + # the current time will be used. Due to delays in resource data collection + # and indexing, there is a volatile window during which running the same + # query may get different results. + # Corresponds to the JSON property `readTime` + # @return [String] + attr_accessor :read_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_types = args[:asset_types] if args.key?(:asset_types) + @content_type = args[:content_type] if args.key?(:content_type) + @output_config = args[:output_config] if args.key?(:output_config) + @read_time = args[:read_time] if args.key?(:read_time) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # A Cloud Storage location. + class GcsDestination + include Google::Apis::Core::Hashable + + # The uri of the Cloud Storage object. It's the same uri that is used by + # gsutil. For example: "gs://bucket_name/object_name". See [Viewing and + # Editing Object + # Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata) + # for more information. + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri = args[:uri] if args.key?(:uri) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::CloudassetV1::Status] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # Output configuration for export assets destination. + class OutputConfig + include Google::Apis::Core::Hashable + + # A Cloud Storage location. + # Corresponds to the JSON property `gcsDestination` + # @return [Google::Apis::CloudassetV1::GcsDestination] + attr_accessor :gcs_destination + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class Policy + include Google::Apis::Core::Hashable + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Deprecated. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Representation of a cloud resource. + class Resource + include Google::Apis::Core::Hashable + + # The content of the resource, in which some sensitive fields are scrubbed + # away and may not be present. + # Corresponds to the JSON property `data` + # @return [Hash] + attr_accessor :data + + # The URL of the discovery document containing the resource's JSON schema. + # For example: + # `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. + # It will be left unspecified for resources without a discovery-based API, + # such as Cloud Bigtable. + # Corresponds to the JSON property `discoveryDocumentUri` + # @return [String] + attr_accessor :discovery_document_uri + + # The JSON schema name listed in the discovery document. + # Example: "Project". It will be left unspecified for resources (such as + # Cloud Bigtable) without a discovery-based API. + # Corresponds to the JSON property `discoveryName` + # @return [String] + attr_accessor :discovery_name + + # The full name of the immediate parent of this resource. See + # [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + # for more information. + # For GCP assets, it is the parent resource defined in the [Cloud IAM policy + # hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). + # For example: + # `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. + # For third-party assets, it is up to the users to define. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # The REST URL for accessing the resource. An HTTP GET operation using this + # URL returns the resource itself. + # Example: + # `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. + # It will be left unspecified for resources without a REST API. + # Corresponds to the JSON property `resourceUrl` + # @return [String] + attr_accessor :resource_url + + # The API version. Example: "v1". + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data = args[:data] if args.key?(:data) + @discovery_document_uri = args[:discovery_document_uri] if args.key?(:discovery_document_uri) + @discovery_name = args[:discovery_name] if args.key?(:discovery_name) + @parent = args[:parent] if args.key?(:parent) + @resource_url = args[:resource_url] if args.key?(:resource_url) + @version = args[:version] if args.key?(:version) + end + end + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # 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) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Temporal asset. In addition to the asset, the temporal asset includes the + # status of the asset and valid from and to time of it. + class TemporalAsset + include Google::Apis::Core::Hashable + + # Cloud asset. This includes all Google Cloud Platform resources, + # Cloud IAM policies, and other non-GCP assets. + # Corresponds to the JSON property `asset` + # @return [Google::Apis::CloudassetV1::Asset] + attr_accessor :asset + + # If the asset is deleted or not. + # Corresponds to the JSON property `deleted` + # @return [Boolean] + attr_accessor :deleted + alias_method :deleted?, :deleted + + # A time window of (start_time, end_time]. + # Corresponds to the JSON property `window` + # @return [Google::Apis::CloudassetV1::TimeWindow] + attr_accessor :window + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset = args[:asset] if args.key?(:asset) + @deleted = args[:deleted] if args.key?(:deleted) + @window = args[:window] if args.key?(:window) + end + end + + # A time window of (start_time, end_time]. + class TimeWindow + include Google::Apis::Core::Hashable + + # End time of the time window (inclusive). + # Current timestamp if not specified. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Start time of the time window (exclusive). + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + end + end +end diff --git a/generated/google/apis/cloudasset_v1/representations.rb b/generated/google/apis/cloudasset_v1/representations.rb new file mode 100644 index 000000000..4dcf56c0c --- /dev/null +++ b/generated/google/apis/cloudasset_v1/representations.rb @@ -0,0 +1,263 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudassetV1 + + class Asset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BatchGetAssetsHistoryResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ExportAssetsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GcsDestination + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OutputConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Resource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TemporalAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TimeWindow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Asset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_type, as: 'assetType' + property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation + + property :name, as: 'name' + property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation + + end + end + + class AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudassetV1::AuditLogConfig, decorator: Google::Apis::CloudassetV1::AuditLogConfig::Representation + + property :service, as: 'service' + end + end + + class AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + + class BatchGetAssetsHistoryResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :assets, as: 'assets', class: Google::Apis::CloudassetV1::TemporalAsset, decorator: Google::Apis::CloudassetV1::TemporalAsset::Representation + + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudassetV1::Expr, decorator: Google::Apis::CloudassetV1::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class ExportAssetsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :asset_types, as: 'assetTypes' + property :content_type, as: 'contentType' + property :output_config, as: 'outputConfig', class: Google::Apis::CloudassetV1::OutputConfig, decorator: Google::Apis::CloudassetV1::OutputConfig::Representation + + property :read_time, as: 'readTime' + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GcsDestination + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :uri, as: 'uri' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::CloudassetV1::Status, decorator: Google::Apis::CloudassetV1::Status::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class OutputConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_destination, as: 'gcsDestination', class: Google::Apis::CloudassetV1::GcsDestination, decorator: Google::Apis::CloudassetV1::GcsDestination::Representation + + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudassetV1::AuditConfig, decorator: Google::Apis::CloudassetV1::AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::CloudassetV1::Binding, decorator: Google::Apis::CloudassetV1::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class Resource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :data, as: 'data' + property :discovery_document_uri, as: 'discoveryDocumentUri' + property :discovery_name, as: 'discoveryName' + property :parent, as: 'parent' + property :resource_url, as: 'resourceUrl' + property :version, as: 'version' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class TemporalAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset, as: 'asset', class: Google::Apis::CloudassetV1::Asset, decorator: Google::Apis::CloudassetV1::Asset::Representation + + property :deleted, as: 'deleted' + property :window, as: 'window', class: Google::Apis::CloudassetV1::TimeWindow, decorator: Google::Apis::CloudassetV1::TimeWindow::Representation + + end + end + + class TimeWindow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + end + end +end diff --git a/generated/google/apis/cloudasset_v1/service.rb b/generated/google/apis/cloudasset_v1/service.rb new file mode 100644 index 000000000..d84b0ae34 --- /dev/null +++ b/generated/google/apis/cloudasset_v1/service.rb @@ -0,0 +1,190 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudassetV1 + # Cloud Asset API + # + # The cloud asset API manages the history and inventory of cloud resources. + # + # @example + # require 'google/apis/cloudasset_v1' + # + # Cloudasset = Google::Apis::CloudassetV1 # Alias the module + # service = Cloudasset::CloudAssetService.new + # + # @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview + class CloudAssetService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # 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. + attr_accessor :quota_user + + def initialize + super('https://cloudasset.googleapis.com/', '') + @batch_path = 'batch' + end + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudassetV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudassetV1::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 get_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudassetV1::Operation::Representation + command.response_class = Google::Apis::CloudassetV1::Operation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Batch gets the update history of assets that overlap a time window. + # For RESOURCE content, this API outputs history with asset in both + # non-delete or deleted status. + # For IAM_POLICY content, this API outputs history when the asset and its + # attached IAM POLICY both exist. This can create gaps in the output history. + # If a specified asset does not exist, this API returns an INVALID_ARGUMENT + # error. + # @param [String] parent + # Required. The relative name of the root asset. It can only be an + # organization number (such as "organizations/123"), a project ID (such as + # "projects/my-project-id")", or a project number (such as "projects/12345"). + # @param [Array, String] asset_names + # A list of the full names of the assets. For example: + # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/ + # instance1`. + # See [Resource + # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + # and [Resource Name Format](https://cloud.google.com/resource-manager/docs/ + # cloud-asset-inventory/resource-name-format) + # for more info. + # The request becomes a no-op if the asset name list is empty, and the max + # size of the asset name list is 100 in one request. + # @param [String] content_type + # Required. The content type. + # @param [String] read_time_window_end_time + # End time of the time window (inclusive). + # Current timestamp if not specified. + # @param [String] read_time_window_start_time + # Start time of the time window (exclusive). + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse] + # + # @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 batch_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}:batchGetAssetsHistory', options) + command.response_representation = Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse::Representation + command.response_class = Google::Apis::CloudassetV1::BatchGetAssetsHistoryResponse + command.params['parent'] = parent unless parent.nil? + command.query['assetNames'] = asset_names unless asset_names.nil? + command.query['contentType'] = content_type unless content_type.nil? + command.query['readTimeWindow.endTime'] = read_time_window_end_time unless read_time_window_end_time.nil? + command.query['readTimeWindow.startTime'] = read_time_window_start_time unless read_time_window_start_time.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Exports assets with time and resource types to a given Cloud Storage + # location. The output format is newline-delimited JSON. + # This API implements the google.longrunning.Operation API allowing you + # to keep track of the export. + # @param [String] parent + # Required. The relative name of the root asset. This can only be an + # organization number (such as "organizations/123"), a project ID (such as + # "projects/my-project-id"), or a project number (such as "projects/12345"), + # or a folder number (such as "folders/123"). + # @param [Google::Apis::CloudassetV1::ExportAssetsRequest] export_assets_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudassetV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudassetV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def export_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}:exportAssets', options) + command.request_representation = Google::Apis::CloudassetV1::ExportAssetsRequest::Representation + command.request_object = export_assets_request_object + command.response_representation = Google::Apis::CloudassetV1::Operation::Representation + command.response_class = Google::Apis::CloudassetV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudasset_v1beta1.rb b/generated/google/apis/cloudasset_v1beta1.rb index 3e996c0d0..978faa113 100644 --- a/generated/google/apis/cloudasset_v1beta1.rb +++ b/generated/google/apis/cloudasset_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview module CloudassetV1beta1 VERSION = 'V1beta1' - REVISION = '20190311' + REVISION = '20190321' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2.rb b/generated/google/apis/cloudtasks_v2.rb index ac0fdb456..01eb1420e 100644 --- a/generated/google/apis/cloudtasks_v2.rb +++ b/generated/google/apis/cloudtasks_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2 VERSION = 'V2' - REVISION = '20190228' + REVISION = '20190314' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2/classes.rb b/generated/google/apis/cloudtasks_v2/classes.rb index 28eed6476..edd47fea8 100644 --- a/generated/google/apis/cloudtasks_v2/classes.rb +++ b/generated/google/apis/cloudtasks_v2/classes.rb @@ -22,6 +22,504 @@ module Google module Apis module CloudtasksV2 + # App Engine HTTP request. + # The message defines the HTTP request that is sent to an App Engine app when + # the task is dispatched. + # This proto can only be used for tasks in a queue which has + # app_engine_http_queue set. + # Using AppEngineHttpRequest requires + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) + # Google IAM permission for the project + # and the following scope: + # `https://www.googleapis.com/auth/cloud-platform` + # The task will be delivered to the App Engine app which belongs to the same + # project as the queue. For more information, see + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) + # and how routing is affected by + # [dispatch + # files](https://cloud.google.com/appengine/docs/python/config/dispatchref). + # Traffic is encrypted during transport and never leaves Google datacenters. + # Because this traffic is carried over a communication mechanism internal to + # Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). + # The request to the handler, however, will appear to have used the HTTP + # protocol. + # The AppEngineRouting used to construct the URL that the task is + # delivered to can be set at the queue-level or task-level: + # * If set, + # app_engine_routing_override + # is used for all tasks in the queue, no matter what the setting + # is for the + # task-level app_engine_routing. + # The `url` that the task will be sent to is: + # * `url =` host `+` + # relative_uri + # Tasks can be dispatched to secure app handlers, unsecure app handlers, and + # URIs restricted with + # [`login: + # admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). + # Because tasks are not run as any user, they cannot be dispatched to URIs + # restricted with + # [`login: + # required`](https://cloud.google.com/appengine/docs/standard/python/config/ + # appref) + # Task dispatches also do not follow redirects. + # The task attempt has succeeded if the app's request handler returns + # an HTTP response code in the range [`200` - `299`]. `503` is + # considered an App Engine system error instead of an application + # error. Requests returning error `503` will be retried regardless of + # retry configuration and not counted against retry counts. + # Any other response code or a failure to receive a response before the + # deadline is a failed attempt. + class AppEngineHttpRequest + include Google::Apis::Core::Hashable + + # App Engine Routing. + # Defines routing characteristics specific to App Engine - service, version, + # and instance. + # For more information about services, versions, and instances see + # [An Overview of App + # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine), + # [Microservices Architecture on Google App + # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app- + # engine), + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed), + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). + # Corresponds to the JSON property `appEngineRouting` + # @return [Google::Apis::CloudtasksV2::AppEngineRouting] + attr_accessor :app_engine_routing + + # HTTP request body. + # A request body is allowed only if the HTTP method is POST or PUT. It is + # an error to set a body on a task with an incompatible HttpMethod. + # Corresponds to the JSON property `body` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :body + + # HTTP request headers. + # This map contains the header field names and values. + # Headers can be set when the + # task is created. + # Repeated headers are not supported but a header value can contain commas. + # Cloud Tasks sets some headers to default values: + # * `User-Agent`: By default, this header is + # `"AppEngine-Google; (+http://code.google.com/appengine)"`. + # This header can be modified, but Cloud Tasks will append + # `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + # modified `User-Agent`. + # If the task has a body, Cloud + # Tasks sets the following headers: + # * `Content-Type`: By default, the `Content-Type` header is set to + # `"application/octet-stream"`. The default can be overridden by explicitly + # setting `Content-Type` to a particular media type when the + # task is created. + # For example, `Content-Type` can be set to `"application/json"`. + # * `Content-Length`: This is computed by Cloud Tasks. This value is + # output only. It cannot be changed. + # The headers below cannot be set or overridden: + # * `Host` + # * `X-Google-*` + # * `X-AppEngine-*` + # In addition, Cloud Tasks sets some headers when the task is dispatched, + # such as headers containing information about the task; see + # [request + # headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/ + # creating-handlers#reading_request_headers). + # These headers are set only when the task is dispatched, so they are not + # visible when the task is returned in a Cloud Tasks response. + # Although there is no specific limit for the maximum number of headers or + # the size, there is a limit on the maximum size of the Task. For more + # information, see the CreateTask documentation. + # Corresponds to the JSON property `headers` + # @return [Hash] + attr_accessor :headers + + # The HTTP method to use for the request. The default is POST. + # The app's request handler for the task's target URL must be able to handle + # HTTP requests with this http_method, otherwise the task attempt will fail + # with error code 405 (Method Not Allowed). See + # [Writing a push task request + # handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating- + # handlers#writing_a_push_task_request_handler) + # and the documentation for the request handlers in the language your app is + # written in e.g. + # [Python Request + # Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/ + # requesthandlerclass). + # Corresponds to the JSON property `httpMethod` + # @return [String] + attr_accessor :http_method + + # The relative URI. + # The relative URI must begin with "/" and must be a valid HTTP relative URI. + # It can contain a path and query string arguments. + # If the relative URI is empty, then the root path "/" will be used. + # No spaces are allowed, and the maximum length allowed is 2083 characters. + # Corresponds to the JSON property `relativeUri` + # @return [String] + attr_accessor :relative_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_routing = args[:app_engine_routing] if args.key?(:app_engine_routing) + @body = args[:body] if args.key?(:body) + @headers = args[:headers] if args.key?(:headers) + @http_method = args[:http_method] if args.key?(:http_method) + @relative_uri = args[:relative_uri] if args.key?(:relative_uri) + end + end + + # App Engine Routing. + # Defines routing characteristics specific to App Engine - service, version, + # and instance. + # For more information about services, versions, and instances see + # [An Overview of App + # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine), + # [Microservices Architecture on Google App + # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app- + # engine), + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed), + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). + class AppEngineRouting + include Google::Apis::Core::Hashable + + # Output only. The host that the task is sent to. + # The host is constructed from the domain name of the app associated with + # the queue's project ID (for example .appspot.com), and the + # service, version, + # and instance. Tasks which were created using + # the App Engine SDK might have a custom domain name. + # For more information, see + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed). + # Corresponds to the JSON property `host` + # @return [String] + attr_accessor :host + + # App instance. + # By default, the task is sent to an instance which is available when + # the task is attempted. + # Requests can only be sent to a specific instance if + # [manual scaling is used in App Engine + # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine?hl=en_US#scaling_types_and_instance_classes). + # App Engine Flex does not support instances. For more information, see + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + # App service. + # By default, the task is sent to the service which is the default + # service when the task is attempted. + # For some queues or tasks which were created using the App Engine + # Task Queue API, host is not parsable + # into service, + # version, and + # instance. For example, some tasks + # which were created using the App Engine SDK use a custom domain + # name; custom domains are not parsed by Cloud Tasks. If + # host is not parsable, then + # service, + # version, and + # instance are the empty string. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # App version. + # By default, the task is sent to the version which is the default + # version when the task is attempted. + # For some queues or tasks which were created using the App Engine + # Task Queue API, host is not parsable + # into service, + # version, and + # instance. For example, some tasks + # which were created using the App Engine SDK use a custom domain + # name; custom domains are not parsed by Cloud Tasks. If + # host is not parsable, then + # service, + # version, and + # instance are the empty string. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @host = args[:host] if args.key?(:host) + @instance = args[:instance] if args.key?(:instance) + @service = args[:service] if args.key?(:service) + @version = args[:version] if args.key?(:version) + end + end + + # The status of a task attempt. + class Attempt + include Google::Apis::Core::Hashable + + # Output only. The time that this attempt was dispatched. + # `dispatch_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `dispatchTime` + # @return [String] + attr_accessor :dispatch_time + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `responseStatus` + # @return [Google::Apis::CloudtasksV2::Status] + attr_accessor :response_status + + # Output only. The time that this attempt response was received. + # `response_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `responseTime` + # @return [String] + attr_accessor :response_time + + # Output only. The time that this attempt was scheduled. + # `schedule_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `scheduleTime` + # @return [String] + attr_accessor :schedule_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dispatch_time = args[:dispatch_time] if args.key?(:dispatch_time) + @response_status = args[:response_status] if args.key?(:response_status) + @response_time = args[:response_time] if args.key?(:response_time) + @schedule_time = args[:schedule_time] if args.key?(:schedule_time) + end + end + + # Associates `members` with a `role`. + class Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudtasksV2::Expr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Request message for CreateTask. + class CreateTaskRequest + include Google::Apis::Core::Hashable + + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # Corresponds to the JSON property `responseView` + # @return [String] + attr_accessor :response_view + + # A unit of scheduled work. + # Corresponds to the JSON property `task` + # @return [Google::Apis::CloudtasksV2::Task] + attr_accessor :task + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_view = args[:response_view] if args.key?(:response_view) + @task = args[:task] if args.key?(:task) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class Expr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + + # Request message for `GetIamPolicy` method. + class GetIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # The response message for Locations.ListLocations. class ListLocationsResponse include Google::Apis::Core::Hashable @@ -47,6 +545,65 @@ module Google end end + # Response message for ListQueues. + class ListQueuesResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. + # To return the next page of results, call + # ListQueues with this value as the + # page_token. + # If the next_page_token is empty, there are no more results. + # The page token is valid for only 2 hours. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of queues. + # Corresponds to the JSON property `queues` + # @return [Array] + attr_accessor :queues + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @queues = args[:queues] if args.key?(:queues) + end + end + + # Response message for listing tasks using ListTasks. + class ListTasksResponse + include Google::Apis::Core::Hashable + + # A token to retrieve next page of results. + # To return the next page of results, call + # ListTasks with this value as the + # page_token. + # If the next_page_token is empty, there are no more results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of tasks. + # Corresponds to the JSON property `tasks` + # @return [Array] + attr_accessor :tasks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @tasks = args[:tasks] if args.key?(:tasks) + end + end + # A resource that represents Google Cloud Platform location. class Location include Google::Apis::Core::Hashable @@ -93,6 +650,783 @@ module Google @name = args[:name] if args.key?(:name) end end + + # Request message for PauseQueue. + class PauseQueueRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class Policy + include Google::Apis::Core::Hashable + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Deprecated. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Request message for PurgeQueue. + class PurgeQueueRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A queue is a container of related tasks. Queues are configured to manage + # how those tasks are dispatched. Configurable properties include rate limits, + # retry options, queue types, and others. + class Queue + include Google::Apis::Core::Hashable + + # App Engine Routing. + # Defines routing characteristics specific to App Engine - service, version, + # and instance. + # For more information about services, versions, and instances see + # [An Overview of App + # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine), + # [Microservices Architecture on Google App + # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app- + # engine), + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed), + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). + # Corresponds to the JSON property `appEngineRoutingOverride` + # @return [Google::Apis::CloudtasksV2::AppEngineRouting] + attr_accessor :app_engine_routing_override + + # Caller-specified and required in CreateQueue, + # after which it becomes output only. + # The queue name. + # The queue name must have the following format: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), colons (:), or periods (.). + # For more information, see + # [Identifying + # projects](https://cloud.google.com/resource-manager/docs/creating-managing- + # projects#identifying_projects) + # * `LOCATION_ID` is the canonical ID for the queue's location. + # The list of available locations can be obtained by calling + # ListLocations. + # For more information, see https://cloud.google.com/about/locations/. + # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + # hyphens (-). The maximum length is 100 characters. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The last time this queue was purged. + # All tasks that were created before this time + # were purged. + # A queue can be purged using PurgeQueue, the + # [App Engine Task Queue SDK, or the Cloud + # Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/ + # push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + # Purge time will be truncated to the nearest microsecond. Purge + # time will be unset if the queue has never been purged. + # Corresponds to the JSON property `purgeTime` + # @return [String] + attr_accessor :purge_time + + # Rate limits. + # This message determines the maximum rate that tasks can be dispatched by a + # queue, regardless of whether the dispatch is a first task attempt or a retry. + # Note: The debugging command, RunTask, will run a task + # even if the queue has reached its RateLimits. + # Corresponds to the JSON property `rateLimits` + # @return [Google::Apis::CloudtasksV2::RateLimits] + attr_accessor :rate_limits + + # Retry config. + # These settings determine when a failed task attempt is retried. + # Corresponds to the JSON property `retryConfig` + # @return [Google::Apis::CloudtasksV2::RetryConfig] + attr_accessor :retry_config + + # Output only. The state of the queue. + # `state` can only be changed by called + # PauseQueue, + # ResumeQueue, or uploading + # [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/ + # queueref). + # UpdateQueue cannot be used to change `state`. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override) + @name = args[:name] if args.key?(:name) + @purge_time = args[:purge_time] if args.key?(:purge_time) + @rate_limits = args[:rate_limits] if args.key?(:rate_limits) + @retry_config = args[:retry_config] if args.key?(:retry_config) + @state = args[:state] if args.key?(:state) + end + end + + # Rate limits. + # This message determines the maximum rate that tasks can be dispatched by a + # queue, regardless of whether the dispatch is a first task attempt or a retry. + # Note: The debugging command, RunTask, will run a task + # even if the queue has reached its RateLimits. + class RateLimits + include Google::Apis::Core::Hashable + + # Output only. The max burst size. + # Max burst size limits how fast tasks in queue are processed when + # many tasks are in the queue and the rate is high. This field + # allows the queue to have a high rate so processing starts shortly + # after a task is enqueued, but still limits resource usage when + # many tasks are enqueued in a short period of time. + # The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + # algorithm is used to control the rate of task dispatches. Each + # queue has a token bucket that holds tokens, up to the maximum + # specified by `max_burst_size`. Each time a task is dispatched, a + # token is removed from the bucket. Tasks will be dispatched until + # the queue's bucket runs out of tokens. The bucket will be + # continuously refilled with new tokens based on + # max_dispatches_per_second. + # Cloud Tasks will pick the value of `max_burst_size` based on the + # value of + # max_dispatches_per_second. + # For App Engine queues that were created or updated using + # `queue.yaml/xml`, `max_burst_size` is equal to + # [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#bucket_size). + # Since `max_burst_size` is output only, if + # UpdateQueue is called on a queue + # created by `queue.yaml/xml`, `max_burst_size` will be reset based + # on the value of + # max_dispatches_per_second, + # regardless of whether + # max_dispatches_per_second + # is updated. + # Corresponds to the JSON property `maxBurstSize` + # @return [Fixnum] + attr_accessor :max_burst_size + + # The maximum number of concurrent tasks that Cloud Tasks allows + # to be dispatched for this queue. After this threshold has been + # reached, Cloud Tasks stops dispatching tasks until the number of + # concurrent requests decreases. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # The maximum allowed value is 5,000. + # This field has the same meaning as + # [max_concurrent_requests in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#max_concurrent_requests). + # Corresponds to the JSON property `maxConcurrentDispatches` + # @return [Fixnum] + attr_accessor :max_concurrent_dispatches + + # The maximum rate at which tasks are dispatched from this queue. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # * For App Engine queues, the maximum allowed value + # is 500. + # This field has the same meaning as + # [rate in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#rate). + # Corresponds to the JSON property `maxDispatchesPerSecond` + # @return [Float] + attr_accessor :max_dispatches_per_second + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size) + @max_concurrent_dispatches = args[:max_concurrent_dispatches] if args.key?(:max_concurrent_dispatches) + @max_dispatches_per_second = args[:max_dispatches_per_second] if args.key?(:max_dispatches_per_second) + end + end + + # Request message for ResumeQueue. + class ResumeQueueRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Retry config. + # These settings determine when a failed task attempt is retried. + class RetryConfig + include Google::Apis::Core::Hashable + + # Number of attempts per task. + # Cloud Tasks will attempt the task `max_attempts` times (that is, if the + # first attempt fails, then there will be `max_attempts - 1` retries). Must + # be >= -1. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # -1 indicates unlimited attempts. + # This field has the same meaning as + # [task_retry_limit in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). + # Corresponds to the JSON property `maxAttempts` + # @return [Fixnum] + attr_accessor :max_attempts + + # A task will be scheduled for retry between + # min_backoff and + # max_backoff duration after it fails, + # if the queue's RetryConfig specifies that the task should be + # retried. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # `max_backoff` will be truncated to the nearest second. + # This field has the same meaning as + # [max_backoff_seconds in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). + # Corresponds to the JSON property `maxBackoff` + # @return [String] + attr_accessor :max_backoff + + # The time between retries will double `max_doublings` times. + # A task's retry interval starts at + # min_backoff, then doubles + # `max_doublings` times, then increases linearly, and finally + # retries retries at intervals of + # max_backoff up to + # max_attempts times. + # For example, if min_backoff is 10s, + # max_backoff is 300s, and + # `max_doublings` is 3, then the a task will first be retried in + # 10s. The retry interval will double three times, and then + # increase linearly by 2^3 * 10s. Finally, the task will retry at + # intervals of max_backoff until the + # task has been attempted max_attempts + # times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, + # 240s, 300s, 300s, .... + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # This field has the same meaning as + # [max_doublings in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). + # Corresponds to the JSON property `maxDoublings` + # @return [Fixnum] + attr_accessor :max_doublings + + # If positive, `max_retry_duration` specifies the time limit for + # retrying a failed task, measured from when the task was first + # attempted. Once `max_retry_duration` time has passed *and* the + # task has been attempted max_attempts + # times, no further attempts will be made and the task will be + # deleted. + # If zero, then the task age is unlimited. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # `max_retry_duration` will be truncated to the nearest second. + # This field has the same meaning as + # [task_age_limit in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). + # Corresponds to the JSON property `maxRetryDuration` + # @return [String] + attr_accessor :max_retry_duration + + # A task will be scheduled for retry between + # min_backoff and + # max_backoff duration after it fails, + # if the queue's RetryConfig specifies that the task should be + # retried. + # If unspecified when the queue is created, Cloud Tasks will pick the + # default. + # `min_backoff` will be truncated to the nearest second. + # This field has the same meaning as + # [min_backoff_seconds in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). + # Corresponds to the JSON property `minBackoff` + # @return [String] + attr_accessor :min_backoff + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_attempts = args[:max_attempts] if args.key?(:max_attempts) + @max_backoff = args[:max_backoff] if args.key?(:max_backoff) + @max_doublings = args[:max_doublings] if args.key?(:max_doublings) + @max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration) + @min_backoff = args[:min_backoff] if args.key?(:min_backoff) + end + end + + # Request message for forcing a task to run now using + # RunTask. + class RunTaskRequest + include Google::Apis::Core::Hashable + + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # Corresponds to the JSON property `responseView` + # @return [String] + attr_accessor :response_view + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @response_view = args[:response_view] if args.key?(:response_view) + end + end + + # Request message for `SetIamPolicy` method. + class SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::CloudtasksV2::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + end + end + + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # 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) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # A unit of scheduled work. + class Task + include Google::Apis::Core::Hashable + + # App Engine HTTP request. + # The message defines the HTTP request that is sent to an App Engine app when + # the task is dispatched. + # This proto can only be used for tasks in a queue which has + # app_engine_http_queue set. + # Using AppEngineHttpRequest requires + # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- + # api/access-control) + # Google IAM permission for the project + # and the following scope: + # `https://www.googleapis.com/auth/cloud-platform` + # The task will be delivered to the App Engine app which belongs to the same + # project as the queue. For more information, see + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) + # and how routing is affected by + # [dispatch + # files](https://cloud.google.com/appengine/docs/python/config/dispatchref). + # Traffic is encrypted during transport and never leaves Google datacenters. + # Because this traffic is carried over a communication mechanism internal to + # Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). + # The request to the handler, however, will appear to have used the HTTP + # protocol. + # The AppEngineRouting used to construct the URL that the task is + # delivered to can be set at the queue-level or task-level: + # * If set, + # app_engine_routing_override + # is used for all tasks in the queue, no matter what the setting + # is for the + # task-level app_engine_routing. + # The `url` that the task will be sent to is: + # * `url =` host `+` + # relative_uri + # Tasks can be dispatched to secure app handlers, unsecure app handlers, and + # URIs restricted with + # [`login: + # admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). + # Because tasks are not run as any user, they cannot be dispatched to URIs + # restricted with + # [`login: + # required`](https://cloud.google.com/appengine/docs/standard/python/config/ + # appref) + # Task dispatches also do not follow redirects. + # The task attempt has succeeded if the app's request handler returns + # an HTTP response code in the range [`200` - `299`]. `503` is + # considered an App Engine system error instead of an application + # error. Requests returning error `503` will be retried regardless of + # retry configuration and not counted against retry counts. + # Any other response code or a failure to receive a response before the + # deadline is a failed attempt. + # Corresponds to the JSON property `appEngineHttpRequest` + # @return [Google::Apis::CloudtasksV2::AppEngineHttpRequest] + attr_accessor :app_engine_http_request + + # Output only. The time that the task was created. + # `create_time` will be truncated to the nearest second. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The number of attempts dispatched. + # This count includes attempts which have been dispatched but haven't + # received a response. + # Corresponds to the JSON property `dispatchCount` + # @return [Fixnum] + attr_accessor :dispatch_count + + # The deadline for requests sent to the worker. If the worker does not + # respond by this deadline then the request is cancelled and the attempt + # is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the + # task according to the RetryConfig. + # Note that when the request is cancelled, Cloud Tasks will stop listing for + # the response, but whether the worker stops processing depends on the + # worker. For example, if the worker is stuck, it may not react to cancelled + # requests. + # The default and maximum values depend on the type of request: + # * For App Engine tasks, 0 indicates that the + # request has the default deadline. The default deadline depends on the + # [scaling + # type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are- + # managed#instance_scaling) + # of the service: 10 minutes for standard apps with automatic scaling, 24 + # hours for standard apps with manual and basic scaling, and 60 minutes for + # flex apps. If the request deadline is set, it must be in the interval [15 + # seconds, 24 hours 15 seconds]. Regardless of the task's + # `dispatch_deadline`, the app handler will not run for longer than than + # the service's timeout. We recommend setting the `dispatch_deadline` to + # at most a few seconds more than the app handler's timeout. For more + # information see + # [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers# + # timeouts). + # `dispatch_deadline` will be truncated to the nearest millisecond. The + # deadline is an approximate deadline. + # Corresponds to the JSON property `dispatchDeadline` + # @return [String] + attr_accessor :dispatch_deadline + + # The status of a task attempt. + # Corresponds to the JSON property `firstAttempt` + # @return [Google::Apis::CloudtasksV2::Attempt] + attr_accessor :first_attempt + + # The status of a task attempt. + # Corresponds to the JSON property `lastAttempt` + # @return [Google::Apis::CloudtasksV2::Attempt] + attr_accessor :last_attempt + + # Optionally caller-specified in CreateTask. + # The task name. + # The task name must have the following format: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), colons (:), or periods (.). + # For more information, see + # [Identifying + # projects](https://cloud.google.com/resource-manager/docs/creating-managing- + # projects#identifying_projects) + # * `LOCATION_ID` is the canonical ID for the task's location. + # The list of available locations can be obtained by calling + # ListLocations. + # For more information, see https://cloud.google.com/about/locations/. + # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + # hyphens (-). The maximum length is 100 characters. + # * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), or underscores (_). The maximum length is 500 characters. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The number of attempts which have received a response. + # Corresponds to the JSON property `responseCount` + # @return [Fixnum] + attr_accessor :response_count + + # The time when the task is scheduled to be attempted. + # For App Engine queues, this is when the task will be attempted or retried. + # `schedule_time` will be truncated to the nearest microsecond. + # Corresponds to the JSON property `scheduleTime` + # @return [String] + attr_accessor :schedule_time + + # Output only. The view specifies which subset of the Task has + # been returned. + # Corresponds to the JSON property `view` + # @return [String] + attr_accessor :view + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request) + @create_time = args[:create_time] if args.key?(:create_time) + @dispatch_count = args[:dispatch_count] if args.key?(:dispatch_count) + @dispatch_deadline = args[:dispatch_deadline] if args.key?(:dispatch_deadline) + @first_attempt = args[:first_attempt] if args.key?(:first_attempt) + @last_attempt = args[:last_attempt] if args.key?(:last_attempt) + @name = args[:name] if args.key?(:name) + @response_count = args[:response_count] if args.key?(:response_count) + @schedule_time = args[:schedule_time] if args.key?(:schedule_time) + @view = args[:view] if args.key?(:view) + end + end + + # Request message for `TestIamPermissions` method. + class TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end end end end diff --git a/generated/google/apis/cloudtasks_v2/representations.rb b/generated/google/apis/cloudtasks_v2/representations.rb index 78bbc5a20..444eba0c3 100644 --- a/generated/google/apis/cloudtasks_v2/representations.rb +++ b/generated/google/apis/cloudtasks_v2/representations.rb @@ -22,18 +22,230 @@ module Google module Apis module CloudtasksV2 + class AppEngineHttpRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AppEngineRouting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Attempt + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreateTaskRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Expr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListLocationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListQueuesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListTasksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Location class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class PauseQueueRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PurgeQueueRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Queue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RateLimits + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResumeQueueRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RetryConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RunTaskRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Task + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AppEngineHttpRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_routing, as: 'appEngineRouting', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation + + property :body, :base64 => true, as: 'body' + hash :headers, as: 'headers' + property :http_method, as: 'httpMethod' + property :relative_uri, as: 'relativeUri' + end + end + + class AppEngineRouting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :host, as: 'host' + property :instance, as: 'instance' + property :service, as: 'service' + property :version, as: 'version' + end + end + + class Attempt + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :dispatch_time, as: 'dispatchTime' + property :response_status, as: 'responseStatus', class: Google::Apis::CloudtasksV2::Status, decorator: Google::Apis::CloudtasksV2::Status::Representation + + property :response_time, as: 'responseTime' + property :schedule_time, as: 'scheduleTime' + end + end + + class Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudtasksV2::Expr, decorator: Google::Apis::CloudtasksV2::Expr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class CreateTaskRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_view, as: 'responseView' + property :task, as: 'task', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Expr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + + class GetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class ListLocationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -43,6 +255,24 @@ module Google end end + class ListQueuesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :queues, as: 'queues', class: Google::Apis::CloudtasksV2::Queue, decorator: Google::Apis::CloudtasksV2::Queue::Representation + + end + end + + class ListTasksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :tasks, as: 'tasks', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation + + end + end + class Location # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -53,6 +283,126 @@ module Google property :name, as: 'name' end end + + class PauseQueueRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::CloudtasksV2::Binding, decorator: Google::Apis::CloudtasksV2::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class PurgeQueueRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class Queue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_routing_override, as: 'appEngineRoutingOverride', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation + + property :name, as: 'name' + property :purge_time, as: 'purgeTime' + property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2::RateLimits, decorator: Google::Apis::CloudtasksV2::RateLimits::Representation + + property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2::RetryConfig, decorator: Google::Apis::CloudtasksV2::RetryConfig::Representation + + property :state, as: 'state' + end + end + + class RateLimits + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_burst_size, as: 'maxBurstSize' + property :max_concurrent_dispatches, as: 'maxConcurrentDispatches' + property :max_dispatches_per_second, as: 'maxDispatchesPerSecond' + end + end + + class ResumeQueueRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class RetryConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_attempts, as: 'maxAttempts' + property :max_backoff, as: 'maxBackoff' + property :max_doublings, as: 'maxDoublings' + property :max_retry_duration, as: 'maxRetryDuration' + property :min_backoff, as: 'minBackoff' + end + end + + class RunTaskRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :response_view, as: 'responseView' + end + end + + class SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::CloudtasksV2::Policy, decorator: Google::Apis::CloudtasksV2::Policy::Representation + + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class Task + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2::AppEngineHttpRequest::Representation + + property :create_time, as: 'createTime' + property :dispatch_count, as: 'dispatchCount' + property :dispatch_deadline, as: 'dispatchDeadline' + property :first_attempt, as: 'firstAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation + + property :last_attempt, as: 'lastAttempt', class: Google::Apis::CloudtasksV2::Attempt, decorator: Google::Apis::CloudtasksV2::Attempt::Representation + + property :name, as: 'name' + property :response_count, as: 'responseCount' + property :schedule_time, as: 'scheduleTime' + property :view, as: 'view' + end + end + + class TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end end end end diff --git a/generated/google/apis/cloudtasks_v2/service.rb b/generated/google/apis/cloudtasks_v2/service.rb index 0b065e078..553a81e7c 100644 --- a/generated/google/apis/cloudtasks_v2/service.rb +++ b/generated/google/apis/cloudtasks_v2/service.rb @@ -115,6 +115,734 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Creates a queue. + # Queues created with this method allow tasks to live for a maximum of 31 + # days. After a task is 31 days old, the task will be deleted regardless of + # whether + # it was dispatched or not. + # WARNING: Using this method may have unintended side effects if you are + # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + # Read + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) + # before using this method. + # @param [String] parent + # Required. + # The location name in which the queue will be created. + # For example: `projects/PROJECT_ID/locations/LOCATION_ID` + # The list of allowed locations can be obtained by calling Cloud + # Tasks' implementation of + # ListLocations. + # @param [Google::Apis::CloudtasksV2::Queue] queue_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Queue] + # + # @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 create_project_location_queue(parent, queue_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/queues', options) + command.request_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.request_object = queue_object + command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2::Queue + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a queue. + # This command will delete the queue even if it has tasks in it. + # Note: If you delete a queue, a queue with the same name can't be created + # for 7 days. + # WARNING: Using this method may have unintended side effects if you are + # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + # Read + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) + # before using this method. + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Empty] + # + # @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_project_location_queue(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2::Empty::Representation + command.response_class = Google::Apis::CloudtasksV2::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a queue. + # @param [String] name + # Required. + # The resource name of the queue. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Queue] + # + # @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_project_location_queue(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a Queue. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # Authorization requires the following + # [Google IAM](https://cloud.google.com/iam) permission on the specified + # resource parent: + # * `cloudtasks.queues.getIamPolicy` + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudtasksV2::GetIamPolicyRequest] get_iam_policy_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Policy] + # + # @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_queue_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::CloudtasksV2::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::CloudtasksV2::Policy::Representation + command.response_class = Google::Apis::CloudtasksV2::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists queues. + # Queues are returned in lexicographical order. + # @param [String] parent + # Required. + # The location name. + # For example: `projects/PROJECT_ID/locations/LOCATION_ID` + # @param [String] filter + # `filter` can be used to specify a subset of queues. Any Queue + # field can be used as a filter and several operators as supported. + # For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + # described in + # [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/ + # view/advanced_filters). + # Sample filter "state: PAUSED". + # Note that using filters might cause fewer queues than the + # requested page_size to be returned. + # @param [Fixnum] page_size + # Requested page size. + # The maximum page size is 9800. If unspecified, the page size will + # be the maximum. Fewer queues than requested might be returned, + # even if more queues exist; use the + # next_page_token in the + # response to determine if more queues exist. + # @param [String] page_token + # A token identifying the page of results to return. + # To request the first page results, page_token must be empty. To + # request the next page of results, page_token must be the value of + # next_page_token returned + # from the previous call to ListQueues + # method. It is an error to switch the value of the + # filter while iterating through pages. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::ListQueuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::ListQueuesResponse] + # + # @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_project_location_queues(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/queues', options) + command.response_representation = Google::Apis::CloudtasksV2::ListQueuesResponse::Representation + command.response_class = Google::Apis::CloudtasksV2::ListQueuesResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Updates a queue. + # This method creates the queue if it does not exist and updates + # the queue if it does exist. + # Queues created with this method allow tasks to live for a maximum of 31 + # days. After a task is 31 days old, the task will be deleted regardless of + # whether + # it was dispatched or not. + # WARNING: Using this method may have unintended side effects if you are + # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + # Read + # [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/ + # docs/queue-yaml) + # before using this method. + # @param [String] name + # Caller-specified and required in CreateQueue, + # after which it becomes output only. + # The queue name. + # The queue name must have the following format: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + # hyphens (-), colons (:), or periods (.). + # For more information, see + # [Identifying + # projects](https://cloud.google.com/resource-manager/docs/creating-managing- + # projects#identifying_projects) + # * `LOCATION_ID` is the canonical ID for the queue's location. + # The list of available locations can be obtained by calling + # ListLocations. + # For more information, see https://cloud.google.com/about/locations/. + # * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + # hyphens (-). The maximum length is 100 characters. + # @param [Google::Apis::CloudtasksV2::Queue] queue_object + # @param [String] update_mask + # A mask used to specify which fields of the queue are being updated. + # If empty, then all fields will be updated. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Queue] + # + # @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_project_location_queue(name, queue_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2/{+name}', options) + command.request_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.request_object = queue_object + command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2::Queue + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Pauses the queue. + # If a queue is paused then the system will stop dispatching tasks + # until the queue is resumed via + # ResumeQueue. Tasks can still be added + # when the queue is paused. A queue is paused if its + # state is PAUSED. + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + # @param [Google::Apis::CloudtasksV2::PauseQueueRequest] pause_queue_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Queue] + # + # @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 pause_queue(name, pause_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+name}:pause', options) + command.request_representation = Google::Apis::CloudtasksV2::PauseQueueRequest::Representation + command.request_object = pause_queue_request_object + command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Purges a queue by deleting all of its tasks. + # All tasks created before this method is called are permanently deleted. + # Purge operations can take up to one minute to take effect. Tasks + # might be dispatched before the purge takes effect. A purge is irreversible. + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + # @param [Google::Apis::CloudtasksV2::PurgeQueueRequest] purge_queue_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Queue] + # + # @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 purge_queue(name, purge_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+name}:purge', options) + command.request_representation = Google::Apis::CloudtasksV2::PurgeQueueRequest::Representation + command.request_object = purge_queue_request_object + command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Resume a queue. + # This method resumes a queue after it has been + # PAUSED or + # DISABLED. The state of a queue is stored + # in the queue's state; after calling this method it + # will be set to RUNNING. + # WARNING: Resuming many high-QPS queues at the same time can + # lead to target overloading. If you are resuming high-QPS + # queues, follow the 500/50/5 pattern described in + # [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/ + # manage-cloud-task-scaling). + # @param [String] name + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + # @param [Google::Apis::CloudtasksV2::ResumeQueueRequest] resume_queue_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Queue] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Queue] + # + # @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 resume_queue(name, resume_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+name}:resume', options) + command.request_representation = Google::Apis::CloudtasksV2::ResumeQueueRequest::Representation + command.request_object = resume_queue_request_object + command.response_representation = Google::Apis::CloudtasksV2::Queue::Representation + command.response_class = Google::Apis::CloudtasksV2::Queue + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy for a Queue. Replaces any existing + # policy. + # Note: The Cloud Console does not check queue-level IAM permissions yet. + # Project-level permissions are required to use the Cloud Console. + # Authorization requires the following + # [Google IAM](https://cloud.google.com/iam) permission on the specified + # resource parent: + # * `cloudtasks.queues.setIamPolicy` + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudtasksV2::SetIamPolicyRequest] set_iam_policy_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_queue_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudtasksV2::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::CloudtasksV2::Policy::Representation + command.response_class = Google::Apis::CloudtasksV2::Policy + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on a Queue. + # If the resource does not exist, this will return an empty set of + # permissions, not a NOT_FOUND error. + # Note: This operation is designed to be used for building permission-aware + # UIs and command-line tools, not for authorization checking. This operation + # may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudtasksV2::TestIamPermissionsRequest] test_iam_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::TestIamPermissionsResponse] + # + # @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_queue_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudtasksV2::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudtasksV2::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudtasksV2::TestIamPermissionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a task and adds it to a queue. + # Tasks cannot be updated after creation; there is no UpdateTask command. + # * For App Engine queues, the maximum task size is + # 100KB. + # @param [String] parent + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # The queue must already exist. + # @param [Google::Apis::CloudtasksV2::CreateTaskRequest] create_task_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Task] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Task] + # + # @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 create_task(parent, create_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+parent}/tasks', options) + command.request_representation = Google::Apis::CloudtasksV2::CreateTaskRequest::Representation + command.request_object = create_task_request_object + command.response_representation = Google::Apis::CloudtasksV2::Task::Representation + command.response_class = Google::Apis::CloudtasksV2::Task + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a task. + # A task can be deleted if it is scheduled or dispatched. A task + # cannot be deleted if it has executed successfully or permanently + # failed. + # @param [String] name + # Required. + # The task name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Empty] + # + # @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_project_location_queue_task(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2::Empty::Representation + command.response_class = Google::Apis::CloudtasksV2::Empty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a task. + # @param [String] name + # Required. + # The task name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # @param [String] response_view + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Task] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Task] + # + # @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_project_location_queue_task(name, response_view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::CloudtasksV2::Task::Representation + command.response_class = Google::Apis::CloudtasksV2::Task + command.params['name'] = name unless name.nil? + command.query['responseView'] = response_view unless response_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists the tasks in a queue. + # By default, only the BASIC view is retrieved + # due to performance considerations; + # response_view controls the + # subset of information which is returned. + # The tasks may be returned in any order. The ordering may change at any + # time. + # @param [String] parent + # Required. + # The queue name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # @param [Fixnum] page_size + # Requested page size. Fewer tasks than requested might be returned. + # The maximum page size is 1000. If unspecified, the page size will + # be the maximum. Fewer tasks than requested might be returned, + # even if more tasks exist; use + # next_page_token in the + # response to determine if more tasks exist. + # @param [String] page_token + # A token identifying the page of results to return. + # To request the first page results, page_token must be empty. To + # request the next page of results, page_token must be the value of + # next_page_token returned + # from the previous call to ListTasks + # method. + # The page token is valid for only 2 hours. + # @param [String] response_view + # The response_view specifies which subset of the Task will be + # returned. + # By default response_view is BASIC; not all + # information is retrieved by default because some data, such as + # payloads, might be desirable to return only when needed because + # of its large size or because of the sensitivity of data that it + # contains. + # Authorization for FULL requires + # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + # permission on the Task resource. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::ListTasksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::ListTasksResponse] + # + # @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_project_location_queue_tasks(parent, page_size: nil, page_token: nil, response_view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+parent}/tasks', options) + command.response_representation = Google::Apis::CloudtasksV2::ListTasksResponse::Representation + command.response_class = Google::Apis::CloudtasksV2::ListTasksResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['responseView'] = response_view unless response_view.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Forces a task to run now. + # When this method is called, Cloud Tasks will dispatch the task, even if + # the task is already running, the queue has reached its RateLimits or + # is PAUSED. + # This command is meant to be used for manual debugging. For + # example, RunTask can be used to retry a failed + # task after a fix has been made or to manually force a task to be + # dispatched now. + # The dispatched task is returned. That is, the task that is returned + # contains the status after the task is dispatched but + # before the task is received by its target. + # If Cloud Tasks receives a successful response from the task's + # target, then the task will be deleted; otherwise the task's + # schedule_time will be reset to the time that + # RunTask was called plus the retry delay specified + # in the queue's RetryConfig. + # RunTask returns + # NOT_FOUND when it is called on a + # task that has already succeeded or permanently failed. + # @param [String] name + # Required. + # The task name. For example: + # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # @param [Google::Apis::CloudtasksV2::RunTaskRequest] run_task_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudtasksV2::Task] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudtasksV2::Task] + # + # @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 run_task(name, run_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2/{+name}:run', options) + command.request_representation = Google::Apis::CloudtasksV2::RunTaskRequest::Representation + command.request_object = run_task_request_object + command.response_representation = Google::Apis::CloudtasksV2::Task::Representation + command.response_class = Google::Apis::CloudtasksV2::Task + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/cloudtasks_v2beta3.rb b/generated/google/apis/cloudtasks_v2beta3.rb index 5e4bc16d2..9a25d7b0b 100644 --- a/generated/google/apis/cloudtasks_v2beta3.rb +++ b/generated/google/apis/cloudtasks_v2beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta3 VERSION = 'V2beta3' - REVISION = '20190228' + REVISION = '20190314' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2beta3/classes.rb b/generated/google/apis/cloudtasks_v2beta3/classes.rb index a3c03d3ea..631c5a4e3 100644 --- a/generated/google/apis/cloudtasks_v2beta3/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta3/classes.rb @@ -40,14 +40,18 @@ module Google # Defines routing characteristics specific to App Engine - service, version, # and instance. # For more information about services, versions, and instances see - # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- - # overview-of-app-engine), - # [Microservices Architecture on Google App Engine](https://cloud.google.com/ - # appengine/docs/python/microservices-on-app-engine), - # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ - # standard/python/how-requests-are-routed), - # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ - # flexible/python/how-requests-are-routed). + # [An Overview of App + # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine), + # [Microservices Architecture on Google App + # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app- + # engine), + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed), + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). # Corresponds to the JSON property `appEngineRoutingOverride` # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting] attr_accessor :app_engine_routing_override @@ -75,11 +79,12 @@ module Google # `https://www.googleapis.com/auth/cloud-platform` # The task will be delivered to the App Engine app which belongs to the same # project as the queue. For more information, see - # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/ - # python/how-requests-are-routed) + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) # and how routing is affected by - # [dispatch files](https://cloud.google.com/appengine/docs/python/config/ - # dispatchref). + # [dispatch + # files](https://cloud.google.com/appengine/docs/python/config/dispatchref). # Traffic is encrypted during transport and never leaves Google datacenters. # Because this traffic is carried over a communication mechanism internal to # Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). @@ -97,12 +102,13 @@ module Google # relative_uri # Tasks can be dispatched to secure app handlers, unsecure app handlers, and # URIs restricted with - # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/ - # config/appref). + # [`login: + # admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). # Because tasks are not run as any user, they cannot be dispatched to URIs # restricted with - # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/ - # config/appref) + # [`login: + # required`](https://cloud.google.com/appengine/docs/standard/python/config/ + # appref) # Task dispatches also do not follow redirects. # The task attempt has succeeded if the app's request handler returns # an HTTP response code in the range [`200` - `299`]. `503` is @@ -118,14 +124,18 @@ module Google # Defines routing characteristics specific to App Engine - service, version, # and instance. # For more information about services, versions, and instances see - # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- - # overview-of-app-engine), - # [Microservices Architecture on Google App Engine](https://cloud.google.com/ - # appengine/docs/python/microservices-on-app-engine), - # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ - # standard/python/how-requests-are-routed), - # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ - # flexible/python/how-requests-are-routed). + # [An Overview of App + # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine), + # [Microservices Architecture on Google App + # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app- + # engine), + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed), + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). # Corresponds to the JSON property `appEngineRouting` # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting] attr_accessor :app_engine_routing @@ -164,8 +174,9 @@ module Google # * `X-AppEngine-*` # In addition, Cloud Tasks sets some headers when the task is dispatched, # such as headers containing information about the task; see - # [request headers](https://cloud.google.com/appengine/docs/python/taskqueue/ - # push/creating-handlers#reading_request_headers). + # [request + # headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/ + # creating-handlers#reading_request_headers). # These headers are set only when the task is dispatched, so they are not # visible when the task is returned in a Cloud Tasks response. # Although there is no specific limit for the maximum number of headers or @@ -179,12 +190,14 @@ module Google # The app's request handler for the task's target URL must be able to handle # HTTP requests with this http_method, otherwise the task attempt will fail # with error code 405 (Method Not Allowed). See - # [Writing a push task request handler](https://cloud.google.com/appengine/docs/ - # java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + # [Writing a push task request + # handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating- + # handlers#writing_a_push_task_request_handler) # and the documentation for the request handlers in the language your app is # written in e.g. - # [Python Request Handler](https://cloud.google.com/appengine/docs/python/tools/ - # webapp/requesthandlerclass). + # [Python Request + # Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/ + # requesthandlerclass). # Corresponds to the JSON property `httpMethod` # @return [String] attr_accessor :http_method @@ -216,14 +229,18 @@ module Google # Defines routing characteristics specific to App Engine - service, version, # and instance. # For more information about services, versions, and instances see - # [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an- - # overview-of-app-engine), - # [Microservices Architecture on Google App Engine](https://cloud.google.com/ - # appengine/docs/python/microservices-on-app-engine), - # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ - # standard/python/how-requests-are-routed), - # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ - # flexible/python/how-requests-are-routed). + # [An Overview of App + # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine), + # [Microservices Architecture on Google App + # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app- + # engine), + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed), + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). class AppEngineRouting include Google::Apis::Core::Hashable @@ -234,8 +251,9 @@ module Google # and instance. Tasks which were created using # the App Engine SDK might have a custom domain name. # For more information, see - # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/ - # python/how-requests-are-routed). + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed). # Corresponds to the JSON property `host` # @return [String] attr_accessor :host @@ -244,14 +262,16 @@ module Google # By default, the task is sent to an instance which is available when # the task is attempted. # Requests can only be sent to a specific instance if - # [manual scaling is used in App Engine Standard](https://cloud.google.com/ - # appengine/docs/python/an-overview-of-app-engine?hl=en_US# - # scaling_types_and_instance_classes). + # [manual scaling is used in App Engine + # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app- + # engine?hl=en_US#scaling_types_and_instance_classes). # App Engine Flex does not support instances. For more information, see - # [App Engine Standard request routing](https://cloud.google.com/appengine/docs/ - # standard/python/how-requests-are-routed) - # and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/ - # flexible/python/how-requests-are-routed). + # [App Engine Standard request + # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) + # and [App Engine Flex request + # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests- + # are-routed). # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance @@ -315,14 +335,14 @@ module Google # @return [String] attr_accessor :dispatch_time - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing @@ -807,8 +827,9 @@ module Google # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), # hyphens (-), colons (:), or periods (.). # For more information, see - # [Identifying projects](https://cloud.google.com/resource-manager/docs/ - # creating-managing-projects#identifying_projects) + # [Identifying + # projects](https://cloud.google.com/resource-manager/docs/creating-managing- + # projects#identifying_projects) # * `LOCATION_ID` is the canonical ID for the queue's location. # The list of available locations can be obtained by calling # ListLocations. @@ -823,9 +844,9 @@ module Google # All tasks that were created before this time # were purged. # A queue can be purged using PurgeQueue, the - # [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/ - # appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues# - # purging_all_tasks_from_a_queue). + # [App Engine Task Queue SDK, or the Cloud + # Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/ + # push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). # Purge time will be truncated to the nearest microsecond. Purge # time will be unset if the queue has never been purged. # Corresponds to the JSON property `purgeTime` @@ -922,8 +943,9 @@ module Google # default. # The maximum allowed value is 5,000. # This field has the same meaning as - # [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/ - # docs/standard/python/config/queueref#max_concurrent_requests). + # [max_concurrent_requests in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#max_concurrent_requests). # Corresponds to the JSON property `maxConcurrentDispatches` # @return [Fixnum] attr_accessor :max_concurrent_dispatches @@ -934,8 +956,9 @@ module Google # * For App Engine queues, the maximum allowed value # is 500. # This field has the same meaning as - # [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/ - # python/config/queueref#rate). + # [rate in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#rate). # Corresponds to the JSON property `maxDispatchesPerSecond` # @return [Float] attr_accessor :max_dispatches_per_second @@ -978,8 +1001,9 @@ module Google # default. # -1 indicates unlimited attempts. # This field has the same meaning as - # [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/ - # standard/python/config/queueref#retry_parameters). + # [task_retry_limit in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). # Corresponds to the JSON property `maxAttempts` # @return [Fixnum] attr_accessor :max_attempts @@ -993,8 +1017,9 @@ module Google # default. # `max_backoff` will be truncated to the nearest second. # This field has the same meaning as - # [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/ - # docs/standard/python/config/queueref#retry_parameters). + # [max_backoff_seconds in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). # Corresponds to the JSON property `maxBackoff` # @return [String] attr_accessor :max_backoff @@ -1018,8 +1043,9 @@ module Google # If unspecified when the queue is created, Cloud Tasks will pick the # default. # This field has the same meaning as - # [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/ - # standard/python/config/queueref#retry_parameters). + # [max_doublings in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). # Corresponds to the JSON property `maxDoublings` # @return [Fixnum] attr_accessor :max_doublings @@ -1035,8 +1061,9 @@ module Google # default. # `max_retry_duration` will be truncated to the nearest second. # This field has the same meaning as - # [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/ - # standard/python/config/queueref#retry_parameters). + # [task_age_limit in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). # Corresponds to the JSON property `maxRetryDuration` # @return [String] attr_accessor :max_retry_duration @@ -1050,8 +1077,9 @@ module Google # default. # `min_backoff` will be truncated to the nearest second. # This field has the same meaning as - # [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/ - # docs/standard/python/config/queueref#retry_parameters). + # [min_backoff_seconds in + # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ + # queueref#retry_parameters). # Corresponds to the JSON property `minBackoff` # @return [String] attr_accessor :min_backoff @@ -1154,14 +1182,14 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing @@ -1243,11 +1271,12 @@ module Google # `https://www.googleapis.com/auth/cloud-platform` # The task will be delivered to the App Engine app which belongs to the same # project as the queue. For more information, see - # [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/ - # python/how-requests-are-routed) + # [How Requests are + # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- + # are-routed) # and how routing is affected by - # [dispatch files](https://cloud.google.com/appengine/docs/python/config/ - # dispatchref). + # [dispatch + # files](https://cloud.google.com/appengine/docs/python/config/dispatchref). # Traffic is encrypted during transport and never leaves Google datacenters. # Because this traffic is carried over a communication mechanism internal to # Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). @@ -1265,12 +1294,13 @@ module Google # relative_uri # Tasks can be dispatched to secure app handlers, unsecure app handlers, and # URIs restricted with - # [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/ - # config/appref). + # [`login: + # admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). # Because tasks are not run as any user, they cannot be dispatched to URIs # restricted with - # [`login: required`](https://cloud.google.com/appengine/docs/standard/python/ - # config/appref) + # [`login: + # required`](https://cloud.google.com/appengine/docs/standard/python/config/ + # appref) # Task dispatches also do not follow redirects. # The task attempt has succeeded if the app's request handler returns # an HTTP response code in the range [`200` - `299`]. `503` is @@ -1307,8 +1337,9 @@ module Google # The default and maximum values depend on the type of request: # * For App Engine tasks, 0 indicates that the # request has the default deadline. The default deadline depends on the - # [scaling type](https://cloud.google.com/appengine/docs/standard/go/how- - # instances-are-managed#instance_scaling) + # [scaling + # type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are- + # managed#instance_scaling) # of the service: 10 minutes for standard apps with automatic scaling, 24 # hours for standard apps with manual and basic scaling, and 60 minutes for # flex apps. If the request deadline is set, it must be in the interval [15 @@ -1342,8 +1373,9 @@ module Google # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), # hyphens (-), colons (:), or periods (.). # For more information, see - # [Identifying projects](https://cloud.google.com/resource-manager/docs/ - # creating-managing-projects#identifying_projects) + # [Identifying + # projects](https://cloud.google.com/resource-manager/docs/creating-managing- + # projects#identifying_projects) # * `LOCATION_ID` is the canonical ID for the task's location. # The list of available locations can be obtained by calling # ListLocations. diff --git a/generated/google/apis/cloudtasks_v2beta3/service.rb b/generated/google/apis/cloudtasks_v2beta3/service.rb index cda13b8bc..6316b192a 100644 --- a/generated/google/apis/cloudtasks_v2beta3/service.rb +++ b/generated/google/apis/cloudtasks_v2beta3/service.rb @@ -360,8 +360,9 @@ module Google # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), # hyphens (-), colons (:), or periods (.). # For more information, see - # [Identifying projects](https://cloud.google.com/resource-manager/docs/ - # creating-managing-projects#identifying_projects) + # [Identifying + # projects](https://cloud.google.com/resource-manager/docs/creating-managing- + # projects#identifying_projects) # * `LOCATION_ID` is the canonical ID for the queue's location. # The list of available locations can be obtained by calling # ListLocations. diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 4fd42ee0c..0eb8bc1b8 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20190221' + REVISION = '20190308' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index 8e83909c2..ed07b28f3 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1069,439 +1069,8 @@ module Google end end - # Allocation resource - class Allocation - include Google::Apis::Core::Hashable - - # [OutputOnly] Full or partial url for parent commitment for allocations which - # are tied to a commitment. - # Corresponds to the JSON property `commitment` - # @return [String] - attr_accessor :commitment - - # [Output Only] Creation timestamp in RFC3339 text format. - # Corresponds to the JSON property `creationTimestamp` - # @return [String] - attr_accessor :creation_timestamp - - # An optional description of this resource. Provide this property when you - # create the resource. - # 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] Type of the resource. Always compute#allocations for allocations. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The name of the resource, provided by the client when initially creating the - # resource. The resource name must be 1-63 characters long, and comply with - # RFC1035. 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 `name` - # @return [String] - attr_accessor :name - - # [Output Only] Server-defined fully-qualified URL for this resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # [Output Only] Server-defined URL for this resource with the resource id. - # Corresponds to the JSON property `selfLinkWithId` - # @return [String] - attr_accessor :self_link_with_id - - # This allocation type allows to pre allocate specific instance configuration. - # Corresponds to the JSON property `specificAllocation` - # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation] - attr_accessor :specific_allocation - - # Indicates whether the allocation can be consumed by VMs with "any allocation" - # defined. If the field is set, then only VMs that target the allocation by name - # using --allocation-affinity can consume this allocation. - # Corresponds to the JSON property `specificAllocationRequired` - # @return [Boolean] - attr_accessor :specific_allocation_required - alias_method :specific_allocation_required?, :specific_allocation_required - - # Zone in which the allocation resides, must be provided if allocation is - # created with commitment creation. - # Corresponds to the JSON property `zone` - # @return [String] - attr_accessor :zone - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @commitment = args[:commitment] if args.key?(:commitment) - @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) - @self_link = args[:self_link] if args.key?(:self_link) - @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) - @specific_allocation = args[:specific_allocation] if args.key?(:specific_allocation) - @specific_allocation_required = args[:specific_allocation_required] if args.key?(:specific_allocation_required) - @zone = args[:zone] if args.key?(:zone) - end - end - - # AllocationAffinity is the configuration of desired allocation which this - # instance could take capacity from. - class AllocationAffinity - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `consumeAllocationType` - # @return [String] - attr_accessor :consume_allocation_type - - # Corresponds to the label key of allocation resource. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Corresponds to the label values of allocation resource. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consume_allocation_type = args[:consume_allocation_type] if args.key?(:consume_allocation_type) - @key = args[:key] if args.key?(:key) - @values = args[:values] if args.key?(:values) - end - end - - # Contains a list of allocations. - class AllocationAggregatedList - include Google::Apis::Core::Hashable - - # [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 Allocation resources. - # Corresponds to the JSON property `items` - # @return [Hash] - attr_accessor :items - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # [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] Informational warning message. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @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 - # - class AllocationList - include Google::Apis::Core::Hashable - - # [Output Only] The unique identifier for the resource. This identifier is - # defined by the server. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # [Output Only] A list of Allocation resources. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # [Output Only] Type of resource.Always compute#allocationsList for listsof - # allocations - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # [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] Informational warning message. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeAlpha::AllocationList::Warning] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @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 - - # This allocation type allows to pre allocate specific instance configuration. - class AllocationSpecificSkuAllocation - include Google::Apis::Core::Hashable - - # Specifies number of resources that are allocated. - # Corresponds to the JSON property `count` - # @return [Fixnum] - attr_accessor :count - - # [OutputOnly] Indicates how many resource are in use. - # Corresponds to the JSON property `inUseCount` - # @return [Fixnum] - attr_accessor :in_use_count - - # Properties of the SKU instances being reserved. - # Corresponds to the JSON property `instanceProperties` - # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties] - attr_accessor :instance_properties - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @count = args[:count] if args.key?(:count) - @in_use_count = args[:in_use_count] if args.key?(:in_use_count) - @instance_properties = args[:instance_properties] if args.key?(:instance_properties) - end - end - - # Properties of the SKU instances being reserved. - class AllocationSpecificSkuAllocationAllocatedInstanceProperties - include Google::Apis::Core::Hashable - - # Specifies accelerator type and count. - # Corresponds to the JSON property `guestAccelerators` - # @return [Array] - attr_accessor :guest_accelerators - - # Specifies amount of local ssd to reserve with each instance. The type of disk - # is local-ssd. - # Corresponds to the JSON property `localSsds` - # @return [Array] - attr_accessor :local_ssds - - # Specifies type of machine (name only) which has fixed number of vCPUs and - # fixed amount of memory. This also includes specifying custom machine type - # following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. - # Corresponds to the JSON property `machineType` - # @return [String] - attr_accessor :machine_type - - # Minimum cpu platform the allocation. - # Corresponds to the JSON property `minCpuPlatform` - # @return [String] - attr_accessor :min_cpu_platform - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) - @local_ssds = args[:local_ssds] if args.key?(:local_ssds) - @machine_type = args[:machine_type] if args.key?(:machine_type) - @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) - end - end - - # - class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk include Google::Apis::Core::Hashable # Specifies the size of the disk in base-2 GB. @@ -1527,15 +1096,32 @@ module Google end end - # - class AllocationsResizeRequest + # Properties of the SKU instances being reserved. + class AllocationSpecificSkuAllocationReservedInstanceProperties include Google::Apis::Core::Hashable - # Number of allocated resources can be resized with minimum = 1 and maximum = - # 1000. - # Corresponds to the JSON property `specificSkuCount` - # @return [Fixnum] - attr_accessor :specific_sku_count + # Specifies accelerator type and count. + # Corresponds to the JSON property `guestAccelerators` + # @return [Array] + attr_accessor :guest_accelerators + + # Specifies amount of local ssd to reserve with each instance. The type of disk + # is local-ssd. + # Corresponds to the JSON property `localSsds` + # @return [Array] + attr_accessor :local_ssds + + # Specifies type of machine (name only) which has fixed number of vCPUs and + # fixed amount of memory. This also includes specifying custom machine type + # following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # Minimum cpu platform the reservation. + # Corresponds to the JSON property `minCpuPlatform` + # @return [String] + attr_accessor :min_cpu_platform def initialize(**args) update!(**args) @@ -1543,24 +1129,31 @@ module Google # Update properties of this object def update!(**args) - @specific_sku_count = args[:specific_sku_count] if args.key?(:specific_sku_count) + @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) + @local_ssds = args[:local_ssds] if args.key?(:local_ssds) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) end end - # - class AllocationsScopedList + # This reservation type allows to pre allocate specific instance configuration. + class AllocationSpecificSkuReservation include Google::Apis::Core::Hashable - # A list of allocations contained in this scope. - # Corresponds to the JSON property `allocations` - # @return [Array] - attr_accessor :allocations + # Specifies number of resources that are allocated. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count - # Informational warning which replaces the list of allocations when the list is - # empty. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeAlpha::AllocationsScopedList::Warning] - attr_accessor :warning + # [OutputOnly] Indicates how many resource are in use. + # Corresponds to the JSON property `inUseCount` + # @return [Fixnum] + attr_accessor :in_use_count + + # Properties of the SKU instances being reserved. + # Corresponds to the JSON property `instanceProperties` + # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties] + attr_accessor :instance_properties def initialize(**args) update!(**args) @@ -1568,73 +1161,9 @@ module Google # Update properties of this object def update!(**args) - @allocations = args[:allocations] if args.key?(:allocations) - @warning = args[:warning] if args.key?(:warning) - end - - # Informational warning which replaces the list of allocations when the list is - # empty. - 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 + @count = args[:count] if args.key?(:count) + @in_use_count = args[:in_use_count] if args.key?(:in_use_count) + @instance_properties = args[:instance_properties] if args.key?(:instance_properties) end end @@ -1735,6 +1264,12 @@ module Google # @return [String] attr_accessor :saved_state + # Initial State for shielded instance, these are public keys which are safe to + # store in public + # Corresponds to the JSON property `shieldedInstanceInitialState` + # @return [Google::Apis::ComputeAlpha::InitialStateConfig] + attr_accessor :shielded_instance_initial_state + # Specifies a valid partial or full URL to an existing Persistent Disk resource. # When creating a new instance, one of initializeParams.sourceImage or disks. # source is required except for local SSD. @@ -1771,6 +1306,7 @@ module Google @licenses = args[:licenses] if args.key?(:licenses) @mode = args[:mode] if args.key?(:mode) @saved_state = args[:saved_state] if args.key?(:saved_state) + @shielded_instance_initial_state = args[:shielded_instance_initial_state] if args.key?(:shielded_instance_initial_state) @source = args[:source] if args.key?(:source) @type = args[:type] if args.key?(:type) end @@ -4406,11 +3942,6 @@ module Google class Commitment include Google::Apis::Core::Hashable - # List of allocations for this commitment. - # Corresponds to the JSON property `allocations` - # @return [Array] - attr_accessor :allocations - # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -4460,6 +3991,11 @@ module Google # @return [String] attr_accessor :region + # List of reservations for this commitment. + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations + # A list of commitment amounts for particular resources. Note that VCPU and # MEMORY resource commitments must occur together. # Corresponds to the JSON property `resources` @@ -4506,7 +4042,6 @@ module Google # Update properties of this object def update!(**args) - @allocations = args[:allocations] if args.key?(:allocations) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @end_timestamp = args[:end_timestamp] if args.key?(:end_timestamp) @@ -4515,6 +4050,7 @@ module Google @name = args[:name] if args.key?(:name) @plan = args[:plan] if args.key?(:plan) @region = args[:region] if args.key?(:region) + @reservations = args[:reservations] if args.key?(:reservations) @resources = args[:resources] if args.key?(:resources) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @@ -6897,6 +6433,32 @@ module Google end end + # + class FileContentBuffer + include Google::Apis::Core::Hashable + + # The raw content in the secure keys file. + # Corresponds to the JSON property `content` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :content + + # + # Corresponds to the JSON property `fileType` + # @return [String] + attr_accessor :file_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @file_type = args[:file_type] if args.key?(:file_type) + end + end + # Represents a Firewall resource. class Firewall include Google::Apis::Core::Hashable @@ -7494,6 +7056,23 @@ module Google # @return [String] attr_accessor :load_balancing_scheme + # Opaque filter criteria used by Loadbalancer to restrict routing configuration + # to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, + # xDS clients present node metadata. If a match takes place, the relevant + # routing configuration is made available to those proxies. + # For each metadataFilter in this list, if its filterMatchCriteria is set to + # MATCH_ANY, at least one of the filterLabels must match the corresponding label + # provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then + # all of its filterLabels must match with corresponding labels in the provided + # metadata. + # metadataFilters specified here can be overridden by those specified in the + # UrlMap that this ForwardingRule references. + # metadataFilters only applies to Loadbalancers that have their + # loadBalancingScheme set to INTERNAL_SELF_MANAGED. + # Corresponds to the JSON property `metadataFilters` + # @return [Array] + attr_accessor :metadata_filters + # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the # name must be 1-63 characters long and match the regular expression `[a-z]([-a- @@ -7627,6 +7206,7 @@ module Google @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme) + @metadata_filters = args[:metadata_filters] if args.key?(:metadata_filters) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_tier = args[:network_tier] if args.key?(:network_tier) @@ -10513,6 +10093,12 @@ module Google # @return [String] attr_accessor :self_link_with_id + # Initial State for shielded instance, these are public keys which are safe to + # store in public + # Corresponds to the JSON property `shieldedInstanceInitialState` + # @return [Google::Apis::ComputeAlpha::InitialStateConfig] + attr_accessor :shielded_instance_initial_state + # URL of the source disk used to create this image. This can be a full or valid # partial URL. You must provide either this property or the rawDisk.source # property but not both to create an image. For example, the following are valid @@ -10622,6 +10208,7 @@ module Google @raw_disk = args[:raw_disk] if args.key?(:raw_disk) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @shielded_instance_initial_state = args[:shielded_instance_initial_state] if args.key?(:shielded_instance_initial_state) @source_disk = args[:source_disk] if args.key?(:source_disk) @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key) @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) @@ -10789,17 +10376,49 @@ module Google end end + # Initial State for shielded instance, these are public keys which are safe to + # store in public + class InitialStateConfig + include Google::Apis::Core::Hashable + + # The Key Database (db). + # Corresponds to the JSON property `dbs` + # @return [Array] + attr_accessor :dbs + + # The forbidden key database (dbx). + # Corresponds to the JSON property `dbxs` + # @return [Array] + attr_accessor :dbxs + + # The Key Exchange Key (KEK). + # Corresponds to the JSON property `keks` + # @return [Array] + attr_accessor :keks + + # The Platform Key (PK). + # Corresponds to the JSON property `pk` + # @return [Google::Apis::ComputeAlpha::FileContentBuffer] + attr_accessor :pk + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @dbs = args[:dbs] if args.key?(:dbs) + @dbxs = args[:dbxs] if args.key?(:dbxs) + @keks = args[:keks] if args.key?(:keks) + @pk = args[:pk] if args.key?(:pk) + end + end + # An Instance resource. (== resource_for beta.instances ==) (== resource_for v1. # instances ==) class Instance include Google::Apis::Core::Hashable - # AllocationAffinity is the configuration of desired allocation which this - # instance could take capacity from. - # Corresponds to the JSON property `allocationAffinity` - # @return [Google::Apis::ComputeAlpha::AllocationAffinity] - attr_accessor :allocation_affinity - # Allows this instance to send and receive packets with non-matching destination # or source IPs. This is required if you plan to use this instance to forward # routes. For more information, see Enabling IP Forwarding. @@ -10936,6 +10555,12 @@ module Google # @return [Fixnum] attr_accessor :preserved_state_size_gb + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::ComputeAlpha::ReservationAffinity] + attr_accessor :reservation_affinity + # Resource policies applied to this instance. # Corresponds to the JSON property `resourcePolicies` # @return [Array] @@ -11034,7 +10659,6 @@ module Google # Update properties of this object def update!(**args) - @allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @@ -11055,6 +10679,7 @@ module Google @name = args[:name] if args.key?(:name) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) @preserved_state_size_gb = args[:preserved_state_size_gb] if args.key?(:preserved_state_size_gb) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @resource_policies = args[:resource_policies] if args.key?(:resource_policies) @scheduling = args[:scheduling] if args.key?(:scheduling) @self_link = args[:self_link] if args.key?(:self_link) @@ -12564,6 +12189,26 @@ module Google end end + # InstanceGroupManagers.patchPerInstanceConfigs + class InstanceGroupManagersPatchPerInstanceConfigsReq + include Google::Apis::Core::Hashable + + # The list of per-instance configs to insert or patch on this managed instance + # group. + # Corresponds to the JSON property `perInstanceConfigs` + # @return [Array] + attr_accessor :per_instance_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @per_instance_configs = args[:per_instance_configs] if args.key?(:per_instance_configs) + end + end + # class InstanceGroupManagersRecreateInstancesRequest include Google::Apis::Core::Hashable @@ -13387,12 +13032,6 @@ module Google class InstanceProperties include Google::Apis::Core::Hashable - # AllocationAffinity is the configuration of desired allocation which this - # instance could take capacity from. - # Corresponds to the JSON property `allocationAffinity` - # @return [Google::Apis::ComputeAlpha::AllocationAffinity] - attr_accessor :allocation_affinity - # Enables instances created based on this template to send packets with source # IP addresses other than their own and receive packets with destination IP # addresses other than their own. If these instances will be used as an IP @@ -13456,6 +13095,12 @@ module Google # @return [Array] attr_accessor :network_interfaces + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::ComputeAlpha::ReservationAffinity] + attr_accessor :reservation_affinity + # Sets the scheduling options for an Instance. # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeAlpha::Scheduling] @@ -13489,7 +13134,6 @@ module Google # Update properties of this object def update!(**args) - @allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) @@ -13500,6 +13144,7 @@ module Google @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @scheduling = args[:scheduling] if args.key?(:scheduling) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) @@ -17794,6 +17439,12 @@ module Google # @return [Hash] attr_accessor :annotations + # Optional fully qualified domain name of network endpoint. This can only be + # specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT. + # Corresponds to the JSON property `fqdn` + # @return [String] + attr_accessor :fqdn + # The name for a specific VM instance that the IP address belongs to. This is # required for network endpoints of type GCE_VM_IP_PORT. The instance must be in # the same zone of network endpoint group. @@ -17824,6 +17475,7 @@ module Google # Update properties of this object def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) + @fqdn = args[:fqdn] if args.key?(:fqdn) @instance = args[:instance] if args.key?(:instance) @ip_address = args[:ip_address] if args.key?(:ip_address) @port = args[:port] if args.key?(:port) @@ -20618,6 +20270,13 @@ module Google class NotificationEndpointGrpcSettings include Google::Apis::Core::Hashable + # Optional. If specified, this field is used to set the authority header by the + # sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2. + # 3 + # Corresponds to the JSON property `authority` + # @return [String] + attr_accessor :authority + # Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS # name. # Corresponds to the JSON property `endpoint` @@ -20643,6 +20302,7 @@ module Google # Update properties of this object def update!(**args) + @authority = args[:authority] if args.key?(:authority) @endpoint = args[:endpoint] if args.key?(:endpoint) @payload_name = args[:payload_name] if args.key?(:payload_name) @retry_duration_sec = args[:retry_duration_sec] if args.key?(:retry_duration_sec) @@ -21399,6 +21059,33 @@ module Google 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 + # Configuration for the origin authentication method. class OriginAuthenticationMethod include Google::Apis::Core::Hashable @@ -22627,14 +22314,14 @@ module Google end # - class RegionCommitmentsUpdateAllocationsRequest + class RegionCommitmentsUpdateReservationsRequest include Google::Apis::Core::Hashable - # List of allocations for the capacity move of VMs with accelerators and local + # List of reservations for the capacity move of VMs with accelerators and local # ssds. - # Corresponds to the JSON property `allocations` - # @return [Array] - attr_accessor :allocations + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations def initialize(**args) update!(**args) @@ -22642,7 +22329,7 @@ module Google # Update properties of this object def update!(**args) - @allocations = args[:allocations] if args.key?(:allocations) + @reservations = args[:reservations] if args.key?(:reservations) end end @@ -23084,6 +22771,26 @@ module Google end end + # RegionInstanceGroupManagers.patchPerInstanceConfigs + class RegionInstanceGroupManagerPatchInstanceConfigReq + include Google::Apis::Core::Hashable + + # The list of per-instance configs to insert or patch on this managed instance + # group. + # Corresponds to the JSON property `perInstanceConfigs` + # @return [Array] + attr_accessor :per_instance_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @per_instance_configs = args[:per_instance_configs] if args.key?(:per_instance_configs) + end + end + # RegionInstanceGroupManagers.updatePerInstanceConfigs class RegionInstanceGroupManagerUpdateInstanceConfigReq include Google::Apis::Core::Hashable @@ -23856,6 +23563,478 @@ module Google end end + # Reservation resource + class Reservation + include Google::Apis::Core::Hashable + + # [OutputOnly] Full or partial url for parent commitment for reservations which + # are tied to a commitment. + # Corresponds to the JSON property `commitment` + # @return [String] + attr_accessor :commitment + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # 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] Type of the resource. Always compute#reservations for + # reservations. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. 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 `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined fully-qualified URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + + # This reservation type allows to pre allocate specific instance configuration. + # Corresponds to the JSON property `specificReservation` + # @return [Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation] + attr_accessor :specific_reservation + + # Indicates whether the reservation can be consumed by VMs with "any reservation" + # defined. If the field is set, then only VMs that target the reservation by + # name using --reservation-affinity can consume this reservation. + # Corresponds to the JSON property `specificReservationRequired` + # @return [Boolean] + attr_accessor :specific_reservation_required + alias_method :specific_reservation_required?, :specific_reservation_required + + # Zone in which the reservation resides, must be provided if reservation is + # created with commitment creation. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @commitment = args[:commitment] if args.key?(:commitment) + @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) + @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) + @specific_reservation = args[:specific_reservation] if args.key?(:specific_reservation) + @specific_reservation_required = args[:specific_reservation_required] if args.key?(:specific_reservation_required) + @zone = args[:zone] if args.key?(:zone) + end + end + + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + class ReservationAffinity + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `consumeReservationType` + # @return [String] + attr_accessor :consume_reservation_type + + # Corresponds to the label key of reservation resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Corresponds to the label values of reservation resource. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type) + @key = args[:key] if args.key?(:key) + @values = args[:values] if args.key?(:values) + end + end + + # Contains a list of reservations. + class ReservationAggregatedList + include Google::Apis::Core::Hashable + + # [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 Allocation resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [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] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @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 + + # + class ReservationList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of Allocation resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#reservationsList for listsof + # reservations + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [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] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::ReservationList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @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 + + # + class ReservationsResizeRequest + include Google::Apis::Core::Hashable + + # Number of allocated resources can be resized with minimum = 1 and maximum = + # 1000. + # Corresponds to the JSON property `specificSkuCount` + # @return [Fixnum] + attr_accessor :specific_sku_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @specific_sku_count = args[:specific_sku_count] if args.key?(:specific_sku_count) + end + end + + # + class ReservationsScopedList + include Google::Apis::Core::Hashable + + # A list of reservations contained in this scope. + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations + + # Informational warning which replaces the list of reservations when the list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeAlpha::ReservationsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reservations = args[:reservations] if args.key?(:reservations) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of reservations when the list is + # empty. + 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 + # Commitment for a particular resource (a Commitment is composed of one or more # of these). class ResourceCommitment @@ -24221,19 +24400,20 @@ module Google class ResourcePolicyDailyCycle include Google::Apis::Core::Hashable - # Allows to define schedule that runs every nth day of the month. + # Defines a schedule that runs every nth day of the month. # Corresponds to the JSON property `daysInCycle` # @return [Fixnum] attr_accessor :days_in_cycle - # [Output only] Duration of the time window, automatically chosen to be smallest - # possible in the given scenario. + # [Output only] A predetermined duration for the window, automatically chosen to + # be the smallest possible in the given scenario. # Corresponds to the JSON property `duration` # @return [String] attr_accessor :duration - # Time within the window to start the operations. It must be in format "HH:MM", - # where HH : [00-23] and MM : [00-00] GMT. + # Start time of the window. This must be in UTC format that resolves to one of + # 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08: + # 00 are valid. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time @@ -25677,6 +25857,13 @@ module Google class RouterNat include Google::Apis::Core::Hashable + # A list of URLs of the IP resources to be drained. These IPs must be valid + # static external IPs that have been assigned to the NAT. These IPs should be + # used for updating/patching a NAT only. + # Corresponds to the JSON property `drainNatIps` + # @return [Array] + attr_accessor :drain_nat_ips + # Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. # Corresponds to the JSON property `icmpIdleTimeoutSec` # @return [Fixnum] @@ -25751,6 +25938,7 @@ module Google # Update properties of this object def update!(**args) + @drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips) @icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec) @log_config = args[:log_config] if args.key?(:log_config) @min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm) @@ -25954,6 +26142,18 @@ module Google # @return [Array] attr_accessor :auto_allocated_nat_ips + # A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1. + # 1", ?179.12.26.133?]. + # Corresponds to the JSON property `drainAutoAllocatedNatIps` + # @return [Array] + attr_accessor :drain_auto_allocated_nat_ips + + # A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1. + # 1", ?179.12.26.133?]. + # Corresponds to the JSON property `drainUserAllocatedNatIps` + # @return [Array] + attr_accessor :drain_user_allocated_nat_ips + # The number of extra IPs to allocate. This will be greater than 0 only if user- # specified IPs are NOT enough to allow all configured VMs to use NAT. This # value is meaningful only when auto-allocation of NAT IPs is *not* used. @@ -25989,6 +26189,8 @@ module Google # Update properties of this object def update!(**args) @auto_allocated_nat_ips = args[:auto_allocated_nat_ips] if args.key?(:auto_allocated_nat_ips) + @drain_auto_allocated_nat_ips = args[:drain_auto_allocated_nat_ips] if args.key?(:drain_auto_allocated_nat_ips) + @drain_user_allocated_nat_ips = args[:drain_user_allocated_nat_ips] if args.key?(:drain_user_allocated_nat_ips) @min_extra_nat_ips_needed = args[:min_extra_nat_ips_needed] if args.key?(:min_extra_nat_ips_needed) @name = args[:name] if args.key?(:name) @num_vm_endpoints_with_nat_mappings = args[:num_vm_endpoints_with_nat_mappings] if args.key?(:num_vm_endpoints_with_nat_mappings) @@ -26637,6 +26839,12 @@ module Google # @return [String] attr_accessor :name + # [Output Only] Total count of all security policy rule tuples. A security + # policy can not exceed a set number of tuples. + # Corresponds to the JSON property `ruleTupleCount` + # @return [Fixnum] + attr_accessor :rule_tuple_count + # A list of rules that belong to this policy. There must always be a default # rule (rule with priority 2147483647 and match "*"). If no rules are provided # when creating a security policy, a default rule with action "allow" will be @@ -26676,6 +26884,7 @@ module Google @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) + @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) @rules = args[:rules] if args.key?(:rules) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @@ -26697,6 +26906,11 @@ module Google # @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 + def initialize(**args) update!(**args) end @@ -26705,6 +26919,7 @@ module Google def update!(**args) @attachment_id = args[:attachment_id] if args.key?(:attachment_id) @name = args[:name] if args.key?(:name) + @security_policy_id = args[:security_policy_id] if args.key?(:security_policy_id) end end @@ -26905,6 +27120,12 @@ module Google # @return [Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions] attr_accessor :rate_limit_options + # [Output Only] Calculation of the complexity of a single firewall security + # policy rule. + # Corresponds to the JSON property `ruleTupleCount` + # @return [Fixnum] + attr_accessor :rule_tuple_count + # A list of network resource URLs to which this rule applies. This field allows # you to control which network?s VMs get this rule. If this field is left blank, # all VMs within the organization will receive the rule. @@ -26928,6 +27149,7 @@ module Google @preview = args[:preview] if args.key?(:preview) @priority = args[:priority] if args.key?(:priority) @rate_limit_options = args[:rate_limit_options] if args.key?(:rate_limit_options) + @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) @target_resources = args[:target_resources] if args.key?(:target_resources) end end @@ -29111,6 +29333,13 @@ module Google # @return [String] attr_accessor :purpose + # The type of IP CIDR range to associate with this subnetwork. The default is + # RFC_1918. When creating a subnetwork in non-RFC 1918 range, this field must be + # set to NON_RFC_1918. + # Corresponds to the JSON property `rangeType` + # @return [String] + attr_accessor :range_type + # URL of the region where the Subnetwork resides. This field can be set only at # resource creation time. # Corresponds to the JSON property `region` @@ -29181,6 +29410,7 @@ module Google @private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @purpose = args[:purpose] if args.key?(:purpose) + @range_type = args[:range_type] if args.key?(:range_type) @region = args[:region] if args.key?(:region) @role = args[:role] if args.key?(:role) @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges) @@ -29494,6 +29724,13 @@ module Google # @return [String] attr_accessor :range_name + # The type of IP CIDR range to associate with this subnetwork secondary range. + # The default is RFC_1918. When creating a subnetwork in non-RFC 1918 range, + # this field must be set to NON_RFC_1918. + # Corresponds to the JSON property `rangeType` + # @return [String] + attr_accessor :range_type + def initialize(**args) update!(**args) end @@ -29502,6 +29739,7 @@ module Google def update!(**args) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @range_name = args[:range_name] if args.key?(:range_name) + @range_type = args[:range_type] if args.key?(:range_type) end end @@ -29517,6 +29755,13 @@ module Google # @return [String] attr_accessor :ip_cidr_range + # The type of IP CIDR range to associate with this subnetwork. The default is + # RFC_1918. When expanding to a non-RFC 1918 range, this field must be be set to + # NON_RFC_1918. + # Corresponds to the JSON property `rangeType` + # @return [String] + attr_accessor :range_type + def initialize(**args) update!(**args) end @@ -29524,6 +29769,7 @@ module Google # Update properties of this object def update!(**args) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @range_type = args[:range_type] if args.key?(:range_type) end end @@ -33702,6 +33948,13 @@ module Google class VmEndpointNatMappingsInterfaceNatMappings include Google::Apis::Core::Hashable + # List of all drain IP:port-range mappings assigned to this interface. These + # ranges are inclusive, that is, both the first and the last ports can be used + # for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + # Corresponds to the JSON property `drainNatIpPortRanges` + # @return [Array] + attr_accessor :drain_nat_ip_port_ranges + # A list of all IP:port-range mappings assigned to this interface. These ranges # are inclusive, that is, both the first and the last ports can be used for NAT. # Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. @@ -33709,6 +33962,12 @@ module Google # @return [Array] attr_accessor :nat_ip_port_ranges + # Total number of drain ports across all NAT IPs allocated to this interface. It + # equals to the aggregated port number in the field drain_nat_ip_port_ranges. + # Corresponds to the JSON property `numTotalDrainNatPorts` + # @return [Fixnum] + attr_accessor :num_total_drain_nat_ports + # Total number of ports across all NAT IPs allocated to this interface. It # equals to the aggregated port number in the field nat_ip_port_ranges. # Corresponds to the JSON property `numTotalNatPorts` @@ -33732,7 +33991,9 @@ module Google # Update properties of this object def update!(**args) + @drain_nat_ip_port_ranges = args[:drain_nat_ip_port_ranges] if args.key?(:drain_nat_ip_port_ranges) @nat_ip_port_ranges = args[:nat_ip_port_ranges] if args.key?(:nat_ip_port_ranges) + @num_total_drain_nat_ports = args[:num_total_drain_nat_ports] if args.key?(:num_total_drain_nat_ports) @num_total_nat_ports = args[:num_total_nat_ports] if args.key?(:num_total_nat_ports) @source_alias_ip_range = args[:source_alias_ip_range] if args.key?(:source_alias_ip_range) @source_virtual_ip = args[:source_virtual_ip] if args.key?(:source_virtual_ip) @@ -34188,6 +34449,130 @@ module Google end end + # + class VpnGatewayStatus + include Google::Apis::Core::Hashable + + # List of VPN connection for this VpnGateway. + # Corresponds to the JSON property `vpnConnections` + # @return [Array] + attr_accessor :vpn_connections + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @vpn_connections = args[:vpn_connections] if args.key?(:vpn_connections) + end + end + + # Describes the high availability requirement state for the VPN connection + # between this Cloud VPN gateway and a peer gateway. + class VpnGatewayStatusHighAvailabilityRequirementState + include Google::Apis::Core::Hashable + + # Indicates the high availability requirement state for the VPN connection. + # Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Indicates the reason why the VPN connection does not meet the high + # availability redundancy criteria/requirement. Valid values is + # INCOMPLETE_TUNNELS_COVERAGE. + # Corresponds to the JSON property `unsatisfiedReason` + # @return [String] + attr_accessor :unsatisfied_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @unsatisfied_reason = args[:unsatisfied_reason] if args.key?(:unsatisfied_reason) + end + end + + # Contains some information about a VPN tunnel. + class VpnGatewayStatusTunnel + include Google::Apis::Core::Hashable + + # The VPN gateway interface this VPN tunnel is associated with. + # Corresponds to the JSON property `localGatewayInterface` + # @return [Fixnum] + attr_accessor :local_gateway_interface + + # The peer gateway interface this VPN tunnel is connected to, the peer gateway + # could either be an external VPN gateway or GCP VPN gateway. + # Corresponds to the JSON property `peerGatewayInterface` + # @return [Fixnum] + attr_accessor :peer_gateway_interface + + # URL reference to the VPN tunnel. + # Corresponds to the JSON property `tunnelUrl` + # @return [String] + attr_accessor :tunnel_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @local_gateway_interface = args[:local_gateway_interface] if args.key?(:local_gateway_interface) + @peer_gateway_interface = args[:peer_gateway_interface] if args.key?(:peer_gateway_interface) + @tunnel_url = args[:tunnel_url] if args.key?(:tunnel_url) + end + end + + # A VPN connection contains all VPN tunnels connected from this VpnGateway to + # the same peer gateway. The peer gateway could either be a external VPN gateway + # or GCP VPN gateway. + class VpnGatewayStatusVpnConnection + include Google::Apis::Core::Hashable + + # URL reference to the peer external VPN gateways to which the VPN tunnels in + # this VPN connection are connected. This field is mutually exclusive with + # peer_gcp_gateway. + # Corresponds to the JSON property `peerExternalGateway` + # @return [String] + attr_accessor :peer_external_gateway + + # URL reference to the peer side VPN gateways to which the VPN tunnels in this + # VPN connection are connected. This field is mutually exclusive with + # peer_gcp_gateway. + # Corresponds to the JSON property `peerGcpGateway` + # @return [String] + attr_accessor :peer_gcp_gateway + + # Describes the high availability requirement state for the VPN connection + # between this Cloud VPN gateway and a peer gateway. + # Corresponds to the JSON property `state` + # @return [Google::Apis::ComputeAlpha::VpnGatewayStatusHighAvailabilityRequirementState] + attr_accessor :state + + # List of VPN tunnels that are in this VPN connection. + # Corresponds to the JSON property `tunnels` + # @return [Array] + attr_accessor :tunnels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @peer_external_gateway = args[:peer_external_gateway] if args.key?(:peer_external_gateway) + @peer_gcp_gateway = args[:peer_gcp_gateway] if args.key?(:peer_gcp_gateway) + @state = args[:state] if args.key?(:state) + @tunnels = args[:tunnels] if args.key?(:tunnels) + end + end + # A VPN gateway interface. class VpnGatewayVpnGatewayInterface include Google::Apis::Core::Hashable @@ -34213,6 +34598,25 @@ module Google end end + # + class VpnGatewaysGetStatusResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `result` + # @return [Google::Apis::ComputeAlpha::VpnGatewayStatus] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result = args[:result] if args.key?(:result) + end + end + # class VpnGatewaysScopedList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 57cecf15f..4d51627a2 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -160,92 +160,20 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Allocation + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AllocationAffinity + class AllocationSpecificSkuAllocationReservedInstanceProperties class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AllocationAggregatedList + class AllocationSpecificSkuReservation 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 AllocationList - 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 AllocationSpecificSkuAllocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationSpecificSkuAllocationAllocatedInstanceProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationsResizeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationsScopedList - 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 @@ -928,6 +856,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FileContentBuffer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Firewall class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1360,6 +1294,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InitialStateConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Instance class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1564,6 +1504,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagersPatchPerInstanceConfigsReq + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagersRecreateInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2848,6 +2794,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrganizationSecurityPoliciesListAssociationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OriginAuthenticationMethod class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3010,7 +2962,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RegionCommitmentsUpdateAllocationsRequest + class RegionCommitmentsUpdateReservationsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -3094,6 +3046,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionInstanceGroupManagerPatchInstanceConfigReq + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionInstanceGroupManagerUpdateInstanceConfigReq class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3250,6 +3208,78 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Reservation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationAggregatedList + 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 ReservationList + 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 ReservationsResizeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationsScopedList + 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 ResourceCommitment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4732,12 +4762,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VpnGatewayStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusHighAvailabilityRequirementState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusTunnel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusVpnConnection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VpnGatewayVpnGatewayInterface class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class VpnGatewaysGetStatusResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VpnGatewaysScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5152,120 +5212,7 @@ module Google end end - class Allocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :commitment, as: 'commitment' - 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 :self_link, as: 'selfLink' - property :self_link_with_id, as: 'selfLinkWithId' - property :specific_allocation, as: 'specificAllocation', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation::Representation - - property :specific_allocation_required, as: 'specificAllocationRequired' - property :zone, as: 'zone' - end - end - - class AllocationAffinity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :consume_allocation_type, as: 'consumeAllocationType' - property :key, as: 'key' - collection :values, as: 'values' - end - end - - class AllocationAggregatedList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - hash :items, as: 'items', class: Google::Apis::ComputeAlpha::AllocationsScopedList, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationAggregatedList::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 AllocationList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - collection :items, as: 'items', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationList::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 AllocationSpecificSkuAllocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :count, :numeric_string => true, as: 'count' - property :in_use_count, :numeric_string => true, as: 'inUseCount' - property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties::Representation - - end - end - - class AllocationSpecificSkuAllocationAllocatedInstanceProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation - - collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk::Representation - - property :machine_type, as: 'machineType' - property :min_cpu_platform, as: 'minCpuPlatform' - end - end - - class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk # @private class Representation < Google::Apis::Core::JsonRepresentation property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' @@ -5273,38 +5220,25 @@ module Google end end - class AllocationsResizeRequest + class AllocationSpecificSkuAllocationReservedInstanceProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount' + collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeAlpha::AcceleratorConfig, decorator: Google::Apis::ComputeAlpha::AcceleratorConfig::Representation + + collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation + + property :machine_type, as: 'machineType' + property :min_cpu_platform, as: 'minCpuPlatform' end end - class AllocationsScopedList + class AllocationSpecificSkuReservation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation + property :count, :numeric_string => true, as: 'count' + property :in_use_count, :numeric_string => true, as: 'inUseCount' + property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties::Representation - property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeAlpha::AllocationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::AllocationsScopedList::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 @@ -5327,6 +5261,8 @@ module Google collection :licenses, as: 'licenses' property :mode, as: 'mode' property :saved_state, as: 'savedState' + property :shielded_instance_initial_state, as: 'shieldedInstanceInitialState', class: Google::Apis::ComputeAlpha::InitialStateConfig, decorator: Google::Apis::ComputeAlpha::InitialStateConfig::Representation + property :source, as: 'source' property :type, as: 'type' end @@ -5958,8 +5894,6 @@ module Google class Commitment # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation - property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :end_timestamp, as: 'endTimestamp' @@ -5968,6 +5902,8 @@ module Google property :name, as: 'name' property :plan, as: 'plan' property :region, as: 'region' + collection :reservations, as: 'reservations', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation + collection :resources, as: 'resources', class: Google::Apis::ComputeAlpha::ResourceCommitment, decorator: Google::Apis::ComputeAlpha::ResourceCommitment::Representation property :self_link, as: 'selfLink' @@ -6579,6 +6515,14 @@ module Google end end + class FileContentBuffer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :file_type, as: 'fileType' + end + end + class Firewall # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6691,6 +6635,8 @@ module Google property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' property :load_balancing_scheme, as: 'loadBalancingScheme' + collection :metadata_filters, as: 'metadataFilters', class: Google::Apis::ComputeAlpha::MetadataFilter, decorator: Google::Apis::ComputeAlpha::MetadataFilter::Representation + property :name, as: 'name' property :network, as: 'network' property :network_tier, as: 'networkTier' @@ -7398,6 +7344,8 @@ module Google property :self_link, as: 'selfLink' property :self_link_with_id, as: 'selfLinkWithId' + property :shielded_instance_initial_state, as: 'shieldedInstanceInitialState', class: Google::Apis::ComputeAlpha::InitialStateConfig, decorator: Google::Apis::ComputeAlpha::InitialStateConfig::Representation + property :source_disk, as: 'sourceDisk' property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation @@ -7457,11 +7405,23 @@ module Google end end + class InitialStateConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :dbs, as: 'dbs', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation + + collection :dbxs, as: 'dbxs', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation + + collection :keks, as: 'keks', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation + + property :pk, as: 'pk', class: Google::Apis::ComputeAlpha::FileContentBuffer, decorator: Google::Apis::ComputeAlpha::FileContentBuffer::Representation + + end + end + class Instance # @private class Representation < Google::Apis::Core::JsonRepresentation - property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeAlpha::AllocationAffinity, decorator: Google::Apis::ComputeAlpha::AllocationAffinity::Representation - property :can_ip_forward, as: 'canIpForward' property :cpu_platform, as: 'cpuPlatform' property :creation_timestamp, as: 'creationTimestamp' @@ -7488,6 +7448,8 @@ module Google collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation property :preserved_state_size_gb, :numeric_string => true, as: 'preservedStateSizeGb' + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation + collection :resource_policies, as: 'resourcePolicies' property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation @@ -7892,6 +7854,14 @@ module Google end end + class InstanceGroupManagersPatchPerInstanceConfigsReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeAlpha::PerInstanceConfig, decorator: Google::Apis::ComputeAlpha::PerInstanceConfig::Representation + + end + end + class InstanceGroupManagersRecreateInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8133,8 +8103,6 @@ module Google class InstanceProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeAlpha::AllocationAffinity, decorator: Google::Apis::ComputeAlpha::AllocationAffinity::Representation - property :can_ip_forward, as: 'canIpForward' property :description, as: 'description' collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::AttachedDisk, decorator: Google::Apis::ComputeAlpha::AttachedDisk::Representation @@ -8150,6 +8118,8 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeAlpha::NetworkInterface, decorator: Google::Apis::ComputeAlpha::NetworkInterface::Representation + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation + property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation @@ -9259,6 +9229,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation hash :annotations, as: 'annotations' + property :fqdn, as: 'fqdn' property :instance, as: 'instance' property :ip_address, as: 'ipAddress' property :port, as: 'port' @@ -9999,6 +9970,7 @@ module Google class NotificationEndpointGrpcSettings # @private class Representation < Google::Apis::Core::JsonRepresentation + property :authority, as: 'authority' property :endpoint, as: 'endpoint' property :payload_name, as: 'payloadName' property :retry_duration_sec, as: 'retryDurationSec' @@ -10196,6 +10168,15 @@ module Google end end + class OrganizationSecurityPoliciesListAssociationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :associations, as: 'associations', class: Google::Apis::ComputeAlpha::SecurityPolicyAssociation, decorator: Google::Apis::ComputeAlpha::SecurityPolicyAssociation::Representation + + property :kind, as: 'kind' + end + end + class OriginAuthenticationMethod # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10507,10 +10488,10 @@ module Google end end - class RegionCommitmentsUpdateAllocationsRequest + class RegionCommitmentsUpdateReservationsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :allocations, as: 'allocations', class: Google::Apis::ComputeAlpha::Allocation, decorator: Google::Apis::ComputeAlpha::Allocation::Representation + collection :reservations, as: 'reservations', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation end end @@ -10640,6 +10621,14 @@ module Google end end + class RegionInstanceGroupManagerPatchInstanceConfigReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeAlpha::PerInstanceConfig, decorator: Google::Apis::ComputeAlpha::PerInstanceConfig::Representation + + end + end + class RegionInstanceGroupManagerUpdateInstanceConfigReq # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10870,6 +10859,132 @@ module Google end end + class Reservation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :commitment, as: 'commitment' + 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 :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' + property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation::Representation + + property :specific_reservation_required, as: 'specificReservationRequired' + property :zone, as: 'zone' + end + end + + class ReservationAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consume_reservation_type, as: 'consumeReservationType' + property :key, as: 'key' + collection :values, as: 'values' + end + end + + class ReservationAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeAlpha::ReservationsScopedList, decorator: Google::Apis::ComputeAlpha::ReservationsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning, decorator: Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ReservationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ReservationAggregatedList::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 ReservationList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ReservationList::Warning, decorator: Google::Apis::ComputeAlpha::ReservationList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ReservationList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ReservationList::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 ReservationsResizeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount' + end + end + + class ReservationsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reservations, as: 'reservations', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ReservationsScopedList::Warning, decorator: Google::Apis::ComputeAlpha::ReservationsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ReservationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ReservationsScopedList::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 ResourceCommitment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -11331,6 +11446,7 @@ module Google class RouterNat # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :drain_nat_ips, as: 'drainNatIps' property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec' property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::RouterNatLogConfig, decorator: Google::Apis::ComputeAlpha::RouterNatLogConfig::Representation @@ -11400,6 +11516,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :auto_allocated_nat_ips, as: 'autoAllocatedNatIps' + collection :drain_auto_allocated_nat_ips, as: 'drainAutoAllocatedNatIps' + collection :drain_user_allocated_nat_ips, as: 'drainUserAllocatedNatIps' property :min_extra_nat_ips_needed, as: 'minExtraNatIpsNeeded' property :name, as: 'name' property :num_vm_endpoints_with_nat_mappings, as: 'numVmEndpointsWithNatMappings' @@ -11564,6 +11682,7 @@ module Google property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' property :name, as: 'name' + property :rule_tuple_count, as: 'ruleTupleCount' collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::SecurityPolicyRule, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation property :self_link, as: 'selfLink' @@ -11577,6 +11696,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :attachment_id, as: 'attachmentId' property :name, as: 'name' + property :security_policy_id, as: 'securityPolicyId' end end @@ -11632,6 +11752,7 @@ module Google property :priority, as: 'priority' property :rate_limit_options, as: 'rateLimitOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions::Representation + property :rule_tuple_count, as: 'ruleTupleCount' collection :target_resources, as: 'targetResources' end end @@ -12200,6 +12321,7 @@ module Google property :private_ip_google_access, as: 'privateIpGoogleAccess' property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' property :purpose, as: 'purpose' + property :range_type, as: 'rangeType' property :region, as: 'region' property :role, as: 'role' collection :secondary_ip_ranges, as: 'secondaryIpRanges', class: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange, decorator: Google::Apis::ComputeAlpha::SubnetworkSecondaryRange::Representation @@ -12289,6 +12411,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :ip_cidr_range, as: 'ipCidrRange' property :range_name, as: 'rangeName' + property :range_type, as: 'rangeType' end end @@ -12296,6 +12419,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :ip_cidr_range, as: 'ipCidrRange' + property :range_type, as: 'rangeType' end end @@ -13411,7 +13535,9 @@ module Google class VmEndpointNatMappingsInterfaceNatMappings # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :drain_nat_ip_port_ranges, as: 'drainNatIpPortRanges' collection :nat_ip_port_ranges, as: 'natIpPortRanges' + property :num_total_drain_nat_ports, as: 'numTotalDrainNatPorts' property :num_total_nat_ports, as: 'numTotalNatPorts' property :source_alias_ip_range, as: 'sourceAliasIpRange' property :source_virtual_ip, as: 'sourceVirtualIp' @@ -13532,6 +13658,43 @@ module Google end end + class VpnGatewayStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vpn_connections, as: 'vpnConnections', class: Google::Apis::ComputeAlpha::VpnGatewayStatusVpnConnection, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatusVpnConnection::Representation + + end + end + + class VpnGatewayStatusHighAvailabilityRequirementState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :unsatisfied_reason, as: 'unsatisfiedReason' + end + end + + class VpnGatewayStatusTunnel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :local_gateway_interface, as: 'localGatewayInterface' + property :peer_gateway_interface, as: 'peerGatewayInterface' + property :tunnel_url, as: 'tunnelUrl' + end + end + + class VpnGatewayStatusVpnConnection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :peer_external_gateway, as: 'peerExternalGateway' + property :peer_gcp_gateway, as: 'peerGcpGateway' + property :state, as: 'state', class: Google::Apis::ComputeAlpha::VpnGatewayStatusHighAvailabilityRequirementState, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatusHighAvailabilityRequirementState::Representation + + collection :tunnels, as: 'tunnels', class: Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatusTunnel::Representation + + end + end + class VpnGatewayVpnGatewayInterface # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -13540,6 +13703,14 @@ module Google end end + class VpnGatewaysGetStatusResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :result, as: 'result', class: Google::Apis::ComputeAlpha::VpnGatewayStatus, decorator: Google::Apis::ComputeAlpha::VpnGatewayStatus::Representation + + end + end + class VpnGatewaysScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index cadd3e330..919bb5c9f 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -619,472 +619,6 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of allocations. - # @param [String] project - # Project ID for this request. - # @param [String] filter - # A filter expression that filters resources listed in the response. The - # expression must specify the field name, a comparison operator, and the value - # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison 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. - # 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). - # @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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::AllocationAggregatedList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::AllocationAggregatedList] - # - # @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 aggregated_allocation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/allocations', options) - command.response_representation = Google::Apis::ComputeAlpha::AllocationAggregatedList::Representation - command.response_class = Google::Apis::ComputeAlpha::AllocationAggregatedList - command.params['project'] = project unless project.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['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 allocation. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] allocation - # Name of the allocation 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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_allocation(project, zone, allocation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/allocations/{allocation}', options) - command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation - command.response_class = Google::Apis::ComputeAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['allocation'] = allocation unless allocation.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 all information of the specified allocation. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] allocation - # Name of the allocation to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Allocation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Allocation] - # - # @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_allocation(project, zone, allocation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{allocation}', options) - command.response_representation = Google::Apis::ComputeAlpha::Allocation::Representation - command.response_class = Google::Apis::ComputeAlpha::Allocation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['allocation'] = allocation unless allocation.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 access control policy for a resource. May be empty if no such policy - # or resource exists. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name or id of the resource for this request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Policy] - # - # @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_allocation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{resource}/getIamPolicy', options) - command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation - command.response_class = Google::Apis::ComputeAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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 - - # Creates a new allocation. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [Google::Apis::ComputeAlpha::Allocation] allocation_object - # @param [String] request_id - # An optional request ID to identify requests. Specify a unique request ID so - # that if you must retry your request, the server will know to ignore the - # request if it has already been completed. - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request ID, the - # server can check if original operation with the same request ID was received, - # and if so, will ignore the second request. This prevents clients from - # accidentally creating duplicate commitments. - # The request ID must be a valid UUID with the exception that zero UUID is not - # supported (00000000-0000-0000-0000-000000000000). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_allocation(project, zone, allocation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations', options) - command.request_representation = Google::Apis::ComputeAlpha::Allocation::Representation - command.request_object = allocation_object - command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation - command.response_class = Google::Apis::ComputeAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.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 - - # A list all the allocations that have been configured for the specified project - # in specified zone. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] filter - # A filter expression that filters resources listed in the response. The - # expression must specify the field name, a comparison operator, and the value - # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison 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. - # 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). - # @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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::AllocationList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::AllocationList] - # - # @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_allocations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/allocations', options) - command.response_representation = Google::Apis::ComputeAlpha::AllocationList::Representation - command.response_class = Google::Apis::ComputeAlpha::AllocationList - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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['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 - - # Resizes the allocation (applicable to standalone allocations only) - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] allocation - # Name of the allocation to update. - # @param [Google::Apis::ComputeAlpha::AllocationsResizeRequest] allocations_resize_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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def resize_allocation(project, zone, allocation, allocations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{allocation}/resize', options) - command.request_representation = Google::Apis::ComputeAlpha::AllocationsResizeRequest::Representation - command.request_object = allocations_resize_request_object - command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation - command.response_class = Google::Apis::ComputeAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['allocation'] = allocation unless allocation.nil? - command.query['requestId'] = request_id unless request_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name or id of the resource for this request. - # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_allocation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation - command.request_object = zone_set_policy_request_object - command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation - command.response_class = Google::Apis::ComputeAlpha::Policy - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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 permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name or id of the resource for this request. - # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeAlpha::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_allocation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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 - # Retrieves an aggregated list of autoscalers. # @param [String] project # Project ID for this request. @@ -8173,6 +7707,63 @@ module Google execute_or_queue_command(command, &block) end + # Insert or patch (for the ones that already exist) per-instance configs for the + # managed instance group. perInstanceConfig.instance serves as a key used to + # distinguish whether to perform insert or patch. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone where the managed instance group is located. It should + # conform to RFC1035. + # @param [String] instance_group_manager + # The name of the managed instance group. It should conform to RFC1035. + # @param [Google::Apis::ComputeAlpha::InstanceGroupManagersPatchPerInstanceConfigsReq] instance_group_managers_patch_per_instance_configs_req_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_instance_group_manager_per_instance_configs(project, zone, instance_group_manager, instance_group_managers_patch_per_instance_configs_req_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs', options) + command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersPatchPerInstanceConfigsReq::Representation + command.request_object = instance_group_managers_patch_per_instance_configs_req_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 + # Flags the specified instances in the managed instance group to be immediately # recreated. The instances are deleted and recreated using the current instance # template for the managed instance group. This operation is marked as DONE when @@ -16767,6 +16358,8 @@ module Google # 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 @@ -16778,18 +16371,21 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::ComputeAlpha::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def copy_organization_security_policy_rules(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + 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::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::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? @@ -17066,9 +16662,44 @@ module Google execute_or_queue_command(command, &block) end + # Lists associations of a specified target, i.e., organization or folder. + # @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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::OrganizationSecurityPoliciesListAssociationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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::ComputeAlpha::OrganizationSecurityPoliciesListAssociationsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::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 + # Moves the specified security policy. # @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 @@ -17091,17 +16722,20 @@ module Google # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [NilClass] No result returned for this method + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [void] + # @return [Google::Apis::ComputeAlpha::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def move_organization_security_policy(security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + 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::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::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? @@ -19065,15 +18699,15 @@ module Google execute_or_queue_command(command, &block) end - # Update the shape of allocations for GPUS/Local SSDs of allocations within the - # commitments. + # Update the shape of reservations for GPUS/Local SSDs of reservations within + # the commitments. # @param [String] project # Project ID for this request. # @param [String] region # Name of the region for this request. # @param [String] commitment - # Name of the commitment of which the allocation's capacities are being updated. - # @param [Google::Apis::ComputeAlpha::RegionCommitmentsUpdateAllocationsRequest] region_commitments_update_allocations_request_object + # Name of the commitment of which the reservation's capacities are being updated. + # @param [Google::Apis::ComputeAlpha::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_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 @@ -19104,10 +18738,10 @@ module Google # @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 update_region_commitment_allocations(project, region, commitment, region_commitments_update_allocations_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/commitments/{commitment}/updateAllocations', options) - command.request_representation = Google::Apis::ComputeAlpha::RegionCommitmentsUpdateAllocationsRequest::Representation - command.request_object = region_commitments_update_allocations_request_object + def update_region_commitment_reservations(project, region, commitment, region_commitments_update_reservations_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/commitments/{commitment}/updateReservations', options) + command.request_representation = Google::Apis::ComputeAlpha::RegionCommitmentsUpdateReservationsRequest::Representation + command.request_object = region_commitments_update_reservations_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -21195,6 +20829,62 @@ module Google execute_or_queue_command(command, &block) end + # Insert or patch (for the ones that already exist) per-instance configs for the + # managed instance group. perInstanceConfig.instance serves as a key used to + # distinguish whether to perform insert or patch. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request, should conform to RFC1035. + # @param [String] instance_group_manager + # The name of the managed instance group. It should conform to RFC1035. + # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagerPatchInstanceConfigReq] region_instance_group_manager_patch_instance_config_req_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_patch_instance_config_req_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs', options) + command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerPatchInstanceConfigReq::Representation + command.request_object = region_instance_group_manager_patch_instance_config_req_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 + # Flags the specified instances in the managed instance group to be immediately # recreated. The instances are deleted and recreated using the current instance # template for the managed instance group. This operation is marked as DONE when @@ -23861,6 +23551,472 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of reservations. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison 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. + # 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). + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::ReservationAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::ReservationAggregatedList] + # + # @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 aggregated_reservation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/reservations', options) + command.response_representation = Google::Apis::ComputeAlpha::ReservationAggregatedList::Representation + command.response_class = Google::Apis::ComputeAlpha::ReservationAggregatedList + command.params['project'] = project unless project.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['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 reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation 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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_reservation(project, zone, reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/zones/{zone}/reservations/{reservation}', options) + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.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 all information of the specified reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Reservation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Reservation] + # + # @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_reservation(project, zone, reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{reservation}', options) + command.response_representation = Google::Apis::ComputeAlpha::Reservation::Representation + command.response_class = Google::Apis::ComputeAlpha::Reservation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.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 access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @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_reservation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 + + # Creates a new reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [Google::Apis::ComputeAlpha::Reservation] reservation_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def insert_reservation(project, zone, reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations', options) + command.request_representation = Google::Apis::ComputeAlpha::Reservation::Representation + command.request_object = reservation_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.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 + + # A list all the reservations that have been configured for the specified + # project in specified zone. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison 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. + # 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). + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::ReservationList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::ReservationList] + # + # @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_reservations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations', options) + command.response_representation = Google::Apis::ComputeAlpha::ReservationList::Representation + command.response_class = Google::Apis::ComputeAlpha::ReservationList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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['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 + + # Resizes the reservation (applicable to standalone reservations only) + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation to update. + # @param [Google::Apis::ComputeAlpha::ReservationsResizeRequest] reservations_resize_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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def resize_reservation(project, zone, reservation, reservations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{reservation}/resize', options) + command.request_representation = Google::Apis::ComputeAlpha::ReservationsResizeRequest::Representation + command.request_object = reservations_resize_request_object + command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation + command.response_class = Google::Apis::ComputeAlpha::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_reservation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation + command.request_object = zone_set_policy_request_object + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::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_reservation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 + # Retrieves an aggregated list of resource policies. # @param [String] project # Project ID for this request. @@ -24465,6 +24621,10 @@ module Google # 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] nat_name + # Name of the nat service to filter the Nat Mapping information. If it is + # omitted, all nats for this router will be returned. Name should conform to + # RFC1035. # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. @@ -24496,7 +24656,7 @@ module Google # @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_router_nat_mapping_info(project, region, router, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_router_nat_mapping_info(project, region, router, filter: nil, max_results: nil, nat_name: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getNatMappingInfo', options) command.response_representation = Google::Apis::ComputeAlpha::VmEndpointNatMappingsList::Representation command.response_class = Google::Apis::ComputeAlpha::VmEndpointNatMappingsList @@ -24505,6 +24665,7 @@ module Google command.params['router'] = router unless router.nil? command.query['filter'] = filter unless filter.nil? command.query['maxResults'] = max_results unless max_results.nil? + command.query['natName'] = nat_name unless nat_name.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -31085,6 +31246,45 @@ module Google execute_or_queue_command(command, &block) end + # Returns the status for the specified VPN gateway. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] vpn_gateway + # Name of the VPN gateway to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] + # + # @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_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options) + command.response_representation = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.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 VPN gateway in the specified project and region using the data # included in the request. # @param [String] project diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index b212a2336..30e34bc5b 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20190221' + REVISION = '20190308' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 6175e709d..b1b8a2873 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -1043,433 +1043,8 @@ module Google end end - # Allocation resource - class Allocation - include Google::Apis::Core::Hashable - - # [OutputOnly] Full or partial url for parent commitment for allocations which - # are tied to a commitment. - # Corresponds to the JSON property `commitment` - # @return [String] - attr_accessor :commitment - - # [Output Only] Creation timestamp in RFC3339 text format. - # Corresponds to the JSON property `creationTimestamp` - # @return [String] - attr_accessor :creation_timestamp - - # An optional description of this resource. Provide this property when you - # create the resource. - # 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] Type of the resource. Always compute#allocations for allocations. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The name of the resource, provided by the client when initially creating the - # resource. The resource name must be 1-63 characters long, and comply with - # RFC1035. 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 `name` - # @return [String] - attr_accessor :name - - # [Output Only] Server-defined fully-qualified URL for this resource. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # This allocation type allows to pre allocate specific instance configuration. - # Corresponds to the JSON property `specificAllocation` - # @return [Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation] - attr_accessor :specific_allocation - - # Indicates whether the allocation can be consumed by VMs with "any allocation" - # defined. If the field is set, then only VMs that target the allocation by name - # using --allocation-affinity can consume this allocation. - # Corresponds to the JSON property `specificAllocationRequired` - # @return [Boolean] - attr_accessor :specific_allocation_required - alias_method :specific_allocation_required?, :specific_allocation_required - - # Zone in which the allocation resides, must be provided if allocation is - # created with commitment creation. - # Corresponds to the JSON property `zone` - # @return [String] - attr_accessor :zone - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @commitment = args[:commitment] if args.key?(:commitment) - @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) - @self_link = args[:self_link] if args.key?(:self_link) - @specific_allocation = args[:specific_allocation] if args.key?(:specific_allocation) - @specific_allocation_required = args[:specific_allocation_required] if args.key?(:specific_allocation_required) - @zone = args[:zone] if args.key?(:zone) - end - end - - # AllocationAffinity is the configuration of desired allocation which this - # instance could take capacity from. - class AllocationAffinity - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `consumeAllocationType` - # @return [String] - attr_accessor :consume_allocation_type - - # Corresponds to the label key of allocation resource. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Corresponds to the label values of allocation resource. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consume_allocation_type = args[:consume_allocation_type] if args.key?(:consume_allocation_type) - @key = args[:key] if args.key?(:key) - @values = args[:values] if args.key?(:values) - end - end - - # Contains a list of allocations. - class AllocationAggregatedList - include Google::Apis::Core::Hashable - - # [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 Allocation resources. - # Corresponds to the JSON property `items` - # @return [Hash] - attr_accessor :items - - # Type of resource. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # [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] Informational warning message. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeBeta::AllocationAggregatedList::Warning] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @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 - # - class AllocationList - include Google::Apis::Core::Hashable - - # [Output Only] The unique identifier for the resource. This identifier is - # defined by the server. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # [Output Only] A list of Allocation resources. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # [Output Only] Type of resource.Always compute#allocationsList for listsof - # allocations - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # [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] Informational warning message. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeBeta::AllocationList::Warning] - attr_accessor :warning - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @self_link = args[:self_link] if args.key?(:self_link) - @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 - - # This allocation type allows to pre allocate specific instance configuration. - class AllocationSpecificSkuAllocation - include Google::Apis::Core::Hashable - - # Specifies number of resources that are allocated. - # Corresponds to the JSON property `count` - # @return [Fixnum] - attr_accessor :count - - # [OutputOnly] Indicates how many resource are in use. - # Corresponds to the JSON property `inUseCount` - # @return [Fixnum] - attr_accessor :in_use_count - - # Properties of the SKU instances being reserved. - # Corresponds to the JSON property `instanceProperties` - # @return [Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties] - attr_accessor :instance_properties - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @count = args[:count] if args.key?(:count) - @in_use_count = args[:in_use_count] if args.key?(:in_use_count) - @instance_properties = args[:instance_properties] if args.key?(:instance_properties) - end - end - - # Properties of the SKU instances being reserved. - class AllocationSpecificSkuAllocationAllocatedInstanceProperties - include Google::Apis::Core::Hashable - - # Specifies accelerator type and count. - # Corresponds to the JSON property `guestAccelerators` - # @return [Array] - attr_accessor :guest_accelerators - - # Specifies amount of local ssd to reserve with each instance. The type of disk - # is local-ssd. - # Corresponds to the JSON property `localSsds` - # @return [Array] - attr_accessor :local_ssds - - # Specifies type of machine (name only) which has fixed number of vCPUs and - # fixed amount of memory. This also includes specifying custom machine type - # following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. - # Corresponds to the JSON property `machineType` - # @return [String] - attr_accessor :machine_type - - # Minimum cpu platform the allocation. - # Corresponds to the JSON property `minCpuPlatform` - # @return [String] - attr_accessor :min_cpu_platform - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) - @local_ssds = args[:local_ssds] if args.key?(:local_ssds) - @machine_type = args[:machine_type] if args.key?(:machine_type) - @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) - end - end - - # - class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk include Google::Apis::Core::Hashable # Specifies the size of the disk in base-2 GB. @@ -1495,15 +1070,32 @@ module Google end end - # - class AllocationsResizeRequest + # Properties of the SKU instances being reserved. + class AllocationSpecificSkuAllocationReservedInstanceProperties include Google::Apis::Core::Hashable - # Number of allocated resources can be resized with minimum = 1 and maximum = - # 1000. - # Corresponds to the JSON property `specificSkuCount` - # @return [Fixnum] - attr_accessor :specific_sku_count + # Specifies accelerator type and count. + # Corresponds to the JSON property `guestAccelerators` + # @return [Array] + attr_accessor :guest_accelerators + + # Specifies amount of local ssd to reserve with each instance. The type of disk + # is local-ssd. + # Corresponds to the JSON property `localSsds` + # @return [Array] + attr_accessor :local_ssds + + # Specifies type of machine (name only) which has fixed number of vCPUs and + # fixed amount of memory. This also includes specifying custom machine type + # following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + # Minimum cpu platform the reservation. + # Corresponds to the JSON property `minCpuPlatform` + # @return [String] + attr_accessor :min_cpu_platform def initialize(**args) update!(**args) @@ -1511,24 +1103,31 @@ module Google # Update properties of this object def update!(**args) - @specific_sku_count = args[:specific_sku_count] if args.key?(:specific_sku_count) + @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) + @local_ssds = args[:local_ssds] if args.key?(:local_ssds) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) end end - # - class AllocationsScopedList + # This reservation type allows to pre allocate specific instance configuration. + class AllocationSpecificSkuReservation include Google::Apis::Core::Hashable - # A list of allocations contained in this scope. - # Corresponds to the JSON property `allocations` - # @return [Array] - attr_accessor :allocations + # Specifies number of resources that are allocated. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count - # Informational warning which replaces the list of allocations when the list is - # empty. - # Corresponds to the JSON property `warning` - # @return [Google::Apis::ComputeBeta::AllocationsScopedList::Warning] - attr_accessor :warning + # [OutputOnly] Indicates how many resource are in use. + # Corresponds to the JSON property `inUseCount` + # @return [Fixnum] + attr_accessor :in_use_count + + # Properties of the SKU instances being reserved. + # Corresponds to the JSON property `instanceProperties` + # @return [Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties] + attr_accessor :instance_properties def initialize(**args) update!(**args) @@ -1536,73 +1135,9 @@ module Google # Update properties of this object def update!(**args) - @allocations = args[:allocations] if args.key?(:allocations) - @warning = args[:warning] if args.key?(:warning) - end - - # Informational warning which replaces the list of allocations when the list is - # empty. - 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 + @count = args[:count] if args.key?(:count) + @in_use_count = args[:in_use_count] if args.key?(:in_use_count) + @instance_properties = args[:instance_properties] if args.key?(:instance_properties) end end @@ -2599,6 +2134,13 @@ module Google # @return [String] attr_accessor :description + # This field designates whether this is a failover backend. More than one + # failover backend can be configured for a given BackendService. + # Corresponds to the JSON property `failover` + # @return [Boolean] + attr_accessor :failover + alias_method :failover?, :failover + # The fully-qualified URL of an Instance Group or Network Endpoint Group # resource. In case of instance group this defines the list of instances that # serve traffic. Member virtual machine instances from each instance group must @@ -2686,6 +2228,7 @@ module Google @balancing_mode = args[:balancing_mode] if args.key?(:balancing_mode) @capacity_scaler = args[:capacity_scaler] if args.key?(:capacity_scaler) @description = args[:description] if args.key?(:description) + @failover = args[:failover] if args.key?(:failover) @group = args[:group] if args.key?(:group) @max_connections = args[:max_connections] if args.key?(:max_connections) @max_connections_per_endpoint = args[:max_connections_per_endpoint] if args.key?(:max_connections_per_endpoint) @@ -2971,6 +2514,11 @@ module Google attr_accessor :enable_cdn alias_method :enable_cdn?, :enable_cdn + # + # Corresponds to the JSON property `failoverPolicy` + # @return [Google::Apis::ComputeBeta::BackendServiceFailoverPolicy] + attr_accessor :failover_policy + # Fingerprint of this resource. A hash of the contents stored in this object. # This field is used in optimistic locking. This field will be ignored when # inserting a BackendService. An up-to-date fingerprint must be provided in @@ -3106,6 +2654,7 @@ module Google @custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers) @description = args[:description] if args.key?(:description) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) + @failover_policy = args[:failover_policy] if args.key?(:failover_policy) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @health_checks = args[:health_checks] if args.key?(:health_checks) @iap = args[:iap] if args.key?(:iap) @@ -3280,6 +2829,55 @@ module Google end end + # + class BackendServiceFailoverPolicy + include Google::Apis::Core::Hashable + + # On failover or failback, this field indicates whether connection drain will be + # honored. Setting this to true has the following effect: connections to the old + # active pool are not drained. Connections to the new active pool use the + # timeout of 10 min (currently fixed). Setting to false has the following effect: + # both old and new connections will have a drain timeout of 10 min. + # This can be set to true only if the protocol is TCP. + # The default is false. + # Corresponds to the JSON property `disableConnectionDrainOnFailover` + # @return [Boolean] + attr_accessor :disable_connection_drain_on_failover + alias_method :disable_connection_drain_on_failover?, :disable_connection_drain_on_failover + + # This option is used only when no healthy VMs are detected in the primary and + # backup instance groups. When set to true, traffic is dropped. When set to + # false, new connections are sent across all VMs in the primary group. + # The default is false. + # Corresponds to the JSON property `dropTrafficIfUnhealthy` + # @return [Boolean] + attr_accessor :drop_traffic_if_unhealthy + alias_method :drop_traffic_if_unhealthy?, :drop_traffic_if_unhealthy + + # The value of the field must be in [0, 1]. If the ratio of the healthy VMs in + # the primary backend is at or below this number, traffic arriving at the load- + # balanced IP will be directed to the failover backend. + # In case where 'failoverRatio' is not set or all the VMs in the backup backend + # are unhealthy, the traffic will be directed back to the primary backend in the + # "force" mode, where traffic will be spread to the healthy VMs with the best + # effort, or to all VMs when no VM is healthy. + # This field is only used with l4 load balancing. + # Corresponds to the JSON property `failoverRatio` + # @return [Float] + attr_accessor :failover_ratio + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disable_connection_drain_on_failover = args[:disable_connection_drain_on_failover] if args.key?(:disable_connection_drain_on_failover) + @drop_traffic_if_unhealthy = args[:drop_traffic_if_unhealthy] if args.key?(:drop_traffic_if_unhealthy) + @failover_ratio = args[:failover_ratio] if args.key?(:failover_ratio) + end + end + # class BackendServiceGroupHealth include Google::Apis::Core::Hashable @@ -3747,11 +3345,6 @@ module Google class Commitment include Google::Apis::Core::Hashable - # List of allocations for this commitment. - # Corresponds to the JSON property `allocations` - # @return [Array] - attr_accessor :allocations - # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -3801,6 +3394,11 @@ module Google # @return [String] attr_accessor :region + # List of reservations for this commitment. + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations + # A list of commitment amounts for particular resources. Note that VCPU and # MEMORY resource commitments must occur together. # Corresponds to the JSON property `resources` @@ -3835,7 +3433,6 @@ module Google # Update properties of this object def update!(**args) - @allocations = args[:allocations] if args.key?(:allocations) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @end_timestamp = args[:end_timestamp] if args.key?(:end_timestamp) @@ -3844,6 +3441,7 @@ module Google @name = args[:name] if args.key?(:name) @plan = args[:plan] if args.key?(:plan) @region = args[:region] if args.key?(:region) + @reservations = args[:reservations] if args.key?(:reservations) @resources = args[:resources] if args.key?(:resources) @self_link = args[:self_link] if args.key?(:self_link) @start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp) @@ -8750,12 +8348,6 @@ module Google class Instance include Google::Apis::Core::Hashable - # AllocationAffinity is the configuration of desired allocation which this - # instance could take capacity from. - # Corresponds to the JSON property `allocationAffinity` - # @return [Google::Apis::ComputeBeta::AllocationAffinity] - attr_accessor :allocation_affinity - # Allows this instance to send and receive packets with non-matching destination # or source IPs. This is required if you plan to use this instance to forward # routes. For more information, see Enabling IP Forwarding. @@ -8882,6 +8474,12 @@ module Google # @return [Array] attr_accessor :network_interfaces + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::ComputeBeta::ReservationAffinity] + attr_accessor :reservation_affinity + # Sets the scheduling options for an Instance. # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] @@ -8960,7 +8558,6 @@ module Google # Update properties of this object def update!(**args) - @allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @@ -8979,6 +8576,7 @@ module Google @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @name = args[:name] if args.key?(:name) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @scheduling = args[:scheduling] if args.key?(:scheduling) @self_link = args[:self_link] if args.key?(:self_link) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @@ -10206,6 +9804,40 @@ module Google end end + # InstanceGroupManagers.applyUpdatesToInstances + class InstanceGroupManagersApplyUpdatesRequest + include Google::Apis::Core::Hashable + + # The list of URLs of one or more instances for which we want to apply updates + # on this managed instance group. This can be a full URL or a partial URL, such + # as zones/[ZONE]/instances/[INSTANCE_NAME]. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + # The minimal action that should be perfomed on the instances. By default NONE. + # Corresponds to the JSON property `minimalAction` + # @return [String] + attr_accessor :minimal_action + + # The most disruptive action that allowed to be performed on the instances. By + # default REPLACE. + # Corresponds to the JSON property `mostDisruptiveAllowedAction` + # @return [String] + attr_accessor :most_disruptive_allowed_action + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] if args.key?(:instances) + @minimal_action = args[:minimal_action] if args.key?(:minimal_action) + @most_disruptive_allowed_action = args[:most_disruptive_allowed_action] if args.key?(:most_disruptive_allowed_action) + end + end + # class InstanceGroupManagersDeleteInstancesRequest include Google::Apis::Core::Hashable @@ -11058,12 +10690,6 @@ module Google class InstanceProperties include Google::Apis::Core::Hashable - # AllocationAffinity is the configuration of desired allocation which this - # instance could take capacity from. - # Corresponds to the JSON property `allocationAffinity` - # @return [Google::Apis::ComputeBeta::AllocationAffinity] - attr_accessor :allocation_affinity - # Enables instances created based on this template to send packets with source # IP addresses other than their own and receive packets with destination IP # addresses other than their own. If these instances will be used as an IP @@ -11127,6 +10753,12 @@ module Google # @return [Array] attr_accessor :network_interfaces + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::ComputeBeta::ReservationAffinity] + attr_accessor :reservation_affinity + # Sets the scheduling options for an Instance. # Corresponds to the JSON property `scheduling` # @return [Google::Apis::ComputeBeta::Scheduling] @@ -11160,7 +10792,6 @@ module Google # Update properties of this object def update!(**args) - @allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @description = args[:description] if args.key?(:description) @disks = args[:disks] if args.key?(:disks) @@ -11171,6 +10802,7 @@ module Google @metadata = args[:metadata] if args.key?(:metadata) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @scheduling = args[:scheduling] if args.key?(:scheduling) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) @@ -18350,14 +17982,14 @@ module Google end # - class RegionCommitmentsUpdateAllocationsRequest + class RegionCommitmentsUpdateReservationsRequest include Google::Apis::Core::Hashable - # List of allocations for the capacity move of VMs with accelerators and local + # List of reservations for the capacity move of VMs with accelerators and local # ssds. - # Corresponds to the JSON property `allocations` - # @return [Array] - attr_accessor :allocations + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations def initialize(**args) update!(**args) @@ -18365,7 +17997,7 @@ module Google # Update properties of this object def update!(**args) - @allocations = args[:allocations] if args.key?(:allocations) + @reservations = args[:reservations] if args.key?(:reservations) end end @@ -18800,6 +18432,39 @@ module Google end end + # InstanceGroupManagers.applyUpdatesToInstances + class RegionInstanceGroupManagersApplyUpdatesRequest + include Google::Apis::Core::Hashable + + # The list of instances for which we want to apply changes on this managed + # instance group. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + # The minimal action that should be perfomed on the instances. By default NONE. + # Corresponds to the JSON property `minimalAction` + # @return [String] + attr_accessor :minimal_action + + # The most disruptive action that allowed to be performed on the instances. By + # default REPLACE. + # Corresponds to the JSON property `mostDisruptiveAllowedAction` + # @return [String] + attr_accessor :most_disruptive_allowed_action + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] if args.key?(:instances) + @minimal_action = args[:minimal_action] if args.key?(:minimal_action) + @most_disruptive_allowed_action = args[:most_disruptive_allowed_action] if args.key?(:most_disruptive_allowed_action) + end + end + # class RegionInstanceGroupManagersDeleteInstancesRequest include Google::Apis::Core::Hashable @@ -19311,6 +18976,472 @@ module Google end end + # Reservation resource + class Reservation + include Google::Apis::Core::Hashable + + # [OutputOnly] Full or partial url for parent commitment for reservations which + # are tied to a commitment. + # Corresponds to the JSON property `commitment` + # @return [String] + attr_accessor :commitment + + # [Output Only] Creation timestamp in RFC3339 text format. + # Corresponds to the JSON property `creationTimestamp` + # @return [String] + attr_accessor :creation_timestamp + + # An optional description of this resource. Provide this property when you + # create the resource. + # 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] Type of the resource. Always compute#reservations for + # reservations. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. The resource name must be 1-63 characters long, and comply with + # RFC1035. 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 `name` + # @return [String] + attr_accessor :name + + # [Output Only] Server-defined fully-qualified URL for this resource. + # Corresponds to the JSON property `selfLink` + # @return [String] + attr_accessor :self_link + + # This reservation type allows to pre allocate specific instance configuration. + # Corresponds to the JSON property `specificReservation` + # @return [Google::Apis::ComputeBeta::AllocationSpecificSkuReservation] + attr_accessor :specific_reservation + + # Indicates whether the reservation can be consumed by VMs with "any reservation" + # defined. If the field is set, then only VMs that target the reservation by + # name using --reservation-affinity can consume this reservation. + # Corresponds to the JSON property `specificReservationRequired` + # @return [Boolean] + attr_accessor :specific_reservation_required + alias_method :specific_reservation_required?, :specific_reservation_required + + # Zone in which the reservation resides, must be provided if reservation is + # created with commitment creation. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @commitment = args[:commitment] if args.key?(:commitment) + @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) + @self_link = args[:self_link] if args.key?(:self_link) + @specific_reservation = args[:specific_reservation] if args.key?(:specific_reservation) + @specific_reservation_required = args[:specific_reservation_required] if args.key?(:specific_reservation_required) + @zone = args[:zone] if args.key?(:zone) + end + end + + # AllocationAffinity is the configuration of desired allocation which this + # instance could take capacity from. + class ReservationAffinity + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `consumeReservationType` + # @return [String] + attr_accessor :consume_reservation_type + + # Corresponds to the label key of reservation resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Corresponds to the label values of reservation resource. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type) + @key = args[:key] if args.key?(:key) + @values = args[:values] if args.key?(:values) + end + end + + # Contains a list of reservations. + class ReservationAggregatedList + include Google::Apis::Core::Hashable + + # [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 Allocation resources. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # Type of resource. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [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] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::ReservationAggregatedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @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 + + # + class ReservationList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output Only] A list of Allocation resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource.Always compute#reservationsList for listsof + # reservations + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [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] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::ReservationList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @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 + + # + class ReservationsResizeRequest + include Google::Apis::Core::Hashable + + # Number of allocated resources can be resized with minimum = 1 and maximum = + # 1000. + # Corresponds to the JSON property `specificSkuCount` + # @return [Fixnum] + attr_accessor :specific_sku_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @specific_sku_count = args[:specific_sku_count] if args.key?(:specific_sku_count) + end + end + + # + class ReservationsScopedList + include Google::Apis::Core::Hashable + + # A list of reservations contained in this scope. + # Corresponds to the JSON property `reservations` + # @return [Array] + attr_accessor :reservations + + # Informational warning which replaces the list of reservations when the list is + # empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeBeta::ReservationsScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reservations = args[:reservations] if args.key?(:reservations) + @warning = args[:warning] if args.key?(:warning) + end + + # Informational warning which replaces the list of reservations when the list is + # empty. + 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 + # Commitment for a particular resource (a Commitment is composed of one or more # of these). class ResourceCommitment @@ -19657,19 +19788,20 @@ module Google class ResourcePolicyDailyCycle include Google::Apis::Core::Hashable - # Allows to define schedule that runs every nth day of the month. + # Defines a schedule that runs every nth day of the month. # Corresponds to the JSON property `daysInCycle` # @return [Fixnum] attr_accessor :days_in_cycle - # [Output only] Duration of the time window, automatically chosen to be smallest - # possible in the given scenario. + # [Output only] A predetermined duration for the window, automatically chosen to + # be the smallest possible in the given scenario. # Corresponds to the JSON property `duration` # @return [String] attr_accessor :duration - # Time within the window to start the operations. It must be in format "HH:MM", - # where HH : [00-23] and MM : [00-00] GMT. + # Start time of the window. This must be in UTC format that resolves to one of + # 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08: + # 00 are valid. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time @@ -27472,6 +27604,130 @@ module Google end end + # + class VpnGatewayStatus + include Google::Apis::Core::Hashable + + # List of VPN connection for this VpnGateway. + # Corresponds to the JSON property `vpnConnections` + # @return [Array] + attr_accessor :vpn_connections + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @vpn_connections = args[:vpn_connections] if args.key?(:vpn_connections) + end + end + + # Describes the high availability requirement state for the VPN connection + # between this Cloud VPN gateway and a peer gateway. + class VpnGatewayStatusHighAvailabilityRequirementState + include Google::Apis::Core::Hashable + + # Indicates the high availability requirement state for the VPN connection. + # Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Indicates the reason why the VPN connection does not meet the high + # availability redundancy criteria/requirement. Valid values is + # INCOMPLETE_TUNNELS_COVERAGE. + # Corresponds to the JSON property `unsatisfiedReason` + # @return [String] + attr_accessor :unsatisfied_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @unsatisfied_reason = args[:unsatisfied_reason] if args.key?(:unsatisfied_reason) + end + end + + # Contains some information about a VPN tunnel. + class VpnGatewayStatusTunnel + include Google::Apis::Core::Hashable + + # The VPN gateway interface this VPN tunnel is associated with. + # Corresponds to the JSON property `localGatewayInterface` + # @return [Fixnum] + attr_accessor :local_gateway_interface + + # The peer gateway interface this VPN tunnel is connected to, the peer gateway + # could either be an external VPN gateway or GCP VPN gateway. + # Corresponds to the JSON property `peerGatewayInterface` + # @return [Fixnum] + attr_accessor :peer_gateway_interface + + # URL reference to the VPN tunnel. + # Corresponds to the JSON property `tunnelUrl` + # @return [String] + attr_accessor :tunnel_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @local_gateway_interface = args[:local_gateway_interface] if args.key?(:local_gateway_interface) + @peer_gateway_interface = args[:peer_gateway_interface] if args.key?(:peer_gateway_interface) + @tunnel_url = args[:tunnel_url] if args.key?(:tunnel_url) + end + end + + # A VPN connection contains all VPN tunnels connected from this VpnGateway to + # the same peer gateway. The peer gateway could either be a external VPN gateway + # or GCP VPN gateway. + class VpnGatewayStatusVpnConnection + include Google::Apis::Core::Hashable + + # URL reference to the peer external VPN gateways to which the VPN tunnels in + # this VPN connection are connected. This field is mutually exclusive with + # peer_gcp_gateway. + # Corresponds to the JSON property `peerExternalGateway` + # @return [String] + attr_accessor :peer_external_gateway + + # URL reference to the peer side VPN gateways to which the VPN tunnels in this + # VPN connection are connected. This field is mutually exclusive with + # peer_gcp_gateway. + # Corresponds to the JSON property `peerGcpGateway` + # @return [String] + attr_accessor :peer_gcp_gateway + + # Describes the high availability requirement state for the VPN connection + # between this Cloud VPN gateway and a peer gateway. + # Corresponds to the JSON property `state` + # @return [Google::Apis::ComputeBeta::VpnGatewayStatusHighAvailabilityRequirementState] + attr_accessor :state + + # List of VPN tunnels that are in this VPN connection. + # Corresponds to the JSON property `tunnels` + # @return [Array] + attr_accessor :tunnels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @peer_external_gateway = args[:peer_external_gateway] if args.key?(:peer_external_gateway) + @peer_gcp_gateway = args[:peer_gcp_gateway] if args.key?(:peer_gcp_gateway) + @state = args[:state] if args.key?(:state) + @tunnels = args[:tunnels] if args.key?(:tunnels) + end + end + # A VPN gateway interface. class VpnGatewayVpnGatewayInterface include Google::Apis::Core::Hashable @@ -27497,6 +27753,25 @@ module Google end end + # + class VpnGatewaysGetStatusResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `result` + # @return [Google::Apis::ComputeBeta::VpnGatewayStatus] + attr_accessor :result + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @result = args[:result] if args.key?(:result) + end + end + # class VpnGatewaysScopedList include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index e83882e3f..525b0f027 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -160,92 +160,20 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Allocation + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AllocationAffinity + class AllocationSpecificSkuAllocationReservedInstanceProperties class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class AllocationAggregatedList + class AllocationSpecificSkuReservation 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 AllocationList - 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 AllocationSpecificSkuAllocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationSpecificSkuAllocationAllocatedInstanceProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationsResizeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AllocationsScopedList - 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 @@ -436,6 +364,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendServiceFailoverPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendServiceGroupHealth class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1282,6 +1216,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagersApplyUpdatesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagersDeleteInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2476,7 +2416,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class RegionCommitmentsUpdateAllocationsRequest + class RegionCommitmentsUpdateReservationsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -2560,6 +2500,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionInstanceGroupManagersApplyUpdatesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionInstanceGroupManagersDeleteInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2656,6 +2602,78 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Reservation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationAggregatedList + 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 ReservationList + 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 ReservationsResizeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReservationsScopedList + 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 ResourceCommitment class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3844,12 +3862,42 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class VpnGatewayStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusHighAvailabilityRequirementState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusTunnel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class VpnGatewayStatusVpnConnection + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VpnGatewayVpnGatewayInterface class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class VpnGatewaysGetStatusResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VpnGatewaysScopedList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4254,119 +4302,7 @@ module Google end end - class Allocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :commitment, as: 'commitment' - 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 :self_link, as: 'selfLink' - property :specific_allocation, as: 'specificAllocation', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocation::Representation - - property :specific_allocation_required, as: 'specificAllocationRequired' - property :zone, as: 'zone' - end - end - - class AllocationAffinity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :consume_allocation_type, as: 'consumeAllocationType' - property :key, as: 'key' - collection :values, as: 'values' - end - end - - class AllocationAggregatedList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - hash :items, as: 'items', class: Google::Apis::ComputeBeta::AllocationsScopedList, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationAggregatedList::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 AllocationList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - collection :items, as: 'items', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :self_link, as: 'selfLink' - property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationList::Warning, decorator: Google::Apis::ComputeBeta::AllocationList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationList::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 AllocationSpecificSkuAllocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :count, :numeric_string => true, as: 'count' - property :in_use_count, :numeric_string => true, as: 'inUseCount' - property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstanceProperties::Representation - - end - end - - class AllocationSpecificSkuAllocationAllocatedInstanceProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation - - collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk::Representation - - property :machine_type, as: 'machineType' - property :min_cpu_platform, as: 'minCpuPlatform' - end - end - - class AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk + class AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk # @private class Representation < Google::Apis::Core::JsonRepresentation property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb' @@ -4374,38 +4310,25 @@ module Google end end - class AllocationsResizeRequest + class AllocationSpecificSkuAllocationReservedInstanceProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount' + collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation + + collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation + + property :machine_type, as: 'machineType' + property :min_cpu_platform, as: 'minCpuPlatform' end end - class AllocationsScopedList + class AllocationSpecificSkuReservation # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation + property :count, :numeric_string => true, as: 'count' + property :in_use_count, :numeric_string => true, as: 'inUseCount' + property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties::Representation - property :warning, as: 'warning', class: Google::Apis::ComputeBeta::AllocationsScopedList::Warning, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::Warning::Representation - - end - - class Warning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :data, as: 'data', class: Google::Apis::ComputeBeta::AllocationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::AllocationsScopedList::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 @@ -4638,6 +4561,7 @@ module Google property :balancing_mode, as: 'balancingMode' property :capacity_scaler, as: 'capacityScaler' property :description, as: 'description' + property :failover, as: 'failover' property :group, as: 'group' property :max_connections, as: 'maxConnections' property :max_connections_per_endpoint, as: 'maxConnectionsPerEndpoint' @@ -4719,6 +4643,8 @@ module Google collection :custom_request_headers, as: 'customRequestHeaders' property :description, as: 'description' property :enable_cdn, as: 'enableCDN' + property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceFailoverPolicy::Representation + property :fingerprint, :base64 => true, as: 'fingerprint' collection :health_checks, as: 'healthChecks' property :iap, as: 'iap', class: Google::Apis::ComputeBeta::BackendServiceIap, decorator: Google::Apis::ComputeBeta::BackendServiceIap::Representation @@ -4782,6 +4708,15 @@ module Google end end + class BackendServiceFailoverPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disable_connection_drain_on_failover, as: 'disableConnectionDrainOnFailover' + property :drop_traffic_if_unhealthy, as: 'dropTrafficIfUnhealthy' + property :failover_ratio, as: 'failoverRatio' + end + end + class BackendServiceGroupHealth # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4908,8 +4843,6 @@ module Google class Commitment # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation - property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :end_timestamp, as: 'endTimestamp' @@ -4918,6 +4851,8 @@ module Google property :name, as: 'name' property :plan, as: 'plan' property :region, as: 'region' + collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation + collection :resources, as: 'resources', class: Google::Apis::ComputeBeta::ResourceCommitment, decorator: Google::Apis::ComputeBeta::ResourceCommitment::Representation property :self_link, as: 'selfLink' @@ -6085,8 +6020,6 @@ module Google class Instance # @private class Representation < Google::Apis::Core::JsonRepresentation - property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeBeta::AllocationAffinity, decorator: Google::Apis::ComputeBeta::AllocationAffinity::Representation - property :can_ip_forward, as: 'canIpForward' property :cpu_platform, as: 'cpuPlatform' property :creation_timestamp, as: 'creationTimestamp' @@ -6110,6 +6043,8 @@ module Google property :name, as: 'name' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeBeta::NetworkInterface, decorator: Google::Apis::ComputeBeta::NetworkInterface::Representation + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeBeta::ReservationAffinity, decorator: Google::Apis::ComputeBeta::ReservationAffinity::Representation + property :scheduling, as: 'scheduling', class: Google::Apis::ComputeBeta::Scheduling, decorator: Google::Apis::ComputeBeta::Scheduling::Representation property :self_link, as: 'selfLink' @@ -6429,6 +6364,15 @@ module Google end end + class InstanceGroupManagersApplyUpdatesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances' + property :minimal_action, as: 'minimalAction' + property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction' + end + end + class InstanceGroupManagersDeleteInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6678,8 +6622,6 @@ module Google class InstanceProperties # @private class Representation < Google::Apis::Core::JsonRepresentation - property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::ComputeBeta::AllocationAffinity, decorator: Google::Apis::ComputeBeta::AllocationAffinity::Representation - property :can_ip_forward, as: 'canIpForward' property :description, as: 'description' collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::AttachedDisk, decorator: Google::Apis::ComputeBeta::AttachedDisk::Representation @@ -6695,6 +6637,8 @@ module Google property :min_cpu_platform, as: 'minCpuPlatform' collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::ComputeBeta::NetworkInterface, decorator: Google::Apis::ComputeBeta::NetworkInterface::Representation + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeBeta::ReservationAffinity, decorator: Google::Apis::ComputeBeta::ReservationAffinity::Representation + property :scheduling, as: 'scheduling', class: Google::Apis::ComputeBeta::Scheduling, decorator: Google::Apis::ComputeBeta::Scheduling::Representation collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeBeta::ServiceAccount, decorator: Google::Apis::ComputeBeta::ServiceAccount::Representation @@ -8559,10 +8503,10 @@ module Google end end - class RegionCommitmentsUpdateAllocationsRequest + class RegionCommitmentsUpdateReservationsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :allocations, as: 'allocations', class: Google::Apis::ComputeBeta::Allocation, decorator: Google::Apis::ComputeBeta::Allocation::Representation + collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation end end @@ -8691,6 +8635,15 @@ module Google end end + class RegionInstanceGroupManagersApplyUpdatesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances' + property :minimal_action, as: 'minimalAction' + property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction' + end + end + class RegionInstanceGroupManagersDeleteInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8837,6 +8790,131 @@ module Google end end + class Reservation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :commitment, as: 'commitment' + 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 :self_link, as: 'selfLink' + property :specific_reservation, as: 'specificReservation', class: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation, decorator: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation::Representation + + property :specific_reservation_required, as: 'specificReservationRequired' + property :zone, as: 'zone' + end + end + + class ReservationAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consume_reservation_type, as: 'consumeReservationType' + property :key, as: 'key' + collection :values, as: 'values' + end + end + + class ReservationAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeBeta::ReservationsScopedList, decorator: Google::Apis::ComputeBeta::ReservationsScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReservationAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::ReservationAggregatedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReservationAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReservationAggregatedList::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 ReservationList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReservationList::Warning, decorator: Google::Apis::ComputeBeta::ReservationList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReservationList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReservationList::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 ReservationsResizeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :specific_sku_count, :numeric_string => true, as: 'specificSkuCount' + end + end + + class ReservationsScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :reservations, as: 'reservations', class: Google::Apis::ComputeBeta::Reservation, decorator: Google::Apis::ComputeBeta::Reservation::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeBeta::ReservationsScopedList::Warning, decorator: Google::Apis::ComputeBeta::ReservationsScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeBeta::ReservationsScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::ReservationsScopedList::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 ResourceCommitment # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10937,6 +11015,43 @@ module Google end end + class VpnGatewayStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :vpn_connections, as: 'vpnConnections', class: Google::Apis::ComputeBeta::VpnGatewayStatusVpnConnection, decorator: Google::Apis::ComputeBeta::VpnGatewayStatusVpnConnection::Representation + + end + end + + class VpnGatewayStatusHighAvailabilityRequirementState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :unsatisfied_reason, as: 'unsatisfiedReason' + end + end + + class VpnGatewayStatusTunnel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :local_gateway_interface, as: 'localGatewayInterface' + property :peer_gateway_interface, as: 'peerGatewayInterface' + property :tunnel_url, as: 'tunnelUrl' + end + end + + class VpnGatewayStatusVpnConnection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :peer_external_gateway, as: 'peerExternalGateway' + property :peer_gcp_gateway, as: 'peerGcpGateway' + property :state, as: 'state', class: Google::Apis::ComputeBeta::VpnGatewayStatusHighAvailabilityRequirementState, decorator: Google::Apis::ComputeBeta::VpnGatewayStatusHighAvailabilityRequirementState::Representation + + collection :tunnels, as: 'tunnels', class: Google::Apis::ComputeBeta::VpnGatewayStatusTunnel, decorator: Google::Apis::ComputeBeta::VpnGatewayStatusTunnel::Representation + + end + end + class VpnGatewayVpnGatewayInterface # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10945,6 +11060,14 @@ module Google end end + class VpnGatewaysGetStatusResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :result, as: 'result', class: Google::Apis::ComputeBeta::VpnGatewayStatus, decorator: Google::Apis::ComputeBeta::VpnGatewayStatus::Representation + + end + end + class VpnGatewaysScopedList # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 0ba7a1fa4..5f543f774 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -619,472 +619,6 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an aggregated list of allocations. - # @param [String] project - # Project ID for this request. - # @param [String] filter - # A filter expression that filters resources listed in the response. The - # expression must specify the field name, a comparison operator, and the value - # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison 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. - # 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). - # @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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::AllocationAggregatedList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::AllocationAggregatedList] - # - # @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 aggregated_allocation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/allocations', options) - command.response_representation = Google::Apis::ComputeBeta::AllocationAggregatedList::Representation - command.response_class = Google::Apis::ComputeBeta::AllocationAggregatedList - command.params['project'] = project unless project.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['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 allocation. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] allocation - # Name of the allocation 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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::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_allocation(project, zone, allocation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/allocations/{allocation}', options) - command.response_representation = Google::Apis::ComputeBeta::Operation::Representation - command.response_class = Google::Apis::ComputeBeta::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['allocation'] = allocation unless allocation.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 all information of the specified allocation. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] allocation - # Name of the allocation to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::Allocation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::Allocation] - # - # @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_allocation(project, zone, allocation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{allocation}', options) - command.response_representation = Google::Apis::ComputeBeta::Allocation::Representation - command.response_class = Google::Apis::ComputeBeta::Allocation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['allocation'] = allocation unless allocation.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 access control policy for a resource. May be empty if no such policy - # or resource exists. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name or id of the resource for this request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::Policy] - # - # @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_allocation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/allocations/{resource}/getIamPolicy', options) - command.response_representation = Google::Apis::ComputeBeta::Policy::Representation - command.response_class = Google::Apis::ComputeBeta::Policy - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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 - - # Creates a new allocation. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [Google::Apis::ComputeBeta::Allocation] allocation_object - # @param [String] request_id - # An optional request ID to identify requests. Specify a unique request ID so - # that if you must retry your request, the server will know to ignore the - # request if it has already been completed. - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request ID, the - # server can check if original operation with the same request ID was received, - # and if so, will ignore the second request. This prevents clients from - # accidentally creating duplicate commitments. - # The request ID must be a valid UUID with the exception that zero UUID is not - # supported (00000000-0000-0000-0000-000000000000). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::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_allocation(project, zone, allocation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations', options) - command.request_representation = Google::Apis::ComputeBeta::Allocation::Representation - command.request_object = allocation_object - command.response_representation = Google::Apis::ComputeBeta::Operation::Representation - command.response_class = Google::Apis::ComputeBeta::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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 - - # A list all the allocations that have been configured for the specified project - # in specified zone. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] filter - # A filter expression that filters resources listed in the response. The - # expression must specify the field name, a comparison operator, and the value - # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison 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. - # 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). - # @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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::AllocationList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::AllocationList] - # - # @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_allocations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/allocations', options) - command.response_representation = Google::Apis::ComputeBeta::AllocationList::Representation - command.response_class = Google::Apis::ComputeBeta::AllocationList - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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['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 - - # Resizes the allocation (applicable to standalone allocations only) - # @param [String] project - # Project ID for this request. - # @param [String] zone - # Name of the zone for this request. - # @param [String] allocation - # Name of the allocation to update. - # @param [Google::Apis::ComputeBeta::AllocationsResizeRequest] allocations_resize_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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::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 resize_allocation(project, zone, allocation, allocations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{allocation}/resize', options) - command.request_representation = Google::Apis::ComputeBeta::AllocationsResizeRequest::Representation - command.request_object = allocations_resize_request_object - command.response_representation = Google::Apis::ComputeBeta::Operation::Representation - command.response_class = Google::Apis::ComputeBeta::Operation - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.nil? - command.params['allocation'] = allocation unless allocation.nil? - command.query['requestId'] = request_id unless request_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name or id of the resource for this request. - # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_allocation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation - command.request_object = zone_set_policy_request_object - command.response_representation = Google::Apis::ComputeBeta::Policy::Representation - command.response_class = Google::Apis::ComputeBeta::Policy - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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 permissions that a caller has on the specified resource. - # @param [String] project - # Project ID for this request. - # @param [String] zone - # The name of the zone for this request. - # @param [String] resource - # Name or id of the resource for this request. - # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::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_allocation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/allocations/{resource}/testIamPermissions', options) - command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation - command.request_object = test_permissions_request_object - command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation - command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse - command.params['project'] = project unless project.nil? - command.params['zone'] = zone unless zone.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 - # Retrieves an aggregated list of autoscalers. # @param [String] project # Project ID for this request. @@ -7102,6 +6636,50 @@ module Google execute_or_queue_command(command, &block) end + # Apply changes to selected instances on the managed instance group. This method + # can be used to apply new overrides and/or new versions. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone where the managed instance group is located. Should + # conform to RFC1035. + # @param [String] instance_group_manager + # The name of the managed instance group, should conform to RFC1035. + # @param [Google::Apis::ComputeBeta::InstanceGroupManagersApplyUpdatesRequest] instance_group_managers_apply_updates_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 apply_instance_group_manager_updates_to_instances(project, zone, instance_group_manager, instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options) + command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersApplyUpdatesRequest::Representation + command.request_object = instance_group_managers_apply_updates_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 managed instance group and all of the instances in that # group. Note that the instance group must not belong to a backend service. Read # Deleting an instance group for more information. @@ -16597,15 +16175,15 @@ module Google execute_or_queue_command(command, &block) end - # Update the shape of allocations for GPUS/Local SSDs of allocations within the - # commitments. + # Update the shape of reservations for GPUS/Local SSDs of reservations within + # the commitments. # @param [String] project # Project ID for this request. # @param [String] region # Name of the region for this request. # @param [String] commitment - # Name of the commitment of which the allocation's capacities are being updated. - # @param [Google::Apis::ComputeBeta::RegionCommitmentsUpdateAllocationsRequest] region_commitments_update_allocations_request_object + # Name of the commitment of which the reservation's capacities are being updated. + # @param [Google::Apis::ComputeBeta::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_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 @@ -16636,10 +16214,10 @@ module Google # @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 update_region_commitment_allocations(project, region, commitment, region_commitments_update_allocations_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/commitments/{commitment}/updateAllocations', options) - command.request_representation = Google::Apis::ComputeBeta::RegionCommitmentsUpdateAllocationsRequest::Representation - command.request_object = region_commitments_update_allocations_request_object + def update_region_commitment_reservations(project, region, commitment, region_commitments_update_reservations_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/commitments/{commitment}/updateReservations', options) + command.request_representation = Google::Apis::ComputeBeta::RegionCommitmentsUpdateReservationsRequest::Representation + command.request_object = region_commitments_update_reservations_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -17449,6 +17027,48 @@ module Google execute_or_queue_command(command, &block) end + # Apply updates to selected instances the managed instance group. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request, should conform to RFC1035. + # @param [String] instance_group_manager + # The name of the managed instance group, should conform to RFC1035. + # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options) + command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest::Representation + command.request_object = region_instance_group_managers_apply_updates_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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 managed instance group and all of the instances in that # group. # @param [String] project @@ -18814,6 +18434,472 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of reservations. + # @param [String] project + # Project ID for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison 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. + # 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). + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::ReservationAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ReservationAggregatedList] + # + # @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 aggregated_reservation_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/aggregated/reservations', options) + command.response_representation = Google::Apis::ComputeBeta::ReservationAggregatedList::Representation + command.response_class = Google::Apis::ComputeBeta::ReservationAggregatedList + command.params['project'] = project unless project.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['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 reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation 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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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_reservation(project, zone, reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/zones/{zone}/reservations/{reservation}', options) + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.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 all information of the specified reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation to retrieve. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Reservation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Reservation] + # + # @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_reservation(project, zone, reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{reservation}', options) + command.response_representation = Google::Apis::ComputeBeta::Reservation::Representation + command.response_class = Google::Apis::ComputeBeta::Reservation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.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 access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @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_reservation_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options) + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 + + # Creates a new reservation. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [Google::Apis::ComputeBeta::Reservation] reservation_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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_reservation(project, zone, reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations', options) + command.request_representation = Google::Apis::ComputeBeta::Reservation::Representation + command.request_object = reservation_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 + + # A list all the reservations that have been configured for the specified + # project in specified zone. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] filter + # A filter expression that filters resources listed in the response. The + # expression must specify the field name, a comparison operator, and the value + # that you want to use for filtering. The value must be a string, a number, or a + # boolean. The comparison 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. + # 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). + # @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] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::ReservationList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::ReservationList] + # + # @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_reservations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/reservations', options) + command.response_representation = Google::Apis::ComputeBeta::ReservationList::Representation + command.response_class = Google::Apis::ComputeBeta::ReservationList + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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['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 + + # Resizes the reservation (applicable to standalone reservations only) + # @param [String] project + # Project ID for this request. + # @param [String] zone + # Name of the zone for this request. + # @param [String] reservation + # Name of the reservation to update. + # @param [Google::Apis::ComputeBeta::ReservationsResizeRequest] reservations_resize_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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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 resize_reservation(project, zone, reservation, reservations_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{reservation}/resize', options) + command.request_representation = Google::Apis::ComputeBeta::ReservationsResizeRequest::Representation + command.request_object = reservations_resize_request_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['reservation'] = reservation unless reservation.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_reservation_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/setIamPolicy', options) + command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation + command.request_object = zone_set_policy_request_object + command.response_representation = Google::Apis::ComputeBeta::Policy::Representation + command.response_class = Google::Apis::ComputeBeta::Policy + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] resource + # Name or id of the resource for this request. + # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::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_reservation_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/reservations/{resource}/testIamPermissions', options) + command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.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 + # Retrieves an aggregated list of resource policies. # @param [String] project # Project ID for this request. @@ -25619,6 +25705,45 @@ module Google execute_or_queue_command(command, &block) end + # Returns the status for the specified VPN gateway. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region for this request. + # @param [String] vpn_gateway + # Name of the VPN gateway to return. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::VpnGatewaysGetStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::VpnGatewaysGetStatusResponse] + # + # @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_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options) + command.response_representation = Google::Apis::ComputeBeta::VpnGatewaysGetStatusResponse::Representation + command.response_class = Google::Apis::ComputeBeta::VpnGatewaysGetStatusResponse + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.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 VPN gateway in the specified project and region using the data # included in the request. # @param [String] project diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 198a277b7..a96f56380 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20190221' + REVISION = '20190308' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index 8d9ce38f3..866e387b2 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -7387,6 +7387,17 @@ module Google # @return [Array] attr_accessor :service_accounts + # A set of Shielded Instance options. + # Corresponds to the JSON property `shieldedInstanceConfig` + # @return [Google::Apis::ComputeV1::ShieldedInstanceConfig] + attr_accessor :shielded_instance_config + + # The policy describes the baseline against which Instance boot integrity is + # measured. + # Corresponds to the JSON property `shieldedInstanceIntegrityPolicy` + # @return [Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy] + attr_accessor :shielded_instance_integrity_policy + # [Output Only] Whether a VM has been restricted for start because Compute # Engine has detected suspicious activity. # Corresponds to the JSON property `startRestricted` @@ -7444,6 +7455,8 @@ module Google @scheduling = args[:scheduling] if args.key?(:scheduling) @self_link = args[:self_link] if args.key?(:self_link) @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config) + @shielded_instance_integrity_policy = args[:shielded_instance_integrity_policy] if args.key?(:shielded_instance_integrity_policy) @start_restricted = args[:start_restricted] if args.key?(:start_restricted) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @@ -18609,6 +18622,119 @@ module Google end end + # A set of Shielded Instance options. + class ShieldedInstanceConfig + include Google::Apis::Core::Hashable + + # Defines whether the instance has integrity monitoring enabled. + # Corresponds to the JSON property `enableIntegrityMonitoring` + # @return [Boolean] + attr_accessor :enable_integrity_monitoring + alias_method :enable_integrity_monitoring?, :enable_integrity_monitoring + + # Defines whether the instance has Secure Boot enabled. + # Corresponds to the JSON property `enableSecureBoot` + # @return [Boolean] + attr_accessor :enable_secure_boot + alias_method :enable_secure_boot?, :enable_secure_boot + + # Defines whether the instance has the vTPM enabled. + # Corresponds to the JSON property `enableVtpm` + # @return [Boolean] + attr_accessor :enable_vtpm + alias_method :enable_vtpm?, :enable_vtpm + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring) + @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot) + @enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm) + end + end + + # A shielded Instance identity entry. + class ShieldedInstanceIdentity + include Google::Apis::Core::Hashable + + # A Shielded Instance Identity Entry. + # Corresponds to the JSON property `encryptionKey` + # @return [Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry] + attr_accessor :encryption_key + + # [Output Only] Type of the resource. Always compute#shieldedInstanceIdentity + # for shielded Instance identity entry. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A Shielded Instance Identity Entry. + # Corresponds to the JSON property `signingKey` + # @return [Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry] + attr_accessor :signing_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @encryption_key = args[:encryption_key] if args.key?(:encryption_key) + @kind = args[:kind] if args.key?(:kind) + @signing_key = args[:signing_key] if args.key?(:signing_key) + end + end + + # A Shielded Instance Identity Entry. + class ShieldedInstanceIdentityEntry + include Google::Apis::Core::Hashable + + # A PEM-encoded X.509 certificate. This field can be empty. + # Corresponds to the JSON property `ekCert` + # @return [String] + attr_accessor :ek_cert + + # A PEM-encoded public key. + # Corresponds to the JSON property `ekPub` + # @return [String] + attr_accessor :ek_pub + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ek_cert = args[:ek_cert] if args.key?(:ek_cert) + @ek_pub = args[:ek_pub] if args.key?(:ek_pub) + end + end + + # The policy describes the baseline against which Instance boot integrity is + # measured. + class ShieldedInstanceIntegrityPolicy + include Google::Apis::Core::Hashable + + # Updates the integrity policy baseline using the measurements from the VM + # instance's most recent boot. + # Corresponds to the JSON property `updateAutoLearnPolicy` + # @return [Boolean] + attr_accessor :update_auto_learn_policy + alias_method :update_auto_learn_policy?, :update_auto_learn_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @update_auto_learn_policy = args[:update_auto_learn_policy] if args.key?(:update_auto_learn_policy) + end + end + # Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs class SignedUrlKey include Google::Apis::Core::Hashable diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 53038c33a..ae507173e 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -2536,6 +2536,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ShieldedInstanceConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShieldedInstanceIdentity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShieldedInstanceIdentityEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShieldedInstanceIntegrityPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SignedUrlKey class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5092,6 +5116,10 @@ module Google property :self_link, as: 'selfLink' collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeV1::ServiceAccount, decorator: Google::Apis::ComputeV1::ServiceAccount::Representation + property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ComputeV1::ShieldedInstanceConfig, decorator: Google::Apis::ComputeV1::ShieldedInstanceConfig::Representation + + property :shielded_instance_integrity_policy, as: 'shieldedInstanceIntegrityPolicy', class: Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy, decorator: Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy::Representation + property :start_restricted, as: 'startRestricted' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -7989,6 +8017,41 @@ module Google end end + class ShieldedInstanceConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enable_integrity_monitoring, as: 'enableIntegrityMonitoring' + property :enable_secure_boot, as: 'enableSecureBoot' + property :enable_vtpm, as: 'enableVtpm' + end + end + + class ShieldedInstanceIdentity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :encryption_key, as: 'encryptionKey', class: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry, decorator: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry::Representation + + property :kind, as: 'kind' + property :signing_key, as: 'signingKey', class: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry, decorator: Google::Apis::ComputeV1::ShieldedInstanceIdentityEntry::Representation + + end + end + + class ShieldedInstanceIdentityEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ek_cert, as: 'ekCert' + property :ek_pub, as: 'ekPub' + end + end + + class ShieldedInstanceIntegrityPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :update_auto_learn_policy, as: 'updateAutoLearnPolicy' + end + end + class SignedUrlKey # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 6fa86757f..431f1a883 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -7572,6 +7572,45 @@ module Google execute_or_queue_command(command, &block) end + # Returns the Shielded Instance Identity of an instance + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name or id of the instance scoping this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeV1::ShieldedInstanceIdentity] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::ShieldedInstanceIdentity] + # + # @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_instance_shielded_instance_identity(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity', options) + command.response_representation = Google::Apis::ComputeV1::ShieldedInstanceIdentity::Representation + command.response_class = Google::Apis::ComputeV1::ShieldedInstanceIdentity + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.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 an instance resource in the specified project using the data included # in the request. # @param [String] project @@ -8377,6 +8416,62 @@ module Google execute_or_queue_command(command, &block) end + # Sets the Shielded Instance integrity policy for an instance. You can only use + # this method on a running instance. This method supports PATCH semantics and + # uses the JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name or id of the instance scoping this request. + # @param [Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy] shielded_instance_integrity_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 + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::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 set_instance_shielded_instance_integrity_policy(project, zone, instance, shielded_instance_integrity_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options) + command.request_representation = Google::Apis::ComputeV1::ShieldedInstanceIntegrityPolicy::Representation + command.request_object = shielded_instance_integrity_policy_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['instance'] = instance unless instance.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets network tags for the specified instance to the data included in the # request. # @param [String] project @@ -8791,6 +8886,62 @@ module Google execute_or_queue_command(command, &block) end + # Updates the Shielded Instance config for an instance. You can only use this + # method on a stopped instance. This method supports PATCH semantics and uses + # the JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name or id of the instance scoping this request. + # @param [Google::Apis::ComputeV1::ShieldedInstanceConfig] shielded_instance_config_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::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 update_instance_shielded_instance_config(project, zone, instance, shielded_instance_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig', options) + command.request_representation = Google::Apis::ComputeV1::ShieldedInstanceConfig::Representation + command.request_object = shielded_instance_config_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['instance'] = instance unless instance.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 interconnect attachments. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 1d6a66e66..419abdd15 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20190301' + REVISION = '20190313' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index 733f2f016..92994e801 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -54,37 +54,6 @@ module Google end end - # Allocation Affinity for consuming Zonal allocation. - class AllocationAffinity - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `consumeAllocationType` - # @return [String] - attr_accessor :consume_allocation_type - - # Corresponds to the label key of Allocation resource. - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Corresponds to the label values of allocation resource. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @consume_allocation_type = args[:consume_allocation_type] if args.key?(:consume_allocation_type) - @key = args[:key] if args.key?(:key) - @values = args[:values] if args.key?(:values) - end - end - # Autoscaling Policy config associated with the cluster. class AutoscalingConfig include Google::Apis::Core::Hashable @@ -418,8 +387,8 @@ module Google # default, executables are run on master and all worker nodes. You can test a # node's role metadata to run an executable on a master or worker # node, as shown below using curl (you can also use wget): - # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1beta2/ - # instance/attributes/dataproc-role) + # ROLE=$(curl -H Metadata-Flavor:Google + # http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) # if [[ "$`ROLE`" == 'Master' ]]; then # ... master specific actions ... # else @@ -892,11 +861,6 @@ module Google class GceClusterConfig include Google::Apis::Core::Hashable - # Allocation Affinity for consuming Zonal allocation. - # Corresponds to the JSON property `allocationAffinity` - # @return [Google::Apis::DataprocV1beta2::AllocationAffinity] - attr_accessor :allocation_affinity - # Optional. If true, all instances in the cluster will only have internal IP # addresses. By default, clusters are not restricted to internal IP addresses, # and will have ephemeral external IP addresses assigned to each instance. This @@ -928,6 +892,11 @@ module Google # @return [String] attr_accessor :network_uri + # Reservation Affinity for consuming Zonal reservation. + # Corresponds to the JSON property `reservationAffinity` + # @return [Google::Apis::DataprocV1beta2::ReservationAffinity] + attr_accessor :reservation_affinity + # Optional. The service account of the instances. Defaults to the default # Compute Engine service account. Custom service accounts need permissions # equivalent to the following IAM roles: @@ -987,10 +956,10 @@ module Google # Update properties of this object def update!(**args) - @allocation_affinity = args[:allocation_affinity] if args.key?(:allocation_affinity) @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only) @metadata = args[:metadata] if args.key?(:metadata) @network_uri = args[:network_uri] if args.key?(:network_uri) + @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @service_account = args[:service_account] if args.key?(:service_account) @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes) @subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri) @@ -1154,9 +1123,10 @@ module Google include Google::Apis::Core::Hashable # Optional. Maximum number of instances for this group. Required for primary - # workers. Note that by default, clusters will not use secondary workers.Primary - # workers - Bounds: [min_instances, ). Secondary workers - Bounds: [ - # min_instances, ). Default: 0. + # workers. Note that by default, clusters will not use secondary workers. + # Required for secondary workers if the minimum secondary instances is set. + # Primary workers - Bounds: [min_instances, ). Required. Secondary workers - + # Bounds: [min_instances, ). Default: 0. # Corresponds to the JSON property `maxInstances` # @return [Fixnum] attr_accessor :max_instances @@ -1168,17 +1138,7 @@ module Google # @return [Fixnum] attr_accessor :min_instances - # Optional. Weight for instance group. Determines fraction of total workers in - # cluster that will be composed of instances from this instance group (e.g. if - # primary workers have weight 2 and secondary workers have weight 1, then the - # cluster should have approximately 2 primary workers to each secondary worker. - # Cluster may not reach these exact weights if constrained by min/max bounds or - # other autoscaling configurations.Note that all groups have an equal weight by - # default, so the cluster will attempt to maintain an equal number of workers in - # each group within configured size bounds per group. The cluster may not reach - # this balance of weights if not allowed by worker-count bounds. For example, if - # max_instances for secondary workers is 0, only primary workers will be added. - # The cluster can also be out of balance when created.Default: 1. + # # Corresponds to the JSON property `weight` # @return [Fixnum] attr_accessor :weight @@ -2511,6 +2471,37 @@ module Google end end + # Reservation Affinity for consuming Zonal reservation. + class ReservationAffinity + include Google::Apis::Core::Hashable + + # Optional. Type of reservation to consume + # Corresponds to the JSON property `consumeReservationType` + # @return [String] + attr_accessor :consume_reservation_type + + # Optional. Corresponds to the label key of reservation resource. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Optional. Corresponds to the label values of reservation resource. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type) + @key = args[:key] if args.key?(:key) + @values = args[:values] if args.key?(:values) + end + end + # Security related configuration, including encryption, Kerberos, etc. class SecurityConfig include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index 9ab70e7e1..868b5fc49 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -28,12 +28,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AllocationAffinity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class AutoscalingConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -352,6 +346,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ReservationAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SecurityConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -468,15 +468,6 @@ module Google end end - class AllocationAffinity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :consume_allocation_type, as: 'consumeAllocationType' - property :key, as: 'key' - collection :values, as: 'values' - end - end - class AutoscalingConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -698,11 +689,11 @@ module Google class GceClusterConfig # @private class Representation < Google::Apis::Core::JsonRepresentation - property :allocation_affinity, as: 'allocationAffinity', class: Google::Apis::DataprocV1beta2::AllocationAffinity, decorator: Google::Apis::DataprocV1beta2::AllocationAffinity::Representation - property :internal_ip_only, as: 'internalIpOnly' hash :metadata, as: 'metadata' property :network_uri, as: 'networkUri' + property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::DataprocV1beta2::ReservationAffinity, decorator: Google::Apis::DataprocV1beta2::ReservationAffinity::Representation + property :service_account, as: 'serviceAccount' collection :service_account_scopes, as: 'serviceAccountScopes' property :subnetwork_uri, as: 'subnetworkUri' @@ -1075,6 +1066,15 @@ module Google end end + class ReservationAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :consume_reservation_type, as: 'consumeReservationType' + property :key, as: 'key' + collection :values, as: 'values' + end + end + class SecurityConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1beta2/service.rb b/generated/google/apis/dataproc_v1beta2/service.rb index 65fa3507b..6472bc508 100644 --- a/generated/google/apis/dataproc_v1beta2/service.rb +++ b/generated/google/apis/dataproc_v1beta2/service.rb @@ -1306,22 +1306,24 @@ module Google # labelsUpdates labels # # - # config.worker_config.num_instancesResize primary worker group + # config.worker_config.num_instancesResize primary worker + # group # # # config.secondary_worker_config.num_instancesResize secondary # worker group # # - # config.lifecycle_config.auto_delete_ttlReset MAX TTL duration + # config.lifecycle_config.auto_delete_ttlReset MAX TTL + # duration # # - # config.lifecycle_config.auto_delete_timeUpdate MAX TTL deletion - # timestamp + # config.lifecycle_config.auto_delete_timeUpdate MAX TTL + # deletion timestamp # # - # config.lifecycle_config.idle_delete_ttlUpdate Idle TTL duration + # config.lifecycle_config.idle_delete_ttlUpdate Idle TTL + # duration # # # config.autoscaling_config.policy_uriUse, stop using, or change diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 704c53baa..6b207a6cc 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2 VERSION = 'V2' - REVISION = '20190311' + REVISION = '20190318' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 5e19bfb15..6b7bd24a9 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -28,7 +28,10 @@ module Google # Optional. The URI of the agent's avatar. # Avatars are used throughout the Dialogflow console and in the self-hosted - # [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + # [Web + # Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web- + # demo) + # integration. # Corresponds to the JSON property `avatarUri` # @return [String] attr_accessor :avatar_uri @@ -45,9 +48,11 @@ module Google attr_accessor :classification_threshold # Required. The default language of the agent as a language tag. See - # [Language Support](https://dialogflow.com/docs/reference/language) for a - # list of the currently supported language codes. - # This field cannot be set by the `Update` method. + # [Language + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. This field cannot be + # set by the `Update` method. # Corresponds to the JSON property `defaultLanguageCode` # @return [String] attr_accessor :default_language_code @@ -123,9 +128,11 @@ module Google # Optional. The language of entity synonyms defined in `entities`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -154,9 +161,11 @@ module Google # Optional. The language of entity synonyms defined in `entities`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -223,9 +232,11 @@ module Google # Optional. The language of entity synonyms defined in `entities`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -266,9 +277,11 @@ module Google # Optional. The language of entity synonyms defined in `entity_types`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -333,9 +346,11 @@ module Google # Optional. The language of training phrases, parameters and rich messages # defined in `intents`. If not specified, the agent's default language is - # used. [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # used. [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -399,8 +414,10 @@ module Google attr_accessor :name # Optional. The collection of parameters associated with this context. - # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - # syntax. + # Refer to [this + # doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions- + # parameters) + # for syntax. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters @@ -638,9 +655,10 @@ module Google include Google::Apis::Core::Hashable # Required. The language of this query. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -781,9 +799,10 @@ module Google # Required. The language of the supplied audio. Dialogflow does not do # translations. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # languages) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -2084,7 +2103,9 @@ module Google attr_accessor :intent_detection_confidence # The language that was triggered during intent detection. - # See [Language Support](https://dialogflow.com/docs/reference/language) + # See [Language + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) # for a list of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] @@ -2274,9 +2295,10 @@ module Google include Google::Apis::Core::Hashable # Required. The language of this conversational query. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -2494,8 +2516,10 @@ module Google attr_accessor :name # Optional. The collection of parameters associated with this context. - # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - # syntax. + # Refer to [this + # doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions- + # parameters) + # for syntax. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters @@ -2606,9 +2630,10 @@ module Google include Google::Apis::Core::Hashable # Required. The language of this query. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -3940,7 +3965,9 @@ module Google attr_accessor :knowledge_answers # The language that was triggered during intent detection. - # See [Language Support](https://dialogflow.com/docs/reference/language) + # See [Language + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) # for a list of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] diff --git a/generated/google/apis/dialogflow_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb index f611cb4ac..5e8cd179f 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -346,9 +346,11 @@ module Google # @param [String] language_code # Optional. The language of entity synonyms defined in `entity_type`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -417,9 +419,11 @@ module Google # @param [String] language_code # Optional. The language to retrieve entity synonyms for. If not specified, # the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -455,9 +459,11 @@ module Google # @param [String] language_code # Optional. The language to list entity synonyms for. If not specified, # the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [Fixnum] page_size # Optional. The maximum number of items to return in a single page. By # default 100 and at most 1000. @@ -503,9 +509,11 @@ module Google # @param [String] language_code # Optional. The language of entity synonyms defined in `entity_type`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] update_mask # Optional. The mask to control which fields get updated. # @param [String] fields @@ -726,9 +734,11 @@ module Google # @param [String] language_code # Optional. The language of training phrases, parameters and rich messages # defined in `intent`. If not specified, the agent's default language is - # used. [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # used. [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -801,9 +811,11 @@ module Google # @param [String] language_code # Optional. The language to retrieve training phrases, parameters and rich # messages for. If not specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -842,9 +854,11 @@ module Google # @param [String] language_code # Optional. The language to list training phrases, parameters and rich # messages for. If not specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [Fixnum] page_size # Optional. The maximum number of items to return in a single page. By # default 100 and at most 1000. @@ -893,9 +907,11 @@ module Google # @param [String] language_code # Optional. The language of training phrases, parameters and rich messages # defined in `intent`. If not specified, the agent's default language is - # used. [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # used. [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] update_mask # Optional. The mask to control which fields get updated. # @param [String] fields diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 1c7623f46..8ac7e8997 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20190311' + REVISION = '20190318' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index b0d1fdf21..2fec44db7 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -81,8 +81,10 @@ module Google attr_accessor :name # Optional. The collection of parameters associated with this context. - # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - # syntax. + # Refer to [this + # doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions- + # parameters) + # for syntax. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters @@ -193,9 +195,10 @@ module Google include Google::Apis::Core::Hashable # Required. The language of this query. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1297,7 +1300,9 @@ module Google attr_accessor :intent_detection_confidence # The language that was triggered during intent detection. - # See [Language Support](https://dialogflow.com/docs/reference/language) + # See [Language + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) # for a list of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] @@ -1500,7 +1505,10 @@ module Google # Optional. The URI of the agent's avatar. # Avatars are used throughout the Dialogflow console and in the self-hosted - # [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. + # [Web + # Demo](https://cloud.google.com/dialogflow-enterprise/docs/integrations/web- + # demo) + # integration. # Corresponds to the JSON property `avatarUri` # @return [String] attr_accessor :avatar_uri @@ -1517,9 +1525,11 @@ module Google attr_accessor :classification_threshold # Required. The default language of the agent as a language tag. See - # [Language Support](https://dialogflow.com/docs/reference/language) for a - # list of the currently supported language codes. - # This field cannot be set by the `Update` method. + # [Language + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. This field cannot be + # set by the `Update` method. # Corresponds to the JSON property `defaultLanguageCode` # @return [String] attr_accessor :default_language_code @@ -1595,9 +1605,11 @@ module Google # Optional. The language of entity synonyms defined in `entities`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1626,9 +1638,11 @@ module Google # Optional. The language of entity synonyms defined in `entities`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1695,9 +1709,11 @@ module Google # Optional. The language of entity synonyms defined in `entities`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1738,9 +1754,11 @@ module Google # Optional. The language of entity synonyms defined in `entity_types`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1805,9 +1823,11 @@ module Google # Optional. The language of training phrases, parameters and rich messages # defined in `intents`. If not specified, the agent's default language is - # used. [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # used. [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1875,8 +1895,10 @@ module Google attr_accessor :name # Optional. The collection of parameters associated with this context. - # Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for - # syntax. + # Refer to [this + # doc](https://cloud.google.com/dialogflow-enterprise/docs/intents-actions- + # parameters) + # for syntax. # Corresponds to the JSON property `parameters` # @return [Hash] attr_accessor :parameters @@ -2223,9 +2245,10 @@ module Google include Google::Apis::Core::Hashable # Required. The language of this query. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -2366,9 +2389,10 @@ module Google # Required. The language of the supplied audio. Dialogflow does not do # translations. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -4047,7 +4071,9 @@ module Google attr_accessor :knowledge_answers # The language that was triggered during intent detection. - # See [Language Support](https://dialogflow.com/docs/reference/language) + # See [Language + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) # for a list of the currently supported language codes. # Corresponds to the JSON property `languageCode` # @return [String] @@ -4390,9 +4416,10 @@ module Google include Google::Apis::Core::Hashable # Required. The language of this conversational query. See [Language - # Support](https://dialogflow.com/docs/languages) for a list of the - # currently supported language codes. Note that queries in the same session - # do not necessarily need to specify the same language. + # Support](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # for a list of the currently supported language codes. Note that queries in + # the same session do not necessarily need to specify the same language. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 2ca124921..171cf46c6 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -346,9 +346,11 @@ module Google # @param [String] language_code # Optional. The language of entity synonyms defined in `entity_type`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -417,9 +419,11 @@ module Google # @param [String] language_code # Optional. The language to retrieve entity synonyms for. If not specified, # the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -455,9 +459,11 @@ module Google # @param [String] language_code # Optional. The language to list entity synonyms for. If not specified, # the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [Fixnum] page_size # Optional. The maximum number of items to return in a single page. By # default 100 and at most 1000. @@ -503,9 +509,11 @@ module Google # @param [String] language_code # Optional. The language of entity synonyms defined in `entity_type`. If not # specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] update_mask # Optional. The mask to control which fields get updated. # @param [String] fields @@ -1194,9 +1202,11 @@ module Google # @param [String] language_code # Optional. The language of training phrases, parameters and rich messages # defined in `intent`. If not specified, the agent's default language is - # used. [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # used. [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1269,9 +1279,11 @@ module Google # @param [String] language_code # Optional. The language to retrieve training phrases, parameters and rich # messages for. If not specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1310,9 +1322,11 @@ module Google # @param [String] language_code # Optional. The language to list training phrases, parameters and rich # messages for. If not specified, the agent's default language is used. - # [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent before they can be used. + # [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [Fixnum] page_size # Optional. The maximum number of items to return in a single page. By # default 100 and at most 1000. @@ -1361,9 +1375,11 @@ module Google # @param [String] language_code # Optional. The language of training phrases, parameters and rich messages # defined in `intent`. If not specified, the agent's default language is - # used. [More than a dozen - # languages](https://dialogflow.com/docs/reference/language) are supported. - # Note: languages must be enabled in the agent, before they can be used. + # used. [Many + # languages](https://cloud.google.com/dialogflow-enterprise/docs/reference/ + # language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. # @param [String] update_mask # Optional. The mask to control which fields get updated. # @param [String] fields diff --git a/generated/google/apis/jobs_v3p1beta1.rb b/generated/google/apis/jobs_v3p1beta1.rb index 3f3504df1..05b624ed1 100644 --- a/generated/google/apis/jobs_v3p1beta1.rb +++ b/generated/google/apis/jobs_v3p1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/talent-solution/job-search/docs/ module JobsV3p1beta1 VERSION = 'V3p1beta1' - REVISION = '20190306' + REVISION = '20190322' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/jobs_v3p1beta1/classes.rb b/generated/google/apis/jobs_v3p1beta1/classes.rb index 3184012ce..c5881616e 100644 --- a/generated/google/apis/jobs_v3p1beta1/classes.rb +++ b/generated/google/apis/jobs_v3p1beta1/classes.rb @@ -2222,14 +2222,14 @@ module Google attr_accessor :done alias_method :done?, :done - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing @@ -2909,14 +2909,14 @@ module Google end end - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by - # [gRPC](https://github.com/grpc). The error model is designed to be: + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). The error model is designed to be: # - Simple to use and understand for most users # - Flexible enough to meet unexpected needs # # Overview - # The `Status` message contains three pieces of data: error code, error message, - # and error details. The error code should be an enum value of + # The `Status` message contains three pieces of data: error code, error + # message, and error details. The error code should be an enum value of # google.rpc.Code, but it may accept additional error codes if needed. The # error message should be a developer-facing English message that helps # developers *understand* and *resolve* the error. If a localized user-facing diff --git a/generated/google/apis/logging_v2beta1.rb b/generated/google/apis/logging_v2beta1.rb index b756807e8..a91b920c8 100644 --- a/generated/google/apis/logging_v2beta1.rb +++ b/generated/google/apis/logging_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/logging/docs/ module LoggingV2beta1 VERSION = 'V2beta1' - REVISION = '20190311' + REVISION = '20190316' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index 7e62d003f..8b8da3426 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20190306' + REVISION = '20190320' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index da452a163..546083f64 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -28,10 +28,9 @@ module Google include Google::Apis::Core::Hashable # This structure defines a tenant project to be added to the specified tenancy - # unit and its initial configuration and properties. A project lien will be - # created for the tenant project to prevent the tenant project from being - # deleted accidentally. The lien will be deleted as part of tenant project - # removal. + # unit and its initial configuration and properties. A project lien is created + # for the tenant project to prevent the tenant project from being deleted + # accidentally. The lien is deleted as part of tenant project removal. # Corresponds to the JSON property `projectConfig` # @return [Google::Apis::ServiceconsumermanagementV1::TenantProjectConfig] attr_accessor :project_config @@ -137,10 +136,9 @@ module Google include Google::Apis::Core::Hashable # This structure defines a tenant project to be added to the specified tenancy - # unit and its initial configuration and properties. A project lien will be - # created for the tenant project to prevent the tenant project from being - # deleted accidentally. The lien will be deleted as part of tenant project - # removal. + # unit and its initial configuration and properties. A project lien is created + # for the tenant project to prevent the tenant project from being deleted + # accidentally. The lien is deleted as part of tenant project removal. # Corresponds to the JSON property `projectConfig` # @return [Google::Apis::ServiceconsumermanagementV1::TenantProjectConfig] attr_accessor :project_config @@ -172,9 +170,10 @@ module Google # @return [String] attr_accessor :external_resource - # When attaching a reserved project already in Tenancy Units, this is the - # tag of tenant resource under the tenancy unit for the service's producer - # project. The reserved tenant resource must be in active state. + # When attaching a reserved project already in tenancy units, this is the + # tag of a tenant resource under the tenancy unit for the managed service's + # service producer project. The reserved tenant resource must be in an + # active state. # Corresponds to the JSON property `reservedResource` # @return [String] attr_accessor :reserved_resource @@ -555,7 +554,7 @@ module Google end end - # Describes billing configuration for a new tenant project. + # Describes the billing configuration for a new tenant project. class BillingConfig include Google::Apis::Core::Hashable @@ -732,17 +731,18 @@ module Google end end - # Request to create a tenancy unit for a consumer of a service. + # Request to create a tenancy unit for a service consumer of a managed service. class CreateTenancyUnitRequest include Google::Apis::Core::Hashable - # Optional producer provided identifier of the tenancy unit. + # Optional service producer-provided identifier of the tenancy unit. # Must be no longer than 40 characters and preferably URI friendly. - # If it is not provided, a UID for the tenancy unit will be auto generated. - # It must be unique across a service. - # If the tenancy unit already exists for the service and consumer pair, - # `CreateTenancyUnit` will return the existing tenancy unit if the provided - # identifier is identical or empty, otherwise the call will fail. + # If it isn't provided, a UID for the tenancy unit is automatically + # generated. The identifier must be unique across a managed service. + # If the tenancy unit already exists for the managed service and service + # consumer pair, calling `CreateTenancyUnit` returns the existing tenancy + # unit if the provided identifier is identical or empty, otherwise the call + # fails. # Corresponds to the JSON property `tenancyUnitId` # @return [String] attr_accessor :tenancy_unit_id @@ -2530,7 +2530,7 @@ module Google include Google::Apis::Core::Hashable # Uses the same format as in IAM policy. - # `member` must include both prefix and ID. For example, `user:`emailId``, + # `member` must include both a prefix and ID. For example, `user:`emailId``, # `serviceAccount:`emailId``, `group:`emailId``. # Corresponds to the JSON property `members` # @return [Array] @@ -2695,7 +2695,7 @@ module Google end end - # Request message to remove tenant project resource from the tenancy unit. + # Request message to remove a tenant project resource from the tenancy unit. class RemoveTenantProjectRequest include Google::Apis::Core::Hashable @@ -3151,16 +3151,16 @@ module Google end end - # Describes service account configuration for the tenant project. + # Describes the service account configuration for the tenant project. class ServiceAccountConfig include Google::Apis::Core::Hashable # ID of the IAM service account to be created in tenant project. - # The email format of the service account will be + # The email format of the service account is # "@.iam.gserviceaccount.com". - # This account id has to be unique within tenant project and producers - # have to guarantee it. And it must be 6-30 characters long, and matches the - # regular expression `[a-z]([-a-z0-9]*[a-z0-9])`. + # This account ID must be unique within tenant project and service + # producers have to guarantee it. The ID must be 6-30 characters long, and + # match the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])`. # Corresponds to the JSON property `accountId` # @return [String] attr_accessor :account_id @@ -3425,7 +3425,8 @@ module Google # @return [String] attr_accessor :name - # @OutputOnly Google Cloud API name of the service owning this tenancy unit. + # Output only. Google Cloud API name of the managed service owning this + # tenancy unit. # For example 'serviceconsumermanagement.googleapis.com'. # Corresponds to the JSON property `service` # @return [String] @@ -3452,20 +3453,19 @@ module Google end # This structure defines a tenant project to be added to the specified tenancy - # unit and its initial configuration and properties. A project lien will be - # created for the tenant project to prevent the tenant project from being - # deleted accidentally. The lien will be deleted as part of tenant project - # removal. + # unit and its initial configuration and properties. A project lien is created + # for the tenant project to prevent the tenant project from being deleted + # accidentally. The lien is deleted as part of tenant project removal. class TenantProjectConfig include Google::Apis::Core::Hashable - # Describes billing configuration for a new tenant project. + # Describes the billing configuration for a new tenant project. # Corresponds to the JSON property `billingConfig` # @return [Google::Apis::ServiceconsumermanagementV1::BillingConfig] attr_accessor :billing_config # Folder where project in this tenancy unit must be located - # This folder must have been previously created with proper + # This folder must have been previously created with the required # permissions for the caller to create and configure a project in it. # Valid folder resource names have the format `folders/`folder_number`` # (for example, `folders/123456`). @@ -3473,19 +3473,19 @@ module Google # @return [String] attr_accessor :folder - # Labels that will be applied to this project. + # Labels that are applied to this project. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Describes service account configuration for the tenant project. + # Describes the service account configuration for the tenant project. # Corresponds to the JSON property `serviceAccountConfig` # @return [Google::Apis::ServiceconsumermanagementV1::ServiceAccountConfig] attr_accessor :service_account_config - # Google Cloud API names of services that will be activated on this project - # during provisioning. If any of these services can not be activated, - # request will fail. + # Google Cloud API names of services that are activated on this project + # during provisioning. If any of these services can't be activated, + # the request fails. # For example: 'compute.googleapis.com','cloudfunctions.googleapis.com' # Corresponds to the JSON property `services` # @return [Array] @@ -3521,8 +3521,8 @@ module Google # 'roles/owner' role granted to the Service Consumer Management service # account. # At least one binding must have the role `roles/owner`. Among the list of - # members for `roles/owner`, at least one of them must be either `user` or - # `group` type. + # members for `roles/owner`, at least one of them must be either the `user` + # or `group` type. # Corresponds to the JSON property `policyBindings` # @return [Array] attr_accessor :policy_bindings diff --git a/generated/google/apis/serviceconsumermanagement_v1/service.rb b/generated/google/apis/serviceconsumermanagement_v1/service.rb index 1d8ca0580..f302d63dc 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/service.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/service.rb @@ -201,16 +201,15 @@ module Google execute_or_queue_command(command, &block) end - # Search tenancy units for a service. + # Search tenancy units for a managed service. # @param [String] parent # Service for which search is performed. # services/`service` # `service` the name of a service, for example 'service.googleapis.com'. # @param [Fixnum] page_size # The maximum number of results returned by this request. Currently, the - # default maximum is set to 1000. If page_size is not provided or the size - # provided is a number larger than 1000, it will be automatically set to - # 1000. + # default maximum is set to 1000. If `page_size` isn't provided or the size + # provided is a number larger than 1000, it's automatically set to 1000. # Optional. # @param [String] page_token # The continuation token, which is used to page through large result sets. @@ -223,9 +222,9 @@ module Google # name of the field you want to compare. Supported fields are # `tenant_resources.tag` and `tenant_resources.resource`. # For example, to search tenancy units that contain at least one tenant - # resource with given tag 'xyz', use query `tenant_resources.tag=xyz`. + # resource with a given tag 'xyz', use the query `tenant_resources.tag=xyz`. # To search tenancy units that contain at least one tenant resource with - # given resource name 'projects/123456', use query + # a given resource name 'projects/123456', use the query # `tenant_resources.resource=projects/123456`. # Multiple expressions can be joined with `AND`s. Tenancy units must match # all expressions to be included in the result set. For example, @@ -262,10 +261,10 @@ module Google end # Add a new tenant project to the tenancy unit. - # There can be at most 512 tenant projects in a tenancy unit. + # There can be a maximum of 512 tenant projects in a tenancy unit. # If there are previously failed `AddTenantProject` calls, you might need to - # call `RemoveTenantProject` first to clean them before you can make another - # `AddTenantProject` with the same tag. + # call `RemoveTenantProject` first to resolve them before you can make + # another call to `AddTenantProject` with the same tag. # Operation. # @param [String] parent # Name of the tenancy unit. @@ -299,20 +298,19 @@ module Google execute_or_queue_command(command, &block) end - # Apply configuration to an existing tenant project. - # This project must exist in active state and have the original owner - # account. Caller must have the permission to add a project to the given - # tenancy unit. Configuration will be applied, but any existing settings on - # the project will not be modified. - # Specified policy bindings will be applied. Existing binding will not be - # modified. - # Specified services will be activated. No service will be deactivated. - # New billing configuration will be applied if specified. - # Omit billing configuration to keep the existing one. - # Service account in the project will be created if previously non existing. - # Specified folder will be ignored, moving tenant project to a different - # folder is not supported. - # Operation fails if any of the steps fail, but no rollback of already + # Apply a configuration to an existing tenant project. + # This project must exist in an active state and have the original owner + # account. The caller must have permission to add a project to the given + # tenancy unit. The configuration is applied, but any existing settings on + # the project aren't modified. + # Specified policy bindings are applied. Existing bindings aren't modified. + # Specified services are activated. No service is deactivated. + # If specified, new billing configuration is applied. + # Omit a billing configuration to keep the existing one. + # A service account in the project is created if previously non existed. + # The specified folder is ignored, as moving a tenant project to a different + # folder isn't supported. + # The operation fails if any of the steps fail, but no rollback of already # applied configuration changes is attempted. # Operation. # @param [String] name @@ -348,18 +346,18 @@ module Google end # Attach an existing project to the tenancy unit as a new tenant - # resource. The project could be either the tenant project reserved by - # calling AddTenantProject under tenancy unit for the producer project of - # service, or from outside. - # Caller will be checked against the permission as if calling - # AddTenantProject on the same consumer. + # resource. The project could either be the tenant project reserved by + # calling `AddTenantProject` under a tenancy unit of a service producer's + # project of a managed service, or from a separate project. + # The caller is checked against a set of permissions as if calling + # `AddTenantProject` on the same service consumer. # To trigger the attachement, the targeted tenant project must be in a - # folder. Please also make sure ServiceConsumerManagement service account is - # the owner of that project. Note that these two requirements are already met - # if the project is reserved through AddTenantProject. + # folder. Make sure the ServiceConsumerManagement service account is + # the owner of that project. These two requirements are already met + # if the project is reserved by calling `AddTenantProject`. # Operation. # @param [String] name - # Name of the tenancy unit that project will be attached to. + # Name of the tenancy unit that the project will be attached to. # @param [Google::Apis::ServiceconsumermanagementV1::AttachTenantProjectRequest] attach_tenant_project_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -396,8 +394,8 @@ module Google # `collection id` is the cloud resource collection type representing the # service consumer, for example 'projects', or 'organizations'. # `resource id` is the consumer numeric id, such as project number: '123456'. - # `service` the name of a service, for example 'service.googleapis.com'. - # Enabled service binding using the new tenancy unit. + # `service` the name of a managed service, such as 'service.googleapis.com'. + # Enables service binding using the new tenancy unit. # @param [Google::Apis::ServiceconsumermanagementV1::CreateTenancyUnitRequest] create_tenancy_unit_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -428,8 +426,8 @@ module Google execute_or_queue_command(command, &block) end - # Delete a tenancy unit. Before the tenancy unit is deleted, there should be - # no tenant resources in it not in DELETED state. + # Delete a tenancy unit. Before you delete the tenancy unit, there should be + # no tenant resources in it that aren't in a DELETED state. # Operation. # @param [String] name # Name of the tenancy unit to be deleted. @@ -460,17 +458,18 @@ module Google execute_or_queue_command(command, &block) end - # Find the tenancy unit for a service and consumer. - # This method should not be used in producers' runtime path, for example - # finding the tenant project number when creating VMs. Producers should - # persist the tenant project information after the project is created. + # Find the tenancy unit for a managed service and service consumer. + # This method shouldn't be used in a service producer's runtime path, for + # example to find the tenant project number when creating VMs. Service + # producers must persist the tenant project's information after the project + # is created. # @param [String] parent - # Service and consumer. Required. + # Managed service and service consumer. Required. # services/`service`/`collection id`/`resource id` # `collection id` is the cloud resource collection type representing the # service consumer, for example 'projects', or 'organizations'. # `resource id` is the consumer numeric id, such as project number: '123456'. - # `service` the name of a service, for example 'service.googleapis.com'. + # `service` the name of a service, such as 'service.googleapis.com'. # @param [String] filter # Filter expression over tenancy resources field. Optional. # @param [Fixnum] page_size @@ -509,13 +508,12 @@ module Google execute_or_queue_command(command, &block) end - # Removes specified project resource identified by tenant resource tag. - # It will remove project lien with 'TenantManager' origin if that was added. - # It will then attempt to delete the project. If that operation fails, this - # method fails. - # Calls to remove already removed or non-existent tenant project - # will succeed. - # After the project has been deleted, or if was already in DELETED state, + # Removes the specified project resource identified by a tenant resource tag. + # The method removes the project lien with 'TenantManager' origin if that + # was added. It then attempts to delete the project. If that operation + # fails, this method also fails. + # Calls to remove already removed or non-existent tenant project succeed. + # After the project has been deleted, or if was already in a DELETED state, # resource metadata is permanently removed from the tenancy unit. # Operation. # @param [String] name diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index d16152afc..ab9bbe216 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20190308' + REVISION = '20190315' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'