From f3858be52f13e2e6b25c536927c50229e6104beb Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 13 Aug 2020 00:39:19 +0000 Subject: [PATCH] Autogenerated update (2020-08-13) Delete: - accessapproval_v1beta1 - oauth2_v2 - storage_v1beta2 Update: - accessapproval_v1 - appsmarket_v2 - bigquery_v2 - bigqueryconnection_v1beta1 - binaryauthorization_v1 - binaryauthorization_v1beta1 - cloudiot_v1 - cloudtasks_v2beta2 - cloudtasks_v2beta3 - compute_alpha - compute_beta - compute_v1 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - content_v2 - content_v2_1 - documentai_v1beta2 - firebasehosting_v1beta1 - games_configuration_v1configuration - games_management_v1management - games_v1 - gmail_v1 - gmailpostmastertools_v1beta1 - iap_v1 - iap_v1beta1 - redis_v1 - redis_v1beta1 - script_v1 - servicecontrol_v1 - servicemanagement_v1 - storagetransfer_v1 --- api_names_out.yaml | 321 ++ generated/google/apis/accessapproval_v1.rb | 2 +- .../google/apis/accessapproval_v1/classes.rb | 137 +- .../google/apis/accessapproval_v1/service.rb | 225 +- .../google/apis/accessapproval_v1beta1.rb | 34 - .../apis/accessapproval_v1beta1/classes.rb | 417 -- .../accessapproval_v1beta1/representations.rb | 203 - .../apis/accessapproval_v1beta1/service.rb | 857 ----- generated/google/apis/appsmarket_v2.rb | 2 +- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 908 ++--- .../apis/bigquery_v2/representations.rb | 1 + generated/google/apis/bigquery_v2/service.rb | 72 +- .../google/apis/bigqueryconnection_v1beta1.rb | 2 +- .../bigqueryconnection_v1beta1/classes.rb | 529 +-- .../bigqueryconnection_v1beta1/service.rb | 61 +- .../google/apis/binaryauthorization_v1.rb | 2 +- .../apis/binaryauthorization_v1/classes.rb | 593 ++- .../apis/binaryauthorization_v1/service.rb | 163 +- .../apis/binaryauthorization_v1beta1.rb | 2 +- .../binaryauthorization_v1beta1/classes.rb | 593 ++- .../binaryauthorization_v1beta1/service.rb | 163 +- generated/google/apis/cloudiot_v1.rb | 2 +- generated/google/apis/cloudiot_v1/classes.rb | 636 ++-- generated/google/apis/cloudiot_v1/service.rb | 301 +- generated/google/apis/cloudtasks_v2beta2.rb | 2 +- .../google/apis/cloudtasks_v2beta2/classes.rb | 1566 +++----- .../google/apis/cloudtasks_v2beta2/service.rb | 448 +-- generated/google/apis/cloudtasks_v2beta3.rb | 2 +- .../google/apis/cloudtasks_v2beta3/classes.rb | 1547 +++----- .../google/apis/cloudtasks_v2beta3/service.rb | 363 +- generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 309 +- .../apis/compute_alpha/representations.rb | 46 +- .../google/apis/compute_alpha/service.rb | 1383 +++---- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 306 +- .../apis/compute_beta/representations.rb | 62 + generated/google/apis/compute_beta/service.rb | 1209 +++--- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 816 +++- .../google/apis/compute_v1/representations.rb | 358 ++ generated/google/apis/compute_v1/service.rb | 699 +++- .../google/apis/containeranalysis_v1alpha1.rb | 2 +- .../containeranalysis_v1alpha1/classes.rb | 1052 +++-- .../containeranalysis_v1alpha1/service.rb | 318 +- .../google/apis/containeranalysis_v1beta1.rb | 2 +- .../apis/containeranalysis_v1beta1/classes.rb | 1067 +++--- .../apis/containeranalysis_v1beta1/service.rb | 165 +- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 4 +- generated/google/apis/content_v2_1.rb | 2 +- generated/google/apis/content_v2_1/classes.rb | 87 +- .../apis/content_v2_1/representations.rb | 33 + generated/google/apis/content_v2_1/service.rb | 55 +- generated/google/apis/documentai_v1beta2.rb | 2 +- .../google/apis/documentai_v1beta2/classes.rb | 1996 ++++++---- .../documentai_v1beta2/representations.rb | 303 ++ .../google/apis/documentai_v1beta2/service.rb | 46 +- .../google/apis/firebasehosting_v1beta1.rb | 2 +- .../apis/firebasehosting_v1beta1/classes.rb | 26 + .../representations.rb | 15 + .../games_configuration_v1configuration.rb | 2 +- .../classes.rb | 5 +- .../service.rb | 12 +- .../apis/games_management_v1management.rb | 5 +- .../games_management_v1management/classes.rb | 34 +- .../games_management_v1management/service.rb | 71 +- generated/google/apis/games_v1.rb | 5 +- generated/google/apis/games_v1/classes.rb | 159 +- .../google/apis/games_v1/representations.rb | 2 + generated/google/apis/games_v1/service.rb | 174 +- generated/google/apis/gmail_v1.rb | 2 +- generated/google/apis/gmail_v1/classes.rb | 80 +- .../apis/gmailpostmastertools_v1beta1.rb | 6 +- .../gmailpostmastertools_v1beta1/service.rb | 4 +- generated/google/apis/iap_v1.rb | 2 +- generated/google/apis/iap_v1/classes.rb | 601 ++- generated/google/apis/iap_v1/service.rb | 132 +- generated/google/apis/iap_v1beta1.rb | 2 +- generated/google/apis/iap_v1beta1/classes.rb | 411 +- generated/google/apis/iap_v1beta1/service.rb | 36 +- generated/google/apis/oauth2_v2.rb | 40 - generated/google/apis/oauth2_v2/classes.rb | 165 - .../google/apis/oauth2_v2/representations.rb | 68 - generated/google/apis/oauth2_v2/service.rb | 158 - generated/google/apis/redis_v1.rb | 2 +- generated/google/apis/redis_v1/classes.rb | 380 +- generated/google/apis/redis_v1/service.rb | 203 +- generated/google/apis/redis_v1beta1.rb | 2 +- .../google/apis/redis_v1beta1/classes.rb | 388 +- .../google/apis/redis_v1beta1/service.rb | 203 +- generated/google/apis/script_v1.rb | 2 +- generated/google/apis/script_v1/classes.rb | 199 +- generated/google/apis/script_v1/service.rb | 132 +- generated/google/apis/servicecontrol_v1.rb | 2 +- .../google/apis/servicecontrol_v1/classes.rb | 1164 +++--- .../google/apis/servicecontrol_v1/service.rb | 82 +- generated/google/apis/servicemanagement_v1.rb | 2 +- .../apis/servicemanagement_v1/classes.rb | 3382 ++++++----------- .../apis/servicemanagement_v1/service.rb | 339 +- generated/google/apis/storage_v1beta2.rb | 40 - .../google/apis/storage_v1beta2/classes.rb | 1047 ----- .../apis/storage_v1beta2/representations.rb | 425 --- .../google/apis/storage_v1beta2/service.rb | 1667 -------- generated/google/apis/storagetransfer_v1.rb | 2 +- .../google/apis/storagetransfer_v1/classes.rb | 600 ++- .../google/apis/storagetransfer_v1/service.rb | 107 +- 108 files changed, 14021 insertions(+), 19054 deletions(-) delete mode 100644 generated/google/apis/accessapproval_v1beta1.rb delete mode 100644 generated/google/apis/accessapproval_v1beta1/classes.rb delete mode 100644 generated/google/apis/accessapproval_v1beta1/representations.rb delete mode 100644 generated/google/apis/accessapproval_v1beta1/service.rb delete mode 100644 generated/google/apis/oauth2_v2.rb delete mode 100644 generated/google/apis/oauth2_v2/classes.rb delete mode 100644 generated/google/apis/oauth2_v2/representations.rb delete mode 100644 generated/google/apis/oauth2_v2/service.rb delete mode 100644 generated/google/apis/storage_v1beta2.rb delete mode 100644 generated/google/apis/storage_v1beta2/classes.rb delete mode 100644 generated/google/apis/storage_v1beta2/representations.rb delete mode 100644 generated/google/apis/storage_v1beta2/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 8a0a7df3b..019a9a293 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -14040,6 +14040,7 @@ "/bigquery:v2/TimePartitioning/type": type "/bigquery:v2/TrainingOptions": training_options "/bigquery:v2/TrainingOptions/autoArima": auto_arima +"/bigquery:v2/TrainingOptions/autoArimaMaxOrder": auto_arima_max_order "/bigquery:v2/TrainingOptions/batchSize": batch_size "/bigquery:v2/TrainingOptions/dataFrequency": data_frequency "/bigquery:v2/TrainingOptions/dataSplitColumn": data_split_column @@ -26624,6 +26625,8 @@ "/compute:alpha/BackendBucket/bucketName": bucket_name "/compute:alpha/BackendBucket/cdnPolicy": cdn_policy "/compute:alpha/BackendBucket/creationTimestamp": creation_timestamp +"/compute:alpha/BackendBucket/customResponseHeaders": custom_response_headers +"/compute:alpha/BackendBucket/customResponseHeaders/custom_response_header": custom_response_header "/compute:alpha/BackendBucket/description": description "/compute:alpha/BackendBucket/enableCdn": enable_cdn "/compute:alpha/BackendBucket/id": id @@ -26632,10 +26635,20 @@ "/compute:alpha/BackendBucket/selfLink": self_link "/compute:alpha/BackendBucket/selfLinkWithId": self_link_with_id "/compute:alpha/BackendBucketCdnPolicy": backend_bucket_cdn_policy +"/compute:alpha/BackendBucketCdnPolicy/cacheMode": cache_mode +"/compute:alpha/BackendBucketCdnPolicy/clientTtl": client_ttl +"/compute:alpha/BackendBucketCdnPolicy/defaultTtl": default_ttl +"/compute:alpha/BackendBucketCdnPolicy/maxTtl": max_ttl +"/compute:alpha/BackendBucketCdnPolicy/negativeCaching": negative_caching +"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys +"/compute:alpha/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy "/compute:alpha/BackendBucketCdnPolicy/requestCoalescing": request_coalescing "/compute:alpha/BackendBucketCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec "/compute:alpha/BackendBucketCdnPolicy/signedUrlKeyNames": signed_url_key_names "/compute:alpha/BackendBucketCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name +"/compute:alpha/BackendBucketCdnPolicyNegativeCachingPolicy": backend_bucket_cdn_policy_negative_caching_policy +"/compute:alpha/BackendBucketCdnPolicyNegativeCachingPolicy/code": code +"/compute:alpha/BackendBucketCdnPolicyNegativeCachingPolicy/ttl": ttl "/compute:alpha/BackendBucketList": backend_bucket_list "/compute:alpha/BackendBucketList/id": id "/compute:alpha/BackendBucketList/items": items @@ -26663,6 +26676,8 @@ "/compute:alpha/BackendService/creationTimestamp": creation_timestamp "/compute:alpha/BackendService/customRequestHeaders": custom_request_headers "/compute:alpha/BackendService/customRequestHeaders/custom_request_header": custom_request_header +"/compute:alpha/BackendService/customResponseHeaders": custom_response_headers +"/compute:alpha/BackendService/customResponseHeaders/custom_response_header": custom_response_header "/compute:alpha/BackendService/description": description "/compute:alpha/BackendService/enableCDN": enable_cdn "/compute:alpha/BackendService/failoverPolicy": failover_policy @@ -26711,10 +26726,20 @@ "/compute:alpha/BackendServiceAppEngineBackend/version": version "/compute:alpha/BackendServiceCdnPolicy": backend_service_cdn_policy "/compute:alpha/BackendServiceCdnPolicy/cacheKeyPolicy": cache_key_policy +"/compute:alpha/BackendServiceCdnPolicy/cacheMode": cache_mode +"/compute:alpha/BackendServiceCdnPolicy/clientTtl": client_ttl +"/compute:alpha/BackendServiceCdnPolicy/defaultTtl": default_ttl +"/compute:alpha/BackendServiceCdnPolicy/maxTtl": max_ttl +"/compute:alpha/BackendServiceCdnPolicy/negativeCaching": negative_caching +"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys +"/compute:alpha/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy "/compute:alpha/BackendServiceCdnPolicy/requestCoalescing": request_coalescing "/compute:alpha/BackendServiceCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec "/compute:alpha/BackendServiceCdnPolicy/signedUrlKeyNames": signed_url_key_names "/compute:alpha/BackendServiceCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name +"/compute:alpha/BackendServiceCdnPolicyNegativeCachingPolicy": backend_service_cdn_policy_negative_caching_policy +"/compute:alpha/BackendServiceCdnPolicyNegativeCachingPolicy/code": code +"/compute:alpha/BackendServiceCdnPolicyNegativeCachingPolicy/ttl": ttl "/compute:alpha/BackendServiceCloudFunctionBackend": backend_service_cloud_function_backend "/compute:alpha/BackendServiceCloudFunctionBackend/functionName": function_name "/compute:alpha/BackendServiceCloudFunctionBackend/targetProject": target_project @@ -35755,6 +35780,8 @@ "/compute:beta/BackendBucket/bucketName": bucket_name "/compute:beta/BackendBucket/cdnPolicy": cdn_policy "/compute:beta/BackendBucket/creationTimestamp": creation_timestamp +"/compute:beta/BackendBucket/customResponseHeaders": custom_response_headers +"/compute:beta/BackendBucket/customResponseHeaders/custom_response_header": custom_response_header "/compute:beta/BackendBucket/description": description "/compute:beta/BackendBucket/enableCdn": enable_cdn "/compute:beta/BackendBucket/id": id @@ -35762,9 +35789,19 @@ "/compute:beta/BackendBucket/name": name "/compute:beta/BackendBucket/selfLink": self_link "/compute:beta/BackendBucketCdnPolicy": backend_bucket_cdn_policy +"/compute:beta/BackendBucketCdnPolicy/cacheMode": cache_mode +"/compute:beta/BackendBucketCdnPolicy/clientTtl": client_ttl +"/compute:beta/BackendBucketCdnPolicy/defaultTtl": default_ttl +"/compute:beta/BackendBucketCdnPolicy/maxTtl": max_ttl +"/compute:beta/BackendBucketCdnPolicy/negativeCaching": negative_caching +"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys": negative_caching_policys +"/compute:beta/BackendBucketCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy "/compute:beta/BackendBucketCdnPolicy/signedUrlCacheMaxAgeSec": signed_url_cache_max_age_sec "/compute:beta/BackendBucketCdnPolicy/signedUrlKeyNames": signed_url_key_names "/compute:beta/BackendBucketCdnPolicy/signedUrlKeyNames/signed_url_key_name": signed_url_key_name +"/compute:beta/BackendBucketCdnPolicyNegativeCachingPolicy": backend_bucket_cdn_policy_negative_caching_policy +"/compute:beta/BackendBucketCdnPolicyNegativeCachingPolicy/code": code +"/compute:beta/BackendBucketCdnPolicyNegativeCachingPolicy/ttl": ttl "/compute:beta/BackendBucketList": backend_bucket_list "/compute:beta/BackendBucketList/id": id "/compute:beta/BackendBucketList/items": items @@ -35790,6 +35827,8 @@ "/compute:beta/BackendService/creationTimestamp": creation_timestamp "/compute:beta/BackendService/customRequestHeaders": custom_request_headers "/compute:beta/BackendService/customRequestHeaders/custom_request_header": custom_request_header +"/compute:beta/BackendService/customResponseHeaders": custom_response_headers +"/compute:beta/BackendService/customResponseHeaders/custom_response_header": custom_response_header "/compute:beta/BackendService/description": description "/compute:beta/BackendService/enableCDN": enable_cdn "/compute:beta/BackendService/failoverPolicy": failover_policy @@ -35830,9 +35869,19 @@ "/compute:beta/BackendServiceAggregatedList/warning/message": message "/compute:beta/BackendServiceCdnPolicy": backend_service_cdn_policy "/compute:beta/BackendServiceCdnPolicy/cacheKeyPolicy": cache_key_policy +"/compute:beta/BackendServiceCdnPolicy/cacheMode": cache_mode +"/compute:beta/BackendServiceCdnPolicy/clientTtl": client_ttl +"/compute:beta/BackendServiceCdnPolicy/defaultTtl": default_ttl +"/compute:beta/BackendServiceCdnPolicy/maxTtl": max_ttl +"/compute:beta/BackendServiceCdnPolicy/negativeCaching": negative_caching +"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys": negative_caching_policys +"/compute:beta/BackendServiceCdnPolicy/negativeCachingPolicys/negative_caching_policy": negative_caching_policy "/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/BackendServiceCdnPolicyNegativeCachingPolicy": backend_service_cdn_policy_negative_caching_policy +"/compute:beta/BackendServiceCdnPolicyNegativeCachingPolicy/code": code +"/compute:beta/BackendServiceCdnPolicyNegativeCachingPolicy/ttl": ttl "/compute:beta/BackendServiceFailoverPolicy": backend_service_failover_policy "/compute:beta/BackendServiceFailoverPolicy/disableConnectionDrainOnFailover": disable_connection_drain_on_failover "/compute:beta/BackendServiceFailoverPolicy/dropTrafficIfUnhealthy": drop_traffic_if_unhealthy @@ -35937,11 +35986,13 @@ "/compute:beta/Commitment": commitment "/compute:beta/Commitment/allocations": allocations "/compute:beta/Commitment/allocations/allocation": allocation +"/compute:beta/Commitment/category": category "/compute:beta/Commitment/creationTimestamp": creation_timestamp "/compute:beta/Commitment/description": description "/compute:beta/Commitment/endTimestamp": end_timestamp "/compute:beta/Commitment/id": id "/compute:beta/Commitment/kind": kind +"/compute:beta/Commitment/licenseResource": license_resource "/compute:beta/Commitment/name": name "/compute:beta/Commitment/plan": plan "/compute:beta/Commitment/region": region @@ -37430,6 +37481,10 @@ "/compute:beta/LicenseCodeLicenseAlias": license_code_license_alias "/compute:beta/LicenseCodeLicenseAlias/description": description "/compute:beta/LicenseCodeLicenseAlias/selfLink": self_link +"/compute:beta/LicenseResourceCommitment": license_resource_commitment +"/compute:beta/LicenseResourceCommitment/amount": amount +"/compute:beta/LicenseResourceCommitment/coresPerLicense": cores_per_license +"/compute:beta/LicenseResourceCommitment/license": license "/compute:beta/LicenseResourceRequirements": license_resource_requirements "/compute:beta/LicenseResourceRequirements/minGuestCpuCount": min_guest_cpu_count "/compute:beta/LicenseResourceRequirements/minMemoryMb": min_memory_mb @@ -43362,11 +43417,13 @@ "/compute:v1/CircuitBreakers/maxRequestsPerConnection": max_requests_per_connection "/compute:v1/CircuitBreakers/maxRetries": max_retries "/compute:v1/Commitment": commitment +"/compute:v1/Commitment/category": category "/compute:v1/Commitment/creationTimestamp": creation_timestamp "/compute:v1/Commitment/description": description "/compute:v1/Commitment/endTimestamp": end_timestamp "/compute:v1/Commitment/id": id "/compute:v1/Commitment/kind": kind +"/compute:v1/Commitment/licenseResource": license_resource "/compute:v1/Commitment/name": name "/compute:v1/Commitment/plan": plan "/compute:v1/Commitment/region": region @@ -44278,6 +44335,7 @@ "/compute:v1/InstanceGroupManager/namedPorts/named_port": named_port "/compute:v1/InstanceGroupManager/region": region "/compute:v1/InstanceGroupManager/selfLink": self_link +"/compute:v1/InstanceGroupManager/statefulPolicy": stateful_policy "/compute:v1/InstanceGroupManager/status": status "/compute:v1/InstanceGroupManager/targetPools": target_pools "/compute:v1/InstanceGroupManager/targetPools/target_pool": target_pool @@ -44330,7 +44388,13 @@ "/compute:v1/InstanceGroupManagerStatus": instance_group_manager_status "/compute:v1/InstanceGroupManagerStatus/autoscaler": autoscaler "/compute:v1/InstanceGroupManagerStatus/isStable": is_stable +"/compute:v1/InstanceGroupManagerStatus/stateful": stateful "/compute:v1/InstanceGroupManagerStatus/versionTarget": version_target +"/compute:v1/InstanceGroupManagerStatusStateful": instance_group_manager_status_stateful +"/compute:v1/InstanceGroupManagerStatusStateful/hasStatefulConfig": has_stateful_config +"/compute:v1/InstanceGroupManagerStatusStateful/perInstanceConfigs": per_instance_configs +"/compute:v1/InstanceGroupManagerStatusStatefulPerInstanceConfigs": instance_group_manager_status_stateful_per_instance_configs +"/compute:v1/InstanceGroupManagerStatusStatefulPerInstanceConfigs/allEffective": all_effective "/compute:v1/InstanceGroupManagerStatusVersionTarget": instance_group_manager_status_version_target "/compute:v1/InstanceGroupManagerStatusVersionTarget/isReached": is_reached "/compute:v1/InstanceGroupManagerUpdatePolicy": instance_group_manager_update_policy @@ -44358,6 +44422,9 @@ "/compute:v1/InstanceGroupManagersDeleteInstancesRequest": instance_group_managers_delete_instances_request "/compute:v1/InstanceGroupManagersDeleteInstancesRequest/instances": instances "/compute:v1/InstanceGroupManagersDeleteInstancesRequest/instances/instance": instance +"/compute:v1/InstanceGroupManagersDeletePerInstanceConfigsReq": instance_group_managers_delete_per_instance_configs_req +"/compute:v1/InstanceGroupManagersDeletePerInstanceConfigsReq/names": names +"/compute:v1/InstanceGroupManagersDeletePerInstanceConfigsReq/names/name": name "/compute:v1/InstanceGroupManagersListErrorsResponse": instance_group_managers_list_errors_response "/compute:v1/InstanceGroupManagersListErrorsResponse/items": items "/compute:v1/InstanceGroupManagersListErrorsResponse/items/item": item @@ -44366,6 +44433,20 @@ "/compute:v1/InstanceGroupManagersListManagedInstancesResponse/managedInstances": managed_instances "/compute:v1/InstanceGroupManagersListManagedInstancesResponse/managedInstances/managed_instance": managed_instance "/compute:v1/InstanceGroupManagersListManagedInstancesResponse/nextPageToken": next_page_token +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp": instance_group_managers_list_per_instance_configs_resp +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/items": items +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/items/item": item +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/nextPageToken": next_page_token +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/warning": warning +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/warning/code": code +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/warning/data": data +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/warning/data/datum": datum +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/warning/data/datum/key": key +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/warning/data/datum/value": value +"/compute:v1/InstanceGroupManagersListPerInstanceConfigsResp/warning/message": message +"/compute:v1/InstanceGroupManagersPatchPerInstanceConfigsReq": instance_group_managers_patch_per_instance_configs_req +"/compute:v1/InstanceGroupManagersPatchPerInstanceConfigsReq/perInstanceConfigs": per_instance_configs +"/compute:v1/InstanceGroupManagersPatchPerInstanceConfigsReq/perInstanceConfigs/per_instance_config": per_instance_config "/compute:v1/InstanceGroupManagersRecreateInstancesRequest": instance_group_managers_recreate_instances_request "/compute:v1/InstanceGroupManagersRecreateInstancesRequest/instances": instances "/compute:v1/InstanceGroupManagersRecreateInstancesRequest/instances/instance": instance @@ -44385,6 +44466,9 @@ "/compute:v1/InstanceGroupManagersSetTargetPoolsRequest/fingerprint": fingerprint "/compute:v1/InstanceGroupManagersSetTargetPoolsRequest/targetPools": target_pools "/compute:v1/InstanceGroupManagersSetTargetPoolsRequest/targetPools/target_pool": target_pool +"/compute:v1/InstanceGroupManagersUpdatePerInstanceConfigsReq": instance_group_managers_update_per_instance_configs_req +"/compute:v1/InstanceGroupManagersUpdatePerInstanceConfigsReq/perInstanceConfigs": per_instance_configs +"/compute:v1/InstanceGroupManagersUpdatePerInstanceConfigsReq/perInstanceConfigs/per_instance_config": per_instance_config "/compute:v1/InstanceGroupsAddInstancesRequest": instance_groups_add_instances_request "/compute:v1/InstanceGroupsAddInstancesRequest/instances": instances "/compute:v1/InstanceGroupsAddInstancesRequest/instances/instance": instance @@ -44764,6 +44848,10 @@ "/compute:v1/LicenseCodeLicenseAlias": license_code_license_alias "/compute:v1/LicenseCodeLicenseAlias/description": description "/compute:v1/LicenseCodeLicenseAlias/selfLink": self_link +"/compute:v1/LicenseResourceCommitment": license_resource_commitment +"/compute:v1/LicenseResourceCommitment/amount": amount +"/compute:v1/LicenseResourceCommitment/coresPerLicense": cores_per_license +"/compute:v1/LicenseResourceCommitment/license": license "/compute:v1/LicenseResourceRequirements": license_resource_requirements "/compute:v1/LicenseResourceRequirements/minGuestCpuCount": min_guest_cpu_count "/compute:v1/LicenseResourceRequirements/minMemoryMb": min_memory_mb @@ -44865,6 +44953,8 @@ "/compute:v1/ManagedInstance/instanceHealth/instance_health": instance_health "/compute:v1/ManagedInstance/instanceStatus": instance_status "/compute:v1/ManagedInstance/lastAttempt": last_attempt +"/compute:v1/ManagedInstance/preservedStateFromConfig": preserved_state_from_config +"/compute:v1/ManagedInstance/preservedStateFromPolicy": preserved_state_from_policy "/compute:v1/ManagedInstance/version": version "/compute:v1/ManagedInstanceInstanceHealth": managed_instance_instance_health "/compute:v1/ManagedInstanceInstanceHealth/detailedHealthState": detailed_health_state @@ -44921,6 +45011,9 @@ "/compute:v1/NetworkEndpointGroup": network_endpoint_group "/compute:v1/NetworkEndpointGroup/annotations": annotations "/compute:v1/NetworkEndpointGroup/annotations/annotation": annotation +"/compute:v1/NetworkEndpointGroup/appEngine": app_engine +"/compute:v1/NetworkEndpointGroup/cloudFunction": cloud_function +"/compute:v1/NetworkEndpointGroup/cloudRun": cloud_run "/compute:v1/NetworkEndpointGroup/creationTimestamp": creation_timestamp "/compute:v1/NetworkEndpointGroup/defaultPort": default_port "/compute:v1/NetworkEndpointGroup/description": description @@ -44929,6 +45022,7 @@ "/compute:v1/NetworkEndpointGroup/name": name "/compute:v1/NetworkEndpointGroup/network": network "/compute:v1/NetworkEndpointGroup/networkEndpointType": network_endpoint_type +"/compute:v1/NetworkEndpointGroup/region": region "/compute:v1/NetworkEndpointGroup/selfLink": self_link "/compute:v1/NetworkEndpointGroup/size": size "/compute:v1/NetworkEndpointGroup/subnetwork": subnetwork @@ -44947,6 +45041,17 @@ "/compute:v1/NetworkEndpointGroupAggregatedList/warning/data/datum/key": key "/compute:v1/NetworkEndpointGroupAggregatedList/warning/data/datum/value": value "/compute:v1/NetworkEndpointGroupAggregatedList/warning/message": message +"/compute:v1/NetworkEndpointGroupAppEngine": network_endpoint_group_app_engine +"/compute:v1/NetworkEndpointGroupAppEngine/service": service +"/compute:v1/NetworkEndpointGroupAppEngine/urlMask": url_mask +"/compute:v1/NetworkEndpointGroupAppEngine/version": version +"/compute:v1/NetworkEndpointGroupCloudFunction": network_endpoint_group_cloud_function +"/compute:v1/NetworkEndpointGroupCloudFunction/function": function +"/compute:v1/NetworkEndpointGroupCloudFunction/urlMask": url_mask +"/compute:v1/NetworkEndpointGroupCloudRun": network_endpoint_group_cloud_run +"/compute:v1/NetworkEndpointGroupCloudRun/service": service +"/compute:v1/NetworkEndpointGroupCloudRun/tag": tag +"/compute:v1/NetworkEndpointGroupCloudRun/urlMask": url_mask "/compute:v1/NetworkEndpointGroupList": network_endpoint_group_list "/compute:v1/NetworkEndpointGroupList/id": id "/compute:v1/NetworkEndpointGroupList/items": items @@ -45091,6 +45196,7 @@ "/compute:v1/NodeGroupList/warning/data/datum/value": value "/compute:v1/NodeGroupList/warning/message": message "/compute:v1/NodeGroupNode": node_group_node +"/compute:v1/NodeGroupNode/cpuOvercommitType": cpu_overcommit_type "/compute:v1/NodeGroupNode/instances": instances "/compute:v1/NodeGroupNode/instances/instance": instance "/compute:v1/NodeGroupNode/name": name @@ -45130,6 +45236,7 @@ "/compute:v1/NodeGroupsSetNodeTemplateRequest": node_groups_set_node_template_request "/compute:v1/NodeGroupsSetNodeTemplateRequest/nodeTemplate": node_template "/compute:v1/NodeTemplate": node_template +"/compute:v1/NodeTemplate/cpuOvercommitType": cpu_overcommit_type "/compute:v1/NodeTemplate/creationTimestamp": creation_timestamp "/compute:v1/NodeTemplate/description": description "/compute:v1/NodeTemplate/id": id @@ -45448,6 +45555,8 @@ "/compute:v1/PerInstanceConfig": per_instance_config "/compute:v1/PerInstanceConfig/fingerprint": fingerprint "/compute:v1/PerInstanceConfig/name": name +"/compute:v1/PerInstanceConfig/preservedState": preserved_state +"/compute:v1/PerInstanceConfig/status": status "/compute:v1/Policy": policy "/compute:v1/Policy/auditConfigs": audit_configs "/compute:v1/Policy/auditConfigs/audit_config": audit_config @@ -45461,6 +45570,15 @@ "/compute:v1/PreconfiguredWafSet": preconfigured_waf_set "/compute:v1/PreconfiguredWafSet/expressionSets": expression_sets "/compute:v1/PreconfiguredWafSet/expressionSets/expression_set": expression_set +"/compute:v1/PreservedState": preserved_state +"/compute:v1/PreservedState/disks": disks +"/compute:v1/PreservedState/disks/disk": disk +"/compute:v1/PreservedState/metadata": metadata +"/compute:v1/PreservedState/metadata/metadatum": metadatum +"/compute:v1/PreservedStatePreservedDisk": preserved_state_preserved_disk +"/compute:v1/PreservedStatePreservedDisk/autoDelete": auto_delete +"/compute:v1/PreservedStatePreservedDisk/mode": mode +"/compute:v1/PreservedStatePreservedDisk/source": source "/compute:v1/Project": project "/compute:v1/Project/commonInstanceMetadata": common_instance_metadata "/compute:v1/Project/creationTimestamp": creation_timestamp @@ -45563,6 +45681,9 @@ "/compute:v1/RegionInstanceGroupList/warning/data/datum/key": key "/compute:v1/RegionInstanceGroupList/warning/data/datum/value": value "/compute:v1/RegionInstanceGroupList/warning/message": message +"/compute:v1/RegionInstanceGroupManagerDeleteInstanceConfigReq": region_instance_group_manager_delete_instance_config_req +"/compute:v1/RegionInstanceGroupManagerDeleteInstanceConfigReq/names": names +"/compute:v1/RegionInstanceGroupManagerDeleteInstanceConfigReq/names/name": name "/compute:v1/RegionInstanceGroupManagerList": region_instance_group_manager_list "/compute:v1/RegionInstanceGroupManagerList/id": id "/compute:v1/RegionInstanceGroupManagerList/items": items @@ -45577,6 +45698,12 @@ "/compute:v1/RegionInstanceGroupManagerList/warning/data/datum/key": key "/compute:v1/RegionInstanceGroupManagerList/warning/data/datum/value": value "/compute:v1/RegionInstanceGroupManagerList/warning/message": message +"/compute:v1/RegionInstanceGroupManagerPatchInstanceConfigReq": region_instance_group_manager_patch_instance_config_req +"/compute:v1/RegionInstanceGroupManagerPatchInstanceConfigReq/perInstanceConfigs": per_instance_configs +"/compute:v1/RegionInstanceGroupManagerPatchInstanceConfigReq/perInstanceConfigs/per_instance_config": per_instance_config +"/compute:v1/RegionInstanceGroupManagerUpdateInstanceConfigReq": region_instance_group_manager_update_instance_config_req +"/compute:v1/RegionInstanceGroupManagerUpdateInstanceConfigReq/perInstanceConfigs": per_instance_configs +"/compute:v1/RegionInstanceGroupManagerUpdateInstanceConfigReq/perInstanceConfigs/per_instance_config": per_instance_config "/compute:v1/RegionInstanceGroupManagersAbandonInstancesRequest": region_instance_group_managers_abandon_instances_request "/compute:v1/RegionInstanceGroupManagersAbandonInstancesRequest/instances": instances "/compute:v1/RegionInstanceGroupManagersAbandonInstancesRequest/instances/instance": instance @@ -45595,6 +45722,17 @@ "/compute:v1/RegionInstanceGroupManagersListErrorsResponse/items": items "/compute:v1/RegionInstanceGroupManagersListErrorsResponse/items/item": item "/compute:v1/RegionInstanceGroupManagersListErrorsResponse/nextPageToken": next_page_token +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp": region_instance_group_managers_list_instance_configs_resp +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/items": items +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/items/item": item +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/nextPageToken": next_page_token +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/warning": warning +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/warning/code": code +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/warning/data": data +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/warning/data/datum": datum +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/warning/data/datum/key": key +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/warning/data/datum/value": value +"/compute:v1/RegionInstanceGroupManagersListInstanceConfigsResp/warning/message": message "/compute:v1/RegionInstanceGroupManagersListInstancesResponse": region_instance_group_managers_list_instances_response "/compute:v1/RegionInstanceGroupManagersListInstancesResponse/managedInstances": managed_instances "/compute:v1/RegionInstanceGroupManagersListInstancesResponse/managedInstances/managed_instance": managed_instance @@ -46021,6 +46159,7 @@ "/compute:v1/SSLHealthCheck/response": response "/compute:v1/Scheduling": scheduling "/compute:v1/Scheduling/automaticRestart": automatic_restart +"/compute:v1/Scheduling/minNodeCpus": min_node_cpus "/compute:v1/Scheduling/nodeAffinities": node_affinities "/compute:v1/Scheduling/nodeAffinities/node_affinity": node_affinity "/compute:v1/Scheduling/onHostMaintenance": on_host_maintenance @@ -46248,6 +46387,13 @@ "/compute:v1/SslPolicy/warnings/warning/message": message "/compute:v1/SslPolicyReference": ssl_policy_reference "/compute:v1/SslPolicyReference/sslPolicy": ssl_policy +"/compute:v1/StatefulPolicy": stateful_policy +"/compute:v1/StatefulPolicy/preservedState": preserved_state +"/compute:v1/StatefulPolicyPreservedState": stateful_policy_preserved_state +"/compute:v1/StatefulPolicyPreservedState/disks": disks +"/compute:v1/StatefulPolicyPreservedState/disks/disk": disk +"/compute:v1/StatefulPolicyPreservedStateDiskDevice": stateful_policy_preserved_state_disk_device +"/compute:v1/StatefulPolicyPreservedStateDiskDevice/autoDelete": auto_delete "/compute:v1/Subnetwork": subnetwork "/compute:v1/Subnetwork/creationTimestamp": creation_timestamp "/compute:v1/Subnetwork/description": description @@ -47598,6 +47744,10 @@ "/compute:v1/compute.instanceGroupManagers.deleteInstances/project": project "/compute:v1/compute.instanceGroupManagers.deleteInstances/requestId": request_id "/compute:v1/compute.instanceGroupManagers.deleteInstances/zone": zone +"/compute:v1/compute.instanceGroupManagers.deletePerInstanceConfigs": delete_instance_group_manager_per_instance_configs +"/compute:v1/compute.instanceGroupManagers.deletePerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.deletePerInstanceConfigs/project": project +"/compute:v1/compute.instanceGroupManagers.deletePerInstanceConfigs/zone": zone "/compute:v1/compute.instanceGroupManagers.get": get_instance_group_manager "/compute:v1/compute.instanceGroupManagers.get/instanceGroupManager": instance_group_manager "/compute:v1/compute.instanceGroupManagers.get/project": project @@ -47630,11 +47780,24 @@ "/compute:v1/compute.instanceGroupManagers.listManagedInstances/pageToken": page_token "/compute:v1/compute.instanceGroupManagers.listManagedInstances/project": project "/compute:v1/compute.instanceGroupManagers.listManagedInstances/zone": zone +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs": list_instance_group_manager_per_instance_configs +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs/filter": filter +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs/maxResults": max_results +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs/orderBy": order_by +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs/pageToken": page_token +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs/project": project +"/compute:v1/compute.instanceGroupManagers.listPerInstanceConfigs/zone": zone "/compute:v1/compute.instanceGroupManagers.patch": patch_instance_group_manager "/compute:v1/compute.instanceGroupManagers.patch/instanceGroupManager": instance_group_manager "/compute:v1/compute.instanceGroupManagers.patch/project": project "/compute:v1/compute.instanceGroupManagers.patch/requestId": request_id "/compute:v1/compute.instanceGroupManagers.patch/zone": zone +"/compute:v1/compute.instanceGroupManagers.patchPerInstanceConfigs": patch_instance_group_manager_per_instance_configs +"/compute:v1/compute.instanceGroupManagers.patchPerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.patchPerInstanceConfigs/project": project +"/compute:v1/compute.instanceGroupManagers.patchPerInstanceConfigs/requestId": request_id +"/compute:v1/compute.instanceGroupManagers.patchPerInstanceConfigs/zone": zone "/compute:v1/compute.instanceGroupManagers.recreateInstances": recreate_instance_group_manager_instances "/compute:v1/compute.instanceGroupManagers.recreateInstances/instanceGroupManager": instance_group_manager "/compute:v1/compute.instanceGroupManagers.recreateInstances/project": project @@ -47656,6 +47819,11 @@ "/compute:v1/compute.instanceGroupManagers.setTargetPools/project": project "/compute:v1/compute.instanceGroupManagers.setTargetPools/requestId": request_id "/compute:v1/compute.instanceGroupManagers.setTargetPools/zone": zone +"/compute:v1/compute.instanceGroupManagers.updatePerInstanceConfigs": update_instance_group_manager_per_instance_configs +"/compute:v1/compute.instanceGroupManagers.updatePerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.instanceGroupManagers.updatePerInstanceConfigs/project": project +"/compute:v1/compute.instanceGroupManagers.updatePerInstanceConfigs/requestId": request_id +"/compute:v1/compute.instanceGroupManagers.updatePerInstanceConfigs/zone": zone "/compute:v1/compute.instanceGroups.addInstances": add_instance_group_instances "/compute:v1/compute.instanceGroups.addInstances/instanceGroup": instance_group "/compute:v1/compute.instanceGroups.addInstances/project": project @@ -48596,6 +48764,10 @@ "/compute:v1/compute.regionInstanceGroupManagers.deleteInstances/project": project "/compute:v1/compute.regionInstanceGroupManagers.deleteInstances/region": region "/compute:v1/compute.regionInstanceGroupManagers.deleteInstances/requestId": request_id +"/compute:v1/compute.regionInstanceGroupManagers.deletePerInstanceConfigs": delete_region_instance_group_manager_per_instance_configs +"/compute:v1/compute.regionInstanceGroupManagers.deletePerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.regionInstanceGroupManagers.deletePerInstanceConfigs/project": project +"/compute:v1/compute.regionInstanceGroupManagers.deletePerInstanceConfigs/region": region "/compute:v1/compute.regionInstanceGroupManagers.get": get_region_instance_group_manager "/compute:v1/compute.regionInstanceGroupManagers.get/instanceGroupManager": instance_group_manager "/compute:v1/compute.regionInstanceGroupManagers.get/project": project @@ -48628,11 +48800,24 @@ "/compute:v1/compute.regionInstanceGroupManagers.listManagedInstances/pageToken": page_token "/compute:v1/compute.regionInstanceGroupManagers.listManagedInstances/project": project "/compute:v1/compute.regionInstanceGroupManagers.listManagedInstances/region": region +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs": list_region_instance_group_manager_per_instance_configs +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs/filter": filter +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs/maxResults": max_results +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs/orderBy": order_by +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs/pageToken": page_token +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs/project": project +"/compute:v1/compute.regionInstanceGroupManagers.listPerInstanceConfigs/region": region "/compute:v1/compute.regionInstanceGroupManagers.patch": patch_region_instance_group_manager "/compute:v1/compute.regionInstanceGroupManagers.patch/instanceGroupManager": instance_group_manager "/compute:v1/compute.regionInstanceGroupManagers.patch/project": project "/compute:v1/compute.regionInstanceGroupManagers.patch/region": region "/compute:v1/compute.regionInstanceGroupManagers.patch/requestId": request_id +"/compute:v1/compute.regionInstanceGroupManagers.patchPerInstanceConfigs": patch_region_instance_group_manager_per_instance_configs +"/compute:v1/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/project": project +"/compute:v1/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/region": region +"/compute:v1/compute.regionInstanceGroupManagers.patchPerInstanceConfigs/requestId": request_id "/compute:v1/compute.regionInstanceGroupManagers.recreateInstances": recreate_region_instance_group_manager_instances "/compute:v1/compute.regionInstanceGroupManagers.recreateInstances/instanceGroupManager": instance_group_manager "/compute:v1/compute.regionInstanceGroupManagers.recreateInstances/project": project @@ -48654,6 +48839,11 @@ "/compute:v1/compute.regionInstanceGroupManagers.setTargetPools/project": project "/compute:v1/compute.regionInstanceGroupManagers.setTargetPools/region": region "/compute:v1/compute.regionInstanceGroupManagers.setTargetPools/requestId": request_id +"/compute:v1/compute.regionInstanceGroupManagers.updatePerInstanceConfigs": update_region_instance_group_manager_per_instance_configs +"/compute:v1/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/instanceGroupManager": instance_group_manager +"/compute:v1/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/project": project +"/compute:v1/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/region": region +"/compute:v1/compute.regionInstanceGroupManagers.updatePerInstanceConfigs/requestId": request_id "/compute:v1/compute.regionInstanceGroups.get": get_region_instance_group "/compute:v1/compute.regionInstanceGroups.get/instanceGroup": instance_group "/compute:v1/compute.regionInstanceGroups.get/project": project @@ -48678,6 +48868,26 @@ "/compute:v1/compute.regionInstanceGroups.setNamedPorts/project": project "/compute:v1/compute.regionInstanceGroups.setNamedPorts/region": region "/compute:v1/compute.regionInstanceGroups.setNamedPorts/requestId": request_id +"/compute:v1/compute.regionNetworkEndpointGroups.delete": delete_region_network_endpoint_group +"/compute:v1/compute.regionNetworkEndpointGroups.delete/networkEndpointGroup": network_endpoint_group +"/compute:v1/compute.regionNetworkEndpointGroups.delete/project": project +"/compute:v1/compute.regionNetworkEndpointGroups.delete/region": region +"/compute:v1/compute.regionNetworkEndpointGroups.delete/requestId": request_id +"/compute:v1/compute.regionNetworkEndpointGroups.get": get_region_network_endpoint_group +"/compute:v1/compute.regionNetworkEndpointGroups.get/networkEndpointGroup": network_endpoint_group +"/compute:v1/compute.regionNetworkEndpointGroups.get/project": project +"/compute:v1/compute.regionNetworkEndpointGroups.get/region": region +"/compute:v1/compute.regionNetworkEndpointGroups.insert": insert_region_network_endpoint_group +"/compute:v1/compute.regionNetworkEndpointGroups.insert/project": project +"/compute:v1/compute.regionNetworkEndpointGroups.insert/region": region +"/compute:v1/compute.regionNetworkEndpointGroups.insert/requestId": request_id +"/compute:v1/compute.regionNetworkEndpointGroups.list": list_region_network_endpoint_groups +"/compute:v1/compute.regionNetworkEndpointGroups.list/filter": filter +"/compute:v1/compute.regionNetworkEndpointGroups.list/maxResults": max_results +"/compute:v1/compute.regionNetworkEndpointGroups.list/orderBy": order_by +"/compute:v1/compute.regionNetworkEndpointGroups.list/pageToken": page_token +"/compute:v1/compute.regionNetworkEndpointGroups.list/project": project +"/compute:v1/compute.regionNetworkEndpointGroups.list/region": region "/compute:v1/compute.regionNotificationEndpoints.delete": delete_region_notification_endpoint "/compute:v1/compute.regionNotificationEndpoints.delete/notificationEndpoint": notification_endpoint "/compute:v1/compute.regionNotificationEndpoints.delete/project": project @@ -52246,9 +52456,12 @@ "/content:v2.1/Account/adsLinks/ads_link": ads_link "/content:v2.1/Account/adultContent": adult_content "/content:v2.1/Account/businessInformation": business_information +"/content:v2.1/Account/cssId": css_id "/content:v2.1/Account/googleMyBusinessLink": google_my_business_link "/content:v2.1/Account/id": id "/content:v2.1/Account/kind": kind +"/content:v2.1/Account/labelIds": label_ids +"/content:v2.1/Account/labelIds/label_id": label_id "/content:v2.1/Account/name": name "/content:v2.1/Account/sellerId": seller_id "/content:v2.1/Account/users": users @@ -52357,6 +52570,7 @@ "/content:v2.1/AccountsCustomBatchRequestEntry/merchantId": merchant_id "/content:v2.1/AccountsCustomBatchRequestEntry/method": method_prop "/content:v2.1/AccountsCustomBatchRequestEntry/overwrite": overwrite +"/content:v2.1/AccountsCustomBatchRequestEntry/view": view "/content:v2.1/AccountsCustomBatchRequestEntryLinkRequest": accounts_custom_batch_request_entry_link_request "/content:v2.1/AccountsCustomBatchRequestEntryLinkRequest/action": action "/content:v2.1/AccountsCustomBatchRequestEntryLinkRequest/linkType": link_type @@ -52390,6 +52604,11 @@ "/content:v2.1/AccountsListResponse/nextPageToken": next_page_token "/content:v2.1/AccountsListResponse/resources": resources "/content:v2.1/AccountsListResponse/resources/resource": resource +"/content:v2.1/AccountsUpdateLabelsRequest": accounts_update_labels_request +"/content:v2.1/AccountsUpdateLabelsRequest/labelIds": label_ids +"/content:v2.1/AccountsUpdateLabelsRequest/labelIds/label_id": label_id +"/content:v2.1/AccountsUpdateLabelsResponse": accounts_update_labels_response +"/content:v2.1/AccountsUpdateLabelsResponse/kind": kind "/content:v2.1/AccountstatusesCustomBatchRequest": accountstatuses_custom_batch_request "/content:v2.1/AccountstatusesCustomBatchRequest/entries": entries "/content:v2.1/AccountstatusesCustomBatchRequest/entries/entry": entry @@ -53514,9 +53733,17 @@ "/content:v2.1/ProductStatus/productId": product_id "/content:v2.1/ProductStatus/title": title "/content:v2.1/ProductStatusDestinationStatus": product_status_destination_status +"/content:v2.1/ProductStatusDestinationStatus/approvedCountrys": approved_countrys +"/content:v2.1/ProductStatusDestinationStatus/approvedCountrys/approved_country": approved_country "/content:v2.1/ProductStatusDestinationStatus/destination": destination +"/content:v2.1/ProductStatusDestinationStatus/disapprovedCountrys": disapproved_countrys +"/content:v2.1/ProductStatusDestinationStatus/disapprovedCountrys/disapproved_country": disapproved_country +"/content:v2.1/ProductStatusDestinationStatus/pendingCountrys": pending_countrys +"/content:v2.1/ProductStatusDestinationStatus/pendingCountrys/pending_country": pending_country "/content:v2.1/ProductStatusDestinationStatus/status": status "/content:v2.1/ProductStatusItemLevelIssue": product_status_item_level_issue +"/content:v2.1/ProductStatusItemLevelIssue/applicableCountrys": applicable_countrys +"/content:v2.1/ProductStatusItemLevelIssue/applicableCountrys/applicable_country": applicable_country "/content:v2.1/ProductStatusItemLevelIssue/attributeName": attribute_name "/content:v2.1/ProductStatusItemLevelIssue/code": code "/content:v2.1/ProductStatusItemLevelIssue/description": description @@ -53979,15 +54206,18 @@ "/content:v2.1/content.accounts.get": get_account "/content:v2.1/content.accounts.get/accountId": account_id "/content:v2.1/content.accounts.get/merchantId": merchant_id +"/content:v2.1/content.accounts.get/view": view "/content:v2.1/content.accounts.insert": insert_account "/content:v2.1/content.accounts.insert/merchantId": merchant_id "/content:v2.1/content.accounts.link": link_account "/content:v2.1/content.accounts.link/accountId": account_id "/content:v2.1/content.accounts.link/merchantId": merchant_id "/content:v2.1/content.accounts.list": list_accounts +"/content:v2.1/content.accounts.list/label": label "/content:v2.1/content.accounts.list/maxResults": max_results "/content:v2.1/content.accounts.list/merchantId": merchant_id "/content:v2.1/content.accounts.list/pageToken": page_token +"/content:v2.1/content.accounts.list/view": view "/content:v2.1/content.accounts.listlinks": listlinks_account "/content:v2.1/content.accounts.listlinks/accountId": account_id "/content:v2.1/content.accounts.listlinks/maxResults": max_results @@ -53996,6 +54226,9 @@ "/content:v2.1/content.accounts.update": update_account "/content:v2.1/content.accounts.update/accountId": account_id "/content:v2.1/content.accounts.update/merchantId": merchant_id +"/content:v2.1/content.accounts.updatelabels": updatelabels_account +"/content:v2.1/content.accounts.updatelabels/accountId": account_id +"/content:v2.1/content.accounts.updatelabels/merchantId": merchant_id "/content:v2.1/content.accountstatuses.custombatch": custombatch_accountstatus "/content:v2.1/content.accountstatuses.get": get_accountstatus "/content:v2.1/content.accountstatuses.get/accountId": account_id @@ -90080,6 +90313,42 @@ "/docs:v1/fields": fields "/docs:v1/key": key "/docs:v1/quotaUser": quota_user +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata": google_cloud_documentai_uiv1beta3_create_labeler_pool_operation_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/stateMessage": state_message +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata": google_cloud_documentai_uiv1beta3_create_processor_version_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata": google_cloud_documentai_uiv1beta3_delete_labeler_pool_operation_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/stateMessage": state_message +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata": google_cloud_documentai_uiv1beta3_delete_processor_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/stateMessage": state_message +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata": google_cloud_documentai_uiv1beta3_disable_processor_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/stateMessage": state_message +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse": google_cloud_documentai_uiv1beta3_disable_processor_response +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata": google_cloud_documentai_uiv1beta3_enable_processor_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/stateMessage": state_message +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse": google_cloud_documentai_uiv1beta3_enable_processor_response +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata": google_cloud_documentai_uiv1beta3_update_labeler_pool_operation_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/stateMessage": state_message +"/documentai:v1beta2/GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata/updateTime": update_time "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse": google_cloud_documentai_v1beta1_batch_process_documents_response "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses": responses "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse/responses/response": response @@ -90109,8 +90378,15 @@ "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntity/confidence": confidence "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntity/mentionId": mention_id "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntity/mentionText": mention_text +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntity/normalizedValue": normalized_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntity/redacted": redacted "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntity/textAnchor": text_anchor "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntity/type": type +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue": google_cloud_documentai_v1beta1_document_entity_normalized_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/dateValue": date_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/datetimeValue": datetime_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/moneyValue": money_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue/text": text "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityRelation": google_cloud_documentai_v1beta1_document_entity_relation "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityRelation/objectId": object_id_prop "/documentai:v1beta2/GoogleCloudDocumentaiV1beta1DocumentEntityRelation/relation": relation @@ -90280,8 +90556,15 @@ "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntity/confidence": confidence "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntity/mentionId": mention_id "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntity/mentionText": mention_text +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntity/normalizedValue": normalized_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntity/redacted": redacted "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntity/textAnchor": text_anchor "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntity/type": type +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue": google_cloud_documentai_v1beta2_document_entity_normalized_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/dateValue": date_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/datetimeValue": datetime_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/moneyValue": money_value +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue/text": text "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityRelation": google_cloud_documentai_v1beta2_document_entity_relation "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityRelation/objectId": object_id_prop "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2DocumentEntityRelation/relation": relation @@ -90456,6 +90739,18 @@ "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2Vertex": google_cloud_documentai_v1beta2_vertex "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2Vertex/x": x "/documentai:v1beta2/GoogleCloudDocumentaiV1beta2Vertex/y": y +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata": google_cloud_documentai_v1beta3_batch_process_metadata +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/createTime": create_time +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/individualProcessStatuses": individual_process_statuses +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/individualProcessStatuses/individual_process_status": individual_process_status +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/state": state +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/stateMessage": state_message +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadata/updateTime": update_time +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus": google_cloud_documentai_v1beta3_batch_process_metadata_individual_process_status +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/inputGcsSource": input_gcs_source +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/outputGcsDestination": output_gcs_destination +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus/status": status +"/documentai:v1beta2/GoogleCloudDocumentaiV1beta3BatchProcessResponse": google_cloud_documentai_v1beta3_batch_process_response "/documentai:v1beta2/GoogleLongrunningOperation": google_longrunning_operation "/documentai:v1beta2/GoogleLongrunningOperation/done": done "/documentai:v1beta2/GoogleLongrunningOperation/error": error @@ -90464,6 +90759,7 @@ "/documentai:v1beta2/GoogleLongrunningOperation/name": name "/documentai:v1beta2/GoogleLongrunningOperation/response": response "/documentai:v1beta2/GoogleLongrunningOperation/response/response": response +"/documentai:v1beta2/GoogleProtobufEmpty": google_protobuf_empty "/documentai:v1beta2/GoogleRpcStatus": google_rpc_status "/documentai:v1beta2/GoogleRpcStatus/code": code "/documentai:v1beta2/GoogleRpcStatus/details": details @@ -90475,6 +90771,27 @@ "/documentai:v1beta2/GoogleTypeColor/blue": blue "/documentai:v1beta2/GoogleTypeColor/green": green "/documentai:v1beta2/GoogleTypeColor/red": red +"/documentai:v1beta2/GoogleTypeDate": google_type_date +"/documentai:v1beta2/GoogleTypeDate/day": day +"/documentai:v1beta2/GoogleTypeDate/month": month +"/documentai:v1beta2/GoogleTypeDate/year": year +"/documentai:v1beta2/GoogleTypeDateTime": google_type_date_time +"/documentai:v1beta2/GoogleTypeDateTime/day": day +"/documentai:v1beta2/GoogleTypeDateTime/hours": hours +"/documentai:v1beta2/GoogleTypeDateTime/minutes": minutes +"/documentai:v1beta2/GoogleTypeDateTime/month": month +"/documentai:v1beta2/GoogleTypeDateTime/nanos": nanos +"/documentai:v1beta2/GoogleTypeDateTime/seconds": seconds +"/documentai:v1beta2/GoogleTypeDateTime/timeZone": time_zone +"/documentai:v1beta2/GoogleTypeDateTime/utcOffset": utc_offset +"/documentai:v1beta2/GoogleTypeDateTime/year": year +"/documentai:v1beta2/GoogleTypeMoney": google_type_money +"/documentai:v1beta2/GoogleTypeMoney/currencyCode": currency_code +"/documentai:v1beta2/GoogleTypeMoney/nanos": nanos +"/documentai:v1beta2/GoogleTypeMoney/units": units +"/documentai:v1beta2/GoogleTypeTimeZone": google_type_time_zone +"/documentai:v1beta2/GoogleTypeTimeZone/id": id +"/documentai:v1beta2/GoogleTypeTimeZone/version": version "/documentai:v1beta2/documentai.projects.documents.batchProcess": batch_project_document_process "/documentai:v1beta2/documentai.projects.documents.batchProcess/parent": parent "/documentai:v1beta2/documentai.projects.documents.process": process_project_document @@ -93784,6 +94101,8 @@ "/firebasehosting:v1beta1/Header/headers": headers "/firebasehosting:v1beta1/Header/headers/header": header "/firebasehosting:v1beta1/Header/regex": regex +"/firebasehosting:v1beta1/I18nConfig": i18n_config +"/firebasehosting:v1beta1/I18nConfig/root": root "/firebasehosting:v1beta1/ListDomainsResponse": list_domains_response "/firebasehosting:v1beta1/ListDomainsResponse/domains": domains "/firebasehosting:v1beta1/ListDomainsResponse/domains/domain": domain @@ -93842,6 +94161,7 @@ "/firebasehosting:v1beta1/ServingConfig/cleanUrls": clean_urls "/firebasehosting:v1beta1/ServingConfig/headers": headers "/firebasehosting:v1beta1/ServingConfig/headers/header": header +"/firebasehosting:v1beta1/ServingConfig/i18n": i18n "/firebasehosting:v1beta1/ServingConfig/redirects": redirects "/firebasehosting:v1beta1/ServingConfig/redirects/redirect": redirect "/firebasehosting:v1beta1/ServingConfig/rewrites": rewrites @@ -96217,6 +96537,7 @@ "/games:v1/PlayerExperienceInfo/lastLevelUpTimestampMillis": last_level_up_timestamp_millis "/games:v1/PlayerExperienceInfo/nextLevel": next_level "/games:v1/PlayerLeaderboardScore": player_leaderboard_score +"/games:v1/PlayerLeaderboardScore/friendsRank": friends_rank "/games:v1/PlayerLeaderboardScore/kind": kind "/games:v1/PlayerLeaderboardScore/leaderboard_id": leaderboard_id "/games:v1/PlayerLeaderboardScore/publicRank": public_rank diff --git a/generated/google/apis/accessapproval_v1.rb b/generated/google/apis/accessapproval_v1.rb index 967db3001..6229e636d 100644 --- a/generated/google/apis/accessapproval_v1.rb +++ b/generated/google/apis/accessapproval_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-approval/docs module AccessapprovalV1 VERSION = 'V1' - REVISION = '20200726' + REVISION = '20200807' # 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/accessapproval_v1/classes.rb b/generated/google/apis/accessapproval_v1/classes.rb index 43be09228..422f1ef91 100644 --- a/generated/google/apis/accessapproval_v1/classes.rb +++ b/generated/google/apis/accessapproval_v1/classes.rb @@ -28,42 +28,38 @@ module Google # Output only. This field is read only (not settable via # UpdateAccessAccessApprovalSettings method). If the field is true, that - # indicates that at least one service is enrolled for Access Approval in one - # or more ancestors of the Project or Folder (this field will always be - # unset for the organization since organizations do not have ancestors). + # indicates that at least one service is enrolled for Access Approval in one or + # more ancestors of the Project or Folder (this field will always be unset for + # the organization since organizations do not have ancestors). # Corresponds to the JSON property `enrolledAncestor` # @return [Boolean] attr_accessor :enrolled_ancestor alias_method :enrolled_ancestor?, :enrolled_ancestor # A list of Google Cloud Services for which the given resource has Access - # Approval enrolled. Access requests for the resource given by name against - # any of these services contained here will be required to have explicit - # approval. If name refers to an organization, enrollment can be done for - # individual services. If name refers to a folder or project, enrollment can - # only be done on an all or nothing basis. - # If a cloud_product is repeated in this list, the first entry will be - # honored and all following entries will be discarded. A maximum of 10 - # enrolled services will be enforced, to be expanded as the set of supported - # services is expanded. + # Approval enrolled. Access requests for the resource given by name against any + # of these services contained here will be required to have explicit approval. + # If name refers to an organization, enrollment can be done for individual + # services. If name refers to a folder or project, enrollment can only be done + # on an all or nothing basis. If a cloud_product is repeated in this list, the + # first entry will be honored and all following entries will be discarded. A + # maximum of 10 enrolled services will be enforced, to be expanded as the set of + # supported services is expanded. # Corresponds to the JSON property `enrolledServices` # @return [Array] attr_accessor :enrolled_services - # The resource name of the settings. Format is one of: - #
    - #
  1. "projects/`project_id`/accessApprovalSettings"
  2. - #
  3. "folders/`folder_id`/accessApprovalSettings"
  4. - #
  5. "organizations/`organization_id`/accessApprovalSettings"
  6. - #
      + # The resource name of the settings. Format is one of: 1. "projects/`project_id`/ + # accessApprovalSettings" 2. "folders/`folder_id`/accessApprovalSettings" 3. " + # organizations/`organization_id`/accessApprovalSettings" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # A list of email addresses to which notifications relating to approval - # requests should be sent. Notifications relating to a resource will be sent - # to all emails in the settings of ancestor resources of that resource. A - # maximum of 50 email addresses are allowed. + # A list of email addresses to which notifications relating to approval requests + # should be sent. Notifications relating to a resource will be sent to all + # emails in the settings of ancestor resources of that resource. A maximum of 50 + # email addresses are allowed. # Corresponds to the JSON property `notificationEmails` # @return [Array] attr_accessor :notification_emails @@ -85,40 +81,22 @@ module Google class AccessLocations include Google::Apis::Core::Hashable - # The "home office" location of the principal. A two-letter country code - # (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some - # limited situations Google systems may refer refer to a region code instead - # of a country code. - # Possible Region Codes: - #
        - #
      1. ASI: Asia
      2. - #
      3. EUR: Europe
      4. - #
      5. OCE: Oceania
      6. - #
      7. AFR: Africa
      8. - #
      9. NAM: North America
      10. - #
      11. SAM: South America
      12. - #
      13. ANT: Antarctica
      14. - #
      15. ANY: Any location
      16. - #
      + # The "home office" location of the principal. A two-letter country code (ISO + # 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited + # situations Google systems may refer refer to a region code instead of a + # country code. Possible Region Codes: 1. ASI: Asia 2. EUR: Europe 3. OCE: + # Oceania 4. AFR: Africa 5. NAM: North America 6. SAM: South America 7. ANT: + # Antarctica 8. ANY: Any location # Corresponds to the JSON property `principalOfficeCountry` # @return [String] attr_accessor :principal_office_country - # Physical location of the principal at the time of the access. A - # two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or - # a region code. In some limited situations Google systems may refer refer to - # a region code instead of a country code. - # Possible Region Codes: - #
        - #
      1. ASI: Asia
      2. - #
      3. EUR: Europe
      4. - #
      5. OCE: Oceania
      6. - #
      7. AFR: Africa
      8. - #
      9. NAM: North America
      10. - #
      11. SAM: South America
      12. - #
      13. ANT: Antarctica
      14. - #
      15. ANY: Any location
      16. - #
      + # Physical location of the principal at the time of the access. A two-letter + # country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. + # In some limited situations Google systems may refer refer to a region code + # instead of a country code. Possible Region Codes: 1. ASI: Asia 2. EUR: Europe + # 3. OCE: Oceania 4. AFR: Africa 5. NAM: North America 6. SAM: South America 7. + # ANT: Antarctica 8. ANY: Any location # Corresponds to the JSON property `principalPhysicalLocationCountry` # @return [String] attr_accessor :principal_physical_location_country @@ -173,8 +151,8 @@ module Google # @return [Google::Apis::AccessapprovalV1::DismissDecision] attr_accessor :dismiss - # The resource name of the request. Format is - # "`projects|folders|organizations`/`id`/approvalRequests/`approval_request_id`". + # The resource name of the request. Format is "`projects|folders|organizations`/` + # id`/approvalRequests/`approval_request_id`". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -184,8 +162,8 @@ module Google # @return [String] attr_accessor :request_time - # The requested expiration for the approval. If the request is approved, - # access will be granted from the time of approval until the expiration time. + # The requested expiration for the approval. If the request is approved, access + # will be granted from the time of approval until the expiration time. # Corresponds to the JSON property `requestedExpiration` # @return [String] attr_accessor :requested_expiration @@ -200,13 +178,11 @@ module Google # @return [Google::Apis::AccessapprovalV1::AccessReason] attr_accessor :requested_reason - # The resource for which approval is being requested. The format of the - # resource name is defined at - # https://cloud.google.com/apis/design/resource_names. The resource name here - # may either be a "full" resource name (e.g. - # "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" - # resource name (e.g. "shelves/shelf1/books/book2") as described in the - # resource name specification. + # The resource for which approval is being requested. The format of the resource + # name is defined at https://cloud.google.com/apis/design/resource_names. The + # resource name here may either be a "full" resource name (e.g. "//library. + # googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. + # "shelves/shelf1/books/book2") as described in the resource name specification. # Corresponds to the JSON property `requestedResourceName` # @return [String] attr_accessor :requested_resource_name @@ -300,9 +276,9 @@ module Google # @return [String] attr_accessor :dismiss_time - # This field will be true if the ApprovalRequest was implcitly dismissed due - # to inaction by the access approval approvers (the request is not acted - # on by the approvers before the exiration time). + # This field will be true if the ApprovalRequest was implcitly dismissed due to + # inaction by the access approval approvers (the request is not acted on by the + # approvers before the exiration time). # Corresponds to the JSON property `implicit` # @return [Boolean] attr_accessor :implicit @@ -319,13 +295,11 @@ module Google 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 ````. + # 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 @@ -343,19 +317,10 @@ module Google include Google::Apis::Core::Hashable # The product for which Access Approval will be enrolled. Allowed values are - # listed below (case-sensitive): - #
        - #
      1. all
      2. - #
      3. appengine.googleapis.com
      4. - #
      5. bigquery.googleapis.com
      6. - #
      7. bigtable.googleapis.com
      8. - #
      9. cloudkms.googleapis.com
      10. - #
      11. compute.googleapis.com
      12. - #
      13. dataflow.googleapis.com
      14. - #
      15. iam.googleapis.com
      16. - #
      17. pubsub.googleapis.com
      18. - #
      19. storage.googleapis.com
      20. - #
          + # listed below (case-sensitive): 1. all 2. appengine.googleapis.com 3. bigquery. + # googleapis.com 4. bigtable.googleapis.com 5. cloudkms.googleapis.com 6. + # compute.googleapis.com 7. dataflow.googleapis.com 8. iam.googleapis.com 9. + # pubsub.googleapis.com 10. storage.googleapis.com # Corresponds to the JSON property `cloudProduct` # @return [String] attr_accessor :cloud_product diff --git a/generated/google/apis/accessapproval_v1/service.rb b/generated/google/apis/accessapproval_v1/service.rb index 95a23bcdb..bc65173c9 100644 --- a/generated/google/apis/accessapproval_v1/service.rb +++ b/generated/google/apis/accessapproval_v1/service.rb @@ -47,12 +47,11 @@ module Google @batch_path = 'batch' end - # Deletes the settings associated with a project, folder, or organization. - # This will have the effect of disabling Access Approval for the project, - # folder, or organization, but only if all ancestors also have Access - # Approval disabled. If Access Approval is enabled at a higher level of the - # hierarchy, then Access Approval will still be enabled at this level as - # the settings are inherited. + # Deletes the settings associated with a project, folder, or organization. This + # will have the effect of disabling Access Approval for the project, folder, or + # organization, but only if all ancestors also have Access Approval disabled. If + # Access Approval is enabled at a higher level of the hierarchy, then Access + # Approval will still be enabled at this level as the settings are inherited. # @param [String] name # Name of the AccessApprovalSettings to delete. # @param [String] fields @@ -115,24 +114,18 @@ module Google # Updates the settings associated with a project, folder, or organization. # Settings to update are determined by the value of field_mask. # @param [String] name - # The resource name of the settings. Format is one of: - #
            - #
          1. "projects/`project_id`/accessApprovalSettings"
          2. - #
          3. "folders/`folder_id`/accessApprovalSettings"
          4. - #
          5. "organizations/`organization_id`/accessApprovalSettings"
          6. - #
              + # The resource name of the settings. Format is one of: 1. "projects/`project_id`/ + # accessApprovalSettings" 2. "folders/`folder_id`/accessApprovalSettings" 3. " + # organizations/`organization_id`/accessApprovalSettings" # @param [Google::Apis::AccessapprovalV1::AccessApprovalSettings] access_approval_settings_object # @param [String] update_mask # The update mask applies to the settings. Only the top level fields of - # AccessApprovalSettings (notification_emails & enrolled_services) are - # supported. For each field, if it is included, the currently stored value - # will be entirely overwritten with the value of the field passed in this - # request. - # For the `FieldMask` definition, see - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask - # If this field is left unset, only the notification_emails field will be - # updated. + # AccessApprovalSettings (notification_emails & enrolled_services) are supported. + # For each field, if it is included, the currently stored value will be + # entirely overwritten with the value of the field passed in this request. For + # the `FieldMask` definition, see https://developers.google.com/protocol-buffers/ + # docs/reference/google.protobuf#fieldmask If this field is left unset, only the + # notification_emails field will be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -163,9 +156,9 @@ module Google execute_or_queue_command(command, &block) end - # Approves a request and returns the updated ApprovalRequest. - # Returns NOT_FOUND if the request does not exist. Returns - # FAILED_PRECONDITION if the request exists but is not in a pending state. + # Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND + # if the request does not exist. Returns FAILED_PRECONDITION if the request + # exists but is not in a pending state. # @param [String] name # Name of the approval request to approve. # @param [Google::Apis::AccessapprovalV1::ApproveApprovalRequestMessage] approve_approval_request_message_object @@ -198,13 +191,11 @@ module Google execute_or_queue_command(command, &block) end - # Dismisses a request. Returns the updated ApprovalRequest. - # NOTE: This does not deny access to the resource if another request has been - # made and approved. It is equivalent in effect to ignoring the request - # altogether. - # Returns NOT_FOUND if the request does not exist. - # Returns FAILED_PRECONDITION if the request exists but is not in a pending - # state. + # Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not + # deny access to the resource if another request has been made and approved. It + # is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND + # if the request does not exist. Returns FAILED_PRECONDITION if the request + # exists but is not in a pending state. # @param [String] name # Name of the ApprovalRequest to dismiss. # @param [Google::Apis::AccessapprovalV1::DismissApprovalRequestMessage] dismiss_approval_request_message_object @@ -268,22 +259,18 @@ module Google end # Lists approval requests associated with a project, folder, or organization. - # Approval requests can be filtered by state (pending, active, dismissed). - # The order is reverse chronological. + # Approval requests can be filtered by state (pending, active, dismissed). The + # order is reverse chronological. # @param [String] parent - # The parent resource. This may be "projects/`project_id`", - # "folders/`folder_id`", or "organizations/`organization_id`". + # The parent resource. This may be "projects/`project_id`", "folders/`folder_id`" + # , or "organizations/`organization_id`". # @param [String] filter # A filter on the type of approval requests to retrieve. Must be one of the - # following values: - #
                - #
              1. [not set]: Requests that are pending or have active approvals.
              2. - #
              3. ALL: All requests.
              4. - #
              5. PENDING: Only pending requests.
              6. - #
              7. ACTIVE: Only active (i.e. currently approved) requests.
              8. - #
              9. DISMISSED: Only dismissed (including expired) requests.
              10. - #
              11. HISTORY: Active and dismissed (including expired) requests.
              12. - #
              + # following values: 1. [not set]: Requests that are pending or have active + # approvals. 2. ALL: All requests. 3. PENDING: Only pending requests. 4. ACTIVE: + # Only active (i.e. currently approved) requests. 5. DISMISSED: Only dismissed ( + # including expired) requests. 6. HISTORY: Active and dismissed (including + # expired) requests. # @param [Fixnum] page_size # Requested page size. # @param [String] page_token @@ -318,12 +305,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the settings associated with a project, folder, or organization. - # This will have the effect of disabling Access Approval for the project, - # folder, or organization, but only if all ancestors also have Access - # Approval disabled. If Access Approval is enabled at a higher level of the - # hierarchy, then Access Approval will still be enabled at this level as - # the settings are inherited. + # Deletes the settings associated with a project, folder, or organization. This + # will have the effect of disabling Access Approval for the project, folder, or + # organization, but only if all ancestors also have Access Approval disabled. If + # Access Approval is enabled at a higher level of the hierarchy, then Access + # Approval will still be enabled at this level as the settings are inherited. # @param [String] name # Name of the AccessApprovalSettings to delete. # @param [String] fields @@ -386,24 +372,18 @@ module Google # Updates the settings associated with a project, folder, or organization. # Settings to update are determined by the value of field_mask. # @param [String] name - # The resource name of the settings. Format is one of: - #
                - #
              1. "projects/`project_id`/accessApprovalSettings"
              2. - #
              3. "folders/`folder_id`/accessApprovalSettings"
              4. - #
              5. "organizations/`organization_id`/accessApprovalSettings"
              6. - #
                  + # The resource name of the settings. Format is one of: 1. "projects/`project_id`/ + # accessApprovalSettings" 2. "folders/`folder_id`/accessApprovalSettings" 3. " + # organizations/`organization_id`/accessApprovalSettings" # @param [Google::Apis::AccessapprovalV1::AccessApprovalSettings] access_approval_settings_object # @param [String] update_mask # The update mask applies to the settings. Only the top level fields of - # AccessApprovalSettings (notification_emails & enrolled_services) are - # supported. For each field, if it is included, the currently stored value - # will be entirely overwritten with the value of the field passed in this - # request. - # For the `FieldMask` definition, see - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask - # If this field is left unset, only the notification_emails field will be - # updated. + # AccessApprovalSettings (notification_emails & enrolled_services) are supported. + # For each field, if it is included, the currently stored value will be + # entirely overwritten with the value of the field passed in this request. For + # the `FieldMask` definition, see https://developers.google.com/protocol-buffers/ + # docs/reference/google.protobuf#fieldmask If this field is left unset, only the + # notification_emails field will be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -434,9 +414,9 @@ module Google execute_or_queue_command(command, &block) end - # Approves a request and returns the updated ApprovalRequest. - # Returns NOT_FOUND if the request does not exist. Returns - # FAILED_PRECONDITION if the request exists but is not in a pending state. + # Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND + # if the request does not exist. Returns FAILED_PRECONDITION if the request + # exists but is not in a pending state. # @param [String] name # Name of the approval request to approve. # @param [Google::Apis::AccessapprovalV1::ApproveApprovalRequestMessage] approve_approval_request_message_object @@ -469,13 +449,11 @@ module Google execute_or_queue_command(command, &block) end - # Dismisses a request. Returns the updated ApprovalRequest. - # NOTE: This does not deny access to the resource if another request has been - # made and approved. It is equivalent in effect to ignoring the request - # altogether. - # Returns NOT_FOUND if the request does not exist. - # Returns FAILED_PRECONDITION if the request exists but is not in a pending - # state. + # Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not + # deny access to the resource if another request has been made and approved. It + # is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND + # if the request does not exist. Returns FAILED_PRECONDITION if the request + # exists but is not in a pending state. # @param [String] name # Name of the ApprovalRequest to dismiss. # @param [Google::Apis::AccessapprovalV1::DismissApprovalRequestMessage] dismiss_approval_request_message_object @@ -539,22 +517,18 @@ module Google end # Lists approval requests associated with a project, folder, or organization. - # Approval requests can be filtered by state (pending, active, dismissed). - # The order is reverse chronological. + # Approval requests can be filtered by state (pending, active, dismissed). The + # order is reverse chronological. # @param [String] parent - # The parent resource. This may be "projects/`project_id`", - # "folders/`folder_id`", or "organizations/`organization_id`". + # The parent resource. This may be "projects/`project_id`", "folders/`folder_id`" + # , or "organizations/`organization_id`". # @param [String] filter # A filter on the type of approval requests to retrieve. Must be one of the - # following values: - #
                    - #
                  1. [not set]: Requests that are pending or have active approvals.
                  2. - #
                  3. ALL: All requests.
                  4. - #
                  5. PENDING: Only pending requests.
                  6. - #
                  7. ACTIVE: Only active (i.e. currently approved) requests.
                  8. - #
                  9. DISMISSED: Only dismissed (including expired) requests.
                  10. - #
                  11. HISTORY: Active and dismissed (including expired) requests.
                  12. - #
                  + # following values: 1. [not set]: Requests that are pending or have active + # approvals. 2. ALL: All requests. 3. PENDING: Only pending requests. 4. ACTIVE: + # Only active (i.e. currently approved) requests. 5. DISMISSED: Only dismissed ( + # including expired) requests. 6. HISTORY: Active and dismissed (including + # expired) requests. # @param [Fixnum] page_size # Requested page size. # @param [String] page_token @@ -589,12 +563,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the settings associated with a project, folder, or organization. - # This will have the effect of disabling Access Approval for the project, - # folder, or organization, but only if all ancestors also have Access - # Approval disabled. If Access Approval is enabled at a higher level of the - # hierarchy, then Access Approval will still be enabled at this level as - # the settings are inherited. + # Deletes the settings associated with a project, folder, or organization. This + # will have the effect of disabling Access Approval for the project, folder, or + # organization, but only if all ancestors also have Access Approval disabled. If + # Access Approval is enabled at a higher level of the hierarchy, then Access + # Approval will still be enabled at this level as the settings are inherited. # @param [String] name # Name of the AccessApprovalSettings to delete. # @param [String] fields @@ -657,24 +630,18 @@ module Google # Updates the settings associated with a project, folder, or organization. # Settings to update are determined by the value of field_mask. # @param [String] name - # The resource name of the settings. Format is one of: - #
                    - #
                  1. "projects/`project_id`/accessApprovalSettings"
                  2. - #
                  3. "folders/`folder_id`/accessApprovalSettings"
                  4. - #
                  5. "organizations/`organization_id`/accessApprovalSettings"
                  6. - #
                      + # The resource name of the settings. Format is one of: 1. "projects/`project_id`/ + # accessApprovalSettings" 2. "folders/`folder_id`/accessApprovalSettings" 3. " + # organizations/`organization_id`/accessApprovalSettings" # @param [Google::Apis::AccessapprovalV1::AccessApprovalSettings] access_approval_settings_object # @param [String] update_mask # The update mask applies to the settings. Only the top level fields of - # AccessApprovalSettings (notification_emails & enrolled_services) are - # supported. For each field, if it is included, the currently stored value - # will be entirely overwritten with the value of the field passed in this - # request. - # For the `FieldMask` definition, see - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask - # If this field is left unset, only the notification_emails field will be - # updated. + # AccessApprovalSettings (notification_emails & enrolled_services) are supported. + # For each field, if it is included, the currently stored value will be + # entirely overwritten with the value of the field passed in this request. For + # the `FieldMask` definition, see https://developers.google.com/protocol-buffers/ + # docs/reference/google.protobuf#fieldmask If this field is left unset, only the + # notification_emails field will be updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -705,9 +672,9 @@ module Google execute_or_queue_command(command, &block) end - # Approves a request and returns the updated ApprovalRequest. - # Returns NOT_FOUND if the request does not exist. Returns - # FAILED_PRECONDITION if the request exists but is not in a pending state. + # Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND + # if the request does not exist. Returns FAILED_PRECONDITION if the request + # exists but is not in a pending state. # @param [String] name # Name of the approval request to approve. # @param [Google::Apis::AccessapprovalV1::ApproveApprovalRequestMessage] approve_approval_request_message_object @@ -740,13 +707,11 @@ module Google execute_or_queue_command(command, &block) end - # Dismisses a request. Returns the updated ApprovalRequest. - # NOTE: This does not deny access to the resource if another request has been - # made and approved. It is equivalent in effect to ignoring the request - # altogether. - # Returns NOT_FOUND if the request does not exist. - # Returns FAILED_PRECONDITION if the request exists but is not in a pending - # state. + # Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not + # deny access to the resource if another request has been made and approved. It + # is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND + # if the request does not exist. Returns FAILED_PRECONDITION if the request + # exists but is not in a pending state. # @param [String] name # Name of the ApprovalRequest to dismiss. # @param [Google::Apis::AccessapprovalV1::DismissApprovalRequestMessage] dismiss_approval_request_message_object @@ -810,22 +775,18 @@ module Google end # Lists approval requests associated with a project, folder, or organization. - # Approval requests can be filtered by state (pending, active, dismissed). - # The order is reverse chronological. + # Approval requests can be filtered by state (pending, active, dismissed). The + # order is reverse chronological. # @param [String] parent - # The parent resource. This may be "projects/`project_id`", - # "folders/`folder_id`", or "organizations/`organization_id`". + # The parent resource. This may be "projects/`project_id`", "folders/`folder_id`" + # , or "organizations/`organization_id`". # @param [String] filter # A filter on the type of approval requests to retrieve. Must be one of the - # following values: - #
                        - #
                      1. [not set]: Requests that are pending or have active approvals.
                      2. - #
                      3. ALL: All requests.
                      4. - #
                      5. PENDING: Only pending requests.
                      6. - #
                      7. ACTIVE: Only active (i.e. currently approved) requests.
                      8. - #
                      9. DISMISSED: Only dismissed (including expired) requests.
                      10. - #
                      11. HISTORY: Active and dismissed (including expired) requests.
                      12. - #
                      + # following values: 1. [not set]: Requests that are pending or have active + # approvals. 2. ALL: All requests. 3. PENDING: Only pending requests. 4. ACTIVE: + # Only active (i.e. currently approved) requests. 5. DISMISSED: Only dismissed ( + # including expired) requests. 6. HISTORY: Active and dismissed (including + # expired) requests. # @param [Fixnum] page_size # Requested page size. # @param [String] page_token diff --git a/generated/google/apis/accessapproval_v1beta1.rb b/generated/google/apis/accessapproval_v1beta1.rb deleted file mode 100644 index 99be5b2ad..000000000 --- a/generated/google/apis/accessapproval_v1beta1.rb +++ /dev/null @@ -1,34 +0,0 @@ -# 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/accessapproval_v1beta1/service.rb' -require 'google/apis/accessapproval_v1beta1/classes.rb' -require 'google/apis/accessapproval_v1beta1/representations.rb' - -module Google - module Apis - # Access Approval API - # - # An API for controlling access to data by Google personnel. - # - # @see https://cloud.google.com/access-approval/docs - module AccessapprovalV1beta1 - VERSION = 'V1beta1' - REVISION = '20200708' - - # 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/accessapproval_v1beta1/classes.rb b/generated/google/apis/accessapproval_v1beta1/classes.rb deleted file mode 100644 index 0f9232d29..000000000 --- a/generated/google/apis/accessapproval_v1beta1/classes.rb +++ /dev/null @@ -1,417 +0,0 @@ -# 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 AccessapprovalV1beta1 - - # Settings on a Project/Folder/Organization related to Access Approval. - class AccessApprovalSettings - include Google::Apis::Core::Hashable - - # Output only. This field is read only (not settable via - # UpdateAccessAccessApprovalSettings method). If the field is true, that - # indicates that at least one service is enrolled for Access Approval in one - # or more ancestors of the Project or Folder (this field will always be - # unset for the organization since organizations do not have ancestors). - # Corresponds to the JSON property `enrolledAncestor` - # @return [Boolean] - attr_accessor :enrolled_ancestor - alias_method :enrolled_ancestor?, :enrolled_ancestor - - # A list of Google Cloud Services for which the given resource has Access - # Approval enrolled. Access requests for the resource given by name against - # any of these services contained here will be required to have explicit - # approval. If name refers to an organization, enrollment can be done for - # individual services. If name refers to a folder or project, enrollment can - # only be done on an all or nothing basis. - # If a cloud_product is repeated in this list, the first entry will be - # honored and all following entries will be discarded. A maximum of 10 - # enrolled services will be enforced, to be expanded as the set of supported - # services is expanded. - # Corresponds to the JSON property `enrolledServices` - # @return [Array] - attr_accessor :enrolled_services - - # The resource name of the settings. Format is one of: - #
                        - #
                      1. "projects/`project_id`/accessApprovalSettings"
                      2. - #
                      3. "folders/`folder_id`/accessApprovalSettings"
                      4. - #
                      5. "organizations/`organization_id`/accessApprovalSettings"
                      6. - #
                          - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A list of email addresses to which notifications relating to approval - # requests should be sent. Notifications relating to a resource will be sent - # to all emails in the settings of ancestor resources of that resource. A - # maximum of 50 email addresses are allowed. - # Corresponds to the JSON property `notificationEmails` - # @return [Array] - attr_accessor :notification_emails - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @enrolled_ancestor = args[:enrolled_ancestor] if args.key?(:enrolled_ancestor) - @enrolled_services = args[:enrolled_services] if args.key?(:enrolled_services) - @name = args[:name] if args.key?(:name) - @notification_emails = args[:notification_emails] if args.key?(:notification_emails) - end - end - - # Home office and physical location of the principal. - class AccessLocations - include Google::Apis::Core::Hashable - - # The "home office" location of the principal. A two-letter country code - # (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some - # limited situations Google systems may refer refer to a region code instead - # of a country code. - # Possible Region Codes: - #
                            - #
                          1. ASI: Asia
                          2. - #
                          3. EUR: Europe
                          4. - #
                          5. OCE: Oceania
                          6. - #
                          7. AFR: Africa
                          8. - #
                          9. NAM: North America
                          10. - #
                          11. SAM: South America
                          12. - #
                          13. ANT: Antarctica
                          14. - #
                          15. ANY: Any location
                          16. - #
                          - # Corresponds to the JSON property `principalOfficeCountry` - # @return [String] - attr_accessor :principal_office_country - - # Physical location of the principal at the time of the access. A - # two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or - # a region code. In some limited situations Google systems may refer refer to - # a region code instead of a country code. - # Possible Region Codes: - #
                            - #
                          1. ASI: Asia
                          2. - #
                          3. EUR: Europe
                          4. - #
                          5. OCE: Oceania
                          6. - #
                          7. AFR: Africa
                          8. - #
                          9. NAM: North America
                          10. - #
                          11. SAM: South America
                          12. - #
                          13. ANT: Antarctica
                          14. - #
                          15. ANY: Any location
                          16. - #
                          - # Corresponds to the JSON property `principalPhysicalLocationCountry` - # @return [String] - attr_accessor :principal_physical_location_country - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @principal_office_country = args[:principal_office_country] if args.key?(:principal_office_country) - @principal_physical_location_country = args[:principal_physical_location_country] if args.key?(:principal_physical_location_country) - end - end - - # - class AccessReason - include Google::Apis::Core::Hashable - - # More detail about certain reason types. See comments for each type above. - # Corresponds to the JSON property `detail` - # @return [String] - attr_accessor :detail - - # Type of access justification. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @detail = args[:detail] if args.key?(:detail) - @type = args[:type] if args.key?(:type) - end - end - - # A request for the customer to approve access to a resource. - class ApprovalRequest - include Google::Apis::Core::Hashable - - # A decision that has been made to approve access to a resource. - # Corresponds to the JSON property `approve` - # @return [Google::Apis::AccessapprovalV1beta1::ApproveDecision] - attr_accessor :approve - - # A decision that has been made to dismiss an approval request. - # Corresponds to the JSON property `dismiss` - # @return [Google::Apis::AccessapprovalV1beta1::DismissDecision] - attr_accessor :dismiss - - # The resource name of the request. Format is - # "`projects|folders|organizations`/`id`/approvalRequests/`approval_request_id`". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The time at which approval was requested. - # Corresponds to the JSON property `requestTime` - # @return [String] - attr_accessor :request_time - - # The requested expiration for the approval. If the request is approved, - # access will be granted from the time of approval until the expiration time. - # Corresponds to the JSON property `requestedExpiration` - # @return [String] - attr_accessor :requested_expiration - - # Home office and physical location of the principal. - # Corresponds to the JSON property `requestedLocations` - # @return [Google::Apis::AccessapprovalV1beta1::AccessLocations] - attr_accessor :requested_locations - - # The justification for which approval is being requested. - # Corresponds to the JSON property `requestedReason` - # @return [Google::Apis::AccessapprovalV1beta1::AccessReason] - attr_accessor :requested_reason - - # The resource for which approval is being requested. The format of the - # resource name is defined at - # https://cloud.google.com/apis/design/resource_names. The resource name here - # may either be a "full" resource name (e.g. - # "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" - # resource name (e.g. "shelves/shelf1/books/book2") as described in the - # resource name specification. - # Corresponds to the JSON property `requestedResourceName` - # @return [String] - attr_accessor :requested_resource_name - - # The properties associated with the resource of the request. - # Corresponds to the JSON property `requestedResourceProperties` - # @return [Google::Apis::AccessapprovalV1beta1::ResourceProperties] - attr_accessor :requested_resource_properties - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @approve = args[:approve] if args.key?(:approve) - @dismiss = args[:dismiss] if args.key?(:dismiss) - @name = args[:name] if args.key?(:name) - @request_time = args[:request_time] if args.key?(:request_time) - @requested_expiration = args[:requested_expiration] if args.key?(:requested_expiration) - @requested_locations = args[:requested_locations] if args.key?(:requested_locations) - @requested_reason = args[:requested_reason] if args.key?(:requested_reason) - @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name) - @requested_resource_properties = args[:requested_resource_properties] if args.key?(:requested_resource_properties) - end - end - - # Request to approve an ApprovalRequest. - class ApproveApprovalRequestMessage - include Google::Apis::Core::Hashable - - # The expiration time of this approval. - # Corresponds to the JSON property `expireTime` - # @return [String] - attr_accessor :expire_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @expire_time = args[:expire_time] if args.key?(:expire_time) - end - end - - # A decision that has been made to approve access to a resource. - class ApproveDecision - include Google::Apis::Core::Hashable - - # The time at which approval was granted. - # Corresponds to the JSON property `approveTime` - # @return [String] - attr_accessor :approve_time - - # The time at which the approval expires. - # Corresponds to the JSON property `expireTime` - # @return [String] - attr_accessor :expire_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @approve_time = args[:approve_time] if args.key?(:approve_time) - @expire_time = args[:expire_time] if args.key?(:expire_time) - end - end - - # Request to dismiss an approval request. - class DismissApprovalRequestMessage - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # A decision that has been made to dismiss an approval request. - class DismissDecision - include Google::Apis::Core::Hashable - - # The time at which the approval request was dismissed. - # Corresponds to the JSON property `dismissTime` - # @return [String] - attr_accessor :dismiss_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dismiss_time = args[:dismiss_time] if args.key?(:dismiss_time) - 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 the enrollment of a cloud resource into a specific service. - class EnrolledService - include Google::Apis::Core::Hashable - - # The product for which Access Approval will be enrolled. Allowed values are - # listed below (case-sensitive): - #
                            - #
                          1. all
                          2. - #
                          3. appengine.googleapis.com
                          4. - #
                          5. bigquery.googleapis.com
                          6. - #
                          7. bigtable.googleapis.com
                          8. - #
                          9. cloudkms.googleapis.com
                          10. - #
                          11. compute.googleapis.com
                          12. - #
                          13. dataflow.googleapis.com
                          14. - #
                          15. iam.googleapis.com
                          16. - #
                          17. pubsub.googleapis.com
                          18. - #
                          19. storage.googleapis.com
                          20. - #
                              - # Corresponds to the JSON property `cloudProduct` - # @return [String] - attr_accessor :cloud_product - - # The enrollment level of the service. - # Corresponds to the JSON property `enrollmentLevel` - # @return [String] - attr_accessor :enrollment_level - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cloud_product = args[:cloud_product] if args.key?(:cloud_product) - @enrollment_level = args[:enrollment_level] if args.key?(:enrollment_level) - end - end - - # Response to listing of ApprovalRequest objects. - class ListApprovalRequestsResponse - include Google::Apis::Core::Hashable - - # Approval request details. - # Corresponds to the JSON property `approvalRequests` - # @return [Array] - attr_accessor :approval_requests - - # Token to retrieve the next page of results, or empty if there are no more. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @approval_requests = args[:approval_requests] if args.key?(:approval_requests) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # The properties associated with the resource of the request. - class ResourceProperties - include Google::Apis::Core::Hashable - - # Whether an approval will exclude the descendants of the resource being - # requested. - # Corresponds to the JSON property `excludesDescendants` - # @return [Boolean] - attr_accessor :excludes_descendants - alias_method :excludes_descendants?, :excludes_descendants - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @excludes_descendants = args[:excludes_descendants] if args.key?(:excludes_descendants) - end - end - end - end -end diff --git a/generated/google/apis/accessapproval_v1beta1/representations.rb b/generated/google/apis/accessapproval_v1beta1/representations.rb deleted file mode 100644 index 7b13337dd..000000000 --- a/generated/google/apis/accessapproval_v1beta1/representations.rb +++ /dev/null @@ -1,203 +0,0 @@ -# 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 AccessapprovalV1beta1 - - class AccessApprovalSettings - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AccessLocations - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AccessReason - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApprovalRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApproveApprovalRequestMessage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApproveDecision - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DismissApprovalRequestMessage - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DismissDecision - 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 EnrolledService - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListApprovalRequestsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ResourceProperties - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AccessApprovalSettings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :enrolled_ancestor, as: 'enrolledAncestor' - collection :enrolled_services, as: 'enrolledServices', class: Google::Apis::AccessapprovalV1beta1::EnrolledService, decorator: Google::Apis::AccessapprovalV1beta1::EnrolledService::Representation - - property :name, as: 'name' - collection :notification_emails, as: 'notificationEmails' - end - end - - class AccessLocations - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :principal_office_country, as: 'principalOfficeCountry' - property :principal_physical_location_country, as: 'principalPhysicalLocationCountry' - end - end - - class AccessReason - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :detail, as: 'detail' - property :type, as: 'type' - end - end - - class ApprovalRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :approve, as: 'approve', class: Google::Apis::AccessapprovalV1beta1::ApproveDecision, decorator: Google::Apis::AccessapprovalV1beta1::ApproveDecision::Representation - - property :dismiss, as: 'dismiss', class: Google::Apis::AccessapprovalV1beta1::DismissDecision, decorator: Google::Apis::AccessapprovalV1beta1::DismissDecision::Representation - - property :name, as: 'name' - property :request_time, as: 'requestTime' - property :requested_expiration, as: 'requestedExpiration' - property :requested_locations, as: 'requestedLocations', class: Google::Apis::AccessapprovalV1beta1::AccessLocations, decorator: Google::Apis::AccessapprovalV1beta1::AccessLocations::Representation - - property :requested_reason, as: 'requestedReason', class: Google::Apis::AccessapprovalV1beta1::AccessReason, decorator: Google::Apis::AccessapprovalV1beta1::AccessReason::Representation - - property :requested_resource_name, as: 'requestedResourceName' - property :requested_resource_properties, as: 'requestedResourceProperties', class: Google::Apis::AccessapprovalV1beta1::ResourceProperties, decorator: Google::Apis::AccessapprovalV1beta1::ResourceProperties::Representation - - end - end - - class ApproveApprovalRequestMessage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :expire_time, as: 'expireTime' - end - end - - class ApproveDecision - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :approve_time, as: 'approveTime' - property :expire_time, as: 'expireTime' - end - end - - class DismissApprovalRequestMessage - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class DismissDecision - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dismiss_time, as: 'dismissTime' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class EnrolledService - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cloud_product, as: 'cloudProduct' - property :enrollment_level, as: 'enrollmentLevel' - end - end - - class ListApprovalRequestsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :approval_requests, as: 'approvalRequests', class: Google::Apis::AccessapprovalV1beta1::ApprovalRequest, decorator: Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class ResourceProperties - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :excludes_descendants, as: 'excludesDescendants' - end - end - end - end -end diff --git a/generated/google/apis/accessapproval_v1beta1/service.rb b/generated/google/apis/accessapproval_v1beta1/service.rb deleted file mode 100644 index 4229932fa..000000000 --- a/generated/google/apis/accessapproval_v1beta1/service.rb +++ /dev/null @@ -1,857 +0,0 @@ -# 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 AccessapprovalV1beta1 - # Access Approval API - # - # An API for controlling access to data by Google personnel. - # - # @example - # require 'google/apis/accessapproval_v1beta1' - # - # Accessapproval = Google::Apis::AccessapprovalV1beta1 # Alias the module - # service = Accessapproval::AccessApprovalService.new - # - # @see https://cloud.google.com/access-approval/docs - class AccessApprovalService < 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://accessapproval.googleapis.com/', '') - @batch_path = 'batch' - end - - # Deletes the settings associated with a project, folder, or organization. - # This will have the effect of disabling Access Approval for the project, - # folder, or organization, but only if all ancestors also have Access - # Approval disabled. If Access Approval is enabled at a higher level of the - # hierarchy, then Access Approval will still be enabled at this level as - # the settings are inherited. - # @param [String] name - # Name of the AccessApprovalSettings to delete. - # @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::AccessapprovalV1beta1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::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_folder_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::Empty::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::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 the settings associated with a project, folder, or organization. - # @param [String] name - # Name of the AccessApprovalSettings to retrieve. - # @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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] - # - # @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_folder_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings - 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 - - # Updates the settings associated with a project, folder, or organization. - # Settings to update are determined by the value of field_mask. - # @param [String] name - # The resource name of the settings. Format is one of: - #
                                - #
                              1. "projects/`project_id`/accessApprovalSettings"
                              2. - #
                              3. "folders/`folder_id`/accessApprovalSettings"
                              4. - #
                              5. "organizations/`organization_id`/accessApprovalSettings"
                              6. - #
                                  - # @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_object - # @param [String] update_mask - # For the `FieldMask` definition, see - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask - # If this field is left unset, only the notification_emails field 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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] - # - # @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_folder_access_approval_settings(name, access_approval_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.request_object = access_approval_settings_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings - 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 - - # Approves a request and returns the updated ApprovalRequest. - # Returns NOT_FOUND if the request does not exist. Returns - # FAILED_PRECONDITION if the request exists but is not in a pending state. - # @param [String] name - # Name of the approval request to approve. - # @param [Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage] approve_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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 approve_folder_approval_request(name, approve_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:approve', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage::Representation - command.request_object = approve_approval_request_message_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 - - # Dismisses a request. Returns the updated ApprovalRequest. - # NOTE: This does not deny access to the resource if another request has been - # made and approved. It is equivalent in effect to ignoring the request - # altogether. - # Returns NOT_FOUND if the request does not exist. - # Returns FAILED_PRECONDITION if the request exists but is not in a pending - # state. - # @param [String] name - # Name of the ApprovalRequest to dismiss. - # @param [Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage] dismiss_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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 dismiss_folder_approval_request(name, dismiss_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:dismiss', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage::Representation - command.request_object = dismiss_approval_request_message_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 an approval request. Returns NOT_FOUND if the request does not exist. - # @param [String] name - # Name of the approval request to retrieve. - # @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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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_folder_approval_request(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 - - # Lists approval requests associated with a project, folder, or organization. - # Approval requests can be filtered by state (pending, active, dismissed). - # The order is reverse chronological. - # @param [String] parent - # The parent resource. This may be "projects/`project_id`", - # "folders/`folder_id`", or "organizations/`organization_id`". - # @param [String] filter - # A filter on the type of approval requests to retrieve. Must be one of the - # following values: - #
                                    - #
                                  1. [not set]: Requests that are pending or have active approvals.
                                  2. - #
                                  3. ALL: All requests.
                                  4. - #
                                  5. PENDING: Only pending requests.
                                  6. - #
                                  7. ACTIVE: Only active (i.e. currently approved) requests.
                                  8. - #
                                  9. DISMISSED: Only dismissed (including expired) requests.
                                  10. - #
                                  11. HISTORY: Active and dismissed (including expired) requests.
                                  12. - #
                                  - # @param [Fixnum] page_size - # Requested page size. - # @param [String] page_token - # A token identifying the page of results to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] - # - # @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_folder_approval_requests(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/approvalRequests', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse - 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 - - # Deletes the settings associated with a project, folder, or organization. - # This will have the effect of disabling Access Approval for the project, - # folder, or organization, but only if all ancestors also have Access - # Approval disabled. If Access Approval is enabled at a higher level of the - # hierarchy, then Access Approval will still be enabled at this level as - # the settings are inherited. - # @param [String] name - # Name of the AccessApprovalSettings to delete. - # @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::AccessapprovalV1beta1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::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_organization_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::Empty::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::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 the settings associated with a project, folder, or organization. - # @param [String] name - # Name of the AccessApprovalSettings to retrieve. - # @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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings - 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 - - # Updates the settings associated with a project, folder, or organization. - # Settings to update are determined by the value of field_mask. - # @param [String] name - # The resource name of the settings. Format is one of: - #
                                    - #
                                  1. "projects/`project_id`/accessApprovalSettings"
                                  2. - #
                                  3. "folders/`folder_id`/accessApprovalSettings"
                                  4. - #
                                  5. "organizations/`organization_id`/accessApprovalSettings"
                                  6. - #
                                      - # @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_object - # @param [String] update_mask - # For the `FieldMask` definition, see - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask - # If this field is left unset, only the notification_emails field 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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] - # - # @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_organization_access_approval_settings(name, access_approval_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.request_object = access_approval_settings_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings - 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 - - # Approves a request and returns the updated ApprovalRequest. - # Returns NOT_FOUND if the request does not exist. Returns - # FAILED_PRECONDITION if the request exists but is not in a pending state. - # @param [String] name - # Name of the approval request to approve. - # @param [Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage] approve_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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 approve_organization_approval_request(name, approve_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:approve', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage::Representation - command.request_object = approve_approval_request_message_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 - - # Dismisses a request. Returns the updated ApprovalRequest. - # NOTE: This does not deny access to the resource if another request has been - # made and approved. It is equivalent in effect to ignoring the request - # altogether. - # Returns NOT_FOUND if the request does not exist. - # Returns FAILED_PRECONDITION if the request exists but is not in a pending - # state. - # @param [String] name - # Name of the ApprovalRequest to dismiss. - # @param [Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage] dismiss_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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 dismiss_organization_approval_request(name, dismiss_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:dismiss', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage::Representation - command.request_object = dismiss_approval_request_message_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 an approval request. Returns NOT_FOUND if the request does not exist. - # @param [String] name - # Name of the approval request to retrieve. - # @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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization_approval_request(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 - - # Lists approval requests associated with a project, folder, or organization. - # Approval requests can be filtered by state (pending, active, dismissed). - # The order is reverse chronological. - # @param [String] parent - # The parent resource. This may be "projects/`project_id`", - # "folders/`folder_id`", or "organizations/`organization_id`". - # @param [String] filter - # A filter on the type of approval requests to retrieve. Must be one of the - # following values: - #
                                        - #
                                      1. [not set]: Requests that are pending or have active approvals.
                                      2. - #
                                      3. ALL: All requests.
                                      4. - #
                                      5. PENDING: Only pending requests.
                                      6. - #
                                      7. ACTIVE: Only active (i.e. currently approved) requests.
                                      8. - #
                                      9. DISMISSED: Only dismissed (including expired) requests.
                                      10. - #
                                      11. HISTORY: Active and dismissed (including expired) requests.
                                      12. - #
                                      - # @param [Fixnum] page_size - # Requested page size. - # @param [String] page_token - # A token identifying the page of results to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] - # - # @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_approval_requests(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/approvalRequests', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse - 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 - - # Deletes the settings associated with a project, folder, or organization. - # This will have the effect of disabling Access Approval for the project, - # folder, or organization, but only if all ancestors also have Access - # Approval disabled. If Access Approval is enabled at a higher level of the - # hierarchy, then Access Approval will still be enabled at this level as - # the settings are inherited. - # @param [String] name - # Name of the AccessApprovalSettings to delete. - # @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::AccessapprovalV1beta1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::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_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::Empty::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::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 the settings associated with a project, folder, or organization. - # @param [String] name - # Name of the AccessApprovalSettings to retrieve. - # @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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] - # - # @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_access_approval_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings - 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 - - # Updates the settings associated with a project, folder, or organization. - # Settings to update are determined by the value of field_mask. - # @param [String] name - # The resource name of the settings. Format is one of: - #
                                        - #
                                      1. "projects/`project_id`/accessApprovalSettings"
                                      2. - #
                                      3. "folders/`folder_id`/accessApprovalSettings"
                                      4. - #
                                      5. "organizations/`organization_id`/accessApprovalSettings"
                                      6. - #
                                          - # @param [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] access_approval_settings_object - # @param [String] update_mask - # For the `FieldMask` definition, see - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask - # If this field is left unset, only the notification_emails field 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::AccessapprovalV1beta1::AccessApprovalSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings] - # - # @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_project_access_approval_settings(name, access_approval_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1beta1/{+name}', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.request_object = access_approval_settings_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings - 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 - - # Approves a request and returns the updated ApprovalRequest. - # Returns NOT_FOUND if the request does not exist. Returns - # FAILED_PRECONDITION if the request exists but is not in a pending state. - # @param [String] name - # Name of the approval request to approve. - # @param [Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage] approve_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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 approve_project_approval_request(name, approve_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:approve', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::ApproveApprovalRequestMessage::Representation - command.request_object = approve_approval_request_message_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 - - # Dismisses a request. Returns the updated ApprovalRequest. - # NOTE: This does not deny access to the resource if another request has been - # made and approved. It is equivalent in effect to ignoring the request - # altogether. - # Returns NOT_FOUND if the request does not exist. - # Returns FAILED_PRECONDITION if the request exists but is not in a pending - # state. - # @param [String] name - # Name of the ApprovalRequest to dismiss. - # @param [Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage] dismiss_approval_request_message_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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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 dismiss_project_approval_request(name, dismiss_approval_request_message_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+name}:dismiss', options) - command.request_representation = Google::Apis::AccessapprovalV1beta1::DismissApprovalRequestMessage::Representation - command.request_object = dismiss_approval_request_message_object - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 an approval request. Returns NOT_FOUND if the request does not exist. - # @param [String] name - # Name of the approval request to retrieve. - # @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::AccessapprovalV1beta1::ApprovalRequest] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ApprovalRequest] - # - # @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_approval_request(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+name}', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::ApprovalRequest::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ApprovalRequest - 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 - - # Lists approval requests associated with a project, folder, or organization. - # Approval requests can be filtered by state (pending, active, dismissed). - # The order is reverse chronological. - # @param [String] parent - # The parent resource. This may be "projects/`project_id`", - # "folders/`folder_id`", or "organizations/`organization_id`". - # @param [String] filter - # A filter on the type of approval requests to retrieve. Must be one of the - # following values: - #
                                            - #
                                          1. [not set]: Requests that are pending or have active approvals.
                                          2. - #
                                          3. ALL: All requests.
                                          4. - #
                                          5. PENDING: Only pending requests.
                                          6. - #
                                          7. ACTIVE: Only active (i.e. currently approved) requests.
                                          8. - #
                                          9. DISMISSED: Only dismissed (including expired) requests.
                                          10. - #
                                          11. HISTORY: Active and dismissed (including expired) requests.
                                          12. - #
                                          - # @param [Fixnum] page_size - # Requested page size. - # @param [String] page_token - # A token identifying the page of results to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse] - # - # @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_approval_requests(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+parent}/approvalRequests', options) - command.response_representation = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse::Representation - command.response_class = Google::Apis::AccessapprovalV1beta1::ListApprovalRequestsResponse - 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 - - 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/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index beb8fbebf..9cbfe4e55 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/apps-marketplace module AppsmarketV2 VERSION = 'V2' - REVISION = '20200803' + REVISION = '20200810' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index e557c86d6..cbaf30c30 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20200719' + REVISION = '20200805' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 4ed43bb10..ff68b6d4f 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -22,12 +22,11 @@ module Google module Apis module BigqueryV2 - # Aggregate metrics for classification/classifier models. For multi-class - # models, the metrics are either macro-averaged or micro-averaged. When - # macro-averaged, the metrics are calculated for each label and then an - # unweighted average is taken of those values. When micro-averaged, the - # metric is calculated globally by counting the total number of correctly - # predicted rows. + # Aggregate metrics for classification/classifier models. For multi-class models, + # the metrics are either macro-averaged or micro-averaged. When macro-averaged, + # the metrics are calculated for each label and then an unweighted average is + # taken of those values. When micro-averaged, the metric is calculated globally + # by counting the total number of correctly predicted rows. class AggregateClassificationMetrics include Google::Apis::Core::Hashable @@ -37,8 +36,8 @@ module Google # @return [Float] attr_accessor :accuracy - # The F1 score is an average of recall and precision. For multiclass - # this is a macro-averaged metric. + # The F1 score is an average of recall and precision. For multiclass this is a + # macro-averaged metric. # Corresponds to the JSON property `f1Score` # @return [Float] attr_accessor :f1_score @@ -48,29 +47,27 @@ module Google # @return [Float] attr_accessor :log_loss - # Precision is the fraction of actual positive predictions that had - # positive actual labels. For multiclass this is a macro-averaged - # metric treating each class as a binary classifier. + # Precision is the fraction of actual positive predictions that had positive + # actual labels. For multiclass this is a macro-averaged metric treating each + # class as a binary classifier. # Corresponds to the JSON property `precision` # @return [Float] attr_accessor :precision - # Recall is the fraction of actual positive labels that were given a - # positive prediction. For multiclass this is a macro-averaged metric. + # Recall is the fraction of actual positive labels that were given a positive + # prediction. For multiclass this is a macro-averaged metric. # Corresponds to the JSON property `recall` # @return [Float] attr_accessor :recall - # Area Under a ROC Curve. For multiclass this is a macro-averaged - # metric. + # Area Under a ROC Curve. For multiclass this is a macro-averaged metric. # Corresponds to the JSON property `rocAuc` # @return [Float] attr_accessor :roc_auc - # Threshold at which the metrics are computed. For binary - # classification models this is the positive class threshold. - # For multi-class classfication models this is the confidence - # threshold. + # Threshold at which the metrics are computed. For binary classification models + # this is the positive class threshold. For multi-class classfication models + # this is the confidence threshold. # Corresponds to the JSON property `threshold` # @return [Float] attr_accessor :threshold @@ -100,22 +97,16 @@ module Google # @return [String] attr_accessor :argument_kind - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` + # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind= + # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: ` + # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"`` + # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]`` # Corresponds to the JSON property `dataType` # @return [Google::Apis::BigqueryV2::StandardSqlDataType] attr_accessor :data_type - # Optional. Specifies whether the argument is input or output. - # Can be set for procedures only. + # Optional. Specifies whether the argument is input or output. Can be set for + # procedures only. # Corresponds to the JSON property `mode` # @return [String] attr_accessor :mode @@ -210,14 +201,14 @@ module Google # @return [Array] attr_accessor :arima_fitting_metrics - # Repeated as there can be many metric sets (one for each model) in - # auto-arima and the large-scale case. + # Repeated as there can be many metric sets (one for each model) in auto-arima + # and the large-scale case. # Corresponds to the JSON property `arimaSingleModelForecastingMetrics` # @return [Array] attr_accessor :arima_single_model_forecasting_metrics - # Whether Arima model fitted with drift or not. It is always false when d - # is not 1. + # Whether Arima model fitted with drift or not. It is always false when d is not + # 1. # Corresponds to the JSON property `hasDrift` # @return [Array] attr_accessor :has_drift @@ -227,8 +218,8 @@ module Google # @return [Array] attr_accessor :non_seasonal_order - # Seasonal periods. Repeated because multiple periods are supported for one - # time series. + # Seasonal periods. Repeated because multiple periods are supported for one time + # series. # Corresponds to the JSON property `seasonalPeriods` # @return [Array] attr_accessor :seasonal_periods @@ -267,8 +258,8 @@ module Google # @return [Google::Apis::BigqueryV2::ArimaFittingMetrics] attr_accessor :arima_fitting_metrics - # Whether Arima model fitted with drift or not. It is always false - # when d is not 1. + # Whether Arima model fitted with drift or not. It is always false when d is not + # 1. # Corresponds to the JSON property `hasDrift` # @return [Boolean] attr_accessor :has_drift @@ -279,8 +270,8 @@ module Google # @return [Google::Apis::BigqueryV2::ArimaOrder] attr_accessor :non_seasonal_order - # Seasonal periods. Repeated because multiple periods are supported - # for one time series. + # Seasonal periods. Repeated because multiple periods are supported for one time + # series. # Corresponds to the JSON property `seasonalPeriods` # @return [Array] attr_accessor :seasonal_periods @@ -341,14 +332,14 @@ module Google class ArimaResult include Google::Apis::Core::Hashable - # This message is repeated because there are multiple arima models - # fitted in auto-arima. For non-auto-arima model, its size is one. + # This message is repeated because there are multiple arima models fitted in + # auto-arima. For non-auto-arima model, its size is one. # Corresponds to the JSON property `arimaModelInfo` # @return [Array] attr_accessor :arima_model_info - # Seasonal periods. Repeated because multiple periods are supported for - # one time series. + # Seasonal periods. Repeated because multiple periods are supported for one time + # series. # Corresponds to the JSON property `seasonalPeriods` # @return [Array] attr_accessor :seasonal_periods @@ -373,8 +364,7 @@ module Google # @return [Google::Apis::BigqueryV2::ArimaFittingMetrics] attr_accessor :arima_fitting_metrics - # Is arima model fitted with drift or not. It is always false when d - # is not 1. + # Is arima model fitted with drift or not. It is always false when d is not 1. # Corresponds to the JSON property `hasDrift` # @return [Boolean] attr_accessor :has_drift @@ -385,8 +375,8 @@ module Google # @return [Google::Apis::BigqueryV2::ArimaOrder] attr_accessor :non_seasonal_order - # Seasonal periods. Repeated because multiple periods are supported - # for one time series. + # Seasonal periods. Repeated because multiple periods are supported for one time + # series. # Corresponds to the JSON property `seasonalPeriods` # @return [Array] attr_accessor :seasonal_periods @@ -410,53 +400,21 @@ module Google 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:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # 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:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -465,9 +423,9 @@ module Google # @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. + # 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 @@ -483,28 +441,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.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. + # 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] @@ -731,12 +676,11 @@ module Google class BinaryClassificationMetrics include Google::Apis::Core::Hashable - # Aggregate metrics for classification/classifier models. For multi-class - # models, the metrics are either macro-averaged or micro-averaged. When - # macro-averaged, the metrics are calculated for each label and then an - # unweighted average is taken of those values. When micro-averaged, the - # metric is calculated globally by counting the total number of correctly - # predicted rows. + # Aggregate metrics for classification/classifier models. For multi-class models, + # the metrics are either macro-averaged or micro-averaged. When macro-averaged, + # the metrics are calculated for each label and then an unweighted average is + # taken of those values. When micro-averaged, the metric is calculated globally + # by counting the total number of correctly predicted rows. # Corresponds to the JSON property `aggregateClassificationMetrics` # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics] attr_accessor :aggregate_classification_metrics @@ -798,14 +742,12 @@ module Google # @return [Float] attr_accessor :positive_class_threshold - # The fraction of actual positive predictions that had positive actual - # labels. + # The fraction of actual positive predictions that had positive actual labels. # Corresponds to the JSON property `precision` # @return [Float] attr_accessor :precision - # The fraction of actual positive labels that were given a positive - # prediction. + # The fraction of actual positive labels that were given a positive prediction. # Corresponds to the JSON property `recall` # @return [Float] attr_accessor :recall @@ -842,69 +784,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::BigqueryV2::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -1091,10 +1021,9 @@ module Google class CategoricalValue include Google::Apis::Core::Hashable - # Counts of all categories for the categorical feature. If there are - # more than ten categories, we return top ten (by count) and return - # one more CategoryCount with category "_OTHER_" and count as - # aggregate counts of remaining categories. + # Counts of all categories for the categorical feature. If there are more than + # ten categories, we return top ten (by count) and return one more CategoryCount + # with category "_OTHER_" and count as aggregate counts of remaining categories. # Corresponds to the JSON property `categoryCounts` # @return [Array] attr_accessor :category_counts @@ -1118,8 +1047,7 @@ module Google # @return [String] attr_accessor :category - # The count of training samples matching the category within the - # cluster. + # The count of training samples matching the category within the cluster. # Corresponds to the JSON property `count` # @return [Fixnum] attr_accessor :count @@ -1175,8 +1103,8 @@ module Google # @return [Fixnum] attr_accessor :centroid_id - # Cluster radius, the average distance from centroid - # to each point assigned to the cluster. + # Cluster radius, the average distance from centroid to each point assigned to + # the cluster. # Corresponds to the JSON property `clusterRadius` # @return [Float] attr_accessor :cluster_radius @@ -1255,8 +1183,7 @@ module Google class ConfusionMatrix include Google::Apis::Core::Hashable - # Confidence threshold used when computing the entries of the - # confusion matrix. + # Confidence threshold used when computing the entries of the confusion matrix. # Corresponds to the JSON property `confidenceThreshold` # @return [Float] attr_accessor :confidence_threshold @@ -1807,9 +1734,8 @@ module Google # @return [Fixnum] attr_accessor :item_count - # The predicted label. For confidence_threshold > 0, we will - # also add an entry indicating the number of items under the - # confidence threshold. + # The predicted label. For confidence_threshold > 0, we will also add an entry + # indicating the number of items under the confidence threshold. # Corresponds to the JSON property `predictedLabel` # @return [String] attr_accessor :predicted_label @@ -1863,9 +1789,9 @@ module Google end end - # Evaluation metrics of a model. These are either computed on all training - # data or just the eval data based on whether eval data was used during - # training. These are not present for imported models. + # Evaluation metrics of a model. These are either computed on all training data + # or just the eval data based on whether eval data was used during training. + # These are not present for imported models. class EvaluationMetrics include Google::Apis::Core::Hashable @@ -1889,8 +1815,8 @@ module Google # @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics] attr_accessor :multi_class_classification_metrics - # Evaluation metrics used by weighted-ALS models specified by - # feedback_type=implicit. + # Evaluation metrics used by weighted-ALS models specified by feedback_type= + # implicit. # Corresponds to the JSON property `rankingMetrics` # @return [Google::Apis::BigqueryV2::RankingMetrics] attr_accessor :ranking_metrics @@ -2135,52 +2061,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -2327,8 +2244,7 @@ module Google # @return [String] attr_accessor :feature_column - # The numerical feature value. This is the centroid value for this - # feature. + # The numerical feature value. This is the centroid value for this feature. # Corresponds to the JSON property `numericalValue` # @return [Float] attr_accessor :numerical_value @@ -2368,15 +2284,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -4059,8 +3973,7 @@ module Google include Google::Apis::Core::Hashable # Models in the requested dataset. Only the following fields are populated: - # model_reference, model_type, creation_time, last_modified_time and - # labels. + # model_reference, model_type, creation_time, last_modified_time and labels. # Corresponds to the JSON property `models` # @return [Array] attr_accessor :models @@ -4091,9 +4004,8 @@ module Google attr_accessor :next_page_token # Routines in the requested dataset. Unless read_mask is set in the request, - # only the following fields are populated: - # etag, project_id, dataset_id, routine_id, routine_type, creation_time, - # last_modified_time, and language. + # only the following fields are populated: etag, project_id, dataset_id, + # routine_id, routine_type, creation_time, last_modified_time, and language. # Corresponds to the JSON property `routines` # @return [Array] attr_accessor :routines @@ -4109,14 +4021,13 @@ module Google end end - # BigQuery-specific metadata about a location. This will be set on - # google.cloud.location.Location.metadata in Cloud Location API - # responses. + # BigQuery-specific metadata about a location. This will be set on google.cloud. + # location.Location.metadata in Cloud Location API responses. class LocationMetadata include Google::Apis::Core::Hashable - # The legacy BigQuery location ID, e.g. “EU” for the “europe” location. - # This is for any API consumers that need the legacy “US” and “EU” locations. + # The legacy BigQuery location ID, e.g. “EU” for the “europe” location. This is + # for any API consumers that need the legacy “US” and “EU” locations. # Corresponds to the JSON property `legacyLocationId` # @return [String] attr_accessor :legacy_location_id @@ -4188,9 +4099,9 @@ module Google attr_accessor :description # Custom encryption configuration (e.g., Cloud KMS keys). This shows the - # encryption configuration of the model data while stored in BigQuery - # storage. This field can be used with PatchModel to update encryption key - # for an already encrypted model. + # encryption configuration of the model data while stored in BigQuery storage. + # This field can be used with PatchModel to update encryption key for an already + # encrypted model. # Corresponds to the JSON property `encryptionConfiguration` # @return [Google::Apis::BigqueryV2::EncryptionConfiguration] attr_accessor :encryption_configuration @@ -4201,10 +4112,10 @@ module Google attr_accessor :etag # Optional. The time when this model expires, in milliseconds since the epoch. - # If not present, the model will persist indefinitely. Expired models - # will be deleted and their storage reclaimed. The defaultTableExpirationMs - # property of the encapsulating dataset can be used to set a default - # expirationTime on newly created models. + # If not present, the model will persist indefinitely. Expired models will be + # deleted and their storage reclaimed. The defaultTableExpirationMs property of + # the encapsulating dataset can be used to set a default expirationTime on newly + # created models. # Corresponds to the JSON property `expirationTime` # @return [Fixnum] attr_accessor :expiration_time @@ -4219,18 +4130,17 @@ module Google # @return [String] attr_accessor :friendly_name - # Output only. Label columns that were used to train this model. - # The output of the model will have a "predicted_" prefix to these columns. + # Output only. Label columns that were used to train this model. The output of + # the model will have a "predicted_" prefix to these columns. # Corresponds to the JSON property `labelColumns` # @return [Array] attr_accessor :label_columns - # The labels associated with this model. You can use these to organize - # and group your models. Label keys and values can be no longer - # than 63 characters, can only contain lowercase letters, numeric - # characters, underscores and dashes. International characters are allowed. - # Label values are optional. Label keys must start with a letter and each - # label in the list must have a different key. + # The labels associated with this model. You can use these to organize and group + # your models. Label keys and values can be no longer than 63 characters, can + # only contain lowercase letters, numeric characters, underscores and dashes. + # International characters are allowed. Label values are optional. Label keys + # must start with a letter and each label in the list must have a different key. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -4241,8 +4151,8 @@ module Google # @return [Fixnum] attr_accessor :last_modified_time - # Output only. The geographic location where the model resides. This value - # is inherited from the dataset. + # Output only. The geographic location where the model resides. This value is + # inherited from the dataset. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -4385,12 +4295,11 @@ module Google class MultiClassClassificationMetrics include Google::Apis::Core::Hashable - # Aggregate metrics for classification/classifier models. For multi-class - # models, the metrics are either macro-averaged or micro-averaged. When - # macro-averaged, the metrics are calculated for each label and then an - # unweighted average is taken of those values. When micro-averaged, the - # metric is calculated globally by counting the total number of correctly - # predicted rows. + # Aggregate metrics for classification/classifier models. For multi-class models, + # the metrics are either macro-averaged or micro-averaged. When macro-averaged, + # the metrics are calculated for each label and then an unweighted average is + # taken of those values. When micro-averaged, the metric is calculated globally + # by counting the total number of correctly predicted rows. # Corresponds to the JSON property `aggregateClassificationMetrics` # @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics] attr_accessor :aggregate_classification_metrics @@ -4412,66 +4321,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -4480,48 +4355,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -5129,34 +5000,33 @@ module Google end end - # Evaluation metrics used by weighted-ALS models specified by - # feedback_type=implicit. + # Evaluation metrics used by weighted-ALS models specified by feedback_type= + # implicit. class RankingMetrics include Google::Apis::Core::Hashable - # Determines the goodness of a ranking by computing the percentile rank - # from the predicted confidence and dividing it by the original rank. + # Determines the goodness of a ranking by computing the percentile rank from the + # predicted confidence and dividing it by the original rank. # Corresponds to the JSON property `averageRank` # @return [Float] attr_accessor :average_rank - # Calculates a precision per user for all the items by ranking them and - # then averages all the precisions across all the users. + # Calculates a precision per user for all the items by ranking them and then + # averages all the precisions across all the users. # Corresponds to the JSON property `meanAveragePrecision` # @return [Float] attr_accessor :mean_average_precision # Similar to the mean squared error computed in regression and explicit - # recommendation models except instead of computing the rating directly, - # the output from evaluate is computed against a preference which is 1 or 0 + # recommendation models except instead of computing the rating directly, the + # output from evaluate is computed against a preference which is 1 or 0 # depending on if the rating exists or not. # Corresponds to the JSON property `meanSquaredError` # @return [Float] attr_accessor :mean_squared_error - # A metric to determine the goodness of a ranking calculated from the - # predicted confidence by comparing it to an ideal rank measured by the - # original ratings. + # A metric to determine the goodness of a ranking calculated from the predicted + # confidence by comparing it to an ideal rank measured by the original ratings. # Corresponds to the JSON property `normalizedDiscountedCumulativeGain` # @return [Float] attr_accessor :normalized_discounted_cumulative_gain @@ -5227,26 +5097,22 @@ module Google # @return [Array] attr_accessor :arguments - # Output only. The time when this routine was created, in milliseconds since - # the epoch. + # Output only. The time when this routine was created, in milliseconds since the + # epoch. # Corresponds to the JSON property `creationTime` # @return [Fixnum] attr_accessor :creation_time - # Required. The body of the routine. - # For functions, this is the expression in the AS clause. - # If language=SQL, it is the substring inside (but excluding) the + # Required. The body of the routine. For functions, this is the expression in + # the AS clause. If language=SQL, it is the substring inside (but excluding) the # parentheses. For example, for the function created with the following - # statement: - # `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\n", y))` - # The definition_body is `concat(x, "\n", y)` (\n is not replaced with - # linebreak). - # If language=JAVASCRIPT, it is the evaluated string in the AS clause. - # For example, for the function created with the following statement: - # `CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'` - # The definition_body is - # `return "\n";\n` - # Note that both \n are replaced with linebreaks. + # statement: `CREATE FUNCTION JoinLines(x string, y string) as (concat(x, "\n", + # y))` The definition_body is `concat(x, "\n", y)` (\n is not replaced with + # linebreak). If language=JAVASCRIPT, it is the evaluated string in the AS + # clause. For example, for the function created with the following statement: ` + # CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'` The + # definition_body is `return "\n";\n` Note that both \n are replaced with + # linebreaks. # Corresponds to the JSON property `definitionBody` # @return [String] attr_accessor :definition_body @@ -5284,16 +5150,10 @@ module Google # @return [Fixnum] attr_accessor :last_modified_time - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` + # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind= + # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: ` + # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"`` + # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]`` # Corresponds to the JSON property `returnType` # @return [Google::Apis::BigqueryV2::StandardSqlDataType] attr_accessor :return_type @@ -5527,74 +5387,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::BigqueryV2::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -5635,29 +5460,17 @@ module Google end end - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` + # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind= + # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: ` + # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"`` + # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]`` class StandardSqlDataType include Google::Apis::Core::Hashable - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` + # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind= + # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: ` + # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"`` + # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]`` # Corresponds to the JSON property `arrayElementType` # @return [Google::Apis::BigqueryV2::StandardSqlDataType] attr_accessor :array_element_type @@ -5667,8 +5480,8 @@ module Google # @return [Google::Apis::BigqueryV2::StandardSqlStructType] attr_accessor :struct_type - # Required. The top level type of this field. - # Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY"). + # Required. The top level type of this field. Can be any standard SQL data type ( + # e.g., "INT64", "DATE", "ARRAY"). # Corresponds to the JSON property `typeKind` # @return [String] attr_accessor :type_kind @@ -5694,16 +5507,10 @@ module Google # @return [String] attr_accessor :name - # The type of a variable, e.g., a function argument. - # Examples: - # INT64: `type_kind="INT64"` - # ARRAY: `type_kind="ARRAY", array_element_type="STRING"` - # STRUCT>: - # `type_kind="STRUCT", - # struct_type=`fields=[ - # `name="x", type=`type_kind="STRING"``, - # `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` - # ]`` + # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind= + # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: ` + # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"`` + # , `name="y", type=`type_kind="ARRAY", array_element_type="DATE"`` ]`` # Corresponds to the JSON property `type` # @return [Google::Apis::BigqueryV2::StandardSqlDataType] attr_accessor :type @@ -6517,10 +6324,9 @@ module Google 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). + # 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 @@ -6539,8 +6345,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -6610,6 +6415,11 @@ module Google attr_accessor :auto_arima alias_method :auto_arima?, :auto_arima + # The max value of non-seasonal p and q. + # Corresponds to the JSON property `autoArimaMaxOrder` + # @return [Fixnum] + attr_accessor :auto_arima_max_order + # Batch size for dnn models. # Corresponds to the JSON property `batchSize` # @return [Fixnum] @@ -6620,25 +6430,21 @@ module Google # @return [String] attr_accessor :data_frequency - # The column to split data with. This column won't be used as a - # feature. - # 1. When data_split_method is CUSTOM, the corresponding column should - # be boolean. The rows with true value tag are eval data, and the false - # are training data. - # 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION - # rows (from smallest to largest) in the corresponding column are used - # as training data, and the rest are eval data. It respects the order - # in Orderable data types: + # The column to split data with. This column won't be used as a feature. 1. When + # data_split_method is CUSTOM, the corresponding column should be boolean. The + # rows with true value tag are eval data, and the false are training data. 2. + # When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from + # smallest to largest) in the corresponding column are used as training data, + # and the rest are eval data. It respects the order in Orderable data types: # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data- # type-properties # Corresponds to the JSON property `dataSplitColumn` # @return [String] attr_accessor :data_split_column - # The fraction of evaluation data over the whole input data. The rest - # of data will be used as training data. The format should be double. - # Accurate to two decimal places. - # Default value is 0.2. + # The fraction of evaluation data over the whole input data. The rest of data + # will be used as training data. The format should be double. Accurate to two + # decimal places. Default value is 0.2. # Corresponds to the JSON property `dataSplitEvalFraction` # @return [Float] attr_accessor :data_split_eval_fraction @@ -6658,16 +6464,15 @@ module Google # @return [Float] attr_accessor :dropout - # Whether to stop early when the loss doesn't improve significantly - # any more (compared to min_relative_progress). Used only for iterative - # training algorithms. + # Whether to stop early when the loss doesn't improve significantly any more ( + # compared to min_relative_progress). Used only for iterative training + # algorithms. # Corresponds to the JSON property `earlyStop` # @return [Boolean] attr_accessor :early_stop alias_method :early_stop?, :early_stop - # Feedback type that specifies which algorithm to run for matrix - # factorization. + # Feedback type that specifies which algorithm to run for matrix factorization. # Corresponds to the JSON property `feedbackType` # @return [String] attr_accessor :feedback_type @@ -6677,9 +6482,9 @@ module Google # @return [Array] attr_accessor :hidden_units - # The geographical region based on which the holidays are considered in - # time series modeling. If a valid value is specified, then holiday - # effects modeling is enabled. + # The geographical region based on which the holidays are considered in time + # series modeling. If a valid value is specified, then holiday effects modeling + # is enabled. # Corresponds to the JSON property `holidayRegion` # @return [String] attr_accessor :holiday_region @@ -6695,8 +6500,7 @@ module Google attr_accessor :include_drift alias_method :include_drift?, :include_drift - # Specifies the initial learning rate for the line search learn rate - # strategy. + # Specifies the initial learning rate for the line search learn rate strategy. # Corresponds to the JSON property `initialLearnRate` # @return [Float] attr_accessor :initial_learn_rate @@ -6711,8 +6515,8 @@ module Google # @return [String] attr_accessor :item_column - # The column used to provide the initial centroids for kmeans algorithm - # when kmeans_initialization_method is CUSTOM. + # The column used to provide the initial centroids for kmeans algorithm when + # kmeans_initialization_method is CUSTOM. # Corresponds to the JSON property `kmeansInitializationColumn` # @return [String] attr_accessor :kmeans_initialization_column @@ -6732,8 +6536,8 @@ module Google # @return [Float] attr_accessor :l2_regularization - # Weights associated with each label class, for rebalancing the - # training data. Only applicable for classification models. + # Weights associated with each label class, for rebalancing the training data. + # Only applicable for classification models. # Corresponds to the JSON property `labelClassWeights` # @return [Hash] attr_accessor :label_class_weights @@ -6753,8 +6557,8 @@ module Google # @return [String] attr_accessor :loss_type - # The maximum number of iterations in training. Used only for iterative - # training algorithms. + # The maximum number of iterations in training. Used only for iterative training + # algorithms. # Corresponds to the JSON property `maxIterations` # @return [Fixnum] attr_accessor :max_iterations @@ -6764,9 +6568,8 @@ module Google # @return [Fixnum] attr_accessor :max_tree_depth - # When early_stop is true, stops training when accuracy improvement is - # less than 'min_relative_progress'. Used only for iterative training - # algorithms. + # When early_stop is true, stops training when accuracy improvement is less than + # 'min_relative_progress'. Used only for iterative training algorithms. # Corresponds to the JSON property `minRelativeProgress` # @return [Float] attr_accessor :min_relative_progress @@ -6802,17 +6605,16 @@ module Google # @return [String] attr_accessor :optimization_strategy - # Whether to preserve the input structs in output feature names. - # Suppose there is a struct A with field b. - # When false (default), the output feature name is A_b. - # When true, the output feature name is A.b. + # Whether to preserve the input structs in output feature names. Suppose there + # is a struct A with field b. When false (default), the output feature name is + # A_b. When true, the output feature name is A.b. # Corresponds to the JSON property `preserveInputStructs` # @return [Boolean] attr_accessor :preserve_input_structs alias_method :preserve_input_structs?, :preserve_input_structs - # Subsample fraction of the training data to grow tree to prevent - # overfitting for boosted tree models. + # Subsample fraction of the training data to grow tree to prevent overfitting + # for boosted tree models. # Corresponds to the JSON property `subsample` # @return [Float] attr_accessor :subsample @@ -6822,8 +6624,8 @@ module Google # @return [String] attr_accessor :time_series_data_column - # The id column that will be used to indicate different time series to - # forecast in parallel. + # The id column that will be used to indicate different time series to forecast + # in parallel. # Corresponds to the JSON property `timeSeriesIdColumn` # @return [String] attr_accessor :time_series_id_column @@ -6838,8 +6640,7 @@ module Google # @return [String] attr_accessor :user_column - # Hyperparameter for matrix factoration when implicit feedback type is - # specified. + # Hyperparameter for matrix factoration when implicit feedback type is specified. # Corresponds to the JSON property `walsAlpha` # @return [Float] attr_accessor :wals_alpha @@ -6857,6 +6658,7 @@ module Google # Update properties of this object def update!(**args) @auto_arima = args[:auto_arima] if args.key?(:auto_arima) + @auto_arima_max_order = args[:auto_arima_max_order] if args.key?(:auto_arima_max_order) @batch_size = args[:batch_size] if args.key?(:batch_size) @data_frequency = args[:data_frequency] if args.key?(:data_frequency) @data_split_column = args[:data_split_column] if args.key?(:data_split_column) @@ -6911,9 +6713,9 @@ module Google # @return [Google::Apis::BigqueryV2::DataSplitResult] attr_accessor :data_split_result - # Evaluation metrics of a model. These are either computed on all training - # data or just the eval data based on whether eval data was used during - # training. These are not present for imported models. + # Evaluation metrics of a model. These are either computed on all training data + # or just the eval data based on whether eval data was used during training. + # These are not present for imported models. # Corresponds to the JSON property `evaluationMetrics` # @return [Google::Apis::BigqueryV2::EvaluationMetrics] attr_accessor :evaluation_metrics @@ -6928,8 +6730,8 @@ module Google # @return [String] attr_accessor :start_time - # Options that were used for this training run, includes - # user specified and default options that were used. + # Options that were used for this training run, includes user specified and + # default options that were used. # Corresponds to the JSON property `trainingOptions` # @return [Google::Apis::BigqueryV2::TrainingOptions] attr_accessor :training_options diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 9b635dbd4..fb9b8518e 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -2376,6 +2376,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :auto_arima, as: 'autoArima' + property :auto_arima_max_order, :numeric_string => true, as: 'autoArimaMaxOrder' property :batch_size, :numeric_string => true, as: 'batchSize' property :data_frequency, as: 'dataFrequency' property :data_split_column, as: 'dataSplitColumn' diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb index ed2e6894c..21731ecaf 100644 --- a/generated/google/apis/bigquery_v2/service.rb +++ b/generated/google/apis/bigquery_v2/service.rb @@ -657,18 +657,16 @@ module Google execute_or_queue_command(command, &block) end - # Lists all models in the specified dataset. Requires the READER dataset - # role. + # Lists all models in the specified dataset. Requires the READER dataset role. # @param [String] project_id # Required. Project ID of the models to list. # @param [String] dataset_id # Required. Dataset ID of the models to list. # @param [Fixnum] max_results - # The maximum number of results to return in a single response page. - # Leverage the page tokens to iterate through the entire collection. + # The maximum number of results to return in a single response page. Leverage + # the page tokens to iterate through the entire collection. # @param [String] page_token - # Page token, returned by a previous call to request the next page of - # results + # Page token, returned by a previous call to request the next page of results # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -859,8 +857,8 @@ module Google # @param [String] routine_id # Required. Routine ID of the requested routine # @param [String] read_mask - # If set, only the Routine fields in the field mask are returned in the - # response. If unset, all Routine fields are returned. + # If set, only the Routine fields in the field mask are returned in the response. + # If unset, all Routine fields are returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -933,29 +931,25 @@ module Google execute_or_queue_command(command, &block) end - # Lists all routines in the specified dataset. Requires the READER dataset - # role. + # Lists all routines in the specified dataset. Requires the READER dataset role. # @param [String] project_id # Required. Project ID of the routines to list # @param [String] dataset_id # Required. Dataset ID of the routines to list # @param [String] filter - # If set, then only the Routines matching this filter are returned. - # The current supported form is either "routine_type:" or - # "routineType:", where is a RoutineType enum. - # Example: "routineType:SCALAR_FUNCTION". + # If set, then only the Routines matching this filter are returned. The current + # supported form is either "routine_type:" or "routineType:", where is a + # RoutineType enum. Example: "routineType:SCALAR_FUNCTION". # @param [Fixnum] max_results - # The maximum number of results to return in a single response page. - # Leverage the page tokens to iterate through the entire collection. + # The maximum number of results to return in a single response page. Leverage + # the page tokens to iterate through the entire collection. # @param [String] page_token - # Page token, returned by a previous call, to request the next page of - # results + # Page token, returned by a previous call, to request the next page of results # @param [String] read_mask - # If set, then only the Routine fields in the field mask, as well as - # project_id, dataset_id and routine_id, are returned in the response. - # If unset, then the following Routine fields are returned: - # etag, project_id, dataset_id, routine_id, routine_type, creation_time, - # last_modified_time, and language. + # If set, then only the Routine fields in the field mask, as well as project_id, + # dataset_id and routine_id, are returned in the response. If unset, then the + # following Routine fields are returned: etag, project_id, dataset_id, + # routine_id, routine_type, creation_time, last_modified_time, and language. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1213,12 +1207,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BigqueryV2::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1378,11 +1371,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1416,15 +1409,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/bigqueryconnection_v1beta1.rb b/generated/google/apis/bigqueryconnection_v1beta1.rb index 292240ed7..41bf50383 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryconnectionV1beta1 VERSION = 'V1beta1' - REVISION = '20200617' + REVISION = '20200805' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryconnection_v1beta1/classes.rb b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb index 3fa8dcd4e..0304946bb 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb @@ -22,53 +22,21 @@ module Google module Apis module BigqueryconnectionV1beta1 - # 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:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # 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:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -77,9 +45,9 @@ module Google # @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. + # 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 @@ -95,28 +63,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.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. + # 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] @@ -142,69 +97,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::BigqueryconnectionV1beta1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -283,8 +226,8 @@ module Google end end - # Configuration parameters to establish connection with an external data - # source, except the credential attributes. + # Configuration parameters to establish connection with an external data source, + # except the credential attributes. class Connection include Google::Apis::Core::Hashable @@ -319,8 +262,8 @@ module Google # @return [Fixnum] attr_accessor :last_modified_time - # The resource name of the connection in the form of: - # `projects/`project_id`/locations/`location_id`/connections/`connection_id`` + # The resource name of the connection in the form of: `projects/`project_id`/ + # locations/`location_id`/connections/`connection_id`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -360,13 +303,11 @@ module Google 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 ````. + # 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 @@ -379,52 +320,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -465,15 +397,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -514,66 +444,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -582,48 +478,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -646,74 +538,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::BigqueryconnectionV1beta1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -733,10 +590,9 @@ module Google 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). + # 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 @@ -755,8 +611,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions diff --git a/generated/google/apis/bigqueryconnection_v1beta1/service.rb b/generated/google/apis/bigqueryconnection_v1beta1/service.rb index 694823618..8beef0607 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1/service.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1/service.rb @@ -49,8 +49,8 @@ module Google # Creates a new connection. # @param [String] parent - # Required. Parent resource name. - # Must be in the format `projects/`project_id`/locations/`location_id`` + # Required. Parent resource name. Must be in the format `projects/`project_id`/ + # locations/`location_id`` # @param [Google::Apis::BigqueryconnectionV1beta1::Connection] connection_object # @param [String] connection_id # Optional. Connection id that should be assigned to the created connection. @@ -86,8 +86,8 @@ module Google # Deletes connection and associated credential. # @param [String] name - # Required. Name of the deleted connection, for example: - # `projects/`project_id`/locations/`location_id`/connections/`connection_id`` + # Required. Name of the deleted connection, for example: `projects/`project_id`/ + # locations/`location_id`/connections/`connection_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -117,8 +117,8 @@ module Google # Returns specified connection. # @param [String] name - # Required. Name of the requested connection, for example: - # `projects/`project_id`/locations/`location_id`/connections/`connection_id`` + # Required. Name of the requested connection, for example: `projects/`project_id` + # /locations/`location_id`/connections/`connection_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -146,12 +146,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BigqueryconnectionV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -184,8 +183,8 @@ module Google # Returns a list of connections in the given project. # @param [String] parent - # Required. Parent resource name. - # Must be in the form: `projects/`project_id`/locations/`location_id`` + # Required. Parent resource name. Must be in the form: `projects/`project_id`/ + # locations/`location_id`` # @param [Fixnum] max_results # Required. Maximum number of results per page. # @param [String] page_token @@ -219,11 +218,11 @@ module Google execute_or_queue_command(command, &block) end - # Updates the specified connection. For security reasons, also resets - # credential if connection properties are in the update field mask. + # Updates the specified connection. For security reasons, also resets credential + # if connection properties are in the update field mask. # @param [String] name - # Required. Name of the connection to update, for example: - # `projects/`project_id`/locations/`location_id`/connections/`connection_id`` + # Required. Name of the connection to update, for example: `projects/`project_id` + # /locations/`location_id`/connections/`connection_id`` # @param [Google::Apis::BigqueryconnectionV1beta1::Connection] connection_object # @param [String] update_mask # Required. Update mask for the connection fields to be updated. @@ -258,11 +257,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BigqueryconnectionV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -293,15 +292,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::BigqueryconnectionV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -334,9 +332,8 @@ module Google # Sets the credential for the specified connection. # @param [String] name - # Required. Name of the connection, for example: - # `projects/`project_id`/locations/`location_id`/connections/`connection_id`/ - # credential` + # Required. Name of the connection, for example: `projects/`project_id`/ + # locations/`location_id`/connections/`connection_id`/credential` # @param [Google::Apis::BigqueryconnectionV1beta1::ConnectionCredential] connection_credential_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/binaryauthorization_v1.rb b/generated/google/apis/binaryauthorization_v1.rb index 2c4b835af..d5db597ec 100644 --- a/generated/google/apis/binaryauthorization_v1.rb +++ b/generated/google/apis/binaryauthorization_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1 VERSION = 'V1' - REVISION = '20200731' + REVISION = '20200807' # 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/binaryauthorization_v1/classes.rb b/generated/google/apis/binaryauthorization_v1/classes.rb index 96085b102..3dedcb92d 100644 --- a/generated/google/apis/binaryauthorization_v1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1/classes.rb @@ -22,12 +22,11 @@ module Google module Apis module BinaryauthorizationV1 - # An admission rule specifies either that all container images - # used in a pod creation request must be attested to by one or more - # attestors, that all pod creations will be allowed, or that all - # pod creations will be denied. - # Images matching an admission whitelist pattern - # are exempted from admission rules and will never block a pod creation. + # An admission rule specifies either that all container images used in a pod + # creation request must be attested to by one or more attestors, that all pod + # creations will be allowed, or that all pod creations will be denied. Images + # matching an admission whitelist pattern are exempted from admission rules and + # will never block a pod creation. class AdmissionRule include Google::Apis::Core::Hashable @@ -41,11 +40,10 @@ module Google # @return [String] attr_accessor :evaluation_mode - # Optional. The resource names of the attestors that must attest to - # a container image, in the format `projects/*/attestors/*`. Each - # attestor must exist before a policy can reference it. To add an attestor - # to a policy the principal issuing the policy change request must be able - # to read the attestor resource. + # Optional. The resource names of the attestors that must attest to a container + # image, in the format `projects/*/attestors/*`. Each attestor must exist before + # a policy can reference it. To add an attestor to a policy the principal + # issuing the policy change request must be able to read the attestor resource. # Note: this field must be non-empty when the evaluation_mode field specifies # REQUIRE_ATTESTATION, otherwise it must be empty. # Corresponds to the JSON property `requireAttestationsBy` @@ -64,14 +62,13 @@ module Google end end - # An admission whitelist pattern exempts images - # from checks by admission rules. + # An admission whitelist pattern exempts images from checks by admission rules. class AdmissionWhitelistPattern include Google::Apis::Core::Hashable - # An image name pattern to whitelist, in the form `registry/path/to/image`. - # This supports a trailing `*` as a wildcard, but this is allowed only in - # text after the `registry/` part. + # An image name pattern to whitelist, in the form `registry/path/to/image`. This + # supports a trailing `*` as a wildcard, but this is allowed only in text after + # the `registry/` part. # Corresponds to the JSON property `namePattern` # @return [String] attr_accessor :name_pattern @@ -86,20 +83,19 @@ module Google end end - # An attestor that attests to container image - # artifacts. An existing attestor cannot be modified except where - # indicated. + # An attestor that attests to container image artifacts. An existing attestor + # cannot be modified except where indicated. class Attestor include Google::Apis::Core::Hashable - # Optional. A descriptive comment. This field may be updated. - # The field may be displayed in chooser dialogs. + # Optional. A descriptive comment. This field may be updated. The field may be + # displayed in chooser dialogs. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Required. The resource name, in the format: - # `projects/*/attestors/*`. This field may not be updated. + # Required. The resource name, in the format: `projects/*/attestors/*`. This + # field may not be updated. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -109,8 +105,8 @@ module Google # @return [String] attr_accessor :update_time - # An user owned Grafeas note references a Grafeas - # Attestation.Authority Note created by the user. + # An user owned Grafeas note references a Grafeas Attestation.Authority Note + # created by the user. # Corresponds to the JSON property `userOwnedGrafeasNote` # @return [Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote] attr_accessor :user_owned_grafeas_note @@ -128,19 +124,17 @@ module Google end end - # An attestor public key that will be used to verify - # attestations signed by this attestor. + # An attestor public key that will be used to verify attestations signed by this + # attestor. class AttestorPublicKey include Google::Apis::Core::Hashable - # ASCII-armored representation of a PGP public key, as the entire output by - # the command `gpg --export --armor foo@example.com` (either LF or CRLF - # line endings). - # When using this field, `id` should be left blank. The BinAuthz API - # handlers will calculate the ID and fill it in automatically. BinAuthz - # computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - # upper-case hex. If `id` is provided by the caller, it will be - # overwritten by the API-calculated ID. + # ASCII-armored representation of a PGP public key, as the entire output by the + # command `gpg --export --armor foo@example.com` (either LF or CRLF line endings) + # . When using this field, `id` should be left blank. The BinAuthz API handlers + # will calculate the ID and fill it in automatically. BinAuthz computes this ID + # as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If `id` + # is provided by the caller, it will be overwritten by the API-calculated ID. # Corresponds to the JSON property `asciiArmoredPgpPublicKey` # @return [String] attr_accessor :ascii_armored_pgp_public_key @@ -150,21 +144,18 @@ module Google # @return [String] attr_accessor :comment - # The ID of this public key. - # Signatures verified by BinAuthz must include the ID of the public key that - # can be used to verify them, and that ID must match the contents of this - # field exactly. - # Additional restrictions on this field can be imposed based on which public - # key type is encapsulated. See the documentation on `public_key` cases below - # for details. + # The ID of this public key. Signatures verified by BinAuthz must include the ID + # of the public key that can be used to verify them, and that ID must match the + # contents of this field exactly. Additional restrictions on this field can be + # imposed based on which public key type is encapsulated. See the documentation + # on `public_key` cases below for details. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A public key in the PkixPublicKey format (see - # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). - # Public keys of this type are typically textually encoded using the PEM - # format. + # A public key in the PkixPublicKey format (see https://tools.ietf.org/html/ + # rfc5280#section-4.1.2.7 for details). Public keys of this type are typically + # textually encoded using the PEM format. # Corresponds to the JSON property `pkixPublicKey` # @return [Google::Apis::BinaryauthorizationV1::PkixPublicKey] attr_accessor :pkix_public_key @@ -186,69 +177,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::BinaryauthorizationV1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -265,13 +244,11 @@ module Google 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 ````. + # 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 @@ -284,52 +261,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -348,111 +316,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class IamPolicy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -479,8 +409,8 @@ module Google attr_accessor :attestors # A token to retrieve the next page of results. Pass this value in the - # ListAttestorsRequest.page_token field in the subsequent call to the - # `ListAttestors` method to retrieve the next page of results. + # ListAttestorsRequest.page_token field in the subsequent call to the ` + # ListAttestors` method to retrieve the next page of results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -496,24 +426,22 @@ module Google end end - # A public key in the PkixPublicKey format (see - # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). - # Public keys of this type are typically textually encoded using the PEM - # format. + # A public key in the PkixPublicKey format (see https://tools.ietf.org/html/ + # rfc5280#section-4.1.2.7 for details). Public keys of this type are typically + # textually encoded using the PEM format. class PkixPublicKey include Google::Apis::Core::Hashable - # A PEM-encoded public key, as described in - # https://tools.ietf.org/html/rfc7468#section-13 + # A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468# + # section-13 # Corresponds to the JSON property `publicKeyPem` # @return [String] attr_accessor :public_key_pem # The signature algorithm used to verify a message against a signature using - # this key. - # These signature algorithm must match the structure and any object - # identifiers encoded in `public_key_pem` (i.e. this algorithm must match - # that of the public key). + # this key. These signature algorithm must match the structure and any object + # identifiers encoded in `public_key_pem` (i.e. this algorithm must match that + # of the public key). # Corresponds to the JSON property `signatureAlgorithm` # @return [String] attr_accessor :signature_algorithm @@ -534,30 +462,26 @@ module Google include Google::Apis::Core::Hashable # Optional. Admission policy whitelisting. A matching admission request will - # always be permitted. This feature is typically used to exclude Google or - # third-party infrastructure images from Binary Authorization policies. + # always be permitted. This feature is typically used to exclude Google or third- + # party infrastructure images from Binary Authorization policies. # Corresponds to the JSON property `admissionWhitelistPatterns` # @return [Array] attr_accessor :admission_whitelist_patterns - # Optional. Per-cluster admission rules. Cluster spec format: - # `location.clusterId`. There can be at most one admission rule per cluster - # spec. - # A `location` is either a compute zone (e.g. us-central1-a) or a region - # (e.g. us-central1). - # For `clusterId` syntax restrictions see - # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones. - # clusters. + # Optional. Per-cluster admission rules. Cluster spec format: `location. + # clusterId`. There can be at most one admission rule per cluster spec. A ` + # location` is either a compute zone (e.g. us-central1-a) or a region (e.g. us- + # central1). For `clusterId` syntax restrictions see https://cloud.google.com/ + # container-engine/reference/rest/v1/projects.zones.clusters. # Corresponds to the JSON property `clusterAdmissionRules` # @return [Hash] attr_accessor :cluster_admission_rules - # An admission rule specifies either that all container images - # used in a pod creation request must be attested to by one or more - # attestors, that all pod creations will be allowed, or that all - # pod creations will be denied. - # Images matching an admission whitelist pattern - # are exempted from admission rules and will never block a pod creation. + # An admission rule specifies either that all container images used in a pod + # creation request must be attested to by one or more attestors, that all pod + # creations will be allowed, or that all pod creations will be denied. Images + # matching an admission whitelist pattern are exempted from admission rules and + # will never block a pod creation. # Corresponds to the JSON property `defaultAdmissionRule` # @return [Google::Apis::BinaryauthorizationV1::AdmissionRule] attr_accessor :default_admission_rule @@ -568,15 +492,15 @@ module Google attr_accessor :description # Optional. Controls the evaluation of a Google-maintained global admission - # policy for common system-level images. Images not covered by the global - # policy will be subject to the project admission policy. This setting - # has no effect when specified inside a global admission policy. + # policy for common system-level images. Images not covered by the global policy + # will be subject to the project admission policy. This setting has no effect + # when specified inside a global admission policy. # Corresponds to the JSON property `globalPolicyEvaluationMode` # @return [String] attr_accessor :global_policy_evaluation_mode - # Output only. The resource name, in the format `projects/*/policy`. There is - # at most one policy per project. + # Output only. The resource name, in the format `projects/*/policy`. There is at + # most one policy per project. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -607,66 +531,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::BinaryauthorizationV1::IamPolicy] attr_accessor :policy @@ -685,10 +575,9 @@ module Google 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). + # 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 @@ -707,8 +596,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -723,40 +611,37 @@ module Google end end - # An user owned Grafeas note references a Grafeas - # Attestation.Authority Note created by the user. + # An user owned Grafeas note references a Grafeas Attestation.Authority Note + # created by the user. class UserOwnedGrafeasNote include Google::Apis::Core::Hashable - # Output only. This field will contain the service account email address - # that this Attestor will use as the principal when querying Container - # Analysis. Attestor administrators must grant this service account the - # IAM role needed to read attestations from the note_reference in - # Container Analysis (`containeranalysis.notes.occurrences.viewer`). - # This email address is fixed for the lifetime of the Attestor, but callers - # should not make any other assumptions about the service account email; - # future versions may use an email based on a different naming pattern. + # Output only. This field will contain the service account email address that + # this Attestor will use as the principal when querying Container Analysis. + # Attestor administrators must grant this service account the IAM role needed to + # read attestations from the note_reference in Container Analysis (` + # containeranalysis.notes.occurrences.viewer`). This email address is fixed for + # the lifetime of the Attestor, but callers should not make any other + # assumptions about the service account email; future versions may use an email + # based on a different naming pattern. # Corresponds to the JSON property `delegationServiceAccountEmail` # @return [String] attr_accessor :delegation_service_account_email - # Required. The Grafeas resource name of a Attestation.Authority Note, - # created by the user, in the format: `projects/*/notes/*`. This field may - # not be updated. - # An attestation by this attestor is stored as a Grafeas - # Attestation.Authority Occurrence that names a container image and that - # links to this Note. Grafeas is an external dependency. + # Required. The Grafeas resource name of a Attestation.Authority Note, created + # by the user, in the format: `projects/*/notes/*`. This field may not be + # updated. An attestation by this attestor is stored as a Grafeas Attestation. + # Authority Occurrence that names a container image and that links to this Note. + # Grafeas is an external dependency. # Corresponds to the JSON property `noteReference` # @return [String] attr_accessor :note_reference - # Optional. Public keys that verify attestations signed by this - # attestor. This field may be updated. - # If this field is non-empty, one of the specified public keys must - # verify that an attestation was signed by this attestor for the - # image specified in the admission request. - # If this field is empty, this attestor always returns that no - # valid attestations exist. + # Optional. Public keys that verify attestations signed by this attestor. This + # field may be updated. If this field is non-empty, one of the specified public + # keys must verify that an attestation was signed by this attestor for the image + # specified in the admission request. If this field is empty, this attestor + # always returns that no valid attestations exist. # Corresponds to the JSON property `publicKeys` # @return [Array] attr_accessor :public_keys diff --git a/generated/google/apis/binaryauthorization_v1/service.rb b/generated/google/apis/binaryauthorization_v1/service.rb index 4211c2158..b10a110ee 100644 --- a/generated/google/apis/binaryauthorization_v1/service.rb +++ b/generated/google/apis/binaryauthorization_v1/service.rb @@ -48,15 +48,14 @@ module Google @batch_path = 'batch' end - # A policy specifies the attestors that must attest to - # a container image, before the project is allowed to deploy that - # image. There is at most one policy per project. All image admission - # requests are permitted if a project has no policy. - # Gets the policy for this project. Returns a default - # policy if the project does not have one. + # A policy specifies the attestors that must attest to a container image, before + # the project is allowed to deploy that image. There is at most one policy per + # project. All image admission requests are permitted if a project has no policy. + # Gets the policy for this project. Returns a default policy if the project + # does not have one. # @param [String] name - # Required. The resource name of the policy to retrieve, - # in the format `projects/*/policy`. + # Required. The resource name of the policy to retrieve, in the format `projects/ + # */policy`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -84,14 +83,13 @@ module Google execute_or_queue_command(command, &block) end - # Creates or updates a project's policy, and returns a copy of the - # new policy. A policy is always updated as a whole, to avoid race - # conditions with concurrent policy enforcement (or management!) - # requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT - # if the request is malformed. + # Creates or updates a project's policy, and returns a copy of the new policy. A + # policy is always updated as a whole, to avoid race conditions with concurrent + # policy enforcement (or management!) requests. Returns NOT_FOUND if the project + # does not exist, INVALID_ARGUMENT if the request is malformed. # @param [String] name - # Output only. The resource name, in the format `projects/*/policy`. There is - # at most one policy per project. + # Output only. The resource name, in the format `projects/*/policy`. There is at + # most one policy per project. # @param [Google::Apis::BinaryauthorizationV1::Policy] policy_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -122,10 +120,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates an attestor, and returns a copy of the new - # attestor. Returns NOT_FOUND if the project does not exist, - # INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the - # attestor already exists. + # Creates an attestor, and returns a copy of the new attestor. Returns NOT_FOUND + # if the project does not exist, INVALID_ARGUMENT if the request is malformed, + # ALREADY_EXISTS if the attestor already exists. # @param [String] parent # Required. The parent of this attestor. # @param [Google::Apis::BinaryauthorizationV1::Attestor] attestor_object @@ -161,11 +158,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes an attestor. Returns NOT_FOUND if the - # attestor does not exist. + # Deletes an attestor. Returns NOT_FOUND if the attestor does not exist. # @param [String] name - # Required. The name of the attestors to delete, in the format - # `projects/*/attestors/*`. + # Required. The name of the attestors to delete, in the format `projects/*/ + # attestors/*`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -193,11 +189,10 @@ module Google execute_or_queue_command(command, &block) end - # Gets an attestor. - # Returns NOT_FOUND if the attestor does not exist. + # Gets an attestor. Returns NOT_FOUND if the attestor does not exist. # @param [String] name - # Required. The name of the attestor to retrieve, in the format - # `projects/*/attestors/*`. + # Required. The name of the attestor to retrieve, in the format `projects/*/ + # attestors/*`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -225,22 +220,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -269,18 +261,17 @@ module Google execute_or_queue_command(command, &block) end - # Lists attestors. - # Returns INVALID_ARGUMENT if the project does not exist. + # Lists attestors. Returns INVALID_ARGUMENT if the project does not exist. # @param [String] parent - # Required. The resource name of the project associated with the - # attestors, in the format `projects/*`. + # Required. The resource name of the project associated with the attestors, in + # the format `projects/*`. # @param [Fixnum] page_size # Requested page size. The server may return fewer results than requested. If # unspecified, the server will pick an appropriate default. # @param [String] page_token # A token identifying a page of results the server should return. Typically, - # this is the value of ListAttestorsResponse.next_page_token returned - # from the previous call to the `ListAttestors` method. + # this is the value of ListAttestorsResponse.next_page_token returned from the + # previous call to the `ListAttestors` method. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -311,11 +302,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BinaryauthorizationV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -346,15 +337,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::BinaryauthorizationV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -385,11 +375,10 @@ module Google execute_or_queue_command(command, &block) end - # Updates an attestor. - # Returns NOT_FOUND if the attestor does not exist. + # Updates an attestor. Returns NOT_FOUND if the attestor does not exist. # @param [String] name - # Required. The resource name, in the format: - # `projects/*/attestors/*`. This field may not be updated. + # Required. The resource name, in the format: `projects/*/attestors/*`. This + # field may not be updated. # @param [Google::Apis::BinaryauthorizationV1::Attestor] attestor_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -420,22 +409,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -465,11 +451,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BinaryauthorizationV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -500,15 +486,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::BinaryauthorizationV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb index 0887d4812..ddbff12f0 100644 --- a/generated/google/apis/binaryauthorization_v1beta1.rb +++ b/generated/google/apis/binaryauthorization_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1beta1 VERSION = 'V1beta1' - REVISION = '20200731' + REVISION = '20200807' # 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/binaryauthorization_v1beta1/classes.rb b/generated/google/apis/binaryauthorization_v1beta1/classes.rb index 2b2d25f05..e2054c4f4 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/classes.rb @@ -22,12 +22,11 @@ module Google module Apis module BinaryauthorizationV1beta1 - # An admission rule specifies either that all container images - # used in a pod creation request must be attested to by one or more - # attestors, that all pod creations will be allowed, or that all - # pod creations will be denied. - # Images matching an admission whitelist pattern - # are exempted from admission rules and will never block a pod creation. + # An admission rule specifies either that all container images used in a pod + # creation request must be attested to by one or more attestors, that all pod + # creations will be allowed, or that all pod creations will be denied. Images + # matching an admission whitelist pattern are exempted from admission rules and + # will never block a pod creation. class AdmissionRule include Google::Apis::Core::Hashable @@ -41,11 +40,10 @@ module Google # @return [String] attr_accessor :evaluation_mode - # Optional. The resource names of the attestors that must attest to - # a container image, in the format `projects/*/attestors/*`. Each - # attestor must exist before a policy can reference it. To add an attestor - # to a policy the principal issuing the policy change request must be able - # to read the attestor resource. + # Optional. The resource names of the attestors that must attest to a container + # image, in the format `projects/*/attestors/*`. Each attestor must exist before + # a policy can reference it. To add an attestor to a policy the principal + # issuing the policy change request must be able to read the attestor resource. # Note: this field must be non-empty when the evaluation_mode field specifies # REQUIRE_ATTESTATION, otherwise it must be empty. # Corresponds to the JSON property `requireAttestationsBy` @@ -64,14 +62,13 @@ module Google end end - # An admission whitelist pattern exempts images - # from checks by admission rules. + # An admission whitelist pattern exempts images from checks by admission rules. class AdmissionWhitelistPattern include Google::Apis::Core::Hashable - # An image name pattern to whitelist, in the form `registry/path/to/image`. - # This supports a trailing `*` as a wildcard, but this is allowed only in - # text after the `registry/` part. + # An image name pattern to whitelist, in the form `registry/path/to/image`. This + # supports a trailing `*` as a wildcard, but this is allowed only in text after + # the `registry/` part. # Corresponds to the JSON property `namePattern` # @return [String] attr_accessor :name_pattern @@ -86,20 +83,19 @@ module Google end end - # An attestor that attests to container image - # artifacts. An existing attestor cannot be modified except where - # indicated. + # An attestor that attests to container image artifacts. An existing attestor + # cannot be modified except where indicated. class Attestor include Google::Apis::Core::Hashable - # Optional. A descriptive comment. This field may be updated. - # The field may be displayed in chooser dialogs. + # Optional. A descriptive comment. This field may be updated. The field may be + # displayed in chooser dialogs. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Required. The resource name, in the format: - # `projects/*/attestors/*`. This field may not be updated. + # Required. The resource name, in the format: `projects/*/attestors/*`. This + # field may not be updated. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -109,8 +105,8 @@ module Google # @return [String] attr_accessor :update_time - # An user owned drydock note references a Drydock - # ATTESTATION_AUTHORITY Note created by the user. + # An user owned drydock note references a Drydock ATTESTATION_AUTHORITY Note + # created by the user. # Corresponds to the JSON property `userOwnedDrydockNote` # @return [Google::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote] attr_accessor :user_owned_drydock_note @@ -128,19 +124,17 @@ module Google end end - # An attestor public key that will be used to verify - # attestations signed by this attestor. + # An attestor public key that will be used to verify attestations signed by this + # attestor. class AttestorPublicKey include Google::Apis::Core::Hashable - # ASCII-armored representation of a PGP public key, as the entire output by - # the command `gpg --export --armor foo@example.com` (either LF or CRLF - # line endings). - # When using this field, `id` should be left blank. The BinAuthz API - # handlers will calculate the ID and fill it in automatically. BinAuthz - # computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as - # upper-case hex. If `id` is provided by the caller, it will be - # overwritten by the API-calculated ID. + # ASCII-armored representation of a PGP public key, as the entire output by the + # command `gpg --export --armor foo@example.com` (either LF or CRLF line endings) + # . When using this field, `id` should be left blank. The BinAuthz API handlers + # will calculate the ID and fill it in automatically. BinAuthz computes this ID + # as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If `id` + # is provided by the caller, it will be overwritten by the API-calculated ID. # Corresponds to the JSON property `asciiArmoredPgpPublicKey` # @return [String] attr_accessor :ascii_armored_pgp_public_key @@ -150,21 +144,18 @@ module Google # @return [String] attr_accessor :comment - # The ID of this public key. - # Signatures verified by BinAuthz must include the ID of the public key that - # can be used to verify them, and that ID must match the contents of this - # field exactly. - # Additional restrictions on this field can be imposed based on which public - # key type is encapsulated. See the documentation on `public_key` cases below - # for details. + # The ID of this public key. Signatures verified by BinAuthz must include the ID + # of the public key that can be used to verify them, and that ID must match the + # contents of this field exactly. Additional restrictions on this field can be + # imposed based on which public key type is encapsulated. See the documentation + # on `public_key` cases below for details. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # A public key in the PkixPublicKey format (see - # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). - # Public keys of this type are typically textually encoded using the PEM - # format. + # A public key in the PkixPublicKey format (see https://tools.ietf.org/html/ + # rfc5280#section-4.1.2.7 for details). Public keys of this type are typically + # textually encoded using the PEM format. # Corresponds to the JSON property `pkixPublicKey` # @return [Google::Apis::BinaryauthorizationV1beta1::PkixPublicKey] attr_accessor :pkix_public_key @@ -186,69 +177,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::BinaryauthorizationV1beta1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -265,13 +244,11 @@ module Google 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 ````. + # 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 @@ -284,52 +261,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -348,111 +316,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class IamPolicy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -479,8 +409,8 @@ module Google attr_accessor :attestors # A token to retrieve the next page of results. Pass this value in the - # ListAttestorsRequest.page_token field in the subsequent call to the - # `ListAttestors` method to retrieve the next page of results. + # ListAttestorsRequest.page_token field in the subsequent call to the ` + # ListAttestors` method to retrieve the next page of results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -496,24 +426,22 @@ module Google end end - # A public key in the PkixPublicKey format (see - # https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details). - # Public keys of this type are typically textually encoded using the PEM - # format. + # A public key in the PkixPublicKey format (see https://tools.ietf.org/html/ + # rfc5280#section-4.1.2.7 for details). Public keys of this type are typically + # textually encoded using the PEM format. class PkixPublicKey include Google::Apis::Core::Hashable - # A PEM-encoded public key, as described in - # https://tools.ietf.org/html/rfc7468#section-13 + # A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468# + # section-13 # Corresponds to the JSON property `publicKeyPem` # @return [String] attr_accessor :public_key_pem # The signature algorithm used to verify a message against a signature using - # this key. - # These signature algorithm must match the structure and any object - # identifiers encoded in `public_key_pem` (i.e. this algorithm must match - # that of the public key). + # this key. These signature algorithm must match the structure and any object + # identifiers encoded in `public_key_pem` (i.e. this algorithm must match that + # of the public key). # Corresponds to the JSON property `signatureAlgorithm` # @return [String] attr_accessor :signature_algorithm @@ -534,30 +462,26 @@ module Google include Google::Apis::Core::Hashable # Optional. Admission policy whitelisting. A matching admission request will - # always be permitted. This feature is typically used to exclude Google or - # third-party infrastructure images from Binary Authorization policies. + # always be permitted. This feature is typically used to exclude Google or third- + # party infrastructure images from Binary Authorization policies. # Corresponds to the JSON property `admissionWhitelistPatterns` # @return [Array] attr_accessor :admission_whitelist_patterns - # Optional. Per-cluster admission rules. Cluster spec format: - # `location.clusterId`. There can be at most one admission rule per cluster - # spec. - # A `location` is either a compute zone (e.g. us-central1-a) or a region - # (e.g. us-central1). - # For `clusterId` syntax restrictions see - # https://cloud.google.com/container-engine/reference/rest/v1/projects.zones. - # clusters. + # Optional. Per-cluster admission rules. Cluster spec format: `location. + # clusterId`. There can be at most one admission rule per cluster spec. A ` + # location` is either a compute zone (e.g. us-central1-a) or a region (e.g. us- + # central1). For `clusterId` syntax restrictions see https://cloud.google.com/ + # container-engine/reference/rest/v1/projects.zones.clusters. # Corresponds to the JSON property `clusterAdmissionRules` # @return [Hash] attr_accessor :cluster_admission_rules - # An admission rule specifies either that all container images - # used in a pod creation request must be attested to by one or more - # attestors, that all pod creations will be allowed, or that all - # pod creations will be denied. - # Images matching an admission whitelist pattern - # are exempted from admission rules and will never block a pod creation. + # An admission rule specifies either that all container images used in a pod + # creation request must be attested to by one or more attestors, that all pod + # creations will be allowed, or that all pod creations will be denied. Images + # matching an admission whitelist pattern are exempted from admission rules and + # will never block a pod creation. # Corresponds to the JSON property `defaultAdmissionRule` # @return [Google::Apis::BinaryauthorizationV1beta1::AdmissionRule] attr_accessor :default_admission_rule @@ -568,15 +492,15 @@ module Google attr_accessor :description # Optional. Controls the evaluation of a Google-maintained global admission - # policy for common system-level images. Images not covered by the global - # policy will be subject to the project admission policy. This setting - # has no effect when specified inside a global admission policy. + # policy for common system-level images. Images not covered by the global policy + # will be subject to the project admission policy. This setting has no effect + # when specified inside a global admission policy. # Corresponds to the JSON property `globalPolicyEvaluationMode` # @return [String] attr_accessor :global_policy_evaluation_mode - # Output only. The resource name, in the format `projects/*/policy`. There is - # at most one policy per project. + # Output only. The resource name, in the format `projects/*/policy`. There is at + # most one policy per project. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -607,66 +531,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::BinaryauthorizationV1beta1::IamPolicy] attr_accessor :policy @@ -685,10 +575,9 @@ module Google 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). + # 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 @@ -707,8 +596,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -723,40 +611,37 @@ module Google end end - # An user owned drydock note references a Drydock - # ATTESTATION_AUTHORITY Note created by the user. + # An user owned drydock note references a Drydock ATTESTATION_AUTHORITY Note + # created by the user. class UserOwnedDrydockNote include Google::Apis::Core::Hashable - # Output only. This field will contain the service account email address - # that this Attestor will use as the principal when querying Container - # Analysis. Attestor administrators must grant this service account the - # IAM role needed to read attestations from the note_reference in - # Container Analysis (`containeranalysis.notes.occurrences.viewer`). - # This email address is fixed for the lifetime of the Attestor, but callers - # should not make any other assumptions about the service account email; - # future versions may use an email based on a different naming pattern. + # Output only. This field will contain the service account email address that + # this Attestor will use as the principal when querying Container Analysis. + # Attestor administrators must grant this service account the IAM role needed to + # read attestations from the note_reference in Container Analysis (` + # containeranalysis.notes.occurrences.viewer`). This email address is fixed for + # the lifetime of the Attestor, but callers should not make any other + # assumptions about the service account email; future versions may use an email + # based on a different naming pattern. # Corresponds to the JSON property `delegationServiceAccountEmail` # @return [String] attr_accessor :delegation_service_account_email - # Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note, - # created by the user, in the format: `projects/*/notes/*` (or the legacy - # `providers/*/notes/*`). This field may not be updated. - # An attestation by this attestor is stored as a Drydock - # ATTESTATION_AUTHORITY Occurrence that names a container image and that - # links to this Note. Drydock is an external dependency. + # Required. The Drydock resource name of a ATTESTATION_AUTHORITY Note, created + # by the user, in the format: `projects/*/notes/*` (or the legacy `providers/*/ + # notes/*`). This field may not be updated. An attestation by this attestor is + # stored as a Drydock ATTESTATION_AUTHORITY Occurrence that names a container + # image and that links to this Note. Drydock is an external dependency. # Corresponds to the JSON property `noteReference` # @return [String] attr_accessor :note_reference - # Optional. Public keys that verify attestations signed by this - # attestor. This field may be updated. - # If this field is non-empty, one of the specified public keys must - # verify that an attestation was signed by this attestor for the - # image specified in the admission request. - # If this field is empty, this attestor always returns that no - # valid attestations exist. + # Optional. Public keys that verify attestations signed by this attestor. This + # field may be updated. If this field is non-empty, one of the specified public + # keys must verify that an attestation was signed by this attestor for the image + # specified in the admission request. If this field is empty, this attestor + # always returns that no valid attestations exist. # Corresponds to the JSON property `publicKeys` # @return [Array] attr_accessor :public_keys diff --git a/generated/google/apis/binaryauthorization_v1beta1/service.rb b/generated/google/apis/binaryauthorization_v1beta1/service.rb index 27f9bf8c8..b5e7bed7c 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/service.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/service.rb @@ -48,15 +48,14 @@ module Google @batch_path = 'batch' end - # A policy specifies the attestors that must attest to - # a container image, before the project is allowed to deploy that - # image. There is at most one policy per project. All image admission - # requests are permitted if a project has no policy. - # Gets the policy for this project. Returns a default - # policy if the project does not have one. + # A policy specifies the attestors that must attest to a container image, before + # the project is allowed to deploy that image. There is at most one policy per + # project. All image admission requests are permitted if a project has no policy. + # Gets the policy for this project. Returns a default policy if the project + # does not have one. # @param [String] name - # Required. The resource name of the policy to retrieve, - # in the format `projects/*/policy`. + # Required. The resource name of the policy to retrieve, in the format `projects/ + # */policy`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -84,14 +83,13 @@ module Google execute_or_queue_command(command, &block) end - # Creates or updates a project's policy, and returns a copy of the - # new policy. A policy is always updated as a whole, to avoid race - # conditions with concurrent policy enforcement (or management!) - # requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT - # if the request is malformed. + # Creates or updates a project's policy, and returns a copy of the new policy. A + # policy is always updated as a whole, to avoid race conditions with concurrent + # policy enforcement (or management!) requests. Returns NOT_FOUND if the project + # does not exist, INVALID_ARGUMENT if the request is malformed. # @param [String] name - # Output only. The resource name, in the format `projects/*/policy`. There is - # at most one policy per project. + # Output only. The resource name, in the format `projects/*/policy`. There is at + # most one policy per project. # @param [Google::Apis::BinaryauthorizationV1beta1::Policy] policy_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -122,10 +120,9 @@ module Google execute_or_queue_command(command, &block) end - # Creates an attestor, and returns a copy of the new - # attestor. Returns NOT_FOUND if the project does not exist, - # INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the - # attestor already exists. + # Creates an attestor, and returns a copy of the new attestor. Returns NOT_FOUND + # if the project does not exist, INVALID_ARGUMENT if the request is malformed, + # ALREADY_EXISTS if the attestor already exists. # @param [String] parent # Required. The parent of this attestor. # @param [Google::Apis::BinaryauthorizationV1beta1::Attestor] attestor_object @@ -161,11 +158,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes an attestor. Returns NOT_FOUND if the - # attestor does not exist. + # Deletes an attestor. Returns NOT_FOUND if the attestor does not exist. # @param [String] name - # Required. The name of the attestors to delete, in the format - # `projects/*/attestors/*`. + # Required. The name of the attestors to delete, in the format `projects/*/ + # attestors/*`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -193,11 +189,10 @@ module Google execute_or_queue_command(command, &block) end - # Gets an attestor. - # Returns NOT_FOUND if the attestor does not exist. + # Gets an attestor. Returns NOT_FOUND if the attestor does not exist. # @param [String] name - # Required. The name of the attestor to retrieve, in the format - # `projects/*/attestors/*`. + # Required. The name of the attestor to retrieve, in the format `projects/*/ + # attestors/*`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -225,22 +220,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -269,18 +261,17 @@ module Google execute_or_queue_command(command, &block) end - # Lists attestors. - # Returns INVALID_ARGUMENT if the project does not exist. + # Lists attestors. Returns INVALID_ARGUMENT if the project does not exist. # @param [String] parent - # Required. The resource name of the project associated with the - # attestors, in the format `projects/*`. + # Required. The resource name of the project associated with the attestors, in + # the format `projects/*`. # @param [Fixnum] page_size # Requested page size. The server may return fewer results than requested. If # unspecified, the server will pick an appropriate default. # @param [String] page_token # A token identifying a page of results the server should return. Typically, - # this is the value of ListAttestorsResponse.next_page_token returned - # from the previous call to the `ListAttestors` method. + # this is the value of ListAttestorsResponse.next_page_token returned from the + # previous call to the `ListAttestors` method. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -311,11 +302,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -346,15 +337,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::BinaryauthorizationV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -385,11 +375,10 @@ module Google execute_or_queue_command(command, &block) end - # Updates an attestor. - # Returns NOT_FOUND if the attestor does not exist. + # Updates an attestor. Returns NOT_FOUND if the attestor does not exist. # @param [String] name - # Required. The resource name, in the format: - # `projects/*/attestors/*`. This field may not be updated. + # Required. The resource name, in the format: `projects/*/attestors/*`. This + # field may not be updated. # @param [Google::Apis::BinaryauthorizationV1beta1::Attestor] attestor_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -420,22 +409,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -465,11 +451,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::BinaryauthorizationV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -500,15 +486,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::BinaryauthorizationV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index 23e77d14d..74f8b8632 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/iot module CloudiotV1 VERSION = 'V1' - REVISION = '20200519' + REVISION = '20200804' # 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/cloudiot_v1/classes.rb b/generated/google/apis/cloudiot_v1/classes.rb index 261d65265..071298706 100644 --- a/generated/google/apis/cloudiot_v1/classes.rb +++ b/generated/google/apis/cloudiot_v1/classes.rb @@ -26,8 +26,8 @@ module Google class BindDeviceToGatewayRequest include Google::Apis::Core::Hashable - # Required. The device to associate with the specified gateway. The value of - # `device_id` can be either the device numeric ID or the user-defined device + # Required. The device to associate with the specified gateway. The value of ` + # device_id` can be either the device numeric ID or the user-defined device # identifier. # Corresponds to the JSON property `deviceId` # @return [String] @@ -67,69 +67,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::CloudiotV1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -151,8 +139,8 @@ module Google include Google::Apis::Core::Hashable # If a device is blocked, connections or requests from this device will fail. - # Can be used to temporarily prevent the device from connecting if, for - # example, the sensor is generating bad data and needs maintenance. + # Can be used to temporarily prevent the device from connecting if, for example, + # the sensor is generating bad data and needs maintenance. # Corresponds to the JSON property `blocked` # @return [Boolean] attr_accessor :blocked @@ -163,12 +151,12 @@ module Google # @return [Google::Apis::CloudiotV1::DeviceConfig] attr_accessor :config - # The credentials used to authenticate this device. To allow credential - # rotation without interruption, multiple device credentials can be bound to - # this device. No more than 3 credentials can be bound to a single device at - # a time. When new credentials are added to a device, they are verified - # against the registry credentials. For details, see the description of the - # `DeviceRegistry.credentials` field. + # The credentials used to authenticate this device. To allow credential rotation + # without interruption, multiple device credentials can be bound to this device. + # No more than 3 credentials can be bound to a single device at a time. When new + # credentials are added to a device, they are verified against the registry + # credentials. For details, see the description of the `DeviceRegistry. + # credentials` field. # Corresponds to the JSON property `credentials` # @return [Array] attr_accessor :credentials @@ -178,38 +166,37 @@ module Google # @return [Google::Apis::CloudiotV1::GatewayConfig] attr_accessor :gateway_config - # The user-defined device identifier. The device ID must be unique - # within a device registry. + # The user-defined device identifier. The device ID must be unique within a + # device registry. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id # [Output only] The last time a cloud-to-device config version acknowledgment - # was received from the device. This field is only for configurations - # sent through MQTT. + # was received from the device. This field is only for configurations sent + # through MQTT. # Corresponds to the JSON property `lastConfigAckTime` # @return [String] attr_accessor :last_config_ack_time - # [Output only] The last time a cloud-to-device config version was sent to - # the device. + # [Output only] The last time a cloud-to-device config version was sent to the + # device. # Corresponds to the JSON property `lastConfigSendTime` # @return [String] attr_accessor :last_config_send_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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `lastErrorStatus` # @return [Google::Apis::CloudiotV1::Status] attr_accessor :last_error_status # [Output only] The time the most recent error occurred, such as a failure to - # publish to Cloud Pub/Sub. This field is the timestamp of - # 'last_error_status'. + # publish to Cloud Pub/Sub. This field is the timestamp of 'last_error_status'. # Corresponds to the JSON property `lastErrorTime` # @return [String] attr_accessor :last_error_time @@ -221,11 +208,11 @@ module Google # @return [String] attr_accessor :last_event_time - # [Output only] The last time an MQTT `PINGREQ` was received. This field - # applies only to devices connecting through MQTT. MQTT clients usually only - # send `PINGREQ` messages if the connection is idle, and no other messages - # have been sent. Timestamps are periodically collected and written to - # storage; they may be stale by a few minutes. + # [Output only] The last time an MQTT `PINGREQ` was received. This field applies + # only to devices connecting through MQTT. MQTT clients usually only send ` + # PINGREQ` messages if the connection is idle, and no other messages have been + # sent. Timestamps are periodically collected and written to storage; they may + # be stale by a few minutes. # Corresponds to the JSON property `lastHeartbeatTime` # @return [String] attr_accessor :last_heartbeat_time @@ -237,8 +224,7 @@ module Google # @return [String] attr_accessor :last_state_time - # **Beta Feature** - # The logging verbosity for device activity. If unspecified, + # **Beta Feature** The logging verbosity for device activity. If unspecified, # DeviceRegistry.log_level will be used. # Corresponds to the JSON property `logLevel` # @return [String] @@ -246,22 +232,19 @@ module Google # The metadata key-value pairs assigned to the device. This metadata is not # interpreted or indexed by Cloud IoT Core. It can be used to add contextual - # information for the device. - # Keys must conform to the regular expression a-zA-Z+ and - # be less than 128 bytes in length. - # Values are free-form strings. Each value must be less than or equal to 32 - # KB in size. - # The total size of all keys and values must be less than 256 KB, and the - # maximum number of key-value pairs is 500. + # information for the device. Keys must conform to the regular expression a-zA-Z+ + # and be less than 128 bytes in length. Values are free-form strings. Each + # value must be less than or equal to 32 KB in size. The total size of all keys + # and values must be less than 256 KB, and the maximum number of key-value pairs + # is 500. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata - # The resource path name. For example, - # `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or - # `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``. - # When `name` is populated as a response from the service, it always ends - # in the device numeric ID. + # The resource path name. For example, `projects/p1/locations/us-central1/ + # registries/registry0/devices/dev0` or `projects/p1/locations/us-central1/ + # registries/registry0/devices/`num_id``. When `name` is populated as a response + # from the service, it always ends in the device numeric ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -319,23 +302,22 @@ module Google # @return [String] attr_accessor :cloud_update_time - # [Output only] The time at which Cloud IoT Core received the - # acknowledgment from the device, indicating that the device has received - # this configuration version. If this field is not present, the device has - # not yet acknowledged that it received this version. Note that when - # the config was sent to the device, many config versions may have been - # available in Cloud IoT Core while the device was disconnected, and on - # connection, only the latest version is sent to the device. Some - # versions may never be sent to the device, and therefore are never - # acknowledged. This timestamp is set by Cloud IoT Core. + # [Output only] The time at which Cloud IoT Core received the acknowledgment + # from the device, indicating that the device has received this configuration + # version. If this field is not present, the device has not yet acknowledged + # that it received this version. Note that when the config was sent to the + # device, many config versions may have been available in Cloud IoT Core while + # the device was disconnected, and on connection, only the latest version is + # sent to the device. Some versions may never be sent to the device, and + # therefore are never acknowledged. This timestamp is set by Cloud IoT Core. # Corresponds to the JSON property `deviceAckTime` # @return [String] attr_accessor :device_ack_time # [Output only] The version of this update. The version number is assigned by - # the server, and is always greater than 0 after device creation. The - # version must be 0 on the `CreateDevice` request if a `config` is - # specified; the response of `CreateDevice` will always have a value of 1. + # the server, and is always greater than 0 after device creation. The version + # must be 0 on the `CreateDevice` request if a `config` is specified; the + # response of `CreateDevice` will always have a value of 1. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -357,9 +339,9 @@ module Google class DeviceCredential include Google::Apis::Core::Hashable - # [Optional] The time at which this credential becomes invalid. This - # credential will be ignored for new client authentication requests after - # this timestamp; however, it will not be automatically deleted. + # [Optional] The time at which this credential becomes invalid. This credential + # will be ignored for new client authentication requests after this timestamp; + # however, it will not be automatically deleted. # Corresponds to the JSON property `expirationTime` # @return [String] attr_accessor :expiration_time @@ -388,25 +370,23 @@ module Google # credentials can be bound to a single registry at a time. The verification # process occurs at the time of device creation or update. If this field is # empty, no verification is performed. Otherwise, the credentials of a newly - # created device or added credentials of an updated device should be signed - # with one of these registry credentials. - # Note, however, that existing devices will never be affected by - # modifications to this list of credentials: after a device has been - # successfully created in a registry, it should be able to connect even if - # its registry credentials are revoked, deleted, or modified. + # created device or added credentials of an updated device should be signed with + # one of these registry credentials. Note, however, that existing devices will + # never be affected by modifications to this list of credentials: after a device + # has been successfully created in a registry, it should be able to connect even + # if its registry credentials are revoked, deleted, or modified. # Corresponds to the JSON property `credentials` # @return [Array] attr_accessor :credentials # The configuration for notification of telemetry events received from the - # device. All telemetry events that were successfully published by the - # device and acknowledged by Cloud IoT Core are guaranteed to be - # delivered to Cloud Pub/Sub. If multiple configurations match a message, - # only the first matching configuration is used. If you try to publish a - # device telemetry event using MQTT without specifying a Cloud Pub/Sub topic - # for the device's registry, the connection closes automatically. If you try - # to do so using an HTTP connection, an error is returned. Up to 10 - # configurations may be provided. + # device. All telemetry events that were successfully published by the device + # and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/ + # Sub. If multiple configurations match a message, only the first matching + # configuration is used. If you try to publish a device telemetry event using + # MQTT without specifying a Cloud Pub/Sub topic for the device's registry, the + # connection closes automatically. If you try to do so using an HTTP connection, + # an error is returned. Up to 10 configurations may be provided. # Corresponds to the JSON property `eventNotificationConfigs` # @return [Array] attr_accessor :event_notification_configs @@ -421,9 +401,8 @@ module Google # @return [String] attr_accessor :id - # **Beta Feature** - # The default logging verbosity for activity from devices in this registry. - # The verbosity level can be overridden by Device.log_level. + # **Beta Feature** The default logging verbosity for activity from devices in + # this registry. The verbosity level can be overridden by Device.log_level. # Corresponds to the JSON property `logLevel` # @return [String] attr_accessor :log_level @@ -433,8 +412,8 @@ module Google # @return [Google::Apis::CloudiotV1::MqttConfig] attr_accessor :mqtt_config - # The resource path name. For example, - # `projects/example-project/locations/us-central1/registries/my-registry`. + # The resource path name. For example, `projects/example-project/locations/us- + # central1/registries/my-registry`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -471,8 +450,8 @@ module Google # @return [String] attr_accessor :binary_data - # [Output only] The time at which this state version was updated in Cloud - # IoT Core. + # [Output only] The time at which this state version was updated in Cloud IoT + # Core. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -488,13 +467,11 @@ module Google 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 ````. + # 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 @@ -511,16 +488,16 @@ module Google class EventNotificationConfig include Google::Apis::Core::Hashable - # A Cloud Pub/Sub topic name. For example, - # `projects/myProject/topics/deviceEvents`. + # A Cloud Pub/Sub topic name. For example, `projects/myProject/topics/ + # deviceEvents`. # Corresponds to the JSON property `pubsubTopicName` # @return [String] attr_accessor :pubsub_topic_name - # If the subfolder name matches this string exactly, this configuration will - # be used. The string must not include the leading '/' character. If empty, - # all strings are matched. This field is used only for telemetry events; - # subfolders are not supported for state changes. + # If the subfolder name matches this string exactly, this configuration will be + # used. The string must not include the leading '/' character. If empty, all + # strings are matched. This field is used only for telemetry events; subfolders + # are not supported for state changes. # Corresponds to the JSON property `subfolderMatches` # @return [String] attr_accessor :subfolder_matches @@ -536,52 +513,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -603,8 +571,7 @@ module Google class GatewayConfig include Google::Apis::Core::Hashable - # Indicates how to authorize and/or authenticate devices to access the - # gateway. + # Indicates how to authorize and/or authenticate devices to access the gateway. # Corresponds to the JSON property `gatewayAuthMethod` # @return [String] attr_accessor :gateway_auth_method @@ -661,15 +628,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -708,8 +673,8 @@ module Google class ListDeviceConfigVersionsResponse include Google::Apis::Core::Hashable - # The device configuration for the last few versions. Versions are listed - # in decreasing order, starting from the most recent one. + # The device configuration for the last few versions. Versions are listed in + # decreasing order, starting from the most recent one. # Corresponds to the JSON property `deviceConfigs` # @return [Array] attr_accessor :device_configs @@ -734,8 +699,7 @@ module Google attr_accessor :device_registries # If not empty, indicates that there may be more registries that match the - # request; this value should be passed in a new - # `ListDeviceRegistriesRequest`. + # request; this value should be passed in a new `ListDeviceRegistriesRequest`. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -780,8 +744,8 @@ module Google # @return [Array] attr_accessor :devices - # If not empty, indicates that there may be more devices that match the - # request; this value should be passed in a new `ListDevicesRequest`. + # If not empty, indicates that there may be more devices that match the request; + # this value should be passed in a new `ListDevicesRequest`. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -848,111 +812,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1054,11 +980,11 @@ module Google # @return [String] attr_accessor :binary_data - # Optional subfolder for the command. If empty, the command will be delivered - # to the /devices/`device-id`/commands topic, otherwise it will be delivered - # to the /devices/`device-id`/commands/`subfolder` topic. Multi-level - # subfolders are allowed. This field must not have more than 256 characters, - # and must not contain any MQTT wildcards ("+" or "#") or null characters. + # Optional subfolder for the command. If empty, the command will be delivered to + # the /devices/`device-id`/commands topic, otherwise it will be delivered to the + # /devices/`device-id`/commands/`subfolder` topic. Multi-level subfolders are + # allowed. This field must not have more than 256 characters, and must not + # contain any MQTT wildcards ("+" or "#") or null characters. # Corresponds to the JSON property `subfolder` # @return [String] attr_accessor :subfolder @@ -1092,66 +1018,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::CloudiotV1::Policy] attr_accessor :policy @@ -1170,8 +1062,8 @@ module Google class StateNotificationConfig include Google::Apis::Core::Hashable - # A Cloud Pub/Sub topic name. For example, - # `projects/myProject/topics/deviceEvents`. + # A Cloud Pub/Sub topic name. For example, `projects/myProject/topics/ + # deviceEvents`. # Corresponds to the JSON property `pubsubTopicName` # @return [String] attr_accessor :pubsub_topic_name @@ -1186,12 +1078,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -1200,15 +1092,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1229,10 +1121,9 @@ module Google 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). + # 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 @@ -1251,8 +1142,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1271,8 +1161,8 @@ module Google class UnbindDeviceFromGatewayRequest include Google::Apis::Core::Hashable - # Required. The device to disassociate from the specified gateway. The value of - # `device_id` can be either the device numeric ID or the user-defined device + # Required. The device to disassociate from the specified gateway. The value of ` + # device_id` can be either the device numeric ID or the user-defined device # identifier. # Corresponds to the JSON property `deviceId` # @return [String] diff --git a/generated/google/apis/cloudiot_v1/service.rb b/generated/google/apis/cloudiot_v1/service.rb index 59118352f..b60bc61de 100644 --- a/generated/google/apis/cloudiot_v1/service.rb +++ b/generated/google/apis/cloudiot_v1/service.rb @@ -50,8 +50,8 @@ module Google # Associates the device with the gateway. # @param [String] parent - # Required. The name of the registry. For example, - # `projects/example-project/locations/us-central1/registries/my-registry`. + # Required. The name of the registry. For example, `projects/example-project/ + # locations/us-central1/registries/my-registry`. # @param [Google::Apis::CloudiotV1::BindDeviceToGatewayRequest] bind_device_to_gateway_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -85,8 +85,7 @@ module Google # Creates a device registry that contains devices. # @param [String] parent # Required. The project and cloud region where this device registry must be - # created. - # For example, `projects/example-project/locations/us-central1`. + # created. For example, `projects/example-project/locations/us-central1`. # @param [Google::Apis::CloudiotV1::DeviceRegistry] device_registry_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -119,8 +118,8 @@ module Google # Deletes a device registry configuration. # @param [String] name - # Required. The name of the device registry. For example, - # `projects/example-project/locations/us-central1/registries/my-registry`. + # Required. The name of the device registry. For example, `projects/example- + # project/locations/us-central1/registries/my-registry`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -150,8 +149,8 @@ module Google # Gets a device registry configuration. # @param [String] name - # Required. The name of the device registry. For example, - # `projects/example-project/locations/us-central1/registries/my-registry`. + # Required. The name of the device registry. For example, `projects/example- + # project/locations/us-central1/registries/my-registry`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -179,12 +178,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudiotV1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -217,17 +215,17 @@ module Google # Lists device registries. # @param [String] parent - # Required. The project and cloud region path. For example, - # `projects/example-project/locations/us-central1`. + # Required. The project and cloud region path. For example, `projects/example- + # project/locations/us-central1`. # @param [Fixnum] page_size - # The maximum number of registries to return in the response. If this value - # is zero, the service will select a default size. A call may return fewer - # objects than requested. A non-empty `next_page_token` in the response - # indicates that more data is available. + # The maximum number of registries to return in the response. If this value is + # zero, the service will select a default size. A call may return fewer objects + # than requested. A non-empty `next_page_token` in the response indicates that + # more data is available. # @param [String] page_token - # The value returned by the last `ListDeviceRegistriesResponse`; indicates - # that this is a continuation of a prior `ListDeviceRegistries` call and - # the system should return the next page of data. + # The value returned by the last `ListDeviceRegistriesResponse`; indicates that + # this is a continuation of a prior `ListDeviceRegistries` call and the system + # should return the next page of data. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -259,15 +257,15 @@ module Google # Updates a device registry configuration. # @param [String] name - # The resource path name. For example, - # `projects/example-project/locations/us-central1/registries/my-registry`. + # The resource path name. For example, `projects/example-project/locations/us- + # central1/registries/my-registry`. # @param [Google::Apis::CloudiotV1::DeviceRegistry] device_registry_object # @param [String] update_mask # Required. Only updates the `device_registry` fields indicated by this mask. - # The field mask must not be empty, and it must not contain fields that - # are immutable or only set by the server. - # Mutable top-level fields: `event_notification_config`, `http_config`, - # `mqtt_config`, and `state_notification_config`. + # The field mask must not be empty, and it must not contain fields that are + # immutable or only set by the server. Mutable top-level fields: ` + # event_notification_config`, `http_config`, `mqtt_config`, and ` + # state_notification_config`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -301,8 +299,8 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -333,12 +331,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a NOT_FOUND error. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a + # NOT_FOUND error. # @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. + # 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::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -371,8 +369,8 @@ module Google # Deletes the association between the device and the gateway. # @param [String] parent - # Required. The name of the registry. For example, - # `projects/example-project/locations/us-central1/registries/my-registry`. + # Required. The name of the registry. For example, `projects/example-project/ + # locations/us-central1/registries/my-registry`. # @param [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest] unbind_device_from_gateway_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -406,8 +404,8 @@ module Google # Creates a device in a device registry. # @param [String] parent # Required. The name of the device registry where this device should be created. - # For example, - # `projects/example-project/locations/us-central1/registries/my-registry`. + # For example, `projects/example-project/locations/us-central1/registries/my- + # registry`. # @param [Google::Apis::CloudiotV1::Device] device_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -440,9 +438,9 @@ module Google # Deletes a device. # @param [String] name - # Required. The name of the device. For example, - # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or - # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # Required. The name of the device. For example, `projects/p0/locations/us- + # central1/registries/registry0/devices/device0` or `projects/p0/locations/us- + # central1/registries/registry0/devices/`num_id``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -472,9 +470,9 @@ module Google # Gets details about a device. # @param [String] name - # Required. The name of the device. For example, - # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or - # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # Required. The name of the device. For example, `projects/p0/locations/us- + # central1/registries/registry0/devices/device0` or `projects/p0/locations/us- + # central1/registries/registry0/devices/`num_id``. # @param [String] field_mask # The fields of the `Device` resource to be returned in the response. If the # field mask is unset or empty, all fields are returned. @@ -508,41 +506,40 @@ module Google # List devices in a device registry. # @param [String] parent - # Required. The device registry path. Required. For example, - # `projects/my-project/locations/us-central1/registries/my-registry`. + # Required. The device registry path. Required. For example, `projects/my- + # project/locations/us-central1/registries/my-registry`. # @param [Array, String] device_ids - # A list of device string IDs. For example, `['device0', 'device12']`. - # If empty, this field is ignored. Maximum IDs: 10,000 + # A list of device string IDs. For example, `['device0', 'device12']`. If empty, + # this field is ignored. Maximum IDs: 10,000 # @param [Array, Fixnum] device_num_ids - # A list of device numeric IDs. If empty, this field is ignored. Maximum - # IDs: 10,000. + # A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10, + # 000. # @param [String] field_mask - # The fields of the `Device` resource to be returned in the response. The - # fields `id` and `num_id` are always returned, along with any - # other fields specified. + # The fields of the `Device` resource to be returned in the response. The fields + # `id` and `num_id` are always returned, along with any other fields specified. # @param [String] gateway_list_options_associations_device_id # If set, returns only the gateways with which the specified device is - # associated. The device ID can be numeric (`num_id`) or the user-defined - # string (`id`). For example, if `456` is specified, returns only the - # gateways to which the device with `num_id` 456 is bound. + # associated. The device ID can be numeric (`num_id`) or the user-defined string + # (`id`). For example, if `456` is specified, returns only the gateways to which + # the device with `num_id` 456 is bound. # @param [String] gateway_list_options_associations_gateway_id - # If set, only devices associated with the specified gateway are returned. - # The gateway ID can be numeric (`num_id`) or the user-defined string - # (`id`). For example, if `123` is specified, only devices bound to the - # gateway with `num_id` 123 are returned. + # If set, only devices associated with the specified gateway are returned. The + # gateway ID can be numeric (`num_id`) or the user-defined string (`id`). For + # example, if `123` is specified, only devices bound to the gateway with `num_id` + # 123 are returned. # @param [String] gateway_list_options_gateway_type - # If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` - # is specified, only non-gateway devices are returned. If - # `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned. + # If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` is + # specified, only non-gateway devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` + # is specified, all devices are returned. # @param [Fixnum] page_size - # The maximum number of devices to return in the response. If this value - # is zero, the service will select a default size. A call may return fewer - # objects than requested. A non-empty `next_page_token` in the response - # indicates that more data is available. + # The maximum number of devices to return in the response. If this value is zero, + # the service will select a default size. A call may return fewer objects than + # requested. A non-empty `next_page_token` in the response indicates that more + # data is available. # @param [String] page_token - # The value returned by the last `ListDevicesResponse`; indicates - # that this is a continuation of a prior `ListDevices` call and - # the system should return the next page of data. + # The value returned by the last `ListDevicesResponse`; indicates that this is a + # continuation of a prior `ListDevices` call and the system should return the + # next page of data. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -578,13 +575,13 @@ module Google execute_or_queue_command(command, &block) end - # Modifies the configuration for the device, which is eventually sent from - # the Cloud IoT Core servers. Returns the modified configuration version and - # its metadata. + # Modifies the configuration for the device, which is eventually sent from the + # Cloud IoT Core servers. Returns the modified configuration version and its + # metadata. # @param [String] name - # Required. The name of the device. For example, - # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or - # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # Required. The name of the device. For example, `projects/p0/locations/us- + # central1/registries/registry0/devices/device0` or `projects/p0/locations/us- + # central1/registries/registry0/devices/`num_id``. # @param [Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -617,17 +614,16 @@ module Google # Updates a device. # @param [String] name - # The resource path name. For example, - # `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or - # `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``. - # When `name` is populated as a response from the service, it always ends - # in the device numeric ID. + # The resource path name. For example, `projects/p1/locations/us-central1/ + # registries/registry0/devices/dev0` or `projects/p1/locations/us-central1/ + # registries/registry0/devices/`num_id``. When `name` is populated as a response + # from the service, it always ends in the device numeric ID. # @param [Google::Apis::CloudiotV1::Device] device_object # @param [String] update_mask - # Required. Only updates the `device` fields indicated by this mask. - # The field mask must not be empty, and it must not contain fields that - # are immutable or only set by the server. - # Mutable top-level fields: `credentials`, `blocked`, and `metadata` + # Required. Only updates the `device` fields indicated by this mask. The field + # mask must not be empty, and it must not contain fields that are immutable or + # only set by the server. Mutable top-level fields: `credentials`, `blocked`, + # and `metadata` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -658,23 +654,22 @@ module Google execute_or_queue_command(command, &block) end - # Sends a command to the specified device. In order for a device to be able - # to receive commands, it must: - # 1) be connected to Cloud IoT Core using the MQTT protocol, and - # 2) be subscribed to the group of MQTT topics specified by - # /devices/`device-id`/commands/#. This subscription will receive commands - # at the top-level topic /devices/`device-id`/commands as well as commands - # for subfolders, like /devices/`device-id`/commands/subfolder. - # Note that subscribing to specific subfolders is not supported. - # If the command could not be delivered to the device, this method will - # return an error; in particular, if the device is not subscribed, this - # method will return FAILED_PRECONDITION. Otherwise, this method will - # return OK. If the subscription is QoS 1, at least once delivery will be - # guaranteed; for QoS 0, no acknowledgment will be expected from the device. + # Sends a command to the specified device. In order for a device to be able to + # receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT + # protocol, and 2) be subscribed to the group of MQTT topics specified by / + # devices/`device-id`/commands/#. This subscription will receive commands at the + # top-level topic /devices/`device-id`/commands as well as commands for + # subfolders, like /devices/`device-id`/commands/subfolder. Note that + # subscribing to specific subfolders is not supported. If the command could not + # be delivered to the device, this method will return an error; in particular, + # if the device is not subscribed, this method will return FAILED_PRECONDITION. + # Otherwise, this method will return OK. If the subscription is QoS 1, at least + # once delivery will be guaranteed; for QoS 0, no acknowledgment will be + # expected from the device. # @param [String] name - # Required. The name of the device. For example, - # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or - # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # Required. The name of the device. For example, `projects/p0/locations/us- + # central1/registries/registry0/devices/device0` or `projects/p0/locations/us- + # central1/registries/registry0/devices/`num_id``. # @param [Google::Apis::CloudiotV1::SendCommandToDeviceRequest] send_command_to_device_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -705,16 +700,16 @@ module Google execute_or_queue_command(command, &block) end - # Lists the last few versions of the device configuration in descending - # order (i.e.: newest first). + # Lists the last few versions of the device configuration in descending order (i. + # e.: newest first). # @param [String] name - # Required. The name of the device. For example, - # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or - # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # Required. The name of the device. For example, `projects/p0/locations/us- + # central1/registries/registry0/devices/device0` or `projects/p0/locations/us- + # central1/registries/registry0/devices/`num_id``. # @param [Fixnum] num_versions - # The number of versions to list. Versions are listed in decreasing order of - # the version number. The maximum number of versions retained is 10. If this - # value is zero, it will return all the versions available. + # The number of versions to list. Versions are listed in decreasing order of the + # version number. The maximum number of versions retained is 10. If this value + # is zero, it will return all the versions available. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -746,13 +741,13 @@ module Google # Lists the last few versions of the device state in descending order (i.e.: # newest first). # @param [String] name - # Required. The name of the device. For example, - # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or - # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``. + # Required. The name of the device. For example, `projects/p0/locations/us- + # central1/registries/registry0/devices/device0` or `projects/p0/locations/us- + # central1/registries/registry0/devices/`num_id``. # @param [Fixnum] num_states - # The number of states to list. States are listed in descending order of - # update time. The maximum number of states retained is 10. If this - # value is zero, it will return all the states available. + # The number of states to list. States are listed in descending order of update + # time. The maximum number of states retained is 10. If this value is zero, it + # will return all the states available. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -781,12 +776,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudiotV1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -820,8 +814,8 @@ module Google # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -852,12 +846,12 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a NOT_FOUND error. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a + # NOT_FOUND error. # @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. + # 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::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -890,41 +884,40 @@ module Google # List devices in a device registry. # @param [String] parent - # Required. The device registry path. Required. For example, - # `projects/my-project/locations/us-central1/registries/my-registry`. + # Required. The device registry path. Required. For example, `projects/my- + # project/locations/us-central1/registries/my-registry`. # @param [Array, String] device_ids - # A list of device string IDs. For example, `['device0', 'device12']`. - # If empty, this field is ignored. Maximum IDs: 10,000 + # A list of device string IDs. For example, `['device0', 'device12']`. If empty, + # this field is ignored. Maximum IDs: 10,000 # @param [Array, Fixnum] device_num_ids - # A list of device numeric IDs. If empty, this field is ignored. Maximum - # IDs: 10,000. + # A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10, + # 000. # @param [String] field_mask - # The fields of the `Device` resource to be returned in the response. The - # fields `id` and `num_id` are always returned, along with any - # other fields specified. + # The fields of the `Device` resource to be returned in the response. The fields + # `id` and `num_id` are always returned, along with any other fields specified. # @param [String] gateway_list_options_associations_device_id # If set, returns only the gateways with which the specified device is - # associated. The device ID can be numeric (`num_id`) or the user-defined - # string (`id`). For example, if `456` is specified, returns only the - # gateways to which the device with `num_id` 456 is bound. + # associated. The device ID can be numeric (`num_id`) or the user-defined string + # (`id`). For example, if `456` is specified, returns only the gateways to which + # the device with `num_id` 456 is bound. # @param [String] gateway_list_options_associations_gateway_id - # If set, only devices associated with the specified gateway are returned. - # The gateway ID can be numeric (`num_id`) or the user-defined string - # (`id`). For example, if `123` is specified, only devices bound to the - # gateway with `num_id` 123 are returned. + # If set, only devices associated with the specified gateway are returned. The + # gateway ID can be numeric (`num_id`) or the user-defined string (`id`). For + # example, if `123` is specified, only devices bound to the gateway with `num_id` + # 123 are returned. # @param [String] gateway_list_options_gateway_type - # If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` - # is specified, only non-gateway devices are returned. If - # `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned. + # If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` is + # specified, only non-gateway devices are returned. If `GATEWAY_TYPE_UNSPECIFIED` + # is specified, all devices are returned. # @param [Fixnum] page_size - # The maximum number of devices to return in the response. If this value - # is zero, the service will select a default size. A call may return fewer - # objects than requested. A non-empty `next_page_token` in the response - # indicates that more data is available. + # The maximum number of devices to return in the response. If this value is zero, + # the service will select a default size. A call may return fewer objects than + # requested. A non-empty `next_page_token` in the response indicates that more + # data is available. # @param [String] page_token - # The value returned by the last `ListDevicesResponse`; indicates - # that this is a continuation of a prior `ListDevices` call and - # the system should return the next page of data. + # The value returned by the last `ListDevicesResponse`; indicates that this is a + # continuation of a prior `ListDevices` call and the system should return the + # next page of data. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudtasks_v2beta2.rb b/generated/google/apis/cloudtasks_v2beta2.rb index db61d9559..961945a4a 100644 --- a/generated/google/apis/cloudtasks_v2beta2.rb +++ b/generated/google/apis/cloudtasks_v2beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta2 VERSION = 'V2beta2' - REVISION = '20200505' + REVISION = '20200804' # 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_v2beta2/classes.rb b/generated/google/apis/cloudtasks_v2beta2/classes.rb index 29409954c..f93066306 100644 --- a/generated/google/apis/cloudtasks_v2beta2/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta2/classes.rb @@ -22,16 +22,13 @@ module Google module Apis module CloudtasksV2beta2 - # Request message for acknowledging a task using - # AcknowledgeTask. + # Request message for acknowledging a task using AcknowledgeTask. class AcknowledgeTaskRequest include Google::Apis::Core::Hashable - # Required. The task's current schedule time, available in the - # schedule_time returned by - # LeaseTasks response or - # RenewLease response. This restriction is - # to ensure that your worker currently holds the lease. + # Required. The task's current schedule time, available in the schedule_time + # returned by LeaseTasks response or RenewLease response. This restriction is to + # ensure that your worker currently holds the lease. # Corresponds to the JSON property `scheduleTime` # @return [String] attr_accessor :schedule_time @@ -46,150 +43,106 @@ module Google end end - # 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_target 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 + # 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_target 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_url - # 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: + # 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_url 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`]. The task attempt has failed if - # the app's handler returns a non-2xx response code or Cloud Tasks does - # not receive response before the deadline. Failed - # tasks will be retried according to the - # retry configuration. `503` (Service Unavailable) is - # considered an App Engine system error instead of an application error and - # will cause Cloud Tasks' traffic congestion control to temporarily throttle - # the queue's dispatches. Unlike other types of task targets, a `429` (Too Many - # Requests) response from an app handler does not cause traffic congestion - # control to throttle the queue. + # 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`]. The task attempt has failed if the app's handler + # returns a non-2xx response code or Cloud Tasks does not receive response + # before the deadline. Failed tasks will be retried according to the retry + # configuration. `503` (Service Unavailable) is considered an App Engine system + # error instead of an application error and will cause Cloud Tasks' traffic + # congestion control to temporarily throttle the queue's dispatches. Unlike + # other types of task targets, a `429` (Too Many Requests) response from an app + # handler does not cause traffic congestion control to throttle the queue. 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). + # 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::CloudtasksV2beta2::AppEngineRouting] attr_accessor :app_engine_routing - # 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 payload, 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. + # 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 payload, 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 fails 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 App Engine documentation for your runtime on [How Requests are - # Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests- - # are-handled). + # 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 fails 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 App Engine documentation for your + # runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/ + # standard/python3/how-requests-are-handled). # Corresponds to the JSON property `httpMethod` # @return [String] attr_accessor :http_method - # Payload. - # The payload will be sent as the HTTP message body. A message - # body, and thus a payload, is allowed only if the HTTP method is - # POST or PUT. It is an error to set a data payload on a task with - # an incompatible HttpMethod. + # Payload. The payload will be sent as the HTTP message body. A message body, + # and thus a payload, is allowed only if the HTTP method is POST or PUT. It is + # an error to set a data payload on a task with an incompatible HttpMethod. # Corresponds to the JSON property `payload` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :payload - # The relative URL. - # The relative URL must begin with "/" and must be a valid HTTP relative URL. - # It can contain a path and query string arguments. - # If the relative URL is empty, then the root path "/" will be used. - # No spaces are allowed, and the maximum length allowed is 2083 characters. + # The relative URL. The relative URL must begin with "/" and must be a valid + # HTTP relative URL. It can contain a path and query string arguments. If the + # relative URL 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 `relativeUrl` # @return [String] attr_accessor :relative_url @@ -208,36 +161,25 @@ module Google end end - # App Engine HTTP target. - # The task will be delivered to the App Engine application hostname - # specified by its AppEngineHttpTarget and AppEngineHttpRequest. - # The documentation for AppEngineHttpRequest explains how the - # task's host URL is constructed. - # Using AppEngineHttpTarget requires - # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- - # api/access-control) - # Google IAM permission for the project - # and the following scope: + # App Engine HTTP target. The task will be delivered to the App Engine + # application hostname specified by its AppEngineHttpTarget and + # AppEngineHttpRequest. The documentation for AppEngineHttpRequest explains how + # the task's host URL is constructed. Using AppEngineHttpTarget 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` class AppEngineHttpTarget 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). + # 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::CloudtasksV2beta2::AppEngineRouting] attr_accessor :app_engine_routing_override @@ -252,125 +194,76 @@ module Google 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). + # 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. - # For more information, see - # [How Requests are - # Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests- - # are-routed). - # The host is constructed as: - # * `host = [application_domain_name]`
                                          - # `| [service] + '.' + [application_domain_name]`
                                          - # `| [version] + '.' + [application_domain_name]`
                                          - # `| [version_dot_service]+ '.' + [application_domain_name]`
                                          - # `| [instance] + '.' + [application_domain_name]`
                                          - # `| [instance_dot_service] + '.' + [application_domain_name]`
                                          - # `| [instance_dot_version] + '.' + [application_domain_name]`
                                          - # `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` - # * `application_domain_name` = The domain name of the app, for - # example .appspot.com, which is associated with the - # queue's project ID. Some tasks which were created using the App Engine - # SDK use a custom domain name. - # * `service =` service - # * `version =` version - # * `version_dot_service =` - # version `+ '.' +` - # service - # * `instance =` instance - # * `instance_dot_service =` - # instance `+ '.' +` - # service - # * `instance_dot_version =` - # instance `+ '.' +` - # version - # * `instance_dot_version_dot_service =` - # instance `+ '.' +` - # version `+ '.' +` - # service - # If service is empty, then the task will be sent - # to the service which is the default service when the task is attempted. - # If version is empty, then the task will be sent - # to the version which is the default version when the task is attempted. - # If instance is empty, then the task - # will be sent to an instance which is available when the task is - # attempted. - # If service, - # version, or - # instance is invalid, then the task - # will be sent to the default version of the default service when - # the task is attempted. + # Output only. The host that the task is sent to. For more information, see [How + # Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/ + # how-requests-are-routed). The host is constructed as: * `host = [ + # application_domain_name]` `| [service] + '.' + [application_domain_name]` `| [ + # version] + '.' + [application_domain_name]` `| [version_dot_service]+ '.' + [ + # application_domain_name]` `| [instance] + '.' + [application_domain_name]` `| [ + # instance_dot_service] + '.' + [application_domain_name]` `| [ + # instance_dot_version] + '.' + [application_domain_name]` `| [ + # instance_dot_version_dot_service] + '.' + [application_domain_name]` * ` + # application_domain_name` = The domain name of the app, for example .appspot. + # com, which is associated with the queue's project ID. Some tasks which were + # created using the App Engine SDK use a custom domain name. * `service =` + # service * `version =` version * `version_dot_service =` version `+ '.' +` + # service * `instance =` instance * `instance_dot_service =` instance `+ '.' +` + # service * `instance_dot_version =` instance `+ '.' +` version * ` + # instance_dot_version_dot_service =` instance `+ '.' +` version `+ '.' +` + # service If service is empty, then the task will be sent to the service which + # is the default service when the task is attempted. If version is empty, then + # the task will be sent to the version which is the default version when the + # task is attempted. If instance is empty, then the task will be sent to an + # instance which is available when the task is attempted. If service, version, + # or instance is invalid, then the task will be sent to the default version of + # the default service when the task is attempted. # 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). + # 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. + # 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. + # 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 @@ -392,30 +285,30 @@ module Google class AttemptStatus include Google::Apis::Core::Hashable - # Output only. The time that this attempt was dispatched. - # `dispatch_time` will be truncated to the nearest microsecond. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `responseStatus` # @return [Google::Apis::CloudtasksV2beta2::Status] attr_accessor :response_status - # Output only. The time that this attempt response was received. - # `response_time` will be truncated to the nearest microsecond. + # 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. + # 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 @@ -437,69 +330,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::CloudtasksV2beta2::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -516,30 +397,23 @@ module Google end end - # Request message for canceling a lease using - # CancelLease. + # Request message for canceling a lease using CancelLease. class CancelLeaseRequest 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. + # 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 - # Required. The task's current schedule time, available in the - # schedule_time returned by - # LeaseTasks response or - # RenewLease response. This restriction is - # to ensure that your worker currently holds the lease. + # Required. The task's current schedule time, available in the schedule_time + # returned by LeaseTasks response or RenewLease response. This restriction is to + # ensure that your worker currently holds the lease. # Corresponds to the JSON property `scheduleTime` # @return [String] attr_accessor :schedule_time @@ -559,16 +433,12 @@ module Google 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. + # 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 @@ -589,13 +459,11 @@ module Google 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 ````. + # 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 @@ -608,52 +476,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -694,15 +553,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -721,72 +578,51 @@ module Google class LeaseTasksRequest include Google::Apis::Core::Hashable - # `filter` can be used to specify a subset of tasks to lease. - # When `filter` is set to `tag=` then the - # response will contain only tasks whose - # tag is equal to ``. `` must be - # less than 500 characters. - # When `filter` is set to `tag_function=oldest_tag()`, only tasks which have - # the same tag as the task with the oldest - # schedule_time will be returned. - # Grammar Syntax: - # * `filter = "tag=" tag | "tag_function=" function` - # * `tag = string` - # * `function = "oldest_tag()"` - # The `oldest_tag()` function returns tasks which have the same tag as the - # oldest task (ordered by schedule time). - # SDK compatibility: Although the SDK allows tags to be either - # string or - # [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/ - # google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), - # only UTF-8 encoded tags can be used in Cloud Tasks. Tag which - # aren't UTF-8 encoded can't be used in the - # filter and the task's - # tag will be displayed as empty in Cloud Tasks. + # `filter` can be used to specify a subset of tasks to lease. When `filter` is + # set to `tag=` then the response will contain only tasks whose tag is equal to ` + # `. `` must be less than 500 characters. When `filter` is set to `tag_function= + # oldest_tag()`, only tasks which have the same tag as the task with the oldest + # schedule_time will be returned. Grammar Syntax: * `filter = "tag=" tag | " + # tag_function=" function` * `tag = string` * `function = "oldest_tag()"` The ` + # oldest_tag()` function returns tasks which have the same tag as the oldest + # task (ordered by schedule time). SDK compatibility: Although the SDK allows + # tags to be either string or [bytes](https://cloud.google.com/appengine/docs/ + # standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag- + # byte:A-), only UTF-8 encoded tags can be used in Cloud Tasks. Tag which aren't + # UTF-8 encoded can't be used in the filter and the task's tag will be displayed + # as empty in Cloud Tasks. # Corresponds to the JSON property `filter` # @return [String] attr_accessor :filter - # Required. The duration of the lease. - # Each task returned in the response will - # have its schedule_time set to the current - # time plus the `lease_duration`. The task is leased until its - # schedule_time; thus, the task will not be - # returned to another LeaseTasks call - # before its schedule_time. - # After the worker has successfully finished the work associated - # with the task, the worker must call via - # AcknowledgeTask before the - # schedule_time. Otherwise the task will be - # returned to a later LeaseTasks call so - # that another worker can retry it. - # The maximum lease duration is 1 week. - # `lease_duration` will be truncated to the nearest second. + # Required. The duration of the lease. Each task returned in the response will + # have its schedule_time set to the current time plus the `lease_duration`. The + # task is leased until its schedule_time; thus, the task will not be returned to + # another LeaseTasks call before its schedule_time. After the worker has + # successfully finished the work associated with the task, the worker must call + # via AcknowledgeTask before the schedule_time. Otherwise the task will be + # returned to a later LeaseTasks call so that another worker can retry it. The + # maximum lease duration is 1 week. `lease_duration` will be truncated to the + # nearest second. # Corresponds to the JSON property `leaseDuration` # @return [String] attr_accessor :lease_duration - # The maximum number of tasks to lease. - # The system will make a best effort to return as close to as - # `max_tasks` as possible. - # The largest that `max_tasks` can be is 1000. - # The maximum total size of a lease tasks response is - # 32 MB. If the sum of all task sizes requested reaches this limit, - # fewer tasks than requested are returned. + # The maximum number of tasks to lease. The system will make a best effort to + # return as close to as `max_tasks` as possible. The largest that `max_tasks` + # can be is 1000. The maximum total size of a lease tasks response is 32 MB. If + # the sum of all task sizes requested reaches this limit, fewer tasks than + # requested are returned. # Corresponds to the JSON property `maxTasks` # @return [Fixnum] attr_accessor :max_tasks - # 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. + # 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 @@ -852,12 +688,9 @@ module Google 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. + # 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 @@ -882,11 +715,9 @@ module Google 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. + # 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 @@ -911,14 +742,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -934,8 +765,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -968,111 +799,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1089,9 +882,8 @@ module Google end end - # The pull message contains data that can be used by the caller of - # LeaseTasks to process the task. - # This proto can only be used for tasks in a queue which has + # The pull message contains data that can be used by the caller of LeaseTasks to + # process the task. This proto can only be used for tasks in a queue which has # pull_target set. class PullMessage include Google::Apis::Core::Hashable @@ -1102,22 +894,16 @@ module Google # @return [String] attr_accessor :payload - # The task's tag. - # Tags allow similar tasks to be processed in a batch. If you label - # tasks with a tag, your worker can - # lease tasks with the same tag using - # filter. For example, if you want to - # aggregate the events associated with a specific user once a day, - # you could tag tasks with the user ID. - # The task's tag can only be set when the - # task is created. - # The tag must be less than 500 characters. - # SDK compatibility: Although the SDK allows tags to be either - # string or - # [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/ - # google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), - # only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8 - # encoded, the tag will be empty when the task is returned by Cloud Tasks. + # The task's tag. Tags allow similar tasks to be processed in a batch. If you + # label tasks with a tag, your worker can lease tasks with the same tag using + # filter. For example, if you want to aggregate the events associated with a + # specific user once a day, you could tag tasks with the user ID. The task's tag + # can only be set when the task is created. The tag must be less than 500 + # characters. SDK compatibility: Although the SDK allows tags to be either + # string or [bytes](https://cloud.google.com/appengine/docs/standard/java/ + # javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), only + # UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8 encoded, + # the tag will be empty when the task is returned by Cloud Tasks. # Corresponds to the JSON property `tag` # @return [String] attr_accessor :tag @@ -1159,44 +945,34 @@ module Google 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, target types, and others. + # 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, target types, and others. class Queue include Google::Apis::Core::Hashable - # App Engine HTTP target. - # The task will be delivered to the App Engine application hostname - # specified by its AppEngineHttpTarget and AppEngineHttpRequest. - # The documentation for AppEngineHttpRequest explains how the - # task's host URL is constructed. - # Using AppEngineHttpTarget requires - # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- - # api/access-control) - # Google IAM permission for the project - # and the following scope: + # App Engine HTTP target. The task will be delivered to the App Engine + # application hostname specified by its AppEngineHttpTarget and + # AppEngineHttpRequest. The documentation for AppEngineHttpRequest explains how + # the task's host URL is constructed. Using AppEngineHttpTarget 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` # Corresponds to the JSON property `appEngineHttpTarget` # @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget] attr_accessor :app_engine_http_target - # 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. + # 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 @@ -1206,41 +982,33 @@ module Google # @return [Google::Apis::CloudtasksV2beta2::PullTarget] attr_accessor :pull_target - # 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. + # 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. + # 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::CloudtasksV2beta2::RateLimits] attr_accessor :rate_limits - # Retry config. - # These settings determine how a failed task attempt is retried. + # Retry config. These settings determine how a failed task attempt is retried. # Corresponds to the JSON property `retryConfig` # @return [Google::Apis::CloudtasksV2beta2::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`. + # 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 @@ -1261,77 +1029,56 @@ module Google 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. + # 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_tasks_dispatched_per_second. - # Cloud Tasks will pick the value of `max_burst_size` based on the - # value of - # max_tasks_dispatched_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_tasks_dispatched_per_second, - # regardless of whether - # max_tasks_dispatched_per_second - # is updated. + # 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_tasks_dispatched_per_second. Cloud Tasks will pick the value of ` + # max_burst_size` based on the value of max_tasks_dispatched_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_tasks_dispatched_per_second, regardless of whether + # max_tasks_dispatched_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 is output only for - # pull queues and always -1, which indicates no limit. No other - # queue types can have `max_concurrent_tasks` set to -1. - # 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). + # 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 is output only for pull queues and + # always -1, which indicates no limit. No other queue types can have ` + # max_concurrent_tasks` set to -1. 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 `maxConcurrentTasks` # @return [Fixnum] attr_accessor :max_concurrent_tasks - # 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 is output only for pull queues. In addition to the - # `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of - # LeaseTasks requests are allowed per pull queue. - # This field has the same meaning as - # [rate in - # queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/ - # queueref#rate). + # 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 is output only for pull + # queues. In addition to the `max_tasks_dispatched_per_second` limit, a maximum + # of 10 QPS of LeaseTasks requests are allowed per pull queue. 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 `maxTasksDispatchedPerSecond` # @return [Float] attr_accessor :max_tasks_dispatched_per_second @@ -1348,37 +1095,29 @@ module Google end end - # Request message for renewing a lease using - # RenewLease. + # Request message for renewing a lease using RenewLease. class RenewLeaseRequest include Google::Apis::Core::Hashable - # Required. The desired new lease duration, starting from now. - # The maximum lease duration is 1 week. - # `lease_duration` will be truncated to the nearest second. + # Required. The desired new lease duration, starting from now. The maximum lease + # duration is 1 week. `lease_duration` will be truncated to the nearest second. # Corresponds to the JSON property `leaseDuration` # @return [String] attr_accessor :lease_duration - # 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. + # 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 - # Required. The task's current schedule time, available in the - # schedule_time returned by - # LeaseTasks response or - # RenewLease response. This restriction is - # to ensure that your worker currently holds the lease. + # Required. The task's current schedule time, available in the schedule_time + # returned by LeaseTasks response or RenewLease response. This restriction is to + # ensure that your worker currently holds the lease. # Corresponds to the JSON property `scheduleTime` # @return [String] attr_accessor :schedule_time @@ -1408,95 +1147,66 @@ module Google end end - # Retry config. - # These settings determine how a failed task attempt is retried. + # Retry config. These settings determine how a failed task attempt is retried. class RetryConfig include Google::Apis::Core::Hashable - # The maximum number of attempts for a 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 > 0. + # The maximum number of attempts for a 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 > 0. # 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. - # This field is output only for pull queues. - # `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). + # 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. This field is output only for pull queues. `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 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 is output only for pull queues. - # 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). + # 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 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 is output only for pull + # queues. 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. - # This field is output only for pull queues. - # `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). + # 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. This field is output only + # for pull queues. `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. - # This field is output only for pull queues. - # `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). + # 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. This field is output only for pull queues. `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 @@ -1522,21 +1232,16 @@ module Google end end - # Request message for forcing a task to run now using - # RunTask. + # 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. + # 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 @@ -1556,66 +1261,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::CloudtasksV2beta2::Policy] attr_accessor :policy @@ -1630,12 +1301,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -1644,15 +1315,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1673,108 +1344,79 @@ module Google 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_target 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 + # 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_target 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_url - # 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: + # 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_url 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`]. The task attempt has failed if - # the app's handler returns a non-2xx response code or Cloud Tasks does - # not receive response before the deadline. Failed - # tasks will be retried according to the - # retry configuration. `503` (Service Unavailable) is - # considered an App Engine system error instead of an application error and - # will cause Cloud Tasks' traffic congestion control to temporarily throttle - # the queue's dispatches. Unlike other types of task targets, a `429` (Too Many - # Requests) response from an app handler does not cause traffic congestion - # control to throttle the queue. + # 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`]. The task attempt has failed if the app's handler + # returns a non-2xx response code or Cloud Tasks does not receive response + # before the deadline. Failed tasks will be retried according to the retry + # configuration. `503` (Service Unavailable) is considered an App Engine system + # error instead of an application error and will cause Cloud Tasks' traffic + # congestion control to temporarily throttle the queue's dispatches. Unlike + # other types of task targets, a `429` (Too Many Requests) response from an app + # handler does not cause traffic congestion control to throttle the queue. # Corresponds to the JSON property `appEngineHttpRequest` # @return [Google::Apis::CloudtasksV2beta2::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. + # 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 - # 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. + # 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 - # The pull message contains data that can be used by the caller of - # LeaseTasks to process the task. - # This proto can only be used for tasks in a queue which has + # The pull message contains data that can be used by the caller of LeaseTasks to + # process the task. This proto can only be used for tasks in a queue which has # pull_target set. # Corresponds to the JSON property `pullMessage` # @return [Google::Apis::CloudtasksV2beta2::PullMessage] attr_accessor :pull_message - # The time when the task is scheduled to be attempted. - # For App Engine queues, this is when the task will be attempted or retried. - # For pull queues, this is the time when the task is available to - # be leased; if a task is currently leased, this is the time when - # the current lease expires, that is, the time that the task was - # leased plus the lease_duration. - # `schedule_time` will be truncated to the nearest microsecond. + # The time when the task is scheduled to be attempted. For App Engine queues, + # this is when the task will be attempted or retried. For pull queues, this is + # the time when the task is available to be leased; if a task is currently + # leased, this is the time when the current lease expires, that is, the time + # that the task was leased plus the lease_duration. `schedule_time` will be + # truncated to the nearest microsecond. # Corresponds to the JSON property `scheduleTime` # @return [String] attr_accessor :schedule_time @@ -1784,8 +1426,7 @@ module Google # @return [Google::Apis::CloudtasksV2beta2::TaskStatus] attr_accessor :status - # Output only. The view specifies which subset of the Task has - # been returned. + # Output only. The view specifies which subset of the Task has been returned. # Corresponds to the JSON property `view` # @return [String] attr_accessor :view @@ -1810,15 +1451,14 @@ module Google class TaskStatus include Google::Apis::Core::Hashable - # Output only. The number of attempts dispatched. - # This count includes attempts which have been dispatched but haven't - # received a response. + # 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 `attemptDispatchCount` # @return [Fixnum] attr_accessor :attempt_dispatch_count - # Output only. The number of attempts which have received a response. - # This field is not calculated for pull tasks. + # Output only. The number of attempts which have received a response. This field + # is not calculated for pull tasks. # Corresponds to the JSON property `attemptResponseCount` # @return [Fixnum] attr_accessor :attempt_response_count @@ -1850,10 +1490,9 @@ module Google 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). + # 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 @@ -1872,8 +1511,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions diff --git a/generated/google/apis/cloudtasks_v2beta2/service.rb b/generated/google/apis/cloudtasks_v2beta2/service.rb index 4d31a4b37..eb6a1740d 100644 --- a/generated/google/apis/cloudtasks_v2beta2/service.rb +++ b/generated/google/apis/cloudtasks_v2beta2/service.rb @@ -116,23 +116,17 @@ module Google 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. + # 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. + # 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::CloudtasksV2beta2::Queue] queue_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -163,19 +157,15 @@ module Google 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 + # 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. + # 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` + # 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 @@ -205,12 +195,11 @@ module Google # Gets a queue. # @param [String] name - # Required. The resource name of the queue. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # Required. The resource name of the queue. For example: `projects/PROJECT_ID/ + # locations/LOCATION_ID/queues/QUEUE_ID` # @param [String] read_mask # Optional. Read mask is used for a more granular control over what the API - # returns. By - # it includes all fields in Queue except for stats. + # returns. By it includes all fields in Queue except for stats. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -239,16 +228,13 @@ module Google 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` + # 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. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudtasksV2beta2::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -279,36 +265,28 @@ module Google execute_or_queue_command(command, &block) end - # Lists queues. - # Queues are returned in lexicographical order. + # Lists queues. Queues are returned in lexicographical order. # @param [String] parent - # Required. The location name. - # For example: `projects/PROJECT_ID/locations/LOCATION_ID` + # 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 "app_engine_http_target: *". - # Note that using filters might cause fewer queues than the - # requested_page size to be returned. + # `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 "app_engine_http_target: *". 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. + # 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. + # 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 @@ -339,41 +317,30 @@ module Google 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. + # 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. + # 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::CloudtasksV2beta2::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. + # 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 @@ -404,15 +371,12 @@ module Google 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. + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/location/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Google::Apis::CloudtasksV2beta2::PauseQueueRequest] pause_queue_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -443,13 +407,13 @@ module Google 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. + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/location/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Google::Apis::CloudtasksV2beta2::PurgeQueueRequest] purge_queue_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -480,20 +444,15 @@ module Google 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 + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/location/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Google::Apis::CloudtasksV2beta2::ResumeQueueRequest] resume_queue_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -524,17 +483,14 @@ module Google 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` + # 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. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudtasksV2beta2::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -565,15 +521,14 @@ module Google 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. + # 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. + # 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::CloudtasksV2beta2::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -604,20 +559,15 @@ module Google execute_or_queue_command(command, &block) end - # Acknowledges a pull task. - # The worker, that is, the entity that - # leased this task must call this method - # to indicate that the work associated with the task has finished. - # The worker must acknowledge a task within the - # lease_duration or the lease - # will expire and the task will become available to be leased - # again. After the task is acknowledged, it will not be returned - # by a later LeaseTasks, - # GetTask, or - # ListTasks. + # Acknowledges a pull task. The worker, that is, the entity that leased this + # task must call this method to indicate that the work associated with the task + # has finished. The worker must acknowledge a task within the lease_duration or + # the lease will expire and the task will become available to be leased again. + # After the task is acknowledged, it will not be returned by a later LeaseTasks, + # GetTask, or ListTasks. # @param [String] name - # Required. The task name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # Required. The task name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` # @param [Google::Apis::CloudtasksV2beta2::AcknowledgeTaskRequest] acknowledge_task_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -648,14 +598,12 @@ module Google execute_or_queue_command(command, &block) end - # Cancel a pull task's lease. - # The worker can use this method to cancel a task's lease by - # setting its schedule_time to now. This will - # make the task available to be leased to the next caller of - # LeaseTasks. + # Cancel a pull task's lease. The worker can use this method to cancel a task's + # lease by setting its schedule_time to now. This will make the task available + # to be leased to the next caller of LeaseTasks. # @param [String] name - # Required. The task name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # Required. The task name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` # @param [Google::Apis::CloudtasksV2beta2::CancelLeaseRequest] cancel_lease_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -686,15 +634,12 @@ module Google 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. - # * For pull queues, the maximum task size is 1MB. + # 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. * For pull queues, the maximum task size is 1MB. # @param [String] parent - # Required. The queue name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - # The queue must already exist. + # Required. The queue name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID` The queue must already exist. # @param [Google::Apis::CloudtasksV2beta2::CreateTaskRequest] create_task_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -725,13 +670,11 @@ module Google 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 completed successfully or permanently - # failed. + # Deletes a task. A task can be deleted if it is scheduled or dispatched. A task + # cannot be deleted if it has completed 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` + # 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 @@ -761,19 +704,15 @@ module Google # Gets a task. # @param [String] name - # Required. The task name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # 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. + # 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 @@ -802,28 +741,18 @@ module Google execute_or_queue_command(command, &block) end - # Leases tasks from a pull queue for - # lease_duration. - # This method is invoked by the worker to obtain a lease. The - # worker must acknowledge the task via - # AcknowledgeTask after they have - # performed the work associated with the task. - # The payload is intended to store data that - # the worker needs to perform the work associated with the task. To - # return the payloads in the response, set - # response_view to - # FULL. - # A maximum of 10 qps of LeaseTasks - # requests are allowed per - # queue. RESOURCE_EXHAUSTED - # is returned when this limit is - # exceeded. RESOURCE_EXHAUSTED - # is also returned when - # max_tasks_dispatched_per_second - # is exceeded. + # Leases tasks from a pull queue for lease_duration. This method is invoked by + # the worker to obtain a lease. The worker must acknowledge the task via + # AcknowledgeTask after they have performed the work associated with the task. + # The payload is intended to store data that the worker needs to perform the + # work associated with the task. To return the payloads in the response, set + # response_view to FULL. A maximum of 10 qps of LeaseTasks requests are allowed + # per queue. RESOURCE_EXHAUSTED is returned when this limit is exceeded. + # RESOURCE_EXHAUSTED is also returned when max_tasks_dispatched_per_second is + # exceeded. # @param [String] parent - # Required. The queue name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # Required. The queue name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Google::Apis::CloudtasksV2beta2::LeaseTasksRequest] lease_tasks_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -854,42 +783,30 @@ module Google 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. + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Fixnum] page_size - # Maximum page size. - # 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. - # The maximum page size is 1000. If unspecified, the page size will be the - # maximum. + # Maximum page size. 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. The maximum page size is 1000. If unspecified, the page size will be + # the maximum. # @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. + # 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. + # 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 @@ -920,13 +837,12 @@ module Google execute_or_queue_command(command, &block) end - # Renew the current lease of a pull task. - # The worker can use this method to extend the lease by a new - # duration, starting from now. The new task lease will be - # returned in the task's schedule_time. + # Renew the current lease of a pull task. The worker can use this method to + # extend the lease by a new duration, starting from now. The new task lease will + # be returned in the task's schedule_time. # @param [String] name - # Required. The task name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # Required. The task name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` # @param [Google::Apis::CloudtasksV2beta2::RenewLeaseRequest] renew_lease_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -957,30 +873,22 @@ module Google 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. - # RunTask cannot be called on a - # pull task. + # 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. RunTask cannot be called on a pull + # task. # @param [String] name - # Required. The task name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # Required. The task name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` # @param [Google::Apis::CloudtasksV2beta2::RunTaskRequest] run_task_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/cloudtasks_v2beta3.rb b/generated/google/apis/cloudtasks_v2beta3.rb index acca58481..b1a8f4faf 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 = '20200529' + REVISION = '20200804' # 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 229ada5cd..d42347d1a 100644 --- a/generated/google/apis/cloudtasks_v2beta3/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta3/classes.rb @@ -22,36 +22,25 @@ module Google module Apis module CloudtasksV2beta3 - # App Engine HTTP queue. - # The task will be delivered to the App Engine application hostname - # specified by its AppEngineHttpQueue and AppEngineHttpRequest. - # The documentation for AppEngineHttpRequest explains how the - # task's host URL is constructed. - # Using AppEngineHttpQueue requires - # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- - # api/access-control) - # Google IAM permission for the project - # and the following scope: + # App Engine HTTP queue. The task will be delivered to the App Engine + # application hostname specified by its AppEngineHttpQueue and + # AppEngineHttpRequest. The documentation for AppEngineHttpRequest explains how + # the task's host URL is constructed. Using AppEngineHttpQueue 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` class AppEngineHttpQueue 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). + # 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::CloudtasksV2beta3::AppEngineRouting] attr_accessor :app_engine_routing_override @@ -66,146 +55,103 @@ module Google end end - # App Engine HTTP request. - # The message defines the HTTP request that is sent to an App Engine app when - # the task is dispatched. - # 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 + # App Engine HTTP request. The message defines the HTTP request that is sent to + # an App Engine app when the task is dispatched. 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`]. The task attempt has failed if - # the app's handler returns a non-2xx response code or Cloud Tasks does - # not receive response before the deadline. Failed - # tasks will be retried according to the - # retry configuration. `503` (Service Unavailable) is - # considered an App Engine system error instead of an application error and - # will cause Cloud Tasks' traffic congestion control to temporarily throttle - # the queue's dispatches. Unlike other types of task targets, a `429` (Too Many + # 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`]. The task + # attempt has failed if the app's handler returns a non-2xx response code or + # Cloud Tasks does not receive response before the deadline. Failed tasks will + # be retried according to the retry configuration. `503` (Service Unavailable) + # is considered an App Engine system error instead of an application error and + # will cause Cloud Tasks' traffic congestion control to temporarily throttle the + # queue's dispatches. Unlike other types of task targets, a `429` (Too Many # Requests) response from an app handler does not cause traffic congestion # control to throttle the queue. 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). + # 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::CloudtasksV2beta3::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. + # 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/tasks/docs/creating-appengine-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. + # 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/tasks/docs/creating- + # appengine-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 fails 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 App Engine documentation for your runtime on [How Requests are - # Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests- - # are-handled). + # 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 fails 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 App Engine documentation for your + # runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/ + # standard/python3/how-requests-are-handled). # 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. + # 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 @@ -224,89 +170,59 @@ module Google 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). + # 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). + # 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). + # 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. + # 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. + # 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 @@ -328,30 +244,30 @@ module Google 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. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `responseStatus` # @return [Google::Apis::CloudtasksV2beta3::Status] attr_accessor :response_status - # Output only. The time that this attempt response was received. - # `response_time` will be truncated to the nearest microsecond. + # 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. + # 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 @@ -373,69 +289,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::CloudtasksV2beta3::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -456,16 +360,12 @@ module Google 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. + # 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 @@ -486,13 +386,11 @@ module Google 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 ````. + # 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 @@ -505,52 +403,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -591,15 +480,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -614,61 +501,48 @@ module Google end end - # HTTP request. - # The task will be pushed to the worker as an HTTP request. If the worker - # or the redirected worker acknowledges the task by returning a successful HTTP - # response code ([`200` - `299`]), the task will be removed from the queue. If - # any other HTTP response code is returned or no response is received, the - # task will be retried according to the following: - # * User-specified throttling: retry configuration, - # rate limits, and the queue's state. + # HTTP request. The task will be pushed to the worker as an HTTP request. If the + # worker or the redirected worker acknowledges the task by returning a + # successful HTTP response code ([`200` - `299`]), the task will be removed from + # the queue. If any other HTTP response code is returned or no response is + # received, the task will be retried according to the following: * User- + # specified throttling: retry configuration, rate limits, and the queue's state. # * System throttling: To prevent the worker from overloading, Cloud Tasks may - # temporarily reduce the queue's effective rate. User-specified settings - # will not be changed. - # System throttling happens because: - # * Cloud Tasks backs off on all errors. Normally the backoff specified in - # rate limits will be used. But if the worker returns - # `429` (Too Many Requests), `503` (Service Unavailable), or the rate of - # errors is high, Cloud Tasks will use a higher backoff rate. The retry - # specified in the `Retry-After` HTTP response header is considered. - # * To prevent traffic spikes and to smooth sudden increases in traffic, - # dispatches ramp up slowly when the queue is newly created or idle and - # if large numbers of tasks suddenly become available to dispatch (due to - # spikes in create task rates, the queue being unpaused, or many tasks - # that are scheduled at the same time). + # temporarily reduce the queue's effective rate. User-specified settings will + # not be changed. System throttling happens because: * Cloud Tasks backs off on + # all errors. Normally the backoff specified in rate limits will be used. But if + # the worker returns `429` (Too Many Requests), `503` (Service Unavailable), or + # the rate of errors is high, Cloud Tasks will use a higher backoff rate. The + # retry specified in the `Retry-After` HTTP response header is considered. * To + # prevent traffic spikes and to smooth sudden increases in traffic, dispatches + # ramp up slowly when the queue is newly created or idle and if large numbers of + # tasks suddenly become available to dispatch (due to spikes in create task + # rates, the queue being unpaused, or many tasks that are scheduled at the same + # time). class HttpRequest include Google::Apis::Core::Hashable - # HTTP request body. - # A request body is allowed only if the - # HTTP method is POST, PUT, or PATCH. It is an - # error to set body on a task with an incompatible HttpMethod. + # HTTP request body. A request body is allowed only if the HTTP method is POST, + # PUT, or PATCH. It is an error to set 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. - # These headers represent a subset of the headers that will accompany the - # task's HTTP request. Some HTTP request headers will be ignored or replaced. - # A partial list of headers that will be ignored or replaced is: - # * Host: This will be computed by Cloud Tasks and derived from - # HttpRequest.url. - # * Content-Length: This will be computed by Cloud Tasks. - # * User-Agent: This will be set to `"Google-Cloud-Tasks"`. - # * X-Google-*: Google use only. - # * X-AppEngine-*: Google use only. - # `Content-Type` won't be set by Cloud Tasks. You can explicitly set - # `Content-Type` to a media type when the - # task is created. - # For example, `Content-Type` can be set to `"application/octet-stream"` or - # `"application/json"`. - # Headers which can have multiple values (according to RFC2616) can be - # specified using comma-separated values. - # The size of the headers must be less than 80KB. + # HTTP request headers. This map contains the header field names and values. + # Headers can be set when the task is created. These headers represent a subset + # of the headers that will accompany the task's HTTP request. Some HTTP request + # headers will be ignored or replaced. A partial list of headers that will be + # ignored or replaced is: * Host: This will be computed by Cloud Tasks and + # derived from HttpRequest.url. * Content-Length: This will be computed by Cloud + # Tasks. * User-Agent: This will be set to `"Google-Cloud-Tasks"`. * X-Google-*: + # Google use only. * X-AppEngine-*: Google use only. `Content-Type` won't be set + # by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the + # task is created. For example, `Content-Type` can be set to `"application/octet- + # stream"` or `"application/json"`. Headers which can have multiple values ( + # according to RFC2616) can be specified using comma-separated values. The size + # of the headers must be less than 80KB. # Corresponds to the JSON property `headers` # @return [Hash] attr_accessor :headers @@ -678,31 +552,28 @@ module Google # @return [String] attr_accessor :http_method - # Contains information needed for generating an - # [OAuth token](https://developers.google.com/identity/protocols/OAuth2). - # This type of authorization should generally only be used when calling Google - # APIs hosted on *.googleapis.com. + # Contains information needed for generating an [OAuth token](https://developers. + # google.com/identity/protocols/OAuth2). This type of authorization should + # generally only be used when calling Google APIs hosted on *.googleapis.com. # Corresponds to the JSON property `oauthToken` # @return [Google::Apis::CloudtasksV2beta3::OAuthToken] attr_accessor :oauth_token - # Contains information needed for generating an - # [OpenID Connect - # token](https://developers.google.com/identity/protocols/OpenIDConnect). - # This type of authorization can be used for many scenarios, including - # calling Cloud Run, or endpoints where you intend to validate the token - # yourself. + # Contains information needed for generating an [OpenID Connect token](https:// + # developers.google.com/identity/protocols/OpenIDConnect). This type of + # authorization can be used for many scenarios, including calling Cloud Run, or + # endpoints where you intend to validate the token yourself. # Corresponds to the JSON property `oidcToken` # @return [Google::Apis::CloudtasksV2beta3::OidcToken] attr_accessor :oidc_token - # Required. The full url path that the request will be sent to. - # This string must begin with either "http://" or "https://". Some examples - # are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will - # encode some characters for safety and compatibility. The maximum allowed - # URL length is 2083 characters after encoding. - # The `Location` header response from a redirect response [`300` - `399`] - # may be followed. The redirect is not counted as a separate attempt. + # Required. The full url path that the request will be sent to. This string must + # begin with either "http://" or "https://". Some examples are: `http://acme.com` + # and `https://acme.com/sales:8080`. Cloud Tasks will encode some characters + # for safety and compatibility. The maximum allowed URL length is 2083 + # characters after encoding. The `Location` header response from a redirect + # response [`300` - `399`] may be followed. The redirect is not counted as a + # separate attempt. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -751,12 +622,9 @@ module Google 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. + # 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 @@ -781,11 +649,9 @@ module Google 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. + # 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 @@ -810,14 +676,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -833,8 +699,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -853,25 +719,22 @@ module Google end end - # Contains information needed for generating an - # [OAuth token](https://developers.google.com/identity/protocols/OAuth2). - # This type of authorization should generally only be used when calling Google - # APIs hosted on *.googleapis.com. + # Contains information needed for generating an [OAuth token](https://developers. + # google.com/identity/protocols/OAuth2). This type of authorization should + # generally only be used when calling Google APIs hosted on *.googleapis.com. class OAuthToken include Google::Apis::Core::Hashable - # OAuth scope to be used for generating OAuth access token. - # If not specified, "https://www.googleapis.com/auth/cloud-platform" - # will be used. + # OAuth scope to be used for generating OAuth access token. If not specified, " + # https://www.googleapis.com/auth/cloud-platform" will be used. # Corresponds to the JSON property `scope` # @return [String] attr_accessor :scope - # [Service account email](https://cloud.google.com/iam/docs/service-accounts) - # to be used for generating OAuth token. - # The service account must be within the same project as the queue. The - # caller must have iam.serviceAccounts.actAs permission for the service - # account. + # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to + # be used for generating OAuth token. The service account must be within the + # same project as the queue. The caller must have iam.serviceAccounts.actAs + # permission for the service account. # Corresponds to the JSON property `serviceAccountEmail` # @return [String] attr_accessor :service_account_email @@ -887,12 +750,10 @@ module Google end end - # Contains information needed for generating an - # [OpenID Connect - # token](https://developers.google.com/identity/protocols/OpenIDConnect). - # This type of authorization can be used for many scenarios, including - # calling Cloud Run, or endpoints where you intend to validate the token - # yourself. + # Contains information needed for generating an [OpenID Connect token](https:// + # developers.google.com/identity/protocols/OpenIDConnect). This type of + # authorization can be used for many scenarios, including calling Cloud Run, or + # endpoints where you intend to validate the token yourself. class OidcToken include Google::Apis::Core::Hashable @@ -902,11 +763,10 @@ module Google # @return [String] attr_accessor :audience - # [Service account email](https://cloud.google.com/iam/docs/service-accounts) - # to be used for generating OIDC token. - # The service account must be within the same project as the queue. The - # caller must have iam.serviceAccounts.actAs permission for the service - # account. + # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to + # be used for generating OIDC token. The service account must be within the same + # project as the queue. The caller must have iam.serviceAccounts.actAs + # permission for the service account. # Corresponds to the JSON property `serviceAccountEmail` # @return [String] attr_accessor :service_account_email @@ -936,111 +796,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1070,97 +892,78 @@ module Google 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. + # 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 HTTP queue. - # The task will be delivered to the App Engine application hostname - # specified by its AppEngineHttpQueue and AppEngineHttpRequest. - # The documentation for AppEngineHttpRequest explains how the - # task's host URL is constructed. - # Using AppEngineHttpQueue requires - # [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin- - # api/access-control) - # Google IAM permission for the project - # and the following scope: + # App Engine HTTP queue. The task will be delivered to the App Engine + # application hostname specified by its AppEngineHttpQueue and + # AppEngineHttpRequest. The documentation for AppEngineHttpRequest explains how + # the task's host URL is constructed. Using AppEngineHttpQueue 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` # Corresponds to the JSON property `appEngineHttpQueue` # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue] attr_accessor :app_engine_http_queue - # 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. + # 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. + # 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. + # 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::CloudtasksV2beta3::RateLimits] attr_accessor :rate_limits - # Retry config. - # These settings determine when a failed task attempt is retried. + # Retry config. These settings determine when a failed task attempt is retried. # Corresponds to the JSON property `retryConfig` # @return [Google::Apis::CloudtasksV2beta3::RetryConfig] attr_accessor :retry_config - # Configuration options for writing logs to - # [Stackdriver Logging](https://cloud.google.com/logging/docs/). + # Configuration options for writing logs to [Stackdriver Logging](https://cloud. + # google.com/logging/docs/). # Corresponds to the JSON property `stackdriverLoggingConfig` # @return [Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig] attr_accessor :stackdriver_logging_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`. + # 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 - # Immutable. The type of a queue (push or pull). - # `Queue.type` is an immutable property of the queue that is set at the queue - # creation time. When left unspecified, the default value of `PUSH` is - # selected. + # Immutable. The type of a queue (push or pull). `Queue.type` is an immutable + # property of the queue that is set at the queue creation time. When left + # unspecified, the default value of `PUSH` is selected. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1182,71 +985,51 @@ module Google 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. + # 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. + # 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). + # 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). + # 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 @@ -1276,98 +1059,67 @@ module Google end end - # Retry config. - # These settings determine when a failed task attempt is retried. + # 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). + # 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). + # 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 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). + # 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 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). + # 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). + # 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 @@ -1386,21 +1138,16 @@ module Google end end - # Request message for forcing a task to run now using - # RunTask. + # 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. + # 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 @@ -1420,66 +1167,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::CloudtasksV2beta3::Policy] attr_accessor :policy @@ -1494,15 +1207,14 @@ module Google end end - # Configuration options for writing logs to - # [Stackdriver Logging](https://cloud.google.com/logging/docs/). + # Configuration options for writing logs to [Stackdriver Logging](https://cloud. + # google.com/logging/docs/). class StackdriverLoggingConfig include Google::Apis::Core::Hashable - # Specifies the fraction of operations to write to - # [Stackdriver Logging](https://cloud.google.com/logging/docs/). - # This field may contain any value between 0.0 and 1.0, inclusive. - # 0.0 is the default and means that no operations are logged. + # Specifies the fraction of operations to write to [Stackdriver Logging](https:// + # cloud.google.com/logging/docs/). This field may contain any value between 0.0 + # and 1.0, inclusive. 0.0 is the default and means that no operations are logged. # Corresponds to the JSON property `samplingRatio` # @return [Float] attr_accessor :sampling_ratio @@ -1517,12 +1229,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -1531,15 +1243,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -1560,104 +1272,76 @@ module Google 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. - # 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 + # App Engine HTTP request. The message defines the HTTP request that is sent to + # an App Engine app when the task is dispatched. 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`]. The task attempt has failed if - # the app's handler returns a non-2xx response code or Cloud Tasks does - # not receive response before the deadline. Failed - # tasks will be retried according to the - # retry configuration. `503` (Service Unavailable) is - # considered an App Engine system error instead of an application error and - # will cause Cloud Tasks' traffic congestion control to temporarily throttle - # the queue's dispatches. Unlike other types of task targets, a `429` (Too Many + # 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`]. The task + # attempt has failed if the app's handler returns a non-2xx response code or + # Cloud Tasks does not receive response before the deadline. Failed tasks will + # be retried according to the retry configuration. `503` (Service Unavailable) + # is considered an App Engine system error instead of an application error and + # will cause Cloud Tasks' traffic congestion control to temporarily throttle the + # queue's dispatches. Unlike other types of task targets, a `429` (Too Many # Requests) response from an app handler does not cause traffic congestion # control to throttle the queue. # Corresponds to the JSON property `appEngineHttpRequest` # @return [Google::Apis::CloudtasksV2beta3::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. + # 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. + # 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 listening - # 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 HTTP tasks, the default is 10 minutes. The deadline - # must be in the interval [15 seconds, 30 minutes]. - # * 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. + # 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 + # listening 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 + # HTTP tasks, the default is 10 minutes. The deadline must be in the interval [ + # 15 seconds, 30 minutes]. * 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 @@ -1667,28 +1351,24 @@ module Google # @return [Google::Apis::CloudtasksV2beta3::Attempt] attr_accessor :first_attempt - # HTTP request. - # The task will be pushed to the worker as an HTTP request. If the worker - # or the redirected worker acknowledges the task by returning a successful HTTP - # response code ([`200` - `299`]), the task will be removed from the queue. If - # any other HTTP response code is returned or no response is received, the - # task will be retried according to the following: - # * User-specified throttling: retry configuration, - # rate limits, and the queue's state. + # HTTP request. The task will be pushed to the worker as an HTTP request. If the + # worker or the redirected worker acknowledges the task by returning a + # successful HTTP response code ([`200` - `299`]), the task will be removed from + # the queue. If any other HTTP response code is returned or no response is + # received, the task will be retried according to the following: * User- + # specified throttling: retry configuration, rate limits, and the queue's state. # * System throttling: To prevent the worker from overloading, Cloud Tasks may - # temporarily reduce the queue's effective rate. User-specified settings - # will not be changed. - # System throttling happens because: - # * Cloud Tasks backs off on all errors. Normally the backoff specified in - # rate limits will be used. But if the worker returns - # `429` (Too Many Requests), `503` (Service Unavailable), or the rate of - # errors is high, Cloud Tasks will use a higher backoff rate. The retry - # specified in the `Retry-After` HTTP response header is considered. - # * To prevent traffic spikes and to smooth sudden increases in traffic, - # dispatches ramp up slowly when the queue is newly created or idle and - # if large numbers of tasks suddenly become available to dispatch (due to - # spikes in create task rates, the queue being unpaused, or many tasks - # that are scheduled at the same time). + # temporarily reduce the queue's effective rate. User-specified settings will + # not be changed. System throttling happens because: * Cloud Tasks backs off on + # all errors. Normally the backoff specified in rate limits will be used. But if + # the worker returns `429` (Too Many Requests), `503` (Service Unavailable), or + # the rate of errors is high, Cloud Tasks will use a higher backoff rate. The + # retry specified in the `Retry-After` HTTP response header is considered. * To + # prevent traffic spikes and to smooth sudden increases in traffic, dispatches + # ramp up slowly when the queue is newly created or idle and if large numbers of + # tasks suddenly become available to dispatch (due to spikes in create task + # rates, the queue being unpaused, or many tasks that are scheduled at the same + # time). # Corresponds to the JSON property `httpRequest` # @return [Google::Apis::CloudtasksV2beta3::HttpRequest] attr_accessor :http_request @@ -1698,24 +1378,18 @@ module Google # @return [Google::Apis::CloudtasksV2beta3::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. + # 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 @@ -1725,15 +1399,14 @@ module Google # @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. + # 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. + # Output only. The view specifies which subset of the Task has been returned. # Corresponds to the JSON property `view` # @return [String] attr_accessor :view @@ -1762,10 +1435,9 @@ module Google 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). + # 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 @@ -1784,8 +1456,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions diff --git a/generated/google/apis/cloudtasks_v2beta3/service.rb b/generated/google/apis/cloudtasks_v2beta3/service.rb index 73193aae1..3841b2d75 100644 --- a/generated/google/apis/cloudtasks_v2beta3/service.rb +++ b/generated/google/apis/cloudtasks_v2beta3/service.rb @@ -116,23 +116,17 @@ module Google 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. + # 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. + # 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::CloudtasksV2beta3::Queue] queue_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -163,19 +157,15 @@ module Google 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 + # 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. + # 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` + # 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 @@ -205,8 +195,8 @@ module Google # Gets a queue. # @param [String] name - # Required. The resource name of the queue. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + # 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 @@ -234,16 +224,13 @@ module Google 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` + # 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. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudtasksV2beta3::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -274,36 +261,28 @@ module Google execute_or_queue_command(command, &block) end - # Lists queues. - # Queues are returned in lexicographical order. + # Lists queues. Queues are returned in lexicographical order. # @param [String] parent - # Required. The location name. - # For example: `projects/PROJECT_ID/locations/LOCATION_ID` + # 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. + # `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. + # 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. + # 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 @@ -334,41 +313,30 @@ module Google 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. + # 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. + # 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::CloudtasksV2beta3::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. + # 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 @@ -399,15 +367,12 @@ module Google 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. + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/location/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Google::Apis::CloudtasksV2beta3::PauseQueueRequest] pause_queue_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -438,13 +403,13 @@ module Google 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. + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/location/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Google::Apis::CloudtasksV2beta3::PurgeQueueRequest] purge_queue_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -475,20 +440,15 @@ module Google 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 + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/location/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Google::Apis::CloudtasksV2beta3::ResumeQueueRequest] resume_queue_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -519,17 +479,14 @@ module Google 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` + # 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. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::CloudtasksV2beta3::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -560,15 +517,14 @@ module Google 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. + # 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. + # 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::CloudtasksV2beta3::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -599,13 +555,11 @@ module Google 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. - # * The maximum task size is 100KB. + # Creates a task and adds it to a queue. Tasks cannot be updated after creation; + # there is no UpdateTask command. * 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. + # Required. The queue name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID` The queue must already exist. # @param [Google::Apis::CloudtasksV2beta3::CreateTaskRequest] create_task_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -636,13 +590,11 @@ module Google 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. + # 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` + # 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 @@ -672,19 +624,15 @@ module Google # Gets a task. # @param [String] name - # Required. The task name. For example: - # `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + # 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. + # 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 @@ -713,42 +661,30 @@ module Google 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. + # 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` + # Required. The queue name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID` # @param [Fixnum] page_size - # Maximum page size. - # 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. - # The maximum page size is 1000. If unspecified, the page size will be the - # maximum. + # Maximum page size. 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. The maximum page size is 1000. If unspecified, the page size will be + # the maximum. # @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. + # 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. + # 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 @@ -779,28 +715,21 @@ module Google 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. + # 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` + # Required. The task name. For example: `projects/PROJECT_ID/locations/ + # LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` # @param [Google::Apis::CloudtasksV2beta3::RunTaskRequest] run_task_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index 7209e8951..05dd4c7c5 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 = '20200704' + REVISION = '20200719' # 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 455a4c4a0..31aab18d6 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -1174,18 +1174,6 @@ module Google # @return [String] attr_accessor :location_hint - # DEPRECATED, please use maintenance_freeze_duration_hours. TODO(b/154158138): - # Remove this field. Compute Engine Long Term Release. When specified, VMs that - # have this policy become long term release (internal: stable fleet) VMs. - # For all VM shapes, this should result in fewer disruptions due to software - # updates and greater predictability via 1 week extended notifications. - # For GPU VMs, this should also result in an 2 week uptime guarantee. See go/ - # stable-fleet-gpus-design for more details. - # Corresponds to the JSON property `longTermRelease` - # @return [Boolean] - attr_accessor :long_term_release - alias_method :long_term_release?, :long_term_release - # 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. @@ -1220,7 +1208,6 @@ module Google @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators) @local_ssds = args[:local_ssds] if args.key?(:local_ssds) @location_hint = args[:location_hint] if args.key?(:location_hint) - @long_term_release = args[:long_term_release] if args.key?(:long_term_release) @machine_type = args[:machine_type] if args.key?(:machine_type) @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours) @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval) @@ -2837,6 +2824,11 @@ module Google # @return [String] attr_accessor :creation_timestamp + # Headers that the HTTP/S load balancer should add to proxied responses. + # Corresponds to the JSON property `customResponseHeaders` + # @return [Array] + attr_accessor :custom_response_headers + # An optional textual description of the resource; provided by the client when # the resource is created. # Corresponds to the JSON property `description` @@ -2888,6 +2880,7 @@ module Google @bucket_name = args[:bucket_name] if args.key?(:bucket_name) @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers) @description = args[:description] if args.key?(:description) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @id = args[:id] if args.key?(:id) @@ -2902,6 +2895,66 @@ module Google class BackendBucketCdnPolicy include Google::Apis::Core::Hashable + # + # Corresponds to the JSON property `cacheMode` + # @return [String] + attr_accessor :cache_mode + + # Specifies a separate client (e.g. browser client) TTL, separate from the TTL + # for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL + # for both Cloud CDN and the client-facing response. The maximum allowed value + # is 86400s (1 day). + # Corresponds to the JSON property `clientTtl` + # @return [Fixnum] + attr_accessor :client_ttl + + # Specifies the default TTL for cached content served by this origin for + # responses that do not have an existing valid TTL (max-age or s-max-age). + # Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables + # caching for that status code. The value of defaultTTL cannot be set to a value + # greater than that of maxTTL, but can be equal. When the cacheMode is set to + # FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. + # The maximum allowed value is 31,622,400s (1 year), noting that infrequently + # accessed objects may be evicted from the cache before the defined TTL. + # Corresponds to the JSON property `defaultTtl` + # @return [Fixnum] + attr_accessor :default_ttl + + # Specifies the maximum allowed TTL for cached content served by this origin. + # Cache directives that attempt to set a max-age or s-maxage higher than this, + # or an Expires header more than maxTTL seconds in the future will be capped at + # the value of maxTTL, as if it were the value of an s-maxage Cache-Control + # directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? + # disables caching for that status code. The maximum allowed value is 31,622, + # 400s (1 year), noting that infrequently accessed objects may be evicted from + # the cache before the defined TTL. + # Corresponds to the JSON property `maxTtl` + # @return [Fixnum] + attr_accessor :max_ttl + + # Negative caching allows per-status code TTLs to be set, in order to apply fine- + # grained caching for common errors or redirects. This can reduce the load on + # your origin and improve end-user experience by reducing response latency. By + # default, Cloud CDN will apply the following default TTLs to these status codes: + # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not + # Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method + # Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can + # be overridden in negative_caching_policy + # Corresponds to the JSON property `negativeCaching` + # @return [Boolean] + attr_accessor :negative_caching + alias_method :negative_caching?, :negative_caching + + # Sets a cache TTL for the specified HTTP status code. negative_caching must be + # enabled to configure negative_caching_policy. Omitting the policy and leaving + # negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that + # when specifying an explicit negative_caching_policy, you should take care to + # specify a cache TTL for all response codes that you wish to cache. Cloud CDN + # will not apply any default negative caching when a policy exists. + # Corresponds to the JSON property `negativeCachingPolicys` + # @return [Array] + attr_accessor :negative_caching_policys + # If true then Cloud CDN will combine multiple concurrent cache fill requests # into a small number of requests to the origin. # Corresponds to the JSON property `requestCoalescing` @@ -2931,12 +2984,49 @@ module Google # Update properties of this object def update!(**args) + @cache_mode = args[:cache_mode] if args.key?(:cache_mode) + @client_ttl = args[:client_ttl] if args.key?(:client_ttl) + @default_ttl = args[:default_ttl] if args.key?(:default_ttl) + @max_ttl = args[:max_ttl] if args.key?(:max_ttl) + @negative_caching = args[:negative_caching] if args.key?(:negative_caching) + @negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys) @request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing) @signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec) @signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names) end end + # Specify CDN TTLs for response error codes. + class BackendBucketCdnPolicyNegativeCachingPolicy + include Google::Apis::Core::Hashable + + # The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, + # 308, 404, 405, 410, 414, 451 and 501 are can be specified as values, and you + # cannot specify a status code more than once. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # The TTL (in seconds) to cache responses with the corresponding status code for. + # A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching + # for that status code. The maximum allowed value is 1800s (30 minutes), noting + # that infrequently accessed objects may be evicted from the cache before the + # defined TTL. + # Corresponds to the JSON property `ttl` + # @return [Fixnum] + attr_accessor :ttl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @ttl = args[:ttl] if args.key?(:ttl) + end + end + # Contains a list of BackendBucket resources. class BackendBucketList include Google::Apis::Core::Hashable @@ -3111,6 +3201,11 @@ module Google # @return [Array] attr_accessor :custom_request_headers + # Headers that the HTTP/S load balancer should add to proxied responses. + # Corresponds to the JSON property `customResponseHeaders` + # @return [Array] + attr_accessor :custom_response_headers + # An optional description of this resource. Provide this property when you # create the resource. # Corresponds to the JSON property `description` @@ -3150,10 +3245,10 @@ module Google # The list of URLs to the healthChecks, httpHealthChecks (legacy), or # httpsHealthChecks (legacy) resource for health checking this backend service. # Not all backend services support legacy health checks. See Load balancer - # guide. Currently at most one health check can be specified. Backend services - # with instance group or zonal NEG backends must have a health check. Backend - # services with internet NEG backends must not have a health check. A health - # check must + # guide. Currently, at most one health check can be specified for each backend + # service. Backend services with instance group or zonal NEG backends must have + # a health check. Backend services with internet or serverless NEG backends must + # not have a health check. # Corresponds to the JSON property `healthChecks` # @return [Array] attr_accessor :health_checks @@ -3262,8 +3357,8 @@ module Google attr_accessor :port_name # The protocol this BackendService uses to communicate with backends. - # Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP. depending on the - # chosen load balancer or Traffic Director configuration. Refer to the + # Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on + # the chosen load balancer or Traffic Director configuration. Refer to the # documentation for the load balancer or for Traffic Director for more # information. # Corresponds to the JSON property `protocol` @@ -3334,6 +3429,7 @@ module Google @consistent_hash = args[:consistent_hash] if args.key?(:consistent_hash) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers) + @custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers) @description = args[:description] if args.key?(:description) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @failover_policy = args[:failover_policy] if args.key?(:failover_policy) @@ -3494,6 +3590,66 @@ module Google # @return [Google::Apis::ComputeAlpha::CacheKeyPolicy] attr_accessor :cache_key_policy + # + # Corresponds to the JSON property `cacheMode` + # @return [String] + attr_accessor :cache_mode + + # Specifies a separate client (e.g. browser client) TTL, separate from the TTL + # for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL + # for both Cloud CDN and the client-facing response. The maximum allowed value + # is 86400s (1 day). + # Corresponds to the JSON property `clientTtl` + # @return [Fixnum] + attr_accessor :client_ttl + + # Specifies the default TTL for cached content served by this origin for + # responses that do not have an existing valid TTL (max-age or s-max-age). + # Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables + # caching for that status code. The value of defaultTTL cannot be set to a value + # greater than that of maxTTL, but can be equal. When the cacheMode is set to + # FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. + # The maximum allowed value is 31,622,400s (1 year), noting that infrequently + # accessed objects may be evicted from the cache before the defined TTL. + # Corresponds to the JSON property `defaultTtl` + # @return [Fixnum] + attr_accessor :default_ttl + + # Specifies the maximum allowed TTL for cached content served by this origin. + # Cache directives that attempt to set a max-age or s-maxage higher than this, + # or an Expires header more than maxTTL seconds in the future will be capped at + # the value of maxTTL, as if it were the value of an s-maxage Cache-Control + # directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? + # disables caching for that status code. The maximum allowed value is 31,622, + # 400s (1 year), noting that infrequently accessed objects may be evicted from + # the cache before the defined TTL. + # Corresponds to the JSON property `maxTtl` + # @return [Fixnum] + attr_accessor :max_ttl + + # Negative caching allows per-status code TTLs to be set, in order to apply fine- + # grained caching for common errors or redirects. This can reduce the load on + # your origin and improve end-user experience by reducing response latency. By + # default, Cloud CDN will apply the following default TTLs to these status codes: + # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not + # Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method + # Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can + # be overridden in negative_caching_policy + # Corresponds to the JSON property `negativeCaching` + # @return [Boolean] + attr_accessor :negative_caching + alias_method :negative_caching?, :negative_caching + + # Sets a cache TTL for the specified HTTP status code. negative_caching must be + # enabled to configure negative_caching_policy. Omitting the policy and leaving + # negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that + # when specifying an explicit negative_caching_policy, you should take care to + # specify a cache TTL for all response codes that you wish to cache. Cloud CDN + # will not apply any default negative caching when a policy exists. + # Corresponds to the JSON property `negativeCachingPolicys` + # @return [Array] + attr_accessor :negative_caching_policys + # If true then Cloud CDN will combine multiple concurrent cache fill requests # into a small number of requests to the origin. # Corresponds to the JSON property `requestCoalescing` @@ -3524,12 +3680,49 @@ module Google # Update properties of this object def update!(**args) @cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy) + @cache_mode = args[:cache_mode] if args.key?(:cache_mode) + @client_ttl = args[:client_ttl] if args.key?(:client_ttl) + @default_ttl = args[:default_ttl] if args.key?(:default_ttl) + @max_ttl = args[:max_ttl] if args.key?(:max_ttl) + @negative_caching = args[:negative_caching] if args.key?(:negative_caching) + @negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys) @request_coalescing = args[:request_coalescing] if args.key?(:request_coalescing) @signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec) @signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names) end end + # Specify CDN TTLs for response error codes. + class BackendServiceCdnPolicyNegativeCachingPolicy + include Google::Apis::Core::Hashable + + # The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, + # 308, 404, 405, 410, 414, 451 and 501 are can be specified as values, and you + # cannot specify a status code more than once. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # The TTL (in seconds) to cache responses with the corresponding status code for. + # A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching + # for that status code. The maximum allowed value is 1800s (30 minutes), noting + # that infrequently accessed objects may be evicted from the cache before the + # defined TTL. + # Corresponds to the JSON property `ttl` + # @return [Fixnum] + attr_accessor :ttl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @ttl = args[:ttl] if args.key?(:ttl) + end + end + # Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover # or failback, this field indicates whether connection draining will be honored. # GCP has a fixed connection draining timeout of 10 minutes. A setting of true @@ -5628,12 +5821,11 @@ module Google # @return [String] attr_accessor :self_link_with_id - # Size of the persistent disk, specified in GB. You can specify this field when - # creating a persistent disk using the sourceImage or sourceSnapshot parameter, - # or specify it alone to create an empty persistent disk. - # If you specify this field along with sourceImage or sourceSnapshot, the value - # of sizeGb must not be less than the size of the sourceImage or the size of the - # snapshot. Acceptable values are 1 to 65536, inclusive. + # Size, in GB, of the persistent disk. You can specify this field when creating + # a persistent disk using the sourceImage, sourceSnapshot, or sourceDisk + # parameter, or specify it alone to create an empty persistent disk. + # If you specify this field along with a source, the value of sizeGb must not be + # less than the size of the source. Acceptable values are 1 to 65536, inclusive. # Corresponds to the JSON property `sizeGb` # @return [Fixnum] attr_accessor :size_gb @@ -5689,9 +5881,9 @@ module Google # @return [String] attr_accessor :source_image_id - # The source in-place snapshot used to create this disk. You can provide this as - # a partial or full URL to the resource. For example, the following are valid - # values: + # [Deprecated] The source in-place snapshot used to create this disk. You can + # provide this as a partial or full URL to the resource. For example, the + # following are valid values: # - https://www.googleapis.com/compute/v1/projects/project/global/ # inPlaceSnapshots/inPlaceSnapshots # - projects/project/global/inPlaceSnapshots/inPlaceSnapshots @@ -5700,12 +5892,12 @@ module Google # @return [String] attr_accessor :source_in_place_snapshot - # [Output Only] The unique ID of the in-place snapshot used to create this disk. - # This value identifies the exact in-place snapshot that was used to create this - # persistent disk. For example, if you created the persistent disk from an in- - # place snapshot that was later deleted and recreated under the same name, the - # source in-place snapshot ID would identify the exact version of the in-place - # snapshot that was used. + # [Deprecated] [Output Only] The unique ID of the in-place snapshot used to + # create this disk. This value identifies the exact in-place snapshot that was + # used to create this persistent disk. For example, if you created the + # persistent disk from an in-place snapshot that was later deleted and recreated + # under the same name, the source in-place snapshot ID would identify the exact + # version of the in-place snapshot that was used. # Corresponds to the JSON property `sourceInPlaceSnapshotId` # @return [String] attr_accessor :source_in_place_snapshot_id @@ -8439,13 +8631,14 @@ module Google # that points to a target proxy or a target pool. Do not use with a forwarding # rule that points to a backend service. This field is used along with the # target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, - # TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. + # TargetTcpProxy, TargetGrpcProxy, TargetVpnGateway, TargetPool, TargetInstance. # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed # to ports in the specified range will be forwarded to target. Forwarding rules # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. # Some types of forwarding target have constraints on the acceptable ports: # - TargetHttpProxy: 80, 8080 # - TargetHttpsProxy: 443 + # - TargetGrpcProxy: Any ports # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, # 1883, 5222 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, @@ -8520,8 +8713,8 @@ module Google # forwarding rules, this target must live in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy is - # valid, not targetHttpsProxy. + # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy and + # targetGrpcProxy are valid, not targetHttpsProxy. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -11269,7 +11462,11 @@ module Google # @return [Array] attr_accessor :http_filter_metadata - # + # The list of criteria for matching attributes of a request to this routeRule. + # This list has OR semantics: the request matches this routeRule when any of the + # matchRules are satisfied. However predicates within a given matchRule have AND + # semantics. All predicates within a matchRule must match for the request to + # match the rule. # Corresponds to the JSON property `matchRules` # @return [Array] attr_accessor :match_rules @@ -11297,6 +11494,8 @@ module Google # routeAction cannot contain any weightedBackendServices. # Only one of urlRedirect, service or routeAction.weightedBackendService must be # set. + # UrlMaps for external HTTP(S) load balancers support only the urlRewrite action + # within a routeRule's routeAction. # Corresponds to the JSON property `routeAction` # @return [Google::Apis::ComputeAlpha::HttpRouteAction] attr_accessor :route_action @@ -20057,10 +20256,11 @@ module Google # Represents a collection of network endpoints. # A network endpoint group (NEG) defines how a set of endpoints should be # reached, whether they are reachable, and where they are located. For more - # information about using NEGs, see Setting up internet NEGs or Setting up - # zonal NEGs. (== resource_for `$api_version`.networkEndpointGroups ==) (== - # resource_for `$api_version`.globalNetworkEndpointGroups ==) (== resource_for `$ - # api_version`.regionNetworkEndpointGroups ==) + # information about using NEGs, see Setting up internet NEGs, Setting up zonal + # NEGs, or Setting up serverless NEGs. (== resource_for `$api_version`. + # networkEndpointGroups ==) (== resource_for `$api_version`. + # globalNetworkEndpointGroups ==) (== resource_for `$api_version`. + # regionNetworkEndpointGroups ==) class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -20146,7 +20346,9 @@ module Google # @return [String] attr_accessor :network - # Type of network endpoints in this network endpoint group. + # Type of network endpoints in this network endpoint group. Can be one of + # GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, + # or SERVERLESS. # Corresponds to the JSON property `networkEndpointType` # @return [String] attr_accessor :network_endpoint_type @@ -25953,9 +26155,9 @@ module Google # @return [String] attr_accessor :region - # The status of the public delegated prefix. Possible values are: ACTIVE: The - # public delegated prefix is active DRAINED: The public delegated prefix is - # drained. + # The status of the public delegated prefix. Possible values are: INITIALIZING: + # The public delegated prefix is being initialized and addresses cannot be + # created yet. ANNOUNCED: The public delegated prefix is active. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -31553,18 +31755,6 @@ module Google # @return [String] attr_accessor :location_hint - # DEPRECATED, please use maintenance_freeze_duration_hours. TODO(b/154158138): - # Remove this field. Compute Engine Long Term Release. When specified, VMs that - # have this policy become long term release (internal: stable fleet) VMs. - # For all VM shapes, this should result in fewer disruptions due to software - # updates and greater predictability via 1 week extended notifications. - # For GPU VMs, this should also result in an 2 week uptime guarantee. See go/ - # stable-fleet-gpus-design for more details. - # Corresponds to the JSON property `longTermRelease` - # @return [Boolean] - attr_accessor :long_term_release - alias_method :long_term_release?, :long_term_release - # Specifies the number of hours after instance creation where the instance won't # be scheduled for maintenance. # Corresponds to the JSON property `maintenanceFreezeDurationHours` @@ -31609,7 +31799,6 @@ module Google @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) @latency_tolerant = args[:latency_tolerant] if args.key?(:latency_tolerant) @location_hint = args[:location_hint] if args.key?(:location_hint) - @long_term_release = args[:long_term_release] if args.key?(:long_term_release) @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours) @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus) @node_affinities = args[:node_affinities] if args.key?(:node_affinities) @@ -37032,7 +37221,7 @@ module Google # The URL of the HttpHealthCheck resource. A member instance in this pool is # considered healthy if and only if the health checks pass. An empty list means - # all member instances will be considered healthy at all times. Only + # all member instances will be considered healthy at all times. Only legacy # HttpHealthChecks are supported. Only one health check may be specified. # Corresponds to the JSON property `healthChecks` # @return [Array] diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 4afae419e..16ecd43b4 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -352,6 +352,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendBucketCdnPolicyNegativeCachingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendBucketList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -400,6 +406,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendServiceCdnPolicyNegativeCachingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendServiceFailoverPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5801,7 +5813,6 @@ module Google collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation property :location_hint, as: 'locationHint' - property :long_term_release, as: 'longTermRelease' property :machine_type, as: 'machineType' property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours' property :maintenance_interval, as: 'maintenanceInterval' @@ -6144,6 +6155,7 @@ module Google property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicy, decorator: Google::Apis::ComputeAlpha::BackendBucketCdnPolicy::Representation property :creation_timestamp, as: 'creationTimestamp' + collection :custom_response_headers, as: 'customResponseHeaders' property :description, as: 'description' property :enable_cdn, as: 'enableCdn' property :id, :numeric_string => true, as: 'id' @@ -6157,12 +6169,27 @@ module Google class BackendBucketCdnPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cache_mode, as: 'cacheMode' + property :client_ttl, as: 'clientTtl' + property :default_ttl, as: 'defaultTtl' + property :max_ttl, as: 'maxTtl' + property :negative_caching, as: 'negativeCaching' + collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendBucketCdnPolicyNegativeCachingPolicy::Representation + property :request_coalescing, as: 'requestCoalescing' property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec' collection :signed_url_key_names, as: 'signedUrlKeyNames' end end + class BackendBucketCdnPolicyNegativeCachingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :ttl, as: 'ttl' + end + end + class BackendBucketList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6211,6 +6238,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' collection :custom_request_headers, as: 'customRequestHeaders' + collection :custom_response_headers, as: 'customResponseHeaders' property :description, as: 'description' property :enable_cdn, as: 'enableCDN' property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeAlpha::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceFailoverPolicy::Representation @@ -6281,12 +6309,27 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeAlpha::CacheKeyPolicy, decorator: Google::Apis::ComputeAlpha::CacheKeyPolicy::Representation + property :cache_mode, as: 'cacheMode' + property :client_ttl, as: 'clientTtl' + property :default_ttl, as: 'defaultTtl' + property :max_ttl, as: 'maxTtl' + property :negative_caching, as: 'negativeCaching' + collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicyNegativeCachingPolicy::Representation + property :request_coalescing, as: 'requestCoalescing' property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec' collection :signed_url_key_names, as: 'signedUrlKeyNames' end end + class BackendServiceCdnPolicyNegativeCachingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :ttl, as: 'ttl' + end + end + class BackendServiceFailoverPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -13203,7 +13246,6 @@ module Google property :automatic_restart, as: 'automaticRestart' property :latency_tolerant, as: 'latencyTolerant' property :location_hint, as: 'locationHint' - property :long_term_release, as: 'longTermRelease' property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours' property :min_node_cpus, as: 'minNodeCpus' collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeAlpha::SchedulingNodeAffinity, decorator: Google::Apis::ComputeAlpha::SchedulingNodeAffinity::Representation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 80105312b..bd6b8aa6e 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://compute.googleapis.com/', 'compute/alpha/projects/') + super('https://compute.googleapis.com/', 'compute/alpha/') @batch_path = 'batch/compute/alpha' end @@ -118,7 +118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_accelerator_type_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/acceleratorTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/acceleratorTypes', options) command.response_representation = Google::Apis::ComputeAlpha::AcceleratorTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::AcceleratorTypeAggregatedList command.params['project'] = project unless project.nil? @@ -161,7 +161,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_accelerator_type(project, zone, accelerator_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/acceleratorTypes/{acceleratorType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}', options) command.response_representation = Google::Apis::ComputeAlpha::AcceleratorType::Representation command.response_class = Google::Apis::ComputeAlpha::AcceleratorType command.params['project'] = project unless project.nil? @@ -236,7 +236,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accelerator_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/acceleratorTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorTypes', options) command.response_representation = Google::Apis::ComputeAlpha::AcceleratorTypeList::Representation command.response_class = Google::Apis::ComputeAlpha::AcceleratorTypeList command.params['project'] = project unless project.nil? @@ -319,7 +319,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_address_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/addresses', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/addresses', options) command.response_representation = Google::Apis::ComputeAlpha::AddressAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::AddressAggregatedList command.params['project'] = project unless project.nil? @@ -373,7 +373,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_address(project, region, address, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/addresses/{address}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/addresses/{address}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -413,7 +413,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_address(project, region, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/addresses/{address}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/addresses/{address}', options) command.response_representation = Google::Apis::ComputeAlpha::Address::Representation command.response_class = Google::Apis::ComputeAlpha::Address command.params['project'] = project unless project.nil? @@ -463,7 +463,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_address(project, region, address_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/addresses', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses', options) command.request_representation = Google::Apis::ComputeAlpha::Address::Representation command.request_object = address_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -539,7 +539,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_addresses(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/addresses', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/addresses', options) command.response_representation = Google::Apis::ComputeAlpha::AddressList::Representation command.response_class = Google::Apis::ComputeAlpha::AddressList command.params['project'] = project unless project.nil? @@ -595,7 +595,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_address_labels(project, region, resource, region_set_labels_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}/addresses/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -638,7 +638,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_address_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/addresses/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{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 @@ -719,7 +719,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_autoscaler_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/autoscalers', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/autoscalers', options) command.response_representation = Google::Apis::ComputeAlpha::AutoscalerAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::AutoscalerAggregatedList command.params['project'] = project unless project.nil? @@ -773,7 +773,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_autoscaler(project, zone, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/autoscalers/{autoscaler}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -814,7 +814,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/autoscalers/{autoscaler}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.response_class = Google::Apis::ComputeAlpha::Autoscaler command.params['project'] = project unless project.nil? @@ -864,7 +864,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_autoscaler(project, zone, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/autoscalers', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -940,7 +940,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_autoscalers(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/autoscalers', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers', options) command.response_representation = Google::Apis::ComputeAlpha::AutoscalerList::Representation command.response_class = Google::Apis::ComputeAlpha::AutoscalerList command.params['project'] = project unless project.nil? @@ -997,7 +997,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/zones/{zone}/autoscalers', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -1040,7 +1040,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_autoscaler_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}/autoscalers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers/{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 @@ -1094,7 +1094,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/zones/{zone}/autoscalers', options) + command = make_simple_command(:put, 'projects/{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -1147,7 +1147,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_backend_bucket_signed_url_key(project, backend_bucket, signed_url_key_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey', options) command.request_representation = Google::Apis::ComputeAlpha::SignedUrlKey::Representation command.request_object = signed_url_key_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -1197,7 +1197,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_bucket(project, backend_bucket, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:delete, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -1248,7 +1248,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_bucket_signed_url_key(project, backend_bucket, key_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -1287,7 +1287,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_bucket(project, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.response_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation command.response_class = Google::Apis::ComputeAlpha::BackendBucket command.params['project'] = project unless project.nil? @@ -1326,7 +1326,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_bucket_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/backendBuckets/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/{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? @@ -1374,7 +1374,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_backend_bucket(project, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets', options) command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation command.request_object = backend_bucket_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -1448,7 +1448,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_backend_buckets(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/backendBuckets', options) + command = make_simple_command(:get, 'projects/{project}/global/backendBuckets', options) command.response_representation = Google::Apis::ComputeAlpha::BackendBucketList::Representation command.response_class = Google::Apis::ComputeAlpha::BackendBucketList command.params['project'] = project unless project.nil? @@ -1502,7 +1502,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_backend_bucket(project, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:patch, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation command.request_object = backend_bucket_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -1543,7 +1543,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_backend_bucket_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -1582,7 +1582,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_backend_bucket_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{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 @@ -1633,7 +1633,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_backend_bucket(project, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:put, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.request_representation = Google::Apis::ComputeAlpha::BackendBucket::Representation command.request_object = backend_bucket_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -1685,7 +1685,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_backend_service_signed_url_key(project, backend_service, signed_url_key_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/addSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/addSignedUrlKey', options) command.request_representation = Google::Apis::ComputeAlpha::SignedUrlKey::Representation command.request_object = signed_url_key_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -1767,7 +1767,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_backend_service_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/backendServices', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/backendServices', options) command.response_representation = Google::Apis::ComputeAlpha::BackendServiceAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::BackendServiceAggregatedList command.params['project'] = project unless project.nil? @@ -1819,7 +1819,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_service(project, backend_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:delete, 'projects/{project}/global/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -1871,7 +1871,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_service_signed_url_key(project, backend_service, key_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/deleteSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -1910,7 +1910,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_service(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.response_class = Google::Apis::ComputeAlpha::BackendService command.params['project'] = project unless project.nil? @@ -1948,7 +1948,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_service_health(project, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/getHealth', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/getHealth', options) command.request_representation = Google::Apis::ComputeAlpha::ResourceGroupReference::Representation command.request_object = resource_group_reference_object command.response_representation = Google::Apis::ComputeAlpha::BackendServiceGroupHealth::Representation @@ -1997,7 +1997,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_backend_service(project, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices', options) command.request_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -2071,7 +2071,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_backend_services(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/backendServices', options) + command = make_simple_command(:get, 'projects/{project}/global/backendServices', options) command.response_representation = Google::Apis::ComputeAlpha::BackendServiceList::Representation command.response_class = Google::Apis::ComputeAlpha::BackendServiceList command.params['project'] = project unless project.nil? @@ -2126,7 +2126,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_backend_service(project, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:patch, 'projects/{project}/global/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -2178,7 +2178,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_backend_service_security_policy(project, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/setSecurityPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/setSecurityPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyReference::Representation command.request_object = security_policy_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -2218,7 +2218,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_backend_service_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{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 @@ -2269,7 +2269,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_backend_service(project, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:put, 'projects/{project}/global/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -2350,7 +2350,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_disk_type_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/diskTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/diskTypes', options) command.response_representation = Google::Apis::ComputeAlpha::DiskTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::DiskTypeAggregatedList command.params['project'] = project unless project.nil? @@ -2394,7 +2394,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk_type(project, zone, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/diskTypes/{diskType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes/{diskType}', options) command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation command.response_class = Google::Apis::ComputeAlpha::DiskType command.params['project'] = project unless project.nil? @@ -2468,7 +2468,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_disk_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/diskTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes', options) command.response_representation = Google::Apis::ComputeAlpha::DiskTypeList::Representation command.response_class = Google::Apis::ComputeAlpha::DiskTypeList command.params['project'] = project unless project.nil? @@ -2524,7 +2524,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_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}/disks/{disk}/addResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options) command.request_representation = Google::Apis::ComputeAlpha::DisksAddResourcePoliciesRequest::Representation command.request_object = disks_add_resource_policies_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -2606,7 +2606,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_disk_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/disks', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/disks', options) command.response_representation = Google::Apis::ComputeAlpha::DiskAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::DiskAggregatedList command.params['project'] = project unless project.nil? @@ -2665,7 +2665,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_disk_snapshot(project, zone, disk, snapshot_object = nil, guest_flush: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/createSnapshot', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/createSnapshot', options) command.request_representation = Google::Apis::ComputeAlpha::Snapshot::Representation command.request_object = snapshot_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -2721,7 +2721,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_disk(project, zone, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/disks/{disk}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -2762,7 +2762,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk(project, zone, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/disks/{disk}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeAlpha::Disk::Representation command.response_class = Google::Apis::ComputeAlpha::Disk command.params['project'] = project unless project.nil? @@ -2804,7 +2804,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/disks/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/disks/{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? @@ -2818,9 +2818,10 @@ module Google end # Creates a persistent disk in the specified project using the data in the - # request. You can create a disk with a sourceImage, a sourceSnapshot, or create - # an empty 500 GB data disk by omitting all properties. You can also create a - # disk that is larger than the default size by specifying the sizeGb property. + # request. You can create a disk from a source (sourceImage, sourceSnapshot, or + # sourceDisk) or create an empty 500 GB data disk by omitting all properties. + # You can also create a disk that is larger than the default size by specifying + # the sizeGb property. # @param [String] project # Project ID for this request. # @param [String] zone @@ -2859,7 +2860,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_disk(project, zone, disk_object = nil, request_id: nil, source_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/disks', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks', options) command.request_representation = Google::Apis::ComputeAlpha::Disk::Representation command.request_object = disk_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -2936,7 +2937,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_disks(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/disks', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/disks', options) command.response_representation = Google::Apis::ComputeAlpha::DiskList::Representation command.response_class = Google::Apis::ComputeAlpha::DiskList command.params['project'] = project unless project.nil? @@ -2991,7 +2992,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_disk_resource_policies(project, zone, disk, disks_remove_resource_policies_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}/disks/{disk}/removeResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies', options) command.request_representation = Google::Apis::ComputeAlpha::DisksRemoveResourcePoliciesRequest::Representation command.request_object = disks_remove_resource_policies_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3046,7 +3047,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_disk(project, zone, disk, disks_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}/disks/{disk}/resize', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/resize', options) command.request_representation = Google::Apis::ComputeAlpha::DisksResizeRequest::Representation command.request_object = disks_resize_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3090,7 +3091,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_disk_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}/disks/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{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 @@ -3144,7 +3145,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_disk_labels(project, zone, resource, zone_set_labels_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}/disks/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation command.request_object = zone_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3187,7 +3188,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_disk_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}/disks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{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 @@ -3237,7 +3238,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_external_vpn_gateway(project, external_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/externalVpnGateways/{externalVpnGateway}', options) + command = make_simple_command(:delete, 'projects/{project}/global/externalVpnGateways/{externalVpnGateway}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -3275,7 +3276,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_external_vpn_gateway(project, external_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/externalVpnGateways/{externalVpnGateway}', options) + command = make_simple_command(:get, 'projects/{project}/global/externalVpnGateways/{externalVpnGateway}', options) command.response_representation = Google::Apis::ComputeAlpha::ExternalVpnGateway::Representation command.response_class = Google::Apis::ComputeAlpha::ExternalVpnGateway command.params['project'] = project unless project.nil? @@ -3322,7 +3323,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_external_vpn_gateway(project, external_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/externalVpnGateways', options) + command = make_simple_command(:post, 'projects/{project}/global/externalVpnGateways', options) command.request_representation = Google::Apis::ComputeAlpha::ExternalVpnGateway::Representation command.request_object = external_vpn_gateway_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3395,7 +3396,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_external_vpn_gateways(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/externalVpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/global/externalVpnGateways', options) command.response_representation = Google::Apis::ComputeAlpha::ExternalVpnGatewayList::Representation command.response_class = Google::Apis::ComputeAlpha::ExternalVpnGatewayList command.params['project'] = project unless project.nil? @@ -3437,7 +3438,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_external_vpn_gateway_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/externalVpnGateways/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3476,7 +3477,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_external_vpn_gateway_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/externalVpnGateways/{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 @@ -3525,7 +3526,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_firewall(project, firewall, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:delete, 'projects/{project}/global/firewalls/{firewall}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -3562,7 +3563,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_firewall(project, firewall, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:get, 'projects/{project}/global/firewalls/{firewall}', options) command.response_representation = Google::Apis::ComputeAlpha::Firewall::Representation command.response_class = Google::Apis::ComputeAlpha::Firewall command.params['project'] = project unless project.nil? @@ -3609,7 +3610,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_firewall(project, firewall_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewalls', options) + command = make_simple_command(:post, 'projects/{project}/global/firewalls', options) command.request_representation = Google::Apis::ComputeAlpha::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3682,7 +3683,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_firewalls(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewalls', options) + command = make_simple_command(:get, 'projects/{project}/global/firewalls', options) command.response_representation = Google::Apis::ComputeAlpha::FirewallList::Representation command.response_class = Google::Apis::ComputeAlpha::FirewallList command.params['project'] = project unless project.nil? @@ -3736,7 +3737,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_firewall(project, firewall, firewall_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:patch, 'projects/{project}/global/firewalls/{firewall}', options) command.request_representation = Google::Apis::ComputeAlpha::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3776,7 +3777,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_firewall_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewalls/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/firewalls/{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 @@ -3828,7 +3829,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_firewall(project, firewall, firewall_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:put, 'projects/{project}/global/firewalls/{firewall}', options) command.request_representation = Google::Apis::ComputeAlpha::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -3909,7 +3910,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_forwarding_rule_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/forwardingRules', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/forwardingRules', options) command.response_representation = Google::Apis::ComputeAlpha::ForwardingRuleAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::ForwardingRuleAggregatedList command.params['project'] = project unless project.nil? @@ -3963,7 +3964,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_forwarding_rule(project, region, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -4003,7 +4004,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_forwarding_rule(project, region, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation command.response_class = Google::Apis::ComputeAlpha::ForwardingRule command.params['project'] = project unless project.nil? @@ -4053,7 +4054,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_forwarding_rule(project, region, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules', options) command.request_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4130,7 +4131,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_forwarding_rules(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/forwardingRules', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules', options) command.response_representation = Google::Apis::ComputeAlpha::ForwardingRuleList::Representation command.response_class = Google::Apis::ComputeAlpha::ForwardingRuleList command.params['project'] = project unless project.nil? @@ -4187,7 +4188,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.request_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4242,7 +4243,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_forwarding_rule_labels(project, region, resource, region_set_labels_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}/forwardingRules/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4297,7 +4298,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_forwarding_rule_target(project, region, forwarding_rule, target_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', options) command.request_representation = Google::Apis::ComputeAlpha::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4340,7 +4341,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_forwarding_rule_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{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 @@ -4390,7 +4391,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_address(project, address, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/addresses/{address}', options) + command = make_simple_command(:delete, 'projects/{project}/global/addresses/{address}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -4428,7 +4429,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_address(project, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/addresses/{address}', options) + command = make_simple_command(:get, 'projects/{project}/global/addresses/{address}', options) command.response_representation = Google::Apis::ComputeAlpha::Address::Representation command.response_class = Google::Apis::ComputeAlpha::Address command.params['project'] = project unless project.nil? @@ -4465,7 +4466,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_address_owner_instance(project, ip_address: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/addresses/getOwnerInstance', options) + command = make_simple_command(:get, 'projects/{project}/global/addresses/getOwnerInstance', options) command.response_representation = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse::Representation command.response_class = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse command.params['project'] = project unless project.nil? @@ -4512,7 +4513,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_address(project, address_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/addresses', options) + command = make_simple_command(:post, 'projects/{project}/global/addresses', options) command.request_representation = Google::Apis::ComputeAlpha::Address::Representation command.request_object = address_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4585,7 +4586,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_addresses(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/addresses', options) + command = make_simple_command(:get, 'projects/{project}/global/addresses', options) command.response_representation = Google::Apis::ComputeAlpha::AddressList::Representation command.response_class = Google::Apis::ComputeAlpha::AddressList command.params['project'] = project unless project.nil? @@ -4627,7 +4628,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_global_address_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/addresses/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4666,7 +4667,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_global_address_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/addresses/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/addresses/{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 @@ -4715,7 +4716,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_forwarding_rule(project, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:delete, 'projects/{project}/global/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -4753,7 +4754,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:get, 'projects/{project}/global/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation command.response_class = Google::Apis::ComputeAlpha::ForwardingRule command.params['project'] = project unless project.nil? @@ -4800,7 +4801,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_forwarding_rule(project, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules', options) command.request_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4874,7 +4875,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_forwarding_rules(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/forwardingRules', options) + command = make_simple_command(:get, 'projects/{project}/global/forwardingRules', options) command.response_representation = Google::Apis::ComputeAlpha::ForwardingRuleList::Representation command.response_class = Google::Apis::ComputeAlpha::ForwardingRuleList command.params['project'] = project unless project.nil? @@ -4928,7 +4929,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_global_forwarding_rule(project, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:patch, 'projects/{project}/global/forwardingRules/{forwardingRule}', options) command.request_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -4969,7 +4970,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_global_forwarding_rule_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -5020,7 +5021,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_global_forwarding_rule_target(project, forwarding_rule, target_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules/{forwardingRule}/setTarget', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{forwardingRule}/setTarget', options) command.request_representation = Google::Apis::ComputeAlpha::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -5060,7 +5061,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_global_forwarding_rule_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{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 @@ -5111,7 +5112,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def attach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsAttachEndpointsRequest::Representation command.request_object = global_network_endpoint_groups_attach_endpoints_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -5163,7 +5164,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_network_endpoint_group(project, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -5213,7 +5214,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def detach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsDetachEndpointsRequest::Representation command.request_object = global_network_endpoint_groups_detach_endpoints_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -5253,7 +5254,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_network_endpoint_group(project, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:get, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup command.params['project'] = project unless project.nil? @@ -5300,7 +5301,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_network_endpoint_group(project, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networkEndpointGroups', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups', options) command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation command.request_object = network_endpoint_group_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -5374,7 +5375,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_network_endpoint_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/global/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList command.params['project'] = project unless project.nil? @@ -5452,7 +5453,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints command.params['project'] = project unless project.nil? @@ -5535,7 +5536,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_global_operation_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/operations', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/operations', options) command.response_representation = Google::Apis::ComputeAlpha::OperationAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::OperationAggregatedList command.params['project'] = project unless project.nil? @@ -5576,7 +5577,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/operations/{operation}', options) + command = make_simple_command(:delete, 'projects/{project}/global/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? @@ -5611,7 +5612,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/operations/{operation}', options) + command = make_simple_command(:get, 'projects/{project}/global/operations/{operation}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -5682,7 +5683,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/operations', options) + command = make_simple_command(:get, 'projects/{project}/global/operations', options) command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation command.response_class = Google::Apis::ComputeAlpha::OperationList command.params['project'] = project unless project.nil? @@ -5732,7 +5733,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def wait_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/operations/{operation}/wait', options) + command = make_simple_command(:post, 'projects/{project}/global/operations/{operation}/wait', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -5926,7 +5927,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_public_delegated_prefix(project, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command = make_simple_command(:delete, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -5963,7 +5964,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_public_delegated_prefix(project, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command = make_simple_command(:get, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefix command.params['project'] = project unless project.nil? @@ -6010,7 +6011,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_public_delegated_prefix(project, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/publicDelegatedPrefixes', options) + command = make_simple_command(:post, 'projects/{project}/global/publicDelegatedPrefixes', options) command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation command.request_object = public_delegated_prefix_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6083,7 +6084,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_public_delegated_prefixes(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/publicDelegatedPrefixes', options) + command = make_simple_command(:get, 'projects/{project}/global/publicDelegatedPrefixes', options) command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Representation command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList command.params['project'] = project unless project.nil? @@ -6137,7 +6138,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_global_public_delegated_prefix(project, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command = make_simple_command(:patch, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation command.request_object = public_delegated_prefix_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6219,7 +6220,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_health_check_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/healthChecks', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/healthChecks', options) command.response_representation = Google::Apis::ComputeAlpha::HealthChecksAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::HealthChecksAggregatedList command.params['project'] = project unless project.nil? @@ -6271,7 +6272,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_health_check(project, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -6309,7 +6310,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.response_class = Google::Apis::ComputeAlpha::HealthCheck command.params['project'] = project unless project.nil? @@ -6356,7 +6357,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_health_check(project, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/healthChecks', options) + command = make_simple_command(:post, 'projects/{project}/global/healthChecks', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6429,7 +6430,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/healthChecks', options) + command = make_simple_command(:get, 'projects/{project}/global/healthChecks', options) command.response_representation = Google::Apis::ComputeAlpha::HealthCheckList::Representation command.response_class = Google::Apis::ComputeAlpha::HealthCheckList command.params['project'] = project unless project.nil? @@ -6483,7 +6484,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_health_check(project, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6523,7 +6524,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/healthChecks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/healthChecks/{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 @@ -6574,7 +6575,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_health_check(project, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6624,7 +6625,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_http_health_check(project, http_health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -6662,7 +6663,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::HttpHealthCheck::Representation command.response_class = Google::Apis::ComputeAlpha::HttpHealthCheck command.params['project'] = project unless project.nil? @@ -6709,7 +6710,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_http_health_check(project, http_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpHealthChecks', options) + command = make_simple_command(:post, 'projects/{project}/global/httpHealthChecks', options) command.request_representation = Google::Apis::ComputeAlpha::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6783,7 +6784,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_http_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/httpHealthChecks', options) + command = make_simple_command(:get, 'projects/{project}/global/httpHealthChecks', options) command.response_representation = Google::Apis::ComputeAlpha::HttpHealthCheckList::Representation command.response_class = Google::Apis::ComputeAlpha::HttpHealthCheckList command.params['project'] = project unless project.nil? @@ -6837,7 +6838,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_http_health_check(project, http_health_check, http_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6877,7 +6878,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_http_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpHealthChecks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/httpHealthChecks/{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 @@ -6928,7 +6929,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_http_health_check(project, http_health_check, http_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -6978,7 +6979,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_https_health_check(project, https_health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -7016,7 +7017,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::HttpsHealthCheck::Representation command.response_class = Google::Apis::ComputeAlpha::HttpsHealthCheck command.params['project'] = project unless project.nil? @@ -7063,7 +7064,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_https_health_check(project, https_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpsHealthChecks', options) + command = make_simple_command(:post, 'projects/{project}/global/httpsHealthChecks', options) command.request_representation = Google::Apis::ComputeAlpha::HttpsHealthCheck::Representation command.request_object = https_health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7137,7 +7138,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_https_health_checks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/httpsHealthChecks', options) + command = make_simple_command(:get, 'projects/{project}/global/httpsHealthChecks', options) command.response_representation = Google::Apis::ComputeAlpha::HttpsHealthCheckList::Representation command.response_class = Google::Apis::ComputeAlpha::HttpsHealthCheckList command.params['project'] = project unless project.nil? @@ -7191,7 +7192,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_https_health_check(project, https_health_check, https_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HttpsHealthCheck::Representation command.request_object = https_health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7231,7 +7232,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_https_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpsHealthChecks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/httpsHealthChecks/{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 @@ -7282,7 +7283,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_https_health_check(project, https_health_check, https_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HttpsHealthCheck::Representation command.request_object = https_health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7332,7 +7333,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_image(project, image, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/images/{image}', options) + command = make_simple_command(:delete, 'projects/{project}/global/images/{image}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -7382,7 +7383,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def deprecate_image(project, image, deprecation_status_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{image}/deprecate', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{image}/deprecate', options) command.request_representation = Google::Apis::ComputeAlpha::DeprecationStatus::Representation command.request_object = deprecation_status_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7422,7 +7423,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/images/{image}', options) + command = make_simple_command(:get, 'projects/{project}/global/images/{image}', options) command.response_representation = Google::Apis::ComputeAlpha::Image::Representation command.response_class = Google::Apis::ComputeAlpha::Image command.params['project'] = project unless project.nil? @@ -7458,7 +7459,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_image_from_family(project, family, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/images/family/{family}', options) + command = make_simple_command(:get, 'projects/{project}/global/images/family/{family}', options) command.response_representation = Google::Apis::ComputeAlpha::Image::Representation command.response_class = Google::Apis::ComputeAlpha::Image command.params['project'] = project unless project.nil? @@ -7497,7 +7498,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/images/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/images/{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? @@ -7547,7 +7548,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_image(project, image_object = nil, force_create: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images', options) + command = make_simple_command(:post, 'projects/{project}/global/images', options) command.request_representation = Google::Apis::ComputeAlpha::Image::Representation command.request_object = image_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7626,7 +7627,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_images(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/images', options) + command = make_simple_command(:get, 'projects/{project}/global/images', options) command.response_representation = Google::Apis::ComputeAlpha::ImageList::Representation command.response_class = Google::Apis::ComputeAlpha::ImageList command.params['project'] = project unless project.nil? @@ -7679,7 +7680,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_image(project, image, image_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/images/{image}', options) + command = make_simple_command(:patch, 'projects/{project}/global/images/{image}', options) command.request_representation = Google::Apis::ComputeAlpha::Image::Representation command.request_object = image_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7720,7 +7721,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -7760,7 +7761,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7799,7 +7800,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{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 @@ -7862,7 +7863,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def abandon_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_abandon_instances_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}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersAbandonInstancesRequest::Representation command.request_object = instance_group_managers_abandon_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -7944,7 +7945,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_instance_group_manager_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/instanceGroupManagers', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerAggregatedList command.params['project'] = project unless project.nil? @@ -7990,7 +7991,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersApplyUpdatesRequest::Representation command.request_object = instance_group_managers_apply_updates_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -8048,7 +8049,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_create_instances_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}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersCreateInstancesRequest::Representation command.request_object = instance_group_managers_create_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -8103,7 +8104,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager(project, zone, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -8165,7 +8166,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_delete_instances_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}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersDeleteInstancesRequest::Representation command.request_object = instance_group_managers_delete_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -8209,7 +8210,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager_per_instance_configs(project, zone, instance_group_manager, instance_group_managers_delete_per_instance_configs_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersDeletePerInstanceConfigsReq::Representation command.request_object = instance_group_managers_delete_per_instance_configs_req_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -8251,7 +8252,7 @@ module Google # @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_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManager command.params['project'] = project unless project.nil? @@ -8307,7 +8308,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_group_manager(project, zone, instance_group_manager_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', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -8384,7 +8385,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_managers(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerList::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerList command.params['project'] = project unless project.nil? @@ -8468,7 +8469,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_manager_errors(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersListErrorsResponse::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagersListErrorsResponse command.params['project'] = project unless project.nil? @@ -8554,7 +8555,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersListManagedInstancesResponse::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagersListManagedInstancesResponse command.params['project'] = project unless project.nil? @@ -8637,7 +8638,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_manager_per_instance_configs(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersListPerInstanceConfigsResp::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagersListPerInstanceConfigsResp command.params['project'] = project unless project.nil? @@ -8698,7 +8699,7 @@ module Google # @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(project, zone, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -8755,7 +8756,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -8818,7 +8819,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def recreate_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_recreate_instances_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}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersRecreateInstancesRequest::Representation command.request_object = instance_group_managers_recreate_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -8890,7 +8891,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_instance_group_manager(project, zone, instance_group_manager, size, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -8954,7 +8955,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_instance_group_manager_advanced(project, zone, instance_group_manager, instance_group_managers_resize_advanced_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}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersResizeAdvancedRequest::Representation command.request_object = instance_group_managers_resize_advanced_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9009,7 +9010,7 @@ module Google # @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_group_manager_auto_healing_policies(project, zone, instance_group_manager, instance_group_managers_set_auto_healing_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}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersSetAutoHealingRequest::Representation command.request_object = instance_group_managers_set_auto_healing_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9065,7 +9066,7 @@ module Google # @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_group_manager_instance_template(project, zone, instance_group_manager, instance_group_managers_set_instance_template_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}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersSetInstanceTemplateRequest::Representation command.request_object = instance_group_managers_set_instance_template_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9124,7 +9125,7 @@ module Google # @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_group_manager_target_pools(project, zone, instance_group_manager, instance_group_managers_set_target_pools_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}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersSetTargetPoolsRequest::Representation command.request_object = instance_group_managers_set_target_pools_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9167,7 +9168,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_group_manager_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}/instanceGroupManagers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{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 @@ -9224,7 +9225,7 @@ module Google # @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_group_manager(project, zone, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9281,7 +9282,7 @@ module Google # @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_group_manager_per_instance_configs(project, zone, instance_group_manager, instance_group_managers_update_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}/updatePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersUpdatePerInstanceConfigsReq::Representation command.request_object = instance_group_managers_update_per_instance_configs_req_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9337,7 +9338,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_group_instances(project, zone, instance_group, instance_groups_add_instances_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}/instanceGroups/{instanceGroup}/addInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupsAddInstancesRequest::Representation command.request_object = instance_groups_add_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9419,7 +9420,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_instance_group_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/instanceGroups', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/instanceGroups', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupAggregatedList command.params['project'] = project unless project.nil? @@ -9475,7 +9476,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group(project, zone, instance_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -9516,7 +9517,7 @@ module Google # @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_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroup::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroup command.params['project'] = project unless project.nil? @@ -9566,7 +9567,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_group(project, zone, instance_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroup::Representation command.request_object = instance_group_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9643,7 +9644,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroups', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroups', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupList::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupList command.params['project'] = project unless project.nil? @@ -9726,7 +9727,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_instances(project, zone, instance_group, instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupsListInstancesRequest::Representation command.request_object = instance_groups_list_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupsListInstances::Representation @@ -9788,7 +9789,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_instance_group_instances(project, zone, instance_group, instance_groups_remove_instances_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}/instanceGroups/{instanceGroup}/removeInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupsRemoveInstancesRequest::Representation command.request_object = instance_groups_remove_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9842,7 +9843,7 @@ module Google # @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_group_named_ports(project, zone, instance_group, instance_groups_set_named_ports_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}/instanceGroups/{instanceGroup}/setNamedPorts', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupsSetNamedPortsRequest::Representation command.request_object = instance_groups_set_named_ports_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -9885,7 +9886,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_group_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}/instanceGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{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 @@ -9937,7 +9938,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_template(project, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/instanceTemplates/{instanceTemplate}', options) + command = make_simple_command(:delete, 'projects/{project}/global/instanceTemplates/{instanceTemplate}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -9975,7 +9976,7 @@ module Google # @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_template(project, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/instanceTemplates/{instanceTemplate}', options) + command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates/{instanceTemplate}', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceTemplate command.params['project'] = project unless project.nil? @@ -10014,7 +10015,7 @@ module Google # @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_template_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates/{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? @@ -10064,7 +10065,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_template(project, instance_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/instanceTemplates', options) + command = make_simple_command(:post, 'projects/{project}/global/instanceTemplates', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation command.request_object = instance_template_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -10138,7 +10139,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_templates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/instanceTemplates', options) + command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplateList::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceTemplateList command.params['project'] = project unless project.nil? @@ -10180,7 +10181,7 @@ module Google # @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_template_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/instanceTemplates/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -10219,7 +10220,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_template_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/instanceTemplates/{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 @@ -10273,7 +10274,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_access_config(project, zone, instance, network_interface, access_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/addAccessConfig', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig', options) command.request_representation = Google::Apis::ComputeAlpha::AccessConfig::Representation command.request_object = access_config_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -10330,7 +10331,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_resource_policies(project, zone, instance, instances_add_resource_policies_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}/instances/{instance}/addResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesAddResourcePoliciesRequest::Representation command.request_object = instances_add_resource_policies_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -10413,7 +10414,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_instance_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/instances', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/instances', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceAggregatedList command.params['project'] = project unless project.nil? @@ -10474,7 +10475,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def attach_instance_disk(project, zone, instance, attached_disk_object = nil, force_attach: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/attachDisk', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/attachDisk', options) command.request_representation = Google::Apis::ComputeAlpha::AttachedDisk::Representation command.request_object = attached_disk_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -10527,7 +10528,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/bulkInsert', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options) command.request_representation = Google::Apis::ComputeAlpha::BulkInsertInstanceResource::Representation command.request_object = bulk_insert_instance_resource_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -10580,7 +10581,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/instances/{instance}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -10635,7 +10636,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_access_config(project, zone, instance, access_config, network_interface, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -10691,7 +10692,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def detach_instance_disk(project, zone, instance, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/detachDisk', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/detachDisk', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -10733,7 +10734,7 @@ module Google # @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(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}', options) command.response_representation = Google::Apis::ComputeAlpha::Instance::Representation command.response_class = Google::Apis::ComputeAlpha::Instance command.params['project'] = project unless project.nil? @@ -10774,7 +10775,7 @@ module Google # @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_effective_firewalls(project, zone, instance, network_interface, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls', options) command.response_representation = Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponse::Representation command.response_class = Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponse command.params['project'] = project unless project.nil? @@ -10818,7 +10819,7 @@ module Google # @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_guest_attributes(project, zone, instance, query_path: nil, variable_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getGuestAttributes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes', options) command.response_representation = Google::Apis::ComputeAlpha::GuestAttributes::Representation command.response_class = Google::Apis::ComputeAlpha::GuestAttributes command.params['project'] = project unless project.nil? @@ -10862,7 +10863,7 @@ module Google # @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_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{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? @@ -10902,7 +10903,7 @@ module Google # @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_screenshot(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/screenshot', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/screenshot', options) command.response_representation = Google::Apis::ComputeAlpha::Screenshot::Representation command.response_class = Google::Apis::ComputeAlpha::Screenshot command.params['project'] = project unless project.nil? @@ -10956,7 +10957,7 @@ module Google # @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_serial_port_output(project, zone, instance, port: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/serialPort', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/serialPort', options) command.response_representation = Google::Apis::ComputeAlpha::SerialPortOutput::Representation command.response_class = Google::Apis::ComputeAlpha::SerialPortOutput command.params['project'] = project unless project.nil? @@ -10997,7 +10998,7 @@ module Google # @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 = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity', options) command.response_representation = Google::Apis::ComputeAlpha::ShieldedInstanceIdentity::Representation command.response_class = Google::Apis::ComputeAlpha::ShieldedInstanceIdentity command.params['project'] = project unless project.nil? @@ -11036,7 +11037,7 @@ module Google # @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_vm_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}/getShieldedVmIdentity', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity', options) command.response_representation = Google::Apis::ComputeAlpha::ShieldedVmIdentity::Representation command.response_class = Google::Apis::ComputeAlpha::ShieldedVmIdentity command.params['project'] = project unless project.nil? @@ -11102,7 +11103,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances', options) command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11180,7 +11181,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instances(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceList::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceList command.params['project'] = project unless project.nil? @@ -11264,7 +11265,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_referrers(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/referrers', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/referrers', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceListReferrers::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceListReferrers command.params['project'] = project unless project.nil? @@ -11320,7 +11321,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_instance_resource_policies(project, zone, instance, instances_remove_resource_policies_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}/instances/{instance}/removeResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesRemoveResourcePoliciesRequest::Representation command.request_object = instances_remove_resource_policies_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11374,7 +11375,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reset_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/reset', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reset', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -11426,7 +11427,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resume_instance(project, zone, instance, instances_resume_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}/instances/{instance}/resume', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesResumeRequest::Representation command.request_object = instances_resume_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11481,7 +11482,7 @@ module Google # @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_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -11538,7 +11539,7 @@ module Google # @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_disk_auto_delete(project, zone, instance, auto_delete, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -11582,7 +11583,7 @@ module Google # @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_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}/instances/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{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 @@ -11636,7 +11637,7 @@ module Google # @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_labels(project, zone, instance, instances_set_labels_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}/instances/{instance}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesSetLabelsRequest::Representation command.request_object = instances_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11691,7 +11692,7 @@ module Google # @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_machine_resources(project, zone, instance, instances_set_machine_resources_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}/instances/{instance}/setMachineResources', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineResources', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesSetMachineResourcesRequest::Representation command.request_object = instances_set_machine_resources_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11746,7 +11747,7 @@ module Google # @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_machine_type(project, zone, instance, instances_set_machine_type_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}/instances/{instance}/setMachineType', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineType', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesSetMachineTypeRequest::Representation command.request_object = instances_set_machine_type_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11800,7 +11801,7 @@ module Google # @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_metadata(project, zone, instance, metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMetadata', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMetadata', options) command.request_representation = Google::Apis::ComputeAlpha::Metadata::Representation command.request_object = metadata_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11856,7 +11857,7 @@ module Google # @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_min_cpu_platform(project, zone, instance, instances_set_min_cpu_platform_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}/instances/{instance}/setMinCpuPlatform', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesSetMinCpuPlatformRequest::Representation command.request_object = instances_set_min_cpu_platform_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11910,7 +11911,7 @@ module Google # @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_name(project, zone, instance, instances_set_name_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}/instances/{instance}/setName', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setName', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesSetNameRequest::Representation command.request_object = instances_set_name_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -11966,7 +11967,7 @@ module Google # @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_scheduling(project, zone, instance, scheduling_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setScheduling', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setScheduling', options) command.request_representation = Google::Apis::ComputeAlpha::Scheduling::Representation command.request_object = scheduling_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12021,7 +12022,7 @@ module Google # @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_service_account(project, zone, instance, instances_set_service_account_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}/instances/{instance}/setServiceAccount', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesSetServiceAccountRequest::Representation command.request_object = instances_set_service_account_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12077,7 +12078,7 @@ module Google # @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 = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::ShieldedInstanceIntegrityPolicy::Representation command.request_object = shielded_instance_integrity_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12133,7 +12134,7 @@ module Google # @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_vm_integrity_policy(project, zone, instance, shielded_vm_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}/setShieldedVmIntegrityPolicy', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::ShieldedVmIntegrityPolicy::Representation command.request_object = shielded_vm_integrity_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12188,7 +12189,7 @@ module Google # @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_tags(project, zone, instance, tags_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setTags', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setTags', options) command.request_representation = Google::Apis::ComputeAlpha::Tags::Representation command.request_object = tags_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12230,7 +12231,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def simulate_instance_maintenance_event(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -12281,7 +12282,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/start', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/start', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -12334,7 +12335,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_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}/instances/{instance}/startWithEncryptionKey', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options) command.request_representation = Google::Apis::ComputeAlpha::InstancesStartWithEncryptionKeyRequest::Representation command.request_object = instances_start_with_encryption_key_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12394,7 +12395,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/stop', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -12454,7 +12455,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def suspend_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/suspend', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/suspend', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -12496,7 +12497,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_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}/instances/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{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 @@ -12560,7 +12561,7 @@ module Google # @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(project, zone, instance, instance_object = nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/zones/{zone}/instances/{instance}', options) + command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options) command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12620,7 +12621,7 @@ module Google # @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_access_config(project, zone, instance, network_interface, access_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/updateAccessConfig', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig', options) command.request_representation = Google::Apis::ComputeAlpha::AccessConfig::Representation command.request_object = access_config_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12677,7 +12678,7 @@ module Google # @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_display_device(project, zone, instance, display_device_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}/updateDisplayDevice', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options) command.request_representation = Google::Apis::ComputeAlpha::DisplayDevice::Representation command.request_object = display_device_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12733,7 +12734,7 @@ module Google # @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_network_interface(project, zone, instance, network_interface, network_interface_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}/updateNetworkInterface', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface', options) command.request_representation = Google::Apis::ComputeAlpha::NetworkInterface::Representation command.request_object = network_interface_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12790,7 +12791,7 @@ module Google # @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 = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig', options) command.request_representation = Google::Apis::ComputeAlpha::ShieldedInstanceConfig::Representation command.request_object = shielded_instance_config_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12846,7 +12847,7 @@ module Google # @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_vm_config(project, zone, instance, shielded_vm_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}/updateShieldedVmConfig', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig', options) command.request_representation = Google::Apis::ComputeAlpha::ShieldedVmConfig::Representation command.request_object = shielded_vm_config_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -12928,7 +12929,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_interconnect_attachment_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/interconnectAttachments', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/interconnectAttachments', options) command.response_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::InterconnectAttachmentAggregatedList command.params['project'] = project unless project.nil? @@ -12982,7 +12983,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_interconnect_attachment(project, region, interconnect_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -13022,7 +13023,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_attachment(project, region, interconnect_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) command.response_representation = Google::Apis::ComputeAlpha::InterconnectAttachment::Representation command.response_class = Google::Apis::ComputeAlpha::InterconnectAttachment command.params['project'] = project unless project.nil? @@ -13064,7 +13065,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments/{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? @@ -13117,7 +13118,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments', options) command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachment::Representation command.request_object = interconnect_attachment_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -13195,7 +13196,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_interconnect_attachments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments', options) command.response_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentList::Representation command.response_class = Google::Apis::ComputeAlpha::InterconnectAttachmentList command.params['project'] = project unless project.nil? @@ -13252,7 +13253,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachment::Representation command.request_object = interconnect_attachment_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -13296,7 +13297,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_interconnect_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -13350,7 +13351,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_interconnect_attachment_labels(project, region, resource, region_set_labels_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}/interconnectAttachments/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -13393,7 +13394,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_interconnect_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{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 @@ -13433,7 +13434,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_location(project, interconnect_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnectLocations/{interconnectLocation}', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations/{interconnectLocation}', options) command.response_representation = Google::Apis::ComputeAlpha::InterconnectLocation::Representation command.response_class = Google::Apis::ComputeAlpha::InterconnectLocation command.params['project'] = project unless project.nil? @@ -13505,7 +13506,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_interconnect_locations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnectLocations', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations', options) command.response_representation = Google::Apis::ComputeAlpha::InterconnectLocationList::Representation command.response_class = Google::Apis::ComputeAlpha::InterconnectLocationList command.params['project'] = project unless project.nil? @@ -13546,7 +13547,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_interconnect_location_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnectLocations/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnectLocations/{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 @@ -13595,7 +13596,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_interconnect(project, interconnect, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/interconnects/{interconnect}', options) + command = make_simple_command(:delete, 'projects/{project}/global/interconnects/{interconnect}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -13633,7 +13634,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnects/{interconnect}', options) command.response_representation = Google::Apis::ComputeAlpha::Interconnect::Representation command.response_class = Google::Apis::ComputeAlpha::Interconnect command.params['project'] = project unless project.nil? @@ -13669,7 +13670,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_diagnostics(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}/getDiagnostics', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnects/{interconnect}/getDiagnostics', options) command.response_representation = Google::Apis::ComputeAlpha::InterconnectsGetDiagnosticsResponse::Representation command.response_class = Google::Apis::ComputeAlpha::InterconnectsGetDiagnosticsResponse command.params['project'] = project unless project.nil? @@ -13708,7 +13709,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnects/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnects/{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? @@ -13756,7 +13757,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_interconnect(project, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnects', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnects', options) command.request_representation = Google::Apis::ComputeAlpha::Interconnect::Representation command.request_object = interconnect_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -13829,7 +13830,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_interconnects(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnects', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnects', options) command.response_representation = Google::Apis::ComputeAlpha::InterconnectList::Representation command.response_class = Google::Apis::ComputeAlpha::InterconnectList command.params['project'] = project unless project.nil? @@ -13883,7 +13884,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_interconnect(project, interconnect, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/interconnects/{interconnect}', options) + command = make_simple_command(:patch, 'projects/{project}/global/interconnects/{interconnect}', options) command.request_representation = Google::Apis::ComputeAlpha::Interconnect::Representation command.request_object = interconnect_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -13924,7 +13925,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_interconnect_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnects/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -13964,7 +13965,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnects/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -14003,7 +14004,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_interconnect_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnects/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnects/{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 @@ -14044,7 +14045,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license_code(project, license_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenseCodes/{licenseCode}', options) + command = make_simple_command(:get, 'projects/{project}/global/licenseCodes/{licenseCode}', options) command.response_representation = Google::Apis::ComputeAlpha::LicenseCode::Representation command.response_class = Google::Apis::ComputeAlpha::LicenseCode command.params['project'] = project unless project.nil? @@ -14084,7 +14085,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license_code_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenseCodes/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/licenseCodes/{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? @@ -14124,7 +14125,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_license_code_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/licenseCodes/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/licenseCodes/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -14165,7 +14166,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_license_code_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/licenseCodes/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/licenseCodes/{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 @@ -14215,7 +14216,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/licenses/{license}', options) + command = make_simple_command(:delete, 'projects/{project}/global/licenses/{license}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -14253,7 +14254,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenses/{license}', options) + command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options) command.response_representation = Google::Apis::ComputeAlpha::License::Representation command.response_class = Google::Apis::ComputeAlpha::License command.params['project'] = project unless project.nil? @@ -14293,7 +14294,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenses/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/licenses/{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? @@ -14342,7 +14343,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/licenses', options) + command = make_simple_command(:post, 'projects/{project}/global/licenses', options) command.request_representation = Google::Apis::ComputeAlpha::License::Representation command.request_object = license_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -14421,7 +14422,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_licenses(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenses', options) + command = make_simple_command(:get, 'projects/{project}/global/licenses', options) command.response_representation = Google::Apis::ComputeAlpha::LicensesListResponse::Representation command.response_class = Google::Apis::ComputeAlpha::LicensesListResponse command.params['project'] = project unless project.nil? @@ -14464,7 +14465,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_license_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/licenses/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -14505,7 +14506,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_license_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/licenses/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/licenses/{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 @@ -14555,7 +14556,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_machine_image(project, machine_image, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/machineImages/{machineImage}', options) + command = make_simple_command(:delete, 'projects/{project}/global/machineImages/{machineImage}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -14593,7 +14594,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_machine_image(project, machine_image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/machineImages/{machineImage}', options) + command = make_simple_command(:get, 'projects/{project}/global/machineImages/{machineImage}', options) command.response_representation = Google::Apis::ComputeAlpha::MachineImage::Representation command.response_class = Google::Apis::ComputeAlpha::MachineImage command.params['project'] = project unless project.nil? @@ -14632,7 +14633,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_machine_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/machineImages/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/machineImages/{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? @@ -14684,7 +14685,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_machine_image(project, machine_image_object = nil, request_id: nil, source_instance: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/machineImages', options) + command = make_simple_command(:post, 'projects/{project}/global/machineImages', options) command.request_representation = Google::Apis::ComputeAlpha::MachineImage::Representation command.request_object = machine_image_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -14759,7 +14760,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_machine_images(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/machineImages', options) + command = make_simple_command(:get, 'projects/{project}/global/machineImages', options) command.response_representation = Google::Apis::ComputeAlpha::MachineImageList::Representation command.response_class = Google::Apis::ComputeAlpha::MachineImageList command.params['project'] = project unless project.nil? @@ -14801,7 +14802,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/machineImages/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -14840,7 +14841,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/machineImages/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/machineImages/{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 @@ -14920,7 +14921,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_machine_type_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/machineTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options) command.response_representation = Google::Apis::ComputeAlpha::MachineTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::MachineTypeAggregatedList command.params['project'] = project unless project.nil? @@ -14964,7 +14965,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/machineTypes/{machineType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes/{machineType}', options) command.response_representation = Google::Apis::ComputeAlpha::MachineType::Representation command.response_class = Google::Apis::ComputeAlpha::MachineType command.params['project'] = project unless project.nil? @@ -15038,7 +15039,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_machine_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/machineTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes', options) command.response_representation = Google::Apis::ComputeAlpha::MachineTypeList::Representation command.response_class = Google::Apis::ComputeAlpha::MachineTypeList command.params['project'] = project unless project.nil? @@ -15121,7 +15122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_network_endpoint_group_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList command.params['project'] = project unless project.nil? @@ -15178,7 +15179,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def attach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_attach_endpoints_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}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsAttachEndpointsRequest::Representation command.request_object = network_endpoint_groups_attach_endpoints_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -15236,7 +15237,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_network_endpoint_group(project, zone, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -15290,7 +15291,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def detach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_detach_endpoints_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}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsDetachEndpointsRequest::Representation command.request_object = network_endpoint_groups_detach_endpoints_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -15334,7 +15335,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_endpoint_group(project, zone, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup command.params['project'] = project unless project.nil? @@ -15385,7 +15386,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_network_endpoint_group(project, zone, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups', options) command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation command.request_object = network_endpoint_group_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -15463,7 +15464,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_endpoint_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList command.params['project'] = project unless project.nil? @@ -15546,7 +15547,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_list_endpoints_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequest::Representation command.request_object = network_endpoint_groups_list_endpoints_request_object command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints::Representation @@ -15593,7 +15594,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_network_endpoint_group_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}/networkEndpointGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{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 @@ -15648,7 +15649,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_network_firewall_policy_association(project, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/addAssociation', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation', options) command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation command.request_object = firewall_policy_association_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -15689,7 +15690,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/addRule', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule', options) command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation command.request_object = firewall_policy_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -15740,7 +15741,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def clone_network_firewall_policy_rules(project, firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/cloneRules', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -15789,7 +15790,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_network_firewall_policy(project, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/firewallPolicies/{firewallPolicy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/firewallPolicies/{firewallPolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -15826,7 +15827,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_firewall_policy(project, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}', options) + command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies/{firewallPolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy command.params['project'] = project unless project.nil? @@ -15864,7 +15865,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_firewall_policy_association(project, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}/getAssociation', options) + command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation', options) command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation command.params['project'] = project unless project.nil? @@ -15904,7 +15905,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_firewall_policy_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewallPolicies/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies/{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? @@ -15943,7 +15944,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}/getRule', options) + command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule', options) command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule command.params['project'] = project unless project.nil? @@ -15991,7 +15992,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_network_firewall_policy(project, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies', options) command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation command.request_object = firewall_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -16064,7 +16065,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_firewall_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewallPolicies', options) + command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies', options) command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList command.params['project'] = project unless project.nil? @@ -16116,7 +16117,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_network_firewall_policy(project, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/firewallPolicies/{firewallPolicy}', options) + command = make_simple_command(:patch, 'projects/{project}/global/firewallPolicies/{firewallPolicy}', options) command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation command.request_object = firewall_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -16158,7 +16159,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options) command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation command.request_object = firewall_policy_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -16210,7 +16211,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_network_firewall_policy_association(project, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -16250,7 +16251,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/removeRule', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -16289,7 +16290,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_network_firewall_policy_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -16328,7 +16329,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_network_firewall_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewallPolicies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{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 @@ -16378,7 +16379,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_network_peering(project, network, networks_add_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{network}/addPeering', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/addPeering', options) command.request_representation = Google::Apis::ComputeAlpha::NetworksAddPeeringRequest::Representation command.request_object = networks_add_peering_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -16428,7 +16429,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_network(project, network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/networks/{network}', options) + command = make_simple_command(:delete, 'projects/{project}/global/networks/{network}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -16466,7 +16467,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}', options) command.response_representation = Google::Apis::ComputeAlpha::Network::Representation command.response_class = Google::Apis::ComputeAlpha::Network command.params['project'] = project unless project.nil? @@ -16502,7 +16503,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_effective_firewalls(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}/getEffectiveFirewalls', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}/getEffectiveFirewalls', options) command.response_representation = Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponse::Representation command.response_class = Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponse command.params['project'] = project unless project.nil? @@ -16549,7 +16550,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_network(project, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks', options) + command = make_simple_command(:post, 'projects/{project}/global/networks', options) command.request_representation = Google::Apis::ComputeAlpha::Network::Representation command.request_object = network_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -16622,7 +16623,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_networks(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks', options) + command = make_simple_command(:get, 'projects/{project}/global/networks', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkList::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkList command.params['project'] = project unless project.nil? @@ -16702,7 +16703,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_ip_addresses(project, network, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, types: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}/listIpAddresses', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}/listIpAddresses', options) command.response_representation = Google::Apis::ComputeAlpha::IpAddressesList::Representation command.response_class = Google::Apis::ComputeAlpha::IpAddressesList command.params['project'] = project unless project.nil? @@ -16791,7 +16792,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_ip_owners(project, network, filter: nil, ip_cidr_range: nil, max_results: nil, order_by: nil, owner_projects: nil, owner_types: nil, page_token: nil, return_partial_success: nil, subnet_name: nil, subnet_region: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}/listIpOwners', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}/listIpOwners', options) command.response_representation = Google::Apis::ComputeAlpha::IpOwnerList::Representation command.response_class = Google::Apis::ComputeAlpha::IpOwnerList command.params['project'] = project unless project.nil? @@ -16881,7 +16882,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_peering_routes(project, network, direction: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, peering_name: nil, region: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}/listPeeringRoutes', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}/listPeeringRoutes', options) command.response_representation = Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList::Representation command.response_class = Google::Apis::ComputeAlpha::ExchangedPeeringRoutesList command.params['project'] = project unless project.nil? @@ -16938,7 +16939,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_network(project, network, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/networks/{network}', options) + command = make_simple_command(:patch, 'projects/{project}/global/networks/{network}', options) command.request_representation = Google::Apis::ComputeAlpha::Network::Representation command.request_object = network_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -16989,7 +16990,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_network_peering(project, network, networks_remove_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{network}/removePeering', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/removePeering', options) command.request_representation = Google::Apis::ComputeAlpha::NetworksRemovePeeringRequest::Representation command.request_object = networks_remove_peering_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -17039,7 +17040,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def switch_network_to_custom_mode(project, network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{network}/switchToCustomMode', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/switchToCustomMode', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -17077,7 +17078,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_network_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{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 @@ -17129,7 +17130,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_network_peering(project, network, networks_update_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/networks/{network}/updatePeering', options) + command = make_simple_command(:patch, 'projects/{project}/global/networks/{network}/updatePeering', options) command.request_representation = Google::Apis::ComputeAlpha::NetworksUpdatePeeringRequest::Representation command.request_object = networks_update_peering_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -17182,7 +17183,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_node_group_nodes(project, zone, node_group, node_groups_add_nodes_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}/nodeGroups/{nodeGroup}/addNodes', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes', options) command.request_representation = Google::Apis::ComputeAlpha::NodeGroupsAddNodesRequest::Representation command.request_object = node_groups_add_nodes_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -17265,7 +17266,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_node_group_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/nodeGroups', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/nodeGroups', options) command.response_representation = Google::Apis::ComputeAlpha::NodeGroupAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::NodeGroupAggregatedList command.params['project'] = project unless project.nil? @@ -17319,7 +17320,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_node_group(project, zone, node_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -17371,7 +17372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_node_group_nodes(project, zone, node_group, node_groups_delete_nodes_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}/nodeGroups/{nodeGroup}/deleteNodes', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes', options) command.request_representation = Google::Apis::ComputeAlpha::NodeGroupsDeleteNodesRequest::Representation command.request_object = node_groups_delete_nodes_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -17415,7 +17416,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_group(project, zone, node_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::NodeGroup::Representation command.response_class = Google::Apis::ComputeAlpha::NodeGroup command.params['project'] = project unless project.nil? @@ -17457,7 +17458,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_group_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeGroups/{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? @@ -17510,7 +17511,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_node_group(project, zone, initial_node_count, node_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups', options) command.request_representation = Google::Apis::ComputeAlpha::NodeGroup::Representation command.request_object = node_group_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -17588,7 +17589,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeGroups', options) command.response_representation = Google::Apis::ComputeAlpha::NodeGroupList::Representation command.response_class = Google::Apis::ComputeAlpha::NodeGroupList command.params['project'] = project unless project.nil? @@ -17668,7 +17669,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_group_nodes(project, zone, node_group, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options) command.response_representation = Google::Apis::ComputeAlpha::NodeGroupsListNodes::Representation command.response_class = Google::Apis::ComputeAlpha::NodeGroupsListNodes command.params['project'] = project unless project.nil? @@ -17724,7 +17725,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_node_group(project, zone, node_group, node_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) command.request_representation = Google::Apis::ComputeAlpha::NodeGroup::Representation command.request_object = node_group_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -17768,7 +17769,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_node_group_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}/nodeGroups/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{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 @@ -17821,7 +17822,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_node_group_node_template(project, zone, node_group, node_groups_set_node_template_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}/nodeGroups/{nodeGroup}/setNodeTemplate', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', options) command.request_representation = Google::Apis::ComputeAlpha::NodeGroupsSetNodeTemplateRequest::Representation command.request_object = node_groups_set_node_template_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -17864,7 +17865,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_node_group_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}/nodeGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{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 @@ -17945,7 +17946,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_node_template_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/nodeTemplates', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/nodeTemplates', options) command.response_representation = Google::Apis::ComputeAlpha::NodeTemplateAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::NodeTemplateAggregatedList command.params['project'] = project unless project.nil? @@ -17999,7 +18000,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_node_template(project, region, node_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -18040,7 +18041,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_template(project, region, node_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) command.response_representation = Google::Apis::ComputeAlpha::NodeTemplate::Representation command.response_class = Google::Apis::ComputeAlpha::NodeTemplate command.params['project'] = project unless project.nil? @@ -18082,7 +18083,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_template_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/nodeTemplates/{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? @@ -18133,7 +18134,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_node_template(project, region, node_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/nodeTemplates', options) command.request_representation = Google::Apis::ComputeAlpha::NodeTemplate::Representation command.request_object = node_template_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -18209,7 +18210,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_templates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/nodeTemplates', options) command.response_representation = Google::Apis::ComputeAlpha::NodeTemplateList::Representation command.response_class = Google::Apis::ComputeAlpha::NodeTemplateList command.params['project'] = project unless project.nil? @@ -18254,7 +18255,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_node_template_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -18296,7 +18297,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/nodeTemplates/{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 @@ -18377,7 +18378,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_node_type_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/nodeTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/nodeTypes', options) command.response_representation = Google::Apis::ComputeAlpha::NodeTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::NodeTypeAggregatedList command.params['project'] = project unless project.nil? @@ -18421,7 +18422,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_type(project, zone, node_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes/{nodeType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeTypes/{nodeType}', options) command.response_representation = Google::Apis::ComputeAlpha::NodeType::Representation command.response_class = Google::Apis::ComputeAlpha::NodeType command.params['project'] = project unless project.nil? @@ -18495,7 +18496,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeTypes', options) command.response_representation = Google::Apis::ComputeAlpha::NodeTypeList::Representation command.response_class = Google::Apis::ComputeAlpha::NodeTypeList command.params['project'] = project unless project.nil? @@ -19277,7 +19278,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_packet_mirroring_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/packetMirrorings', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/packetMirrorings', options) command.response_representation = Google::Apis::ComputeAlpha::PacketMirroringAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::PacketMirroringAggregatedList command.params['project'] = project unless project.nil? @@ -19331,7 +19332,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -19371,7 +19372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) command.response_representation = Google::Apis::ComputeAlpha::PacketMirroring::Representation command.response_class = Google::Apis::ComputeAlpha::PacketMirroring command.params['project'] = project unless project.nil? @@ -19421,7 +19422,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_packet_mirroring(project, region, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/packetMirrorings', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings', options) command.request_representation = Google::Apis::ComputeAlpha::PacketMirroring::Representation command.request_object = packet_mirroring_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -19498,7 +19499,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_packet_mirrorings(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/packetMirrorings', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings', options) command.response_representation = Google::Apis::ComputeAlpha::PacketMirroringList::Representation command.response_class = Google::Apis::ComputeAlpha::PacketMirroringList command.params['project'] = project unless project.nil? @@ -19555,7 +19556,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) command.request_representation = Google::Apis::ComputeAlpha::PacketMirroring::Representation command.request_object = packet_mirroring_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -19598,7 +19599,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_packet_mirroring_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings/{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 @@ -19646,7 +19647,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def disable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/disableXpnHost', options) + command = make_simple_command(:post, 'projects/{project}/disableXpnHost', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -19693,7 +19694,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def disable_project_xpn_resource(project, projects_disable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/disableXpnResource', options) + command = make_simple_command(:post, 'projects/{project}/disableXpnResource', options) command.request_representation = Google::Apis::ComputeAlpha::ProjectsDisableXpnResourceRequest::Representation command.request_object = projects_disable_xpn_resource_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -19740,7 +19741,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def enable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/enableXpnHost', options) + command = make_simple_command(:post, 'projects/{project}/enableXpnHost', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -19787,7 +19788,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def enable_project_xpn_resource(project, projects_enable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/enableXpnResource', options) + command = make_simple_command(:post, 'projects/{project}/enableXpnResource', options) command.request_representation = Google::Apis::ComputeAlpha::ProjectsEnableXpnResourceRequest::Representation command.request_object = projects_enable_xpn_resource_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -19823,7 +19824,7 @@ module Google # @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(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}', options) + command = make_simple_command(:get, 'projects/{project}', options) command.response_representation = Google::Apis::ComputeAlpha::Project::Representation command.response_class = Google::Apis::ComputeAlpha::Project command.params['project'] = project unless project.nil? @@ -19857,7 +19858,7 @@ module Google # @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_xpn_host(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/getXpnHost', options) + command = make_simple_command(:get, 'projects/{project}/getXpnHost', options) command.response_representation = Google::Apis::ComputeAlpha::Project::Representation command.response_class = Google::Apis::ComputeAlpha::Project command.params['project'] = project unless project.nil? @@ -19928,7 +19929,7 @@ module Google # @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_xpn_resources(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/getXpnResources', options) + command = make_simple_command(:get, 'projects/{project}/getXpnResources', options) command.response_representation = Google::Apis::ComputeAlpha::ProjectsGetXpnResources::Representation command.response_class = Google::Apis::ComputeAlpha::ProjectsGetXpnResources command.params['project'] = project unless project.nil? @@ -20004,7 +20005,7 @@ module Google # @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_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/listXpnHosts', options) + command = make_simple_command(:post, 'projects/{project}/listXpnHosts', options) command.request_representation = Google::Apis::ComputeAlpha::ProjectsListXpnHostsRequest::Representation command.request_object = projects_list_xpn_hosts_request_object command.response_representation = Google::Apis::ComputeAlpha::XpnHostList::Representation @@ -20056,7 +20057,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_project_disk(project, disk_move_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/moveDisk', options) + command = make_simple_command(:post, 'projects/{project}/moveDisk', options) command.request_representation = Google::Apis::ComputeAlpha::DiskMoveRequest::Representation command.request_object = disk_move_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20104,7 +20105,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_project_instance(project, instance_move_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/moveInstance', options) + command = make_simple_command(:post, 'projects/{project}/moveInstance', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceMoveRequest::Representation command.request_object = instance_move_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20153,7 +20154,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_project_common_instance_metadata(project, metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setCommonInstanceMetadata', options) + command = make_simple_command(:post, 'projects/{project}/setCommonInstanceMetadata', options) command.request_representation = Google::Apis::ComputeAlpha::Metadata::Representation command.request_object = metadata_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20203,7 +20204,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_project_default_network_tier(project, projects_set_default_network_tier_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setDefaultNetworkTier', options) + command = make_simple_command(:post, 'projects/{project}/setDefaultNetworkTier', options) command.request_representation = Google::Apis::ComputeAlpha::ProjectsSetDefaultNetworkTierRequest::Representation command.request_object = projects_set_default_network_tier_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20253,7 +20254,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_project_default_service_account(project, projects_set_default_service_account_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setDefaultServiceAccount', options) + command = make_simple_command(:post, 'projects/{project}/setDefaultServiceAccount', options) command.request_representation = Google::Apis::ComputeAlpha::ProjectsSetDefaultServiceAccountRequest::Representation command.request_object = projects_set_default_service_account_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20303,7 +20304,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_project_usage_export_bucket(project, usage_export_location_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setUsageExportBucket', options) + command = make_simple_command(:post, 'projects/{project}/setUsageExportBucket', options) command.request_representation = Google::Apis::ComputeAlpha::UsageExportLocation::Representation command.request_object = usage_export_location_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20352,7 +20353,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_public_advertised_prefix(project, public_advertised_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) + command = make_simple_command(:delete, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -20389,7 +20390,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_public_advertised_prefix(project, public_advertised_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) + command = make_simple_command(:get, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) command.response_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix::Representation command.response_class = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix command.params['project'] = project unless project.nil? @@ -20436,7 +20437,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_public_advertised_prefix(project, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/publicAdvertisedPrefixes', options) + command = make_simple_command(:post, 'projects/{project}/global/publicAdvertisedPrefixes', options) command.request_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix::Representation command.request_object = public_advertised_prefix_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20509,7 +20510,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_public_advertised_prefixes(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/publicAdvertisedPrefixes', options) + command = make_simple_command(:get, 'projects/{project}/global/publicAdvertisedPrefixes', options) command.response_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList::Representation command.response_class = Google::Apis::ComputeAlpha::PublicAdvertisedPrefixList command.params['project'] = project unless project.nil? @@ -20563,7 +20564,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_public_advertised_prefix(project, public_advertised_prefix, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) + command = make_simple_command(:patch, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options) command.request_representation = Google::Apis::ComputeAlpha::PublicAdvertisedPrefix::Representation command.request_object = public_advertised_prefix_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20645,7 +20646,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_public_delegated_prefix_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/publicDelegatedPrefixes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/publicDelegatedPrefixes', options) command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefixAggregatedList command.params['project'] = project unless project.nil? @@ -20699,7 +20700,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -20739,7 +20740,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_public_delegated_prefix(project, region, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefix command.params['project'] = project unless project.nil? @@ -20789,7 +20790,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_public_delegated_prefix(project, region, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/publicDelegatedPrefixes', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options) command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation command.request_object = public_delegated_prefix_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20865,7 +20866,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_public_delegated_prefixes(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/publicDelegatedPrefixes', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options) command.response_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList::Representation command.response_class = Google::Apis::ComputeAlpha::PublicDelegatedPrefixList command.params['project'] = project unless project.nil? @@ -20922,7 +20923,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_public_delegated_prefix(project, region, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options) command.request_representation = Google::Apis::ComputeAlpha::PublicDelegatedPrefix::Representation command.request_object = public_delegated_prefix_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -20975,7 +20976,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_autoscaler(project, region, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/autoscalers/{autoscaler}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -21015,7 +21016,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/autoscalers/{autoscaler}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.response_class = Google::Apis::ComputeAlpha::Autoscaler command.params['project'] = project unless project.nil? @@ -21065,7 +21066,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_autoscaler(project, region, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/autoscalers', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers', options) command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -21141,7 +21142,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_autoscalers(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/autoscalers', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers', options) command.response_representation = Google::Apis::ComputeAlpha::RegionAutoscalerList::Representation command.response_class = Google::Apis::ComputeAlpha::RegionAutoscalerList command.params['project'] = project unless project.nil? @@ -21198,7 +21199,7 @@ module Google # @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_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/autoscalers', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/autoscalers', options) command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -21241,7 +21242,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_autoscaler_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/autoscalers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers/{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 @@ -21295,7 +21296,7 @@ module Google # @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_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/autoscalers', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/autoscalers', options) command.request_representation = Google::Apis::ComputeAlpha::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -21348,7 +21349,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_backend_service(project, region, backend_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -21388,7 +21389,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.response_class = Google::Apis::ComputeAlpha::BackendService command.params['project'] = project unless project.nil? @@ -21427,7 +21428,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_backend_service_health(project, region, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{backendService}/getHealth', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{backendService}/getHealth', options) command.request_representation = Google::Apis::ComputeAlpha::ResourceGroupReference::Representation command.request_object = resource_group_reference_object command.response_representation = Google::Apis::ComputeAlpha::BackendServiceGroupHealth::Representation @@ -21480,7 +21481,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_backend_service(project, region, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/backendServices', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices', options) command.request_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -21557,7 +21558,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_backend_services(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/backendServices', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices', options) command.response_representation = Google::Apis::ComputeAlpha::BackendServiceList::Representation command.response_class = Google::Apis::ComputeAlpha::BackendServiceList command.params['project'] = project unless project.nil? @@ -21615,7 +21616,7 @@ module Google # @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_backend_service(project, region, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -21658,7 +21659,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_backend_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{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 @@ -21712,7 +21713,7 @@ module Google # @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_backend_service(project, region, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeAlpha::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -21794,7 +21795,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_region_commitment_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/commitments', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/commitments', options) command.response_representation = Google::Apis::ComputeAlpha::CommitmentAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::CommitmentAggregatedList command.params['project'] = project unless project.nil? @@ -21838,7 +21839,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_commitment(project, region, commitment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/commitments/{commitment}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/commitments/{commitment}', options) command.response_representation = Google::Apis::ComputeAlpha::Commitment::Representation command.response_class = Google::Apis::ComputeAlpha::Commitment command.params['project'] = project unless project.nil? @@ -21888,7 +21889,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_commitment(project, region, commitment_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', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments', options) command.request_representation = Google::Apis::ComputeAlpha::Commitment::Representation command.request_object = commitment_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -21964,7 +21965,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_commitments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/commitments', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/commitments', options) command.response_representation = Google::Apis::ComputeAlpha::CommitmentList::Representation command.response_class = Google::Apis::ComputeAlpha::CommitmentList command.params['project'] = project unless project.nil? @@ -22008,7 +22009,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_commitment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/commitments/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{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 @@ -22061,7 +22062,7 @@ module Google # @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_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 = make_simple_command(:post, 'projects/{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 @@ -22104,7 +22105,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/diskTypes/{diskType}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes/{diskType}', options) command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation command.response_class = Google::Apis::ComputeAlpha::DiskType command.params['project'] = project unless project.nil? @@ -22178,7 +22179,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_disk_types(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/diskTypes', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes', options) command.response_representation = Google::Apis::ComputeAlpha::RegionDiskTypeList::Representation command.response_class = Google::Apis::ComputeAlpha::RegionDiskTypeList command.params['project'] = project unless project.nil? @@ -22234,7 +22235,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_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}/disks/{disk}/addResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies', options) command.request_representation = Google::Apis::ComputeAlpha::RegionDisksAddResourcePoliciesRequest::Representation command.request_object = region_disks_add_resource_policies_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -22292,7 +22293,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_region_disk_snapshot(project, region, disk, snapshot_object = nil, guest_flush: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/createSnapshot', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/createSnapshot', options) command.request_representation = Google::Apis::ComputeAlpha::Snapshot::Representation command.request_object = snapshot_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -22349,7 +22350,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_disk(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/disks/{disk}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -22389,7 +22390,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_disk(project, region, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/disks/{disk}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeAlpha::Disk::Representation command.response_class = Google::Apis::ComputeAlpha::Disk command.params['project'] = project unless project.nil? @@ -22431,7 +22432,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_disk_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/disks/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/disks/{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? @@ -22484,7 +22485,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_disk(project, region, disk_object = nil, request_id: nil, source_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks', options) command.request_representation = Google::Apis::ComputeAlpha::Disk::Representation command.request_object = disk_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -22561,7 +22562,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_disks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/disks', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/disks', options) command.response_representation = Google::Apis::ComputeAlpha::DiskList::Representation command.response_class = Google::Apis::ComputeAlpha::DiskList command.params['project'] = project unless project.nil? @@ -22616,7 +22617,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_region_disk_resource_policies(project, region, disk, region_disks_remove_resource_policies_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}/disks/{disk}/removeResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies', options) command.request_representation = Google::Apis::ComputeAlpha::RegionDisksRemoveResourcePoliciesRequest::Representation command.request_object = region_disks_remove_resource_policies_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -22670,7 +22671,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_region_disk(project, region, disk, region_disks_resize_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}/disks/{disk}/resize', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/resize', options) command.request_representation = Google::Apis::ComputeAlpha::RegionDisksResizeRequest::Representation command.request_object = region_disks_resize_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -22714,7 +22715,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_disk_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -22767,7 +22768,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_disk_labels(project, region, resource, region_set_labels_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}/disks/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -22810,7 +22811,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_disk_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{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 @@ -22863,7 +22864,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_health_check_service(project, region, health_check_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -22904,7 +22905,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_health_check_service(project, region, health_check_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) command.response_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation command.response_class = Google::Apis::ComputeAlpha::HealthCheckService command.params['project'] = project unless project.nil? @@ -22954,7 +22955,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_health_check_service(project, region, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/healthCheckServices', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation command.request_object = health_check_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -23031,7 +23032,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_health_check_services(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/healthCheckServices', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices', options) command.response_representation = Google::Apis::ComputeAlpha::HealthCheckServicesList::Representation command.response_class = Google::Apis::ComputeAlpha::HealthCheckServicesList command.params['project'] = project unless project.nil? @@ -23089,7 +23090,7 @@ module Google # @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_health_check_service(project, region, health_check_service, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation command.request_object = health_check_service_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -23132,7 +23133,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_health_check_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices/{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 @@ -23184,7 +23185,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -23225,7 +23226,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.response_class = Google::Apis::ComputeAlpha::HealthCheck command.params['project'] = project unless project.nil? @@ -23275,7 +23276,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_health_check(project, region, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/healthChecks', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -23351,7 +23352,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_health_checks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/healthChecks', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks', options) command.response_representation = Google::Apis::ComputeAlpha::HealthCheckList::Representation command.response_class = Google::Apis::ComputeAlpha::HealthCheckList command.params['project'] = project unless project.nil? @@ -23408,7 +23409,7 @@ module Google # @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_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -23451,7 +23452,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{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 @@ -23505,7 +23506,7 @@ module Google # @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_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -23563,7 +23564,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_in_place_snapshot(project, region, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -23603,7 +23604,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_in_place_snapshot(project, region, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}', options) command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot command.params['project'] = project unless project.nil? @@ -23645,7 +23646,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_in_place_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/inPlaceSnapshots/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/inPlaceSnapshots/{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? @@ -23695,7 +23696,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_in_place_snapshot(project, region, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/inPlaceSnapshots', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots', options) command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation command.request_object = in_place_snapshot_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -23772,7 +23773,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_in_place_snapshots(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/inPlaceSnapshots', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/inPlaceSnapshots', options) command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList command.params['project'] = project unless project.nil? @@ -23817,7 +23818,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_in_place_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/inPlaceSnapshots/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -23871,7 +23872,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_in_place_snapshot_labels(project, region, resource, region_set_labels_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}/inPlaceSnapshots/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -23914,7 +23915,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_in_place_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/inPlaceSnapshots/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots/{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 @@ -23978,7 +23979,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_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}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAbandonInstancesRequest::Representation command.request_object = region_instance_group_managers_abandon_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24021,7 +24022,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersApplyUpdatesRequest::Representation command.request_object = region_instance_group_managers_apply_updates_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24079,7 +24080,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_create_instances_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}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersCreateInstancesRequest::Representation command.request_object = region_instance_group_managers_create_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24133,7 +24134,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_instance_group_manager(project, region, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -24195,7 +24196,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_delete_instances_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}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersDeleteInstancesRequest::Representation command.request_object = region_instance_group_managers_delete_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24238,7 +24239,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_delete_instance_config_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerDeleteInstanceConfigReq::Representation command.request_object = region_instance_group_manager_delete_instance_config_req_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24279,7 +24280,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_instance_group_manager(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManager command.params['project'] = project unless project.nil? @@ -24334,7 +24335,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_instance_group_manager(project, region, instance_group_manager_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', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24411,7 +24412,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_managers(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/instanceGroupManagers', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerList::Representation command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerList command.params['project'] = project unless project.nil? @@ -24494,7 +24495,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_manager_errors(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListErrorsResponse::Representation command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListErrorsResponse command.params['project'] = project unless project.nil? @@ -24577,7 +24578,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstancesResponse::Representation command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstancesResponse command.params['project'] = project unless project.nil? @@ -24659,7 +24660,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstanceConfigsResp::Representation command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstanceConfigsResp command.params['project'] = project unless project.nil? @@ -24720,7 +24721,7 @@ module Google # @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(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24776,7 +24777,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -24839,7 +24840,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def recreate_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_recreate_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}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersRecreateRequest::Representation command.request_object = region_instance_group_managers_recreate_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -24902,7 +24903,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_region_instance_group_manager(project, region, instance_group_manager, size, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -24956,7 +24957,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_manager_auto_healing_policies(project, region, instance_group_manager, region_instance_group_managers_set_auto_healing_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}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSetAutoHealingRequest::Representation command.request_object = region_instance_group_managers_set_auto_healing_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25011,7 +25012,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_manager_instance_template(project, region, instance_group_manager, region_instance_group_managers_set_template_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}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSetTemplateRequest::Representation command.request_object = region_instance_group_managers_set_template_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25066,7 +25067,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_manager_target_pools(project, region, instance_group_manager, region_instance_group_managers_set_target_pools_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}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSetTargetPoolsRequest::Representation command.request_object = region_instance_group_managers_set_target_pools_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25109,7 +25110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_instance_group_manager_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{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 @@ -25166,7 +25167,7 @@ module Google # @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_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25222,7 +25223,7 @@ module Google # @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_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_update_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}/updatePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerUpdateInstanceConfigReq::Representation command.request_object = region_instance_group_manager_update_instance_config_req_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25264,7 +25265,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_instance_group(project, region, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups/{instanceGroup}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::InstanceGroup::Representation command.response_class = Google::Apis::ComputeAlpha::InstanceGroup command.params['project'] = project unless project.nil? @@ -25339,7 +25340,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroups', options) command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupList::Representation command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupList command.params['project'] = project unless project.nil? @@ -25423,7 +25424,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_instances(project, region, instance_group, region_instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstancesRequest::Representation command.request_object = region_instance_groups_list_instances_request_object command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsListInstances::Representation @@ -25481,7 +25482,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_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}/instanceGroups/{instanceGroup}/setNamedPorts', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options) command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsSetNamedPortsRequest::Representation command.request_object = region_instance_groups_set_named_ports_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25524,7 +25525,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_instance_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{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 @@ -25576,7 +25577,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instances/bulkInsert', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options) command.request_representation = Google::Apis::ComputeAlpha::BulkInsertInstanceResource::Representation command.request_object = bulk_insert_instance_resource_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25631,7 +25632,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -25673,7 +25674,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup command.params['project'] = project unless project.nil? @@ -25724,7 +25725,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/networkEndpointGroups', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options) command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation command.request_object = network_endpoint_group_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -25802,7 +25803,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_network_endpoint_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList command.params['project'] = project unless project.nil? @@ -25856,7 +25857,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -25896,7 +25897,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint command.params['project'] = project unless project.nil? @@ -25946,7 +25947,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/notificationEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options) command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation command.request_object = notification_endpoint_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -26022,7 +26023,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_notification_endpoints(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/notificationEndpoints', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options) command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList command.params['project'] = project unless project.nil? @@ -26066,7 +26067,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_notification_endpoint_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{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 @@ -26107,7 +26108,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/operations/{operation}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['operation'] = operation unless operation.nil? @@ -26144,7 +26145,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/operations/{operation}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations/{operation}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -26218,7 +26219,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_operations(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/operations', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options) command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation command.response_class = Google::Apis::ComputeAlpha::OperationList command.params['project'] = project unless project.nil? @@ -26271,7 +26272,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def wait_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/operations/{operation}/wait', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/operations/{operation}/wait', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -26321,7 +26322,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_ssl_certificate(project, region, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -26362,7 +26363,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_ssl_certificate(project, region, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation command.response_class = Google::Apis::ComputeAlpha::SslCertificate command.params['project'] = project unless project.nil? @@ -26412,7 +26413,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_ssl_certificate(project, region, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/sslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates', options) command.request_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation command.request_object = ssl_certificate_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -26489,7 +26490,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_ssl_certificates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/sslCertificates', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslCertificates', options) command.response_representation = Google::Apis::ComputeAlpha::SslCertificateList::Representation command.response_class = Google::Apis::ComputeAlpha::SslCertificateList command.params['project'] = project unless project.nil? @@ -26533,7 +26534,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_ssl_certificate_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates/{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 @@ -26585,7 +26586,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_target_http_proxy(project, region, target_http_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -26626,7 +26627,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_target_http_proxy(project, region, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxy command.params['project'] = project unless project.nil? @@ -26676,7 +26677,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_target_http_proxy(project, region, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies', options) command.request_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation command.request_object = target_http_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -26753,7 +26754,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_target_http_proxies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetHttpProxies', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxyList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxyList command.params['project'] = project unless project.nil? @@ -26808,7 +26809,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_target_http_proxy_url_map(project, region, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -26851,7 +26852,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_target_http_proxy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies/{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 @@ -26903,7 +26904,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_target_https_proxy(project, region, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -26944,7 +26945,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxy command.params['project'] = project unless project.nil? @@ -26994,7 +26995,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_target_https_proxy(project, region, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies', options) command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation command.request_object = target_https_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -27071,7 +27072,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_target_https_proxies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetHttpsProxies', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxyList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxyList command.params['project'] = project unless project.nil? @@ -27126,7 +27127,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_target_https_proxy_ssl_certificates(project, region, target_https_proxy, region_target_https_proxies_set_ssl_certificates_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}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) command.request_representation = Google::Apis::ComputeAlpha::RegionTargetHttpsProxiesSetSslCertificatesRequest::Representation command.request_object = region_target_https_proxies_set_ssl_certificates_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -27180,7 +27181,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_target_https_proxy_url_map(project, region, target_https_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -27223,7 +27224,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_target_https_proxy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{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 @@ -27266,7 +27267,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_url_map(project, region, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -27307,7 +27308,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_url_map(project, region, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.response_class = Google::Apis::ComputeAlpha::UrlMap command.params['project'] = project unless project.nil? @@ -27348,7 +27349,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_url_map(project, region, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/urlMaps', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -27393,7 +27394,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def invalidate_region_url_map_cache(project, region, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache', options) command.request_representation = Google::Apis::ComputeAlpha::CacheInvalidationRule::Representation command.request_object = cache_invalidation_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -27471,7 +27472,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_url_maps(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/urlMaps', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/urlMaps', options) command.response_representation = Google::Apis::ComputeAlpha::UrlMapList::Representation command.response_class = Google::Apis::ComputeAlpha::UrlMapList command.params['project'] = project unless project.nil? @@ -27519,7 +27520,7 @@ module Google # @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_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -27562,7 +27563,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_url_map_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{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 @@ -27606,7 +27607,7 @@ module Google # @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_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -27650,7 +27651,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def validate_region_url_map(project, region, url_map, region_url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/validate', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{urlMap}/validate', options) command.request_representation = Google::Apis::ComputeAlpha::RegionUrlMapsValidateRequest::Representation command.request_object = region_url_maps_validate_request_object command.response_representation = Google::Apis::ComputeAlpha::UrlMapsValidateResponse::Representation @@ -27690,7 +27691,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}', options) command.response_representation = Google::Apis::ComputeAlpha::Region::Representation command.response_class = Google::Apis::ComputeAlpha::Region command.params['project'] = project unless project.nil? @@ -27761,7 +27762,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_regions(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions', options) + command = make_simple_command(:get, 'projects/{project}/regions', options) command.response_representation = Google::Apis::ComputeAlpha::RegionList::Representation command.response_class = Google::Apis::ComputeAlpha::RegionList command.params['project'] = project unless project.nil? @@ -27843,7 +27844,7 @@ module Google # @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, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/reservations', options) + command = make_simple_command(:get, 'projects/{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? @@ -27897,7 +27898,7 @@ module Google # @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 = make_simple_command(:delete, 'projects/{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? @@ -27937,7 +27938,7 @@ module Google # @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 = make_simple_command(:get, 'projects/{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? @@ -27979,7 +27980,7 @@ module Google # @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, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{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? @@ -28030,7 +28031,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -28107,7 +28108,7 @@ module Google # @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, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/reservations', options) + command = make_simple_command(:get, 'projects/{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? @@ -28163,7 +28164,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -28207,7 +28208,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -28249,7 +28250,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -28330,7 +28331,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_resource_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/resourcePolicies', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/resourcePolicies', options) command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicyAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::ResourcePolicyAggregatedList command.params['project'] = project unless project.nil? @@ -28384,7 +28385,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -28424,7 +28425,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation command.response_class = Google::Apis::ComputeAlpha::ResourcePolicy command.params['project'] = project unless project.nil? @@ -28466,7 +28467,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_resource_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{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? @@ -28516,7 +28517,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies', options) command.request_representation = Google::Apis::ComputeAlpha::ResourcePolicy::Representation command.request_object = resource_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -28593,7 +28594,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_resource_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies', options) command.response_representation = Google::Apis::ComputeAlpha::ResourcePolicyList::Representation command.response_class = Google::Apis::ComputeAlpha::ResourcePolicyList command.params['project'] = project unless project.nil? @@ -28638,7 +28639,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -28680,7 +28681,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_resource_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{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 @@ -28761,7 +28762,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_router_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/routers', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/routers', options) command.response_representation = Google::Apis::ComputeAlpha::RouterAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::RouterAggregatedList command.params['project'] = project unless project.nil? @@ -28815,7 +28816,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_router(project, region, router, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/routers/{router}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -28856,7 +28857,7 @@ module Google # @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(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}', options) command.response_representation = Google::Apis::ComputeAlpha::Router::Representation command.response_class = Google::Apis::ComputeAlpha::Router command.params['project'] = project unless project.nil? @@ -28937,7 +28938,7 @@ module Google # @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, nat_name: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getNatMappingInfo', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo', options) command.response_representation = Google::Apis::ComputeAlpha::VmEndpointNatMappingsList::Representation command.response_class = Google::Apis::ComputeAlpha::VmEndpointNatMappingsList command.params['project'] = project unless project.nil? @@ -28982,7 +28983,7 @@ module Google # @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_router_status(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getRouterStatus', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getRouterStatus', options) command.response_representation = Google::Apis::ComputeAlpha::RouterStatusResponse::Representation command.response_class = Google::Apis::ComputeAlpha::RouterStatusResponse command.params['project'] = project unless project.nil? @@ -29032,7 +29033,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_router(project, region, router_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/routers', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers', options) command.request_representation = Google::Apis::ComputeAlpha::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -29108,7 +29109,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_routers(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/routers', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers', options) command.response_representation = Google::Apis::ComputeAlpha::RouterList::Representation command.response_class = Google::Apis::ComputeAlpha::RouterList command.params['project'] = project unless project.nil? @@ -29165,7 +29166,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_router(project, region, router, router_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/routers/{router}', options) command.request_representation = Google::Apis::ComputeAlpha::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -29209,7 +29210,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def preview_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/routers/{router}/preview', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/preview', options) command.request_representation = Google::Apis::ComputeAlpha::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeAlpha::RoutersPreviewResponse::Representation @@ -29251,7 +29252,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_router_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/routers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{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 @@ -29307,7 +29308,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_router(project, region, router, router_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/routers/{router}', options) command.request_representation = Google::Apis::ComputeAlpha::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -29358,7 +29359,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_route(project, route, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/routes/{route}', options) + command = make_simple_command(:delete, 'projects/{project}/global/routes/{route}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -29396,7 +29397,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_route(project, route, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/routes/{route}', options) + command = make_simple_command(:get, 'projects/{project}/global/routes/{route}', options) command.response_representation = Google::Apis::ComputeAlpha::Route::Representation command.response_class = Google::Apis::ComputeAlpha::Route command.params['project'] = project unless project.nil? @@ -29443,7 +29444,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_route(project, route_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/routes', options) + command = make_simple_command(:post, 'projects/{project}/global/routes', options) command.request_representation = Google::Apis::ComputeAlpha::Route::Representation command.request_object = route_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -29516,7 +29517,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_routes(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/routes', options) + command = make_simple_command(:get, 'projects/{project}/global/routes', options) command.response_representation = Google::Apis::ComputeAlpha::RouteList::Representation command.response_class = Google::Apis::ComputeAlpha::RouteList command.params['project'] = project unless project.nil? @@ -29557,7 +29558,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_route_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/routes/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/routes/{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 @@ -29598,7 +29599,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_security_policy_rule(project, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/addRule', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{securityPolicy}/addRule', options) command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation command.request_object = security_policy_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -29648,7 +29649,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_security_policy(project, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/securityPolicies/{securityPolicy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/securityPolicies/{securityPolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -29685,7 +29686,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_security_policy(project, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/securityPolicies/{securityPolicy}', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies/{securityPolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy command.params['project'] = project unless project.nil? @@ -29723,7 +29724,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/securityPolicies/{securityPolicy}/getRule', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies/{securityPolicy}/getRule', options) command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule command.params['project'] = project unless project.nil? @@ -29773,7 +29774,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_security_policy(project, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies', options) command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation command.request_object = security_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -29847,7 +29848,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_security_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/securityPolicies', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies', options) command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyList::Representation command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyList command.params['project'] = project unless project.nil? @@ -29923,7 +29924,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_security_policy_preconfigured_expression_sets(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/securityPolicies/listPreconfiguredExpressionSets', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets', options) command.response_representation = Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation command.response_class = Google::Apis::ComputeAlpha::SecurityPoliciesListPreconfiguredExpressionSetsResponse command.params['project'] = project unless project.nil? @@ -29975,7 +29976,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_security_policy(project, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/securityPolicies/{securityPolicy}', options) + command = make_simple_command(:patch, 'projects/{project}/global/securityPolicies/{securityPolicy}', options) command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation command.request_object = security_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -30019,7 +30020,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/patchRule', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{securityPolicy}/patchRule', options) command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation command.request_object = security_policy_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -30061,7 +30062,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/removeRule', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{securityPolicy}/removeRule', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -30100,7 +30101,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -30139,7 +30140,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_security_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{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 @@ -30190,7 +30191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_service_attachment(project, region, service_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -30230,7 +30231,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_service_attachment(project, region, service_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options) command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation command.response_class = Google::Apis::ComputeAlpha::ServiceAttachment command.params['project'] = project unless project.nil? @@ -30272,7 +30273,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_service_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments/{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? @@ -30323,7 +30324,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_service_attachment(project, region, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/serviceAttachments', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments', options) command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation command.request_object = service_attachment_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -30399,7 +30400,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_service_attachments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments', options) command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachmentList::Representation command.response_class = Google::Apis::ComputeAlpha::ServiceAttachmentList command.params['project'] = project unless project.nil? @@ -30444,7 +30445,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_service_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -30486,7 +30487,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_service_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{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 @@ -30540,7 +30541,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_snapshot(project, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/snapshots/{snapshot}', options) + command = make_simple_command(:delete, 'projects/{project}/global/snapshots/{snapshot}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -30578,7 +30579,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/snapshots/{snapshot}', options) + command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}', options) command.response_representation = Google::Apis::ComputeAlpha::Snapshot::Representation command.response_class = Google::Apis::ComputeAlpha::Snapshot command.params['project'] = project unless project.nil? @@ -30617,7 +30618,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/snapshots/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/snapshots/{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? @@ -30690,7 +30691,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_snapshots(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/snapshots', options) + command = make_simple_command(:get, 'projects/{project}/global/snapshots', options) command.response_representation = Google::Apis::ComputeAlpha::SnapshotList::Representation command.response_class = Google::Apis::ComputeAlpha::SnapshotList command.params['project'] = project unless project.nil? @@ -30732,7 +30733,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_snapshot_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/snapshots/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -30772,7 +30773,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_snapshot_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/snapshots/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -30811,7 +30812,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/snapshots/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/snapshots/{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 @@ -30892,7 +30893,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_ssl_certificate_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/sslCertificates', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/sslCertificates', options) command.response_representation = Google::Apis::ComputeAlpha::SslCertificateAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::SslCertificateAggregatedList command.params['project'] = project unless project.nil? @@ -30944,7 +30945,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_ssl_certificate(project, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:delete, 'projects/{project}/global/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -30982,7 +30983,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation command.response_class = Google::Apis::ComputeAlpha::SslCertificate command.params['project'] = project unless project.nil? @@ -31029,7 +31030,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_ssl_certificate(project, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/global/sslCertificates', options) command.request_representation = Google::Apis::ComputeAlpha::SslCertificate::Representation command.request_object = ssl_certificate_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -31103,7 +31104,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ssl_certificates(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/sslCertificates', options) + command = make_simple_command(:get, 'projects/{project}/global/sslCertificates', options) command.response_representation = Google::Apis::ComputeAlpha::SslCertificateList::Representation command.response_class = Google::Apis::ComputeAlpha::SslCertificateList command.params['project'] = project unless project.nil? @@ -31144,7 +31145,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslCertificates/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/sslCertificates/{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 @@ -31195,7 +31196,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/sslPolicies/{sslPolicy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/sslPolicies/{sslPolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -31233,7 +31234,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/sslPolicies/{sslPolicy}', options) + command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{sslPolicy}', options) command.response_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation command.response_class = Google::Apis::ComputeAlpha::SslPolicy command.params['project'] = project unless project.nil? @@ -31280,7 +31281,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslPolicies', options) + command = make_simple_command(:post, 'projects/{project}/global/sslPolicies', options) command.request_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation command.request_object = ssl_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -31353,7 +31354,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ssl_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/sslPolicies', options) + command = make_simple_command(:get, 'projects/{project}/global/sslPolicies', options) command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesList::Representation command.response_class = Google::Apis::ComputeAlpha::SslPoliciesList command.params['project'] = project unless project.nil? @@ -31429,7 +31430,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ssl_policy_available_features(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/sslPolicies/listAvailableFeatures', options) + command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/listAvailableFeatures', options) command.response_representation = Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse::Representation command.response_class = Google::Apis::ComputeAlpha::SslPoliciesListAvailableFeaturesResponse command.params['project'] = project unless project.nil? @@ -31482,7 +31483,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/sslPolicies/{sslPolicy}', options) + command = make_simple_command(:patch, 'projects/{project}/global/sslPolicies/{sslPolicy}', options) command.request_representation = Google::Apis::ComputeAlpha::SslPolicy::Representation command.request_object = ssl_policy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -31522,7 +31523,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_ssl_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslPolicies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{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 @@ -31602,7 +31603,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_subnetwork_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/subnetworks', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks', options) command.response_representation = Google::Apis::ComputeAlpha::SubnetworkAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::SubnetworkAggregatedList command.params['project'] = project unless project.nil? @@ -31656,7 +31657,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_subnetwork(project, region, subnetwork, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/subnetworks/{subnetwork}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -31708,7 +31709,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def expand_subnetwork_ip_cidr_range(project, region, subnetwork, subnetworks_expand_ip_cidr_range_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}/subnetworks/{subnetwork}/expandIpCidrRange', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange', options) command.request_representation = Google::Apis::ComputeAlpha::SubnetworksExpandIpCidrRangeRequest::Representation command.request_object = subnetworks_expand_ip_cidr_range_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -31751,7 +31752,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{subnetwork}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options) command.response_representation = Google::Apis::ComputeAlpha::Subnetwork::Representation command.response_class = Google::Apis::ComputeAlpha::Subnetwork command.params['project'] = project unless project.nil? @@ -31793,7 +31794,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_subnetwork_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks/{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? @@ -31844,7 +31845,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_subnetwork(project, region, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/subnetworks', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks', options) command.request_representation = Google::Apis::ComputeAlpha::Subnetwork::Representation command.request_object = subnetwork_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -31920,7 +31921,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subnetworks(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/subnetworks', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks', options) command.response_representation = Google::Apis::ComputeAlpha::SubnetworkList::Representation command.response_class = Google::Apis::ComputeAlpha::SubnetworkList command.params['project'] = project unless project.nil? @@ -31996,7 +31997,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subnetwork_usable(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/subnetworks/listUsable', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks/listUsable', options) command.response_representation = Google::Apis::ComputeAlpha::UsableSubnetworksAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::UsableSubnetworksAggregatedList command.params['project'] = project unless project.nil? @@ -32061,7 +32062,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, drain_timeout_seconds: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options) command.request_representation = Google::Apis::ComputeAlpha::Subnetwork::Representation command.request_object = subnetwork_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -32106,7 +32107,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_subnetwork_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation @@ -32160,7 +32161,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_subnetwork_private_ip_google_access(project, region, subnetwork, subnetworks_set_private_ip_google_access_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}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess', options) command.request_representation = Google::Apis::ComputeAlpha::SubnetworksSetPrivateIpGoogleAccessRequest::Representation command.request_object = subnetworks_set_private_ip_google_access_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -32203,7 +32204,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_subnetwork_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{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 @@ -32253,7 +32254,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_grpc_proxy(project, target_grpc_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -32290,7 +32291,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_grpc_proxy(project, target_grpc_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetGrpcProxy::Representation command.response_class = Google::Apis::ComputeAlpha::TargetGrpcProxy command.params['project'] = project unless project.nil? @@ -32337,7 +32338,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_grpc_proxy(project, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetGrpcProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetGrpcProxies', options) command.request_representation = Google::Apis::ComputeAlpha::TargetGrpcProxy::Representation command.request_object = target_grpc_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -32410,7 +32411,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_grpc_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetGrpcProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetGrpcProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetGrpcProxyList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetGrpcProxyList command.params['project'] = project unless project.nil? @@ -32464,7 +32465,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_target_grpc_proxy(project, target_grpc_proxy, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command = make_simple_command(:patch, 'projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) command.request_representation = Google::Apis::ComputeAlpha::TargetGrpcProxy::Representation command.request_object = target_grpc_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -32504,7 +32505,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_grpc_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetGrpcProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetGrpcProxies/{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 @@ -32585,7 +32586,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_target_http_proxy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/targetHttpProxies', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetHttpProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxyAggregatedList command.params['project'] = project unless project.nil? @@ -32637,7 +32638,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_http_proxy(project, target_http_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -32675,7 +32676,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxy command.params['project'] = project unless project.nil? @@ -32722,7 +32723,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_http_proxy(project, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpProxies', options) command.request_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation command.request_object = target_http_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -32796,7 +32797,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_http_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetHttpProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpProxyList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpProxyList command.params['project'] = project unless project.nil? @@ -32848,7 +32849,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -32888,7 +32889,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpProxies/{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 @@ -32969,7 +32970,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_target_https_proxy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/targetHttpsProxies', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetHttpsProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxyAggregatedList command.params['project'] = project unless project.nil? @@ -33021,7 +33022,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_https_proxy(project, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -33059,7 +33060,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxy command.params['project'] = project unless project.nil? @@ -33106,7 +33107,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_https_proxy(project, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies', options) command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxy::Representation command.request_object = target_https_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33180,7 +33181,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_https_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetHttpsProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpsProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetHttpsProxyList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetHttpsProxyList command.params['project'] = project unless project.nil? @@ -33233,7 +33234,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_certificate_map(project, target_https_proxy, target_https_proxies_set_certificate_map_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setCertificateMap', options) command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxiesSetCertificateMapRequest::Representation command.request_object = target_https_proxies_set_certificate_map_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33285,7 +33286,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_quic_override(project, target_https_proxy, target_https_proxies_set_quic_override_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride', options) command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxiesSetQuicOverrideRequest::Representation command.request_object = target_https_proxies_set_quic_override_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33336,7 +33337,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_ssl_certificates(project, target_https_proxy, target_https_proxies_set_ssl_certificates_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) command.request_representation = Google::Apis::ComputeAlpha::TargetHttpsProxiesSetSslCertificatesRequest::Representation command.request_object = target_https_proxies_set_ssl_certificates_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33391,7 +33392,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_ssl_policy(project, target_https_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::SslPolicyReference::Representation command.request_object = ssl_policy_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33442,7 +33443,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_url_map(project, target_https_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33482,7 +33483,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_https_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies/{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 @@ -33562,7 +33563,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_target_instance_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/targetInstances', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetInstances', options) command.response_representation = Google::Apis::ComputeAlpha::TargetInstanceAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetInstanceAggregatedList command.params['project'] = project unless project.nil? @@ -33616,7 +33617,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_instance(project, zone, target_instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/targetInstances/{targetInstance}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -33657,7 +33658,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances/{targetInstance}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetInstance::Representation command.response_class = Google::Apis::ComputeAlpha::TargetInstance command.params['project'] = project unless project.nil? @@ -33707,7 +33708,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_instance(project, zone, target_instance_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances', options) command.request_representation = Google::Apis::ComputeAlpha::TargetInstance::Representation command.request_object = target_instance_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33784,7 +33785,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_instances(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/targetInstances', options) command.response_representation = Google::Apis::ComputeAlpha::TargetInstanceList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetInstanceList command.params['project'] = project unless project.nil? @@ -33828,7 +33829,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_instance_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}/targetInstances/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances/{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 @@ -33881,7 +33882,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_target_pool_health_check(project, region, target_pool, target_pools_add_health_check_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}/targetPools/{targetPool}/addHealthCheck', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', options) command.request_representation = Google::Apis::ComputeAlpha::TargetPoolsAddHealthCheckRequest::Representation command.request_object = target_pools_add_health_check_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -33935,7 +33936,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_target_pool_instance(project, region, target_pool, target_pools_add_instance_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}/targetPools/{targetPool}/addInstance', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance', options) command.request_representation = Google::Apis::ComputeAlpha::TargetPoolsAddInstanceRequest::Representation command.request_object = target_pools_add_instance_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34017,7 +34018,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_target_pool_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/targetPools', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetPools', options) command.response_representation = Google::Apis::ComputeAlpha::TargetPoolAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetPoolAggregatedList command.params['project'] = project unless project.nil? @@ -34071,7 +34072,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_pool(project, region, target_pool, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetPools/{targetPool}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetPools/{targetPool}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -34112,7 +34113,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetPools/{targetPool}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetPools/{targetPool}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetPool::Representation command.response_class = Google::Apis::ComputeAlpha::TargetPool command.params['project'] = project unless project.nil? @@ -34153,7 +34154,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_pool_health(project, region, target_pool, instance_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/getHealth', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth', options) command.request_representation = Google::Apis::ComputeAlpha::InstanceReference::Representation command.request_object = instance_reference_object command.response_representation = Google::Apis::ComputeAlpha::TargetPoolInstanceHealth::Representation @@ -34205,7 +34206,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_pool(project, region, target_pool_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools', options) command.request_representation = Google::Apis::ComputeAlpha::TargetPool::Representation command.request_object = target_pool_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34281,7 +34282,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_pools(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetPools', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetPools', options) command.response_representation = Google::Apis::ComputeAlpha::TargetPoolList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetPoolList command.params['project'] = project unless project.nil? @@ -34336,7 +34337,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_target_pool_health_check(project, region, target_pool, target_pools_remove_health_check_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}/targetPools/{targetPool}/removeHealthCheck', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', options) command.request_representation = Google::Apis::ComputeAlpha::TargetPoolsRemoveHealthCheckRequest::Representation command.request_object = target_pools_remove_health_check_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34390,7 +34391,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_target_pool_instance(project, region, target_pool, target_pools_remove_instance_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}/targetPools/{targetPool}/removeInstance', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance', options) command.request_representation = Google::Apis::ComputeAlpha::TargetPoolsRemoveInstanceRequest::Representation command.request_object = target_pools_remove_instance_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34446,7 +34447,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_pool_backup(project, region, target_pool, target_reference_object = nil, failover_ratio: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/setBackup', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup', options) command.request_representation = Google::Apis::ComputeAlpha::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34490,7 +34491,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_pool_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{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 @@ -34540,7 +34541,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_ssl_proxy(project, target_ssl_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetSslProxies/{targetSslProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetSslProxies/{targetSslProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -34578,7 +34579,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetSslProxies/{targetSslProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetSslProxies/{targetSslProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetSslProxy::Representation command.response_class = Google::Apis::ComputeAlpha::TargetSslProxy command.params['project'] = project unless project.nil? @@ -34625,7 +34626,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_ssl_proxy(project, target_ssl_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies', options) command.request_representation = Google::Apis::ComputeAlpha::TargetSslProxy::Representation command.request_object = target_ssl_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34699,7 +34700,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_ssl_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetSslProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetSslProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetSslProxyList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetSslProxyList command.params['project'] = project unless project.nil? @@ -34751,7 +34752,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_backend_service(project, target_ssl_proxy, target_ssl_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options) command.request_representation = Google::Apis::ComputeAlpha::TargetSslProxiesSetBackendServiceRequest::Representation command.request_object = target_ssl_proxies_set_backend_service_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34803,7 +34804,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_certificate_map(project, target_ssl_proxy, target_ssl_proxies_set_certificate_map_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setCertificateMap', options) command.request_representation = Google::Apis::ComputeAlpha::TargetSslProxiesSetCertificateMapRequest::Representation command.request_object = target_ssl_proxies_set_certificate_map_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34854,7 +34855,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_proxy_header(project, target_ssl_proxy, target_ssl_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options) command.request_representation = Google::Apis::ComputeAlpha::TargetSslProxiesSetProxyHeaderRequest::Representation command.request_object = target_ssl_proxies_set_proxy_header_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34905,7 +34906,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_ssl_certificates(project, target_ssl_proxy, target_ssl_proxies_set_ssl_certificates_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options) command.request_representation = Google::Apis::ComputeAlpha::TargetSslProxiesSetSslCertificatesRequest::Representation command.request_object = target_ssl_proxies_set_ssl_certificates_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -34960,7 +34961,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_ssl_policy(project, target_ssl_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy', options) command.request_representation = Google::Apis::ComputeAlpha::SslPolicyReference::Representation command.request_object = ssl_policy_reference_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -35000,7 +35001,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_ssl_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{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 @@ -35049,7 +35050,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetTcpProxies/{targetTcpProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -35087,7 +35088,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetTcpProxies/{targetTcpProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxy command.params['project'] = project unless project.nil? @@ -35134,7 +35135,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetTcpProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options) command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation command.request_object = target_tcp_proxy_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -35208,7 +35209,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_tcp_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetTcpProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options) command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxyList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxyList command.params['project'] = project unless project.nil? @@ -35260,7 +35261,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_tcp_proxy_backend_service(project, target_tcp_proxy, target_tcp_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options) + command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options) command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxiesSetBackendServiceRequest::Representation command.request_object = target_tcp_proxies_set_backend_service_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -35311,7 +35312,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_tcp_proxy_proxy_header(project, target_tcp_proxy, target_tcp_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options) + command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options) command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxiesSetProxyHeaderRequest::Representation command.request_object = target_tcp_proxies_set_proxy_header_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -35351,7 +35352,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_tcp_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetTcpProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{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 @@ -35431,7 +35432,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_target_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/targetVpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetVpnGateways', options) command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList command.params['project'] = project unless project.nil? @@ -35485,7 +35486,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -35526,7 +35527,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGateway::Representation command.response_class = Google::Apis::ComputeAlpha::TargetVpnGateway command.params['project'] = project unless project.nil? @@ -35576,7 +35577,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_vpn_gateway(project, region, target_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options) command.request_representation = Google::Apis::ComputeAlpha::TargetVpnGateway::Representation command.request_object = target_vpn_gateway_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -35653,7 +35654,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetVpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options) command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGatewayList::Representation command.response_class = Google::Apis::ComputeAlpha::TargetVpnGatewayList command.params['project'] = project unless project.nil? @@ -35709,7 +35710,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_vpn_gateway_labels(project, region, resource, region_set_labels_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}/targetVpnGateways/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -35752,7 +35753,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{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 @@ -35834,7 +35835,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_url_map_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/urlMaps', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/urlMaps', options) command.response_representation = Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::UrlMapsAggregatedList command.params['project'] = project unless project.nil? @@ -35886,7 +35887,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_url_map(project, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:delete, 'projects/{project}/global/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -35924,7 +35925,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_url_map(project, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:get, 'projects/{project}/global/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.response_class = Google::Apis::ComputeAlpha::UrlMap command.params['project'] = project unless project.nil? @@ -35971,7 +35972,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_url_map(project, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -36022,7 +36023,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def invalidate_url_map_cache(project, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/invalidateCache', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/invalidateCache', options) command.request_representation = Google::Apis::ComputeAlpha::CacheInvalidationRule::Representation command.request_object = cache_invalidation_rule_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -36096,7 +36097,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_url_maps(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/urlMaps', options) + command = make_simple_command(:get, 'projects/{project}/global/urlMaps', options) command.response_representation = Google::Apis::ComputeAlpha::UrlMapList::Representation command.response_class = Google::Apis::ComputeAlpha::UrlMapList command.params['project'] = project unless project.nil? @@ -36150,7 +36151,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:patch, 'projects/{project}/global/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -36190,7 +36191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{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 @@ -36240,7 +36241,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:put, 'projects/{project}/global/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -36281,7 +36282,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def validate_url_map(project, url_map, url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/validate', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/validate', options) command.request_representation = Google::Apis::ComputeAlpha::UrlMapsValidateRequest::Representation command.request_object = url_maps_validate_request_object command.response_representation = Google::Apis::ComputeAlpha::UrlMapsValidateResponse::Representation @@ -36361,7 +36362,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/vpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/vpnGateways', options) command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList command.params['project'] = project unless project.nil? @@ -36415,7 +36416,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -36456,7 +36457,7 @@ module Google # @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(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}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options) command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation command.response_class = Google::Apis::ComputeAlpha::VpnGateway command.params['project'] = project unless project.nil? @@ -36495,7 +36496,7 @@ module Google # @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 = make_simple_command(:get, 'projects/{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? @@ -36545,7 +36546,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options) command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation command.request_object = vpn_gateway_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -36621,7 +36622,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/vpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options) command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList command.params['project'] = project unless project.nil? @@ -36677,7 +36678,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_vpn_gateway_labels(project, region, resource, region_set_labels_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}/vpnGateways/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -36720,7 +36721,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{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 @@ -36801,7 +36802,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_vpn_tunnel_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/aggregated/vpnTunnels', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options) command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList::Representation command.response_class = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList command.params['project'] = project unless project.nil? @@ -36855,7 +36856,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -36896,7 +36897,7 @@ module Google # @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_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) command.response_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation command.response_class = Google::Apis::ComputeAlpha::VpnTunnel command.params['project'] = project unless project.nil? @@ -36946,7 +36947,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/vpnTunnels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options) command.request_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation command.request_object = vpn_tunnel_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -37023,7 +37024,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_vpn_tunnels(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/vpnTunnels', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options) command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelList::Representation command.response_class = Google::Apis::ComputeAlpha::VpnTunnelList command.params['project'] = project unless project.nil? @@ -37079,7 +37080,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_vpn_tunnel_labels(project, region, resource, region_set_labels_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}/vpnTunnels/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -37122,7 +37123,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{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 @@ -37179,7 +37180,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_zone_in_place_snapshot(project, zone, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -37219,7 +37220,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_in_place_snapshot(project, zone, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options) command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot command.params['project'] = project unless project.nil? @@ -37261,7 +37262,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_in_place_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{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? @@ -37311,7 +37312,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_zone_in_place_snapshot(project, zone, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/inPlaceSnapshots', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options) command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation command.request_object = in_place_snapshot_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -37388,7 +37389,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_in_place_snapshots(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/inPlaceSnapshots', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options) command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList command.params['project'] = project unless project.nil? @@ -37433,7 +37434,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_zone_in_place_snapshot_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}/inPlaceSnapshots/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{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 @@ -37487,7 +37488,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_zone_in_place_snapshot_labels(project, zone, resource, zone_set_labels_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}/inPlaceSnapshots/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation command.request_object = zone_set_labels_request_object command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation @@ -37530,7 +37531,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_zone_in_place_snapshot_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}/inPlaceSnapshots/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{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 @@ -37571,7 +37572,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/operations/{operation}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['operation'] = operation unless operation.nil? @@ -37608,7 +37609,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations/{operation}', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -37682,7 +37683,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_operations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/operations', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations', options) command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation command.response_class = Google::Apis::ComputeAlpha::OperationList command.params['project'] = project unless project.nil? @@ -37735,7 +37736,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def wait_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/operations/{operation}/wait', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/operations/{operation}/wait', options) command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation command.response_class = Google::Apis::ComputeAlpha::Operation command.params['project'] = project unless project.nil? @@ -37773,7 +37774,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}', options) command.response_representation = Google::Apis::ComputeAlpha::Zone::Representation command.response_class = Google::Apis::ComputeAlpha::Zone command.params['project'] = project unless project.nil? @@ -37844,7 +37845,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zones(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones', options) + command = make_simple_command(:get, 'projects/{project}/zones', options) command.response_representation = Google::Apis::ComputeAlpha::ZoneList::Representation command.response_class = Google::Apis::ComputeAlpha::ZoneList command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 0361d8bb3..50ece4f65 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 = '20200704' + REVISION = '20200719' # 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 6e7450f51..07e58a7c6 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -2549,6 +2549,11 @@ module Google # @return [String] attr_accessor :creation_timestamp + # Headers that the HTTP/S load balancer should add to proxied responses. + # Corresponds to the JSON property `customResponseHeaders` + # @return [Array] + attr_accessor :custom_response_headers + # An optional textual description of the resource; provided by the client when # the resource is created. # Corresponds to the JSON property `description` @@ -2595,6 +2600,7 @@ module Google @bucket_name = args[:bucket_name] if args.key?(:bucket_name) @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers) @description = args[:description] if args.key?(:description) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @id = args[:id] if args.key?(:id) @@ -2608,6 +2614,66 @@ module Google class BackendBucketCdnPolicy include Google::Apis::Core::Hashable + # + # Corresponds to the JSON property `cacheMode` + # @return [String] + attr_accessor :cache_mode + + # Specifies a separate client (e.g. browser client) TTL, separate from the TTL + # for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL + # for both Cloud CDN and the client-facing response. The maximum allowed value + # is 86400s (1 day). + # Corresponds to the JSON property `clientTtl` + # @return [Fixnum] + attr_accessor :client_ttl + + # Specifies the default TTL for cached content served by this origin for + # responses that do not have an existing valid TTL (max-age or s-max-age). + # Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables + # caching for that status code. The value of defaultTTL cannot be set to a value + # greater than that of maxTTL, but can be equal. When the cacheMode is set to + # FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. + # The maximum allowed value is 31,622,400s (1 year), noting that infrequently + # accessed objects may be evicted from the cache before the defined TTL. + # Corresponds to the JSON property `defaultTtl` + # @return [Fixnum] + attr_accessor :default_ttl + + # Specifies the maximum allowed TTL for cached content served by this origin. + # Cache directives that attempt to set a max-age or s-maxage higher than this, + # or an Expires header more than maxTTL seconds in the future will be capped at + # the value of maxTTL, as if it were the value of an s-maxage Cache-Control + # directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? + # disables caching for that status code. The maximum allowed value is 31,622, + # 400s (1 year), noting that infrequently accessed objects may be evicted from + # the cache before the defined TTL. + # Corresponds to the JSON property `maxTtl` + # @return [Fixnum] + attr_accessor :max_ttl + + # Negative caching allows per-status code TTLs to be set, in order to apply fine- + # grained caching for common errors or redirects. This can reduce the load on + # your origin and improve end-user experience by reducing response latency. By + # default, Cloud CDN will apply the following default TTLs to these status codes: + # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not + # Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method + # Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can + # be overridden in negative_caching_policy + # Corresponds to the JSON property `negativeCaching` + # @return [Boolean] + attr_accessor :negative_caching + alias_method :negative_caching?, :negative_caching + + # Sets a cache TTL for the specified HTTP status code. negative_caching must be + # enabled to configure negative_caching_policy. Omitting the policy and leaving + # negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that + # when specifying an explicit negative_caching_policy, you should take care to + # specify a cache TTL for all response codes that you wish to cache. Cloud CDN + # will not apply any default negative caching when a policy exists. + # Corresponds to the JSON property `negativeCachingPolicys` + # @return [Array] + attr_accessor :negative_caching_policys + # Maximum number of seconds the response to a signed URL request will be # considered fresh. After this time period, the response will be revalidated # before being served. Defaults to 1hr (3600s). When serving responses to signed @@ -2630,11 +2696,48 @@ module Google # Update properties of this object def update!(**args) + @cache_mode = args[:cache_mode] if args.key?(:cache_mode) + @client_ttl = args[:client_ttl] if args.key?(:client_ttl) + @default_ttl = args[:default_ttl] if args.key?(:default_ttl) + @max_ttl = args[:max_ttl] if args.key?(:max_ttl) + @negative_caching = args[:negative_caching] if args.key?(:negative_caching) + @negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys) @signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec) @signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names) end end + # Specify CDN TTLs for response error codes. + class BackendBucketCdnPolicyNegativeCachingPolicy + include Google::Apis::Core::Hashable + + # The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, + # 308, 404, 405, 410, 414, 451 and 501 are can be specified as values, and you + # cannot specify a status code more than once. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # The TTL (in seconds) to cache responses with the corresponding status code for. + # A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching + # for that status code. The maximum allowed value is 1800s (30 minutes), noting + # that infrequently accessed objects may be evicted from the cache before the + # defined TTL. + # Corresponds to the JSON property `ttl` + # @return [Fixnum] + attr_accessor :ttl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @ttl = args[:ttl] if args.key?(:ttl) + end + end + # Contains a list of BackendBucket resources. class BackendBucketList include Google::Apis::Core::Hashable @@ -2809,6 +2912,11 @@ module Google # @return [Array] attr_accessor :custom_request_headers + # Headers that the HTTP/S load balancer should add to proxied responses. + # Corresponds to the JSON property `customResponseHeaders` + # @return [Array] + attr_accessor :custom_response_headers + # An optional description of this resource. Provide this property when you # create the resource. # Corresponds to the JSON property `description` @@ -2848,10 +2956,10 @@ module Google # The list of URLs to the healthChecks, httpHealthChecks (legacy), or # httpsHealthChecks (legacy) resource for health checking this backend service. # Not all backend services support legacy health checks. See Load balancer - # guide. Currently at most one health check can be specified. Backend services - # with instance group or zonal NEG backends must have a health check. Backend - # services with internet NEG backends must not have a health check. A health - # check must + # guide. Currently, at most one health check can be specified for each backend + # service. Backend services with instance group or zonal NEG backends must have + # a health check. Backend services with internet or serverless NEG backends must + # not have a health check. # Corresponds to the JSON property `healthChecks` # @return [Array] attr_accessor :health_checks @@ -2960,8 +3068,8 @@ module Google attr_accessor :port_name # The protocol this BackendService uses to communicate with backends. - # Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP. depending on the - # chosen load balancer or Traffic Director configuration. Refer to the + # Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on + # the chosen load balancer or Traffic Director configuration. Refer to the # documentation for the load balancer or for Traffic Director for more # information. # Corresponds to the JSON property `protocol` @@ -3027,6 +3135,7 @@ module Google @consistent_hash = args[:consistent_hash] if args.key?(:consistent_hash) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers) + @custom_response_headers = args[:custom_response_headers] if args.key?(:custom_response_headers) @description = args[:description] if args.key?(:description) @enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn) @failover_policy = args[:failover_policy] if args.key?(:failover_policy) @@ -3180,6 +3289,66 @@ module Google # @return [Google::Apis::ComputeBeta::CacheKeyPolicy] attr_accessor :cache_key_policy + # + # Corresponds to the JSON property `cacheMode` + # @return [String] + attr_accessor :cache_mode + + # Specifies a separate client (e.g. browser client) TTL, separate from the TTL + # for Cloud CDN?s edge caches. Leaving this empty will use the same cache TTL + # for both Cloud CDN and the client-facing response. The maximum allowed value + # is 86400s (1 day). + # Corresponds to the JSON property `clientTtl` + # @return [Fixnum] + attr_accessor :client_ttl + + # Specifies the default TTL for cached content served by this origin for + # responses that do not have an existing valid TTL (max-age or s-max-age). + # Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? disables + # caching for that status code. The value of defaultTTL cannot be set to a value + # greater than that of maxTTL, but can be equal. When the cacheMode is set to + # FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. + # The maximum allowed value is 31,622,400s (1 year), noting that infrequently + # accessed objects may be evicted from the cache before the defined TTL. + # Corresponds to the JSON property `defaultTtl` + # @return [Fixnum] + attr_accessor :default_ttl + + # Specifies the maximum allowed TTL for cached content served by this origin. + # Cache directives that attempt to set a max-age or s-maxage higher than this, + # or an Expires header more than maxTTL seconds in the future will be capped at + # the value of maxTTL, as if it were the value of an s-maxage Cache-Control + # directive. Setting a TTL of ?0? means ?always revalidate? and a value of ?-1? + # disables caching for that status code. The maximum allowed value is 31,622, + # 400s (1 year), noting that infrequently accessed objects may be evicted from + # the cache before the defined TTL. + # Corresponds to the JSON property `maxTtl` + # @return [Fixnum] + attr_accessor :max_ttl + + # Negative caching allows per-status code TTLs to be set, in order to apply fine- + # grained caching for common errors or redirects. This can reduce the load on + # your origin and improve end-user experience by reducing response latency. By + # default, Cloud CDN will apply the following default TTLs to these status codes: + # HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not + # Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method + # Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can + # be overridden in negative_caching_policy + # Corresponds to the JSON property `negativeCaching` + # @return [Boolean] + attr_accessor :negative_caching + alias_method :negative_caching?, :negative_caching + + # Sets a cache TTL for the specified HTTP status code. negative_caching must be + # enabled to configure negative_caching_policy. Omitting the policy and leaving + # negative_caching enabled will use Cloud CDN?s default cache TTLs. Note that + # when specifying an explicit negative_caching_policy, you should take care to + # specify a cache TTL for all response codes that you wish to cache. Cloud CDN + # will not apply any default negative caching when a policy exists. + # Corresponds to the JSON property `negativeCachingPolicys` + # @return [Array] + attr_accessor :negative_caching_policys + # Maximum number of seconds the response to a signed URL request will be # considered fresh. After this time period, the response will be revalidated # before being served. Defaults to 1hr (3600s). When serving responses to signed @@ -3203,11 +3372,48 @@ module Google # Update properties of this object def update!(**args) @cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy) + @cache_mode = args[:cache_mode] if args.key?(:cache_mode) + @client_ttl = args[:client_ttl] if args.key?(:client_ttl) + @default_ttl = args[:default_ttl] if args.key?(:default_ttl) + @max_ttl = args[:max_ttl] if args.key?(:max_ttl) + @negative_caching = args[:negative_caching] if args.key?(:negative_caching) + @negative_caching_policys = args[:negative_caching_policys] if args.key?(:negative_caching_policys) @signed_url_cache_max_age_sec = args[:signed_url_cache_max_age_sec] if args.key?(:signed_url_cache_max_age_sec) @signed_url_key_names = args[:signed_url_key_names] if args.key?(:signed_url_key_names) end end + # Specify CDN TTLs for response error codes. + class BackendServiceCdnPolicyNegativeCachingPolicy + include Google::Apis::Core::Hashable + + # The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, + # 308, 404, 405, 410, 414, 451 and 501 are can be specified as values, and you + # cannot specify a status code more than once. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # The TTL (in seconds) to cache responses with the corresponding status code for. + # A TTL of ?0? means ?always revalidate? and a value of ?-1? disables caching + # for that status code. The maximum allowed value is 1800s (30 minutes), noting + # that infrequently accessed objects may be evicted from the cache before the + # defined TTL. + # Corresponds to the JSON property `ttl` + # @return [Fixnum] + attr_accessor :ttl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @ttl = args[:ttl] if args.key?(:ttl) + end + end + # Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover # or failback, this field indicates whether connection draining will be honored. # GCP has a fixed connection draining timeout of 10 minutes. A setting of true @@ -4071,6 +4277,15 @@ module Google class Commitment include Google::Apis::Core::Hashable + # The category of the commitment. Category MACHINE specifies commitments + # composed of machine resources such as VCPU or MEMORY, listed in resources. + # Category LICENSE specifies commitments composed of software licenses, listed + # in licenseResources. Note that only MACHINE commitments should have a Type + # specified. + # Corresponds to the JSON property `category` + # @return [String] + attr_accessor :category + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -4098,6 +4313,11 @@ module Google # @return [String] attr_accessor :kind + # Commitment for a particular license resource. + # Corresponds to the JSON property `licenseResource` + # @return [Google::Apis::ComputeBeta::LicenseResourceCommitment] + attr_accessor :license_resource + # 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- @@ -4167,11 +4387,13 @@ module Google # Update properties of this object def update!(**args) + @category = args[:category] if args.key?(:category) @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) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @license_resource = args[:license_resource] if args.key?(:license_resource) @name = args[:name] if args.key?(:name) @plan = args[:plan] if args.key?(:plan) @region = args[:region] if args.key?(:region) @@ -5031,12 +5253,11 @@ module Google # @return [String] attr_accessor :self_link - # Size of the persistent disk, specified in GB. You can specify this field when - # creating a persistent disk using the sourceImage or sourceSnapshot parameter, - # or specify it alone to create an empty persistent disk. - # If you specify this field along with sourceImage or sourceSnapshot, the value - # of sizeGb must not be less than the size of the sourceImage or the size of the - # snapshot. Acceptable values are 1 to 65536, inclusive. + # Size, in GB, of the persistent disk. You can specify this field when creating + # a persistent disk using the sourceImage, sourceSnapshot, or sourceDisk + # parameter, or specify it alone to create an empty persistent disk. + # If you specify this field along with a source, the value of sizeGb must not be + # less than the size of the source. Acceptable values are 1 to 65536, inclusive. # Corresponds to the JSON property `sizeGb` # @return [Fixnum] attr_accessor :size_gb @@ -7350,13 +7571,14 @@ module Google # that points to a target proxy or a target pool. Do not use with a forwarding # rule that points to a backend service. This field is used along with the # target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, - # TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. + # TargetTcpProxy, TargetGrpcProxy, TargetVpnGateway, TargetPool, TargetInstance. # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed # to ports in the specified range will be forwarded to target. Forwarding rules # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. # Some types of forwarding target have constraints on the acceptable ports: # - TargetHttpProxy: 80, 8080 # - TargetHttpsProxy: 443 + # - TargetGrpcProxy: Any ports # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, # 1883, 5222 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, @@ -7426,8 +7648,8 @@ module Google # forwarding rules, this target must live in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy is - # valid, not targetHttpsProxy. + # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy and + # targetGrpcProxy are valid, not targetHttpsProxy. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -10031,7 +10253,11 @@ module Google # @return [Google::Apis::ComputeBeta::HttpHeaderAction] attr_accessor :header_action - # + # The list of criteria for matching attributes of a request to this routeRule. + # This list has OR semantics: the request matches this routeRule when any of the + # matchRules are satisfied. However predicates within a given matchRule have AND + # semantics. All predicates within a matchRule must match for the request to + # match the rule. # Corresponds to the JSON property `matchRules` # @return [Array] attr_accessor :match_rules @@ -10059,6 +10285,8 @@ module Google # routeAction cannot contain any weightedBackendServices. # Only one of urlRedirect, service or routeAction.weightedBackendService must be # set. + # UrlMaps for external HTTP(S) load balancers support only the urlRewrite action + # within a routeRule's routeAction. # Corresponds to the JSON property `routeAction` # @return [Google::Apis::ComputeBeta::HttpRouteAction] attr_accessor :route_action @@ -16227,6 +16455,37 @@ module Google end end + # Commitment for a particular license resource. + class LicenseResourceCommitment + include Google::Apis::Core::Hashable + + # The number of licenses purchased. + # Corresponds to the JSON property `amount` + # @return [Fixnum] + attr_accessor :amount + + # Specifies the core range of the instance for which this license applies. + # Corresponds to the JSON property `coresPerLicense` + # @return [String] + attr_accessor :cores_per_license + + # Any applicable license URI. + # Corresponds to the JSON property `license` + # @return [String] + attr_accessor :license + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @cores_per_license = args[:cores_per_license] if args.key?(:cores_per_license) + @license = args[:license] if args.key?(:license) + end + end + # class LicenseResourceRequirements include Google::Apis::Core::Hashable @@ -17774,10 +18033,11 @@ module Google # Represents a collection of network endpoints. # A network endpoint group (NEG) defines how a set of endpoints should be # reached, whether they are reachable, and where they are located. For more - # information about using NEGs, see Setting up internet NEGs or Setting up - # zonal NEGs. (== resource_for `$api_version`.networkEndpointGroups ==) (== - # resource_for `$api_version`.globalNetworkEndpointGroups ==) (== resource_for `$ - # api_version`.regionNetworkEndpointGroups ==) + # information about using NEGs, see Setting up internet NEGs, Setting up zonal + # NEGs, or Setting up serverless NEGs. (== resource_for `$api_version`. + # networkEndpointGroups ==) (== resource_for `$api_version`. + # globalNetworkEndpointGroups ==) (== resource_for `$api_version`. + # regionNetworkEndpointGroups ==) class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -17863,7 +18123,9 @@ module Google # @return [String] attr_accessor :network - # Type of network endpoints in this network endpoint group. + # Type of network endpoints in this network endpoint group. Can be one of + # GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, + # or SERVERLESS. # Corresponds to the JSON property `networkEndpointType` # @return [String] attr_accessor :network_endpoint_type @@ -32440,7 +32702,7 @@ module Google # The URL of the HttpHealthCheck resource. A member instance in this pool is # considered healthy if and only if the health checks pass. An empty list means - # all member instances will be considered healthy at all times. Only + # all member instances will be considered healthy at all times. Only legacy # HttpHealthChecks are supported. Only one health check may be specified. # Corresponds to the JSON property `healthChecks` # @return [Array] diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 66d4cd7a8..bb39f368a 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -328,6 +328,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendBucketCdnPolicyNegativeCachingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendBucketList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -376,6 +382,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendServiceCdnPolicyNegativeCachingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendServiceFailoverPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2026,6 +2038,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LicenseResourceCommitment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LicenseResourceRequirements class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5539,6 +5557,7 @@ module Google property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicy::Representation property :creation_timestamp, as: 'creationTimestamp' + collection :custom_response_headers, as: 'customResponseHeaders' property :description, as: 'description' property :enable_cdn, as: 'enableCdn' property :id, :numeric_string => true, as: 'id' @@ -5551,11 +5570,26 @@ module Google class BackendBucketCdnPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cache_mode, as: 'cacheMode' + property :client_ttl, as: 'clientTtl' + property :default_ttl, as: 'defaultTtl' + property :max_ttl, as: 'maxTtl' + property :negative_caching, as: 'negativeCaching' + collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyNegativeCachingPolicy::Representation + property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec' collection :signed_url_key_names, as: 'signedUrlKeyNames' end end + class BackendBucketCdnPolicyNegativeCachingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :ttl, as: 'ttl' + end + end + class BackendBucketList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5604,6 +5638,7 @@ module Google property :creation_timestamp, as: 'creationTimestamp' collection :custom_request_headers, as: 'customRequestHeaders' + collection :custom_response_headers, as: 'customResponseHeaders' 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 @@ -5672,11 +5707,26 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::CacheKeyPolicy, decorator: Google::Apis::ComputeBeta::CacheKeyPolicy::Representation + property :cache_mode, as: 'cacheMode' + property :client_ttl, as: 'clientTtl' + property :default_ttl, as: 'defaultTtl' + property :max_ttl, as: 'maxTtl' + property :negative_caching, as: 'negativeCaching' + collection :negative_caching_policys, as: 'negativeCachingPolicys', class: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceCdnPolicyNegativeCachingPolicy::Representation + property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec' collection :signed_url_key_names, as: 'signedUrlKeyNames' end end + class BackendServiceCdnPolicyNegativeCachingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :ttl, as: 'ttl' + end + end + class BackendServiceFailoverPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5878,11 +5928,14 @@ module Google class Commitment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :category, as: 'category' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :end_timestamp, as: 'endTimestamp' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :license_resource, as: 'licenseResource', class: Google::Apis::ComputeBeta::LicenseResourceCommitment, decorator: Google::Apis::ComputeBeta::LicenseResourceCommitment::Representation + property :name, as: 'name' property :plan, as: 'plan' property :region, as: 'region' @@ -8799,6 +8852,15 @@ module Google end end + class LicenseResourceCommitment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, :numeric_string => true, as: 'amount' + property :cores_per_license, as: 'coresPerLicense' + property :license, as: 'license' + end + end + class LicenseResourceRequirements # @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 166ff13da..54ac39a27 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://compute.googleapis.com/', 'compute/beta/projects/') + super('https://compute.googleapis.com/', 'compute/beta/') @batch_path = 'batch/compute/beta' end @@ -115,7 +115,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_accelerator_type_list(project, filter: nil, include_all_scopes: 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/acceleratorTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/acceleratorTypes', options) command.response_representation = Google::Apis::ComputeBeta::AcceleratorTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::AcceleratorTypeAggregatedList command.params['project'] = project unless project.nil? @@ -157,7 +157,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_accelerator_type(project, zone, accelerator_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/acceleratorTypes/{acceleratorType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}', options) command.response_representation = Google::Apis::ComputeBeta::AcceleratorType::Representation command.response_class = Google::Apis::ComputeBeta::AcceleratorType command.params['project'] = project unless project.nil? @@ -229,7 +229,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_accelerator_types(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}/acceleratorTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/acceleratorTypes', options) command.response_representation = Google::Apis::ComputeBeta::AcceleratorTypeList::Representation command.response_class = Google::Apis::ComputeBeta::AcceleratorTypeList command.params['project'] = project unless project.nil? @@ -308,7 +308,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_addresses(project, filter: nil, include_all_scopes: 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/addresses', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/addresses', options) command.response_representation = Google::Apis::ComputeBeta::AddressAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::AddressAggregatedList command.params['project'] = project unless project.nil? @@ -361,7 +361,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_address(project, region, address, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/addresses/{address}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/addresses/{address}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -401,7 +401,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_address(project, region, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/addresses/{address}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/addresses/{address}', options) command.response_representation = Google::Apis::ComputeBeta::Address::Representation command.response_class = Google::Apis::ComputeBeta::Address command.params['project'] = project unless project.nil? @@ -451,7 +451,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_address(project, region, address_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/addresses', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses', options) command.request_representation = Google::Apis::ComputeBeta::Address::Representation command.request_object = address_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -524,7 +524,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_addresses(project, region, 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}/regions/{region}/addresses', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/addresses', options) command.response_representation = Google::Apis::ComputeBeta::AddressList::Representation command.response_class = Google::Apis::ComputeBeta::AddressList command.params['project'] = project unless project.nil? @@ -579,7 +579,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_address_labels(project, region, resource, region_set_labels_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}/addresses/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -622,7 +622,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_address_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/addresses/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{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 @@ -700,7 +700,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_autoscalers(project, filter: nil, include_all_scopes: 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/autoscalers', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/autoscalers', options) command.response_representation = Google::Apis::ComputeBeta::AutoscalerAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::AutoscalerAggregatedList command.params['project'] = project unless project.nil? @@ -753,7 +753,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_autoscaler(project, zone, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/autoscalers/{autoscaler}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -794,7 +794,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_autoscaler(project, zone, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/autoscalers/{autoscaler}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.response_class = Google::Apis::ComputeBeta::Autoscaler command.params['project'] = project unless project.nil? @@ -844,7 +844,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_autoscaler(project, zone, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/autoscalers', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -917,7 +917,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_autoscalers(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}/autoscalers', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/autoscalers', options) command.response_representation = Google::Apis::ComputeBeta::AutoscalerList::Representation command.response_class = Google::Apis::ComputeBeta::AutoscalerList command.params['project'] = project unless project.nil? @@ -973,7 +973,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/zones/{zone}/autoscalers', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1016,7 +1016,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_autoscaler_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}/autoscalers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/autoscalers/{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 @@ -1070,7 +1070,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_autoscaler(project, zone, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/zones/{zone}/autoscalers', options) + command = make_simple_command(:put, 'projects/{project}/zones/{zone}/autoscalers', options) command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1123,7 +1123,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_backend_bucket_signed_url_key(project, backend_bucket, signed_url_key_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey', options) command.request_representation = Google::Apis::ComputeBeta::SignedUrlKey::Representation command.request_object = signed_url_key_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1173,7 +1173,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_bucket(project, backend_bucket, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:delete, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -1224,7 +1224,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_bucket_signed_url_key(project, backend_bucket, key_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -1263,7 +1263,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_bucket(project, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.response_representation = Google::Apis::ComputeBeta::BackendBucket::Representation command.response_class = Google::Apis::ComputeBeta::BackendBucket command.params['project'] = project unless project.nil? @@ -1310,7 +1310,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_backend_bucket(project, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendBuckets', options) + command = make_simple_command(:post, 'projects/{project}/global/backendBuckets', options) command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation command.request_object = backend_bucket_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1381,7 +1381,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_backend_buckets(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}/global/backendBuckets', options) + command = make_simple_command(:get, 'projects/{project}/global/backendBuckets', options) command.response_representation = Google::Apis::ComputeBeta::BackendBucketList::Representation command.response_class = Google::Apis::ComputeBeta::BackendBucketList command.params['project'] = project unless project.nil? @@ -1434,7 +1434,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_backend_bucket(project, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:patch, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation command.request_object = backend_bucket_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1486,7 +1486,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_backend_bucket(project, backend_bucket, backend_bucket_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/backendBuckets/{backendBucket}', options) + command = make_simple_command(:put, 'projects/{project}/global/backendBuckets/{backendBucket}', options) command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation command.request_object = backend_bucket_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1538,7 +1538,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_backend_service_signed_url_key(project, backend_service, signed_url_key_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/addSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/addSignedUrlKey', options) command.request_representation = Google::Apis::ComputeBeta::SignedUrlKey::Representation command.request_object = signed_url_key_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1617,7 +1617,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_backend_service_list(project, filter: nil, include_all_scopes: 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/backendServices', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/backendServices', options) command.response_representation = Google::Apis::ComputeBeta::BackendServiceAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::BackendServiceAggregatedList command.params['project'] = project unless project.nil? @@ -1668,7 +1668,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_service(project, backend_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:delete, 'projects/{project}/global/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -1720,7 +1720,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_backend_service_signed_url_key(project, backend_service, key_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/deleteSignedUrlKey', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -1759,7 +1759,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_service(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeBeta::BackendService::Representation command.response_class = Google::Apis::ComputeBeta::BackendService command.params['project'] = project unless project.nil? @@ -1797,7 +1797,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_backend_service_health(project, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/getHealth', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/getHealth', options) command.request_representation = Google::Apis::ComputeBeta::ResourceGroupReference::Representation command.request_object = resource_group_reference_object command.response_representation = Google::Apis::ComputeBeta::BackendServiceGroupHealth::Representation @@ -1846,7 +1846,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_backend_service(project, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices', options) command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -1917,7 +1917,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_backend_services(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}/global/backendServices', options) + command = make_simple_command(:get, 'projects/{project}/global/backendServices', options) command.response_representation = Google::Apis::ComputeBeta::BackendServiceList::Representation command.response_class = Google::Apis::ComputeBeta::BackendServiceList command.params['project'] = project unless project.nil? @@ -1971,7 +1971,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_backend_service(project, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:patch, 'projects/{project}/global/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2023,7 +2023,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_backend_service_security_policy(project, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{backendService}/setSecurityPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{backendService}/setSecurityPolicy', options) command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation command.request_object = security_policy_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2063,7 +2063,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_backend_service_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/backendServices/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/backendServices/{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 @@ -2114,7 +2114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_backend_service(project, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/backendServices/{backendService}', options) + command = make_simple_command(:put, 'projects/{project}/global/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2192,7 +2192,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_disk_types(project, filter: nil, include_all_scopes: 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/diskTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/diskTypes', options) command.response_representation = Google::Apis::ComputeBeta::DiskTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::DiskTypeAggregatedList command.params['project'] = project unless project.nil? @@ -2235,7 +2235,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk_type(project, zone, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/diskTypes/{diskType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes/{diskType}', options) command.response_representation = Google::Apis::ComputeBeta::DiskType::Representation command.response_class = Google::Apis::ComputeBeta::DiskType command.params['project'] = project unless project.nil? @@ -2306,7 +2306,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_disk_types(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}/diskTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/diskTypes', options) command.response_representation = Google::Apis::ComputeBeta::DiskTypeList::Representation command.response_class = Google::Apis::ComputeBeta::DiskTypeList command.params['project'] = project unless project.nil? @@ -2361,7 +2361,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_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}/disks/{disk}/addResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options) command.request_representation = Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest::Representation command.request_object = disks_add_resource_policies_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2440,7 +2440,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_disk(project, filter: nil, include_all_scopes: 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/disks', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/disks', options) command.response_representation = Google::Apis::ComputeBeta::DiskAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::DiskAggregatedList command.params['project'] = project unless project.nil? @@ -2498,7 +2498,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_disk_snapshot(project, zone, disk, snapshot_object = nil, guest_flush: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/createSnapshot', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/createSnapshot', options) command.request_representation = Google::Apis::ComputeBeta::Snapshot::Representation command.request_object = snapshot_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2554,7 +2554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_disk(project, zone, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/disks/{disk}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -2595,7 +2595,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk(project, zone, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/disks/{disk}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeBeta::Disk::Representation command.response_class = Google::Apis::ComputeBeta::Disk command.params['project'] = project unless project.nil? @@ -2637,7 +2637,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_disk_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/disks/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/disks/{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? @@ -2651,9 +2651,10 @@ module Google end # Creates a persistent disk in the specified project using the data in the - # request. You can create a disk with a sourceImage, a sourceSnapshot, or create - # an empty 500 GB data disk by omitting all properties. You can also create a - # disk that is larger than the default size by specifying the sizeGb property. + # request. You can create a disk from a source (sourceImage, sourceSnapshot, or + # sourceDisk) or create an empty 500 GB data disk by omitting all properties. + # You can also create a disk that is larger than the default size by specifying + # the sizeGb property. # @param [String] project # Project ID for this request. # @param [String] zone @@ -2692,7 +2693,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_disk(project, zone, disk_object = nil, request_id: nil, source_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/disks', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks', options) command.request_representation = Google::Apis::ComputeBeta::Disk::Representation command.request_object = disk_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2766,7 +2767,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_disks(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}/disks', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/disks', options) command.response_representation = Google::Apis::ComputeBeta::DiskList::Representation command.response_class = Google::Apis::ComputeBeta::DiskList command.params['project'] = project unless project.nil? @@ -2820,7 +2821,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_disk_resource_policies(project, zone, disk, disks_remove_resource_policies_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}/disks/{disk}/removeResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies', options) command.request_representation = Google::Apis::ComputeBeta::DisksRemoveResourcePoliciesRequest::Representation command.request_object = disks_remove_resource_policies_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2875,7 +2876,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_disk(project, zone, disk, disks_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}/disks/{disk}/resize', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/resize', options) command.request_representation = Google::Apis::ComputeBeta::DisksResizeRequest::Representation command.request_object = disks_resize_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -2919,7 +2920,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_disk_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}/disks/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{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 @@ -2973,7 +2974,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_disk_labels(project, zone, resource, zone_set_labels_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}/disks/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::ZoneSetLabelsRequest::Representation command.request_object = zone_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -3016,7 +3017,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_disk_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}/disks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{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 @@ -3066,7 +3067,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_external_vpn_gateway(project, external_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/externalVpnGateways/{externalVpnGateway}', options) + command = make_simple_command(:delete, 'projects/{project}/global/externalVpnGateways/{externalVpnGateway}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -3104,7 +3105,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_external_vpn_gateway(project, external_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/externalVpnGateways/{externalVpnGateway}', options) + command = make_simple_command(:get, 'projects/{project}/global/externalVpnGateways/{externalVpnGateway}', options) command.response_representation = Google::Apis::ComputeBeta::ExternalVpnGateway::Representation command.response_class = Google::Apis::ComputeBeta::ExternalVpnGateway command.params['project'] = project unless project.nil? @@ -3151,7 +3152,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_external_vpn_gateway(project, external_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/externalVpnGateways', options) + command = make_simple_command(:post, 'projects/{project}/global/externalVpnGateways', options) command.request_representation = Google::Apis::ComputeBeta::ExternalVpnGateway::Representation command.request_object = external_vpn_gateway_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -3221,7 +3222,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_external_vpn_gateways(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}/global/externalVpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/global/externalVpnGateways', options) command.response_representation = Google::Apis::ComputeBeta::ExternalVpnGatewayList::Representation command.response_class = Google::Apis::ComputeBeta::ExternalVpnGatewayList command.params['project'] = project unless project.nil? @@ -3262,7 +3263,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_external_vpn_gateway_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/externalVpnGateways/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -3301,7 +3302,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_external_vpn_gateway_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/externalVpnGateways/{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 @@ -3350,7 +3351,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_firewall(project, firewall, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:delete, 'projects/{project}/global/firewalls/{firewall}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -3387,7 +3388,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_firewall(project, firewall, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:get, 'projects/{project}/global/firewalls/{firewall}', options) command.response_representation = Google::Apis::ComputeBeta::Firewall::Representation command.response_class = Google::Apis::ComputeBeta::Firewall command.params['project'] = project unless project.nil? @@ -3434,7 +3435,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_firewall(project, firewall_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewalls', options) + command = make_simple_command(:post, 'projects/{project}/global/firewalls', options) command.request_representation = Google::Apis::ComputeBeta::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -3504,7 +3505,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_firewalls(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}/global/firewalls', options) + command = make_simple_command(:get, 'projects/{project}/global/firewalls', options) command.response_representation = Google::Apis::ComputeBeta::FirewallList::Representation command.response_class = Google::Apis::ComputeBeta::FirewallList command.params['project'] = project unless project.nil? @@ -3557,7 +3558,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_firewall(project, firewall, firewall_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:patch, 'projects/{project}/global/firewalls/{firewall}', options) command.request_representation = Google::Apis::ComputeBeta::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -3597,7 +3598,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_firewall_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/firewalls/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/firewalls/{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 @@ -3649,7 +3650,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_firewall(project, firewall, firewall_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/firewalls/{firewall}', options) + command = make_simple_command(:put, 'projects/{project}/global/firewalls/{firewall}', options) command.request_representation = Google::Apis::ComputeBeta::Firewall::Representation command.request_object = firewall_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -3727,7 +3728,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_forwarding_rules(project, filter: nil, include_all_scopes: 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/forwardingRules', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/forwardingRules', options) command.response_representation = Google::Apis::ComputeBeta::ForwardingRuleAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::ForwardingRuleAggregatedList command.params['project'] = project unless project.nil? @@ -3780,7 +3781,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_forwarding_rule(project, region, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -3820,7 +3821,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_forwarding_rule(project, region, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation command.response_class = Google::Apis::ComputeBeta::ForwardingRule command.params['project'] = project unless project.nil? @@ -3870,7 +3871,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_forwarding_rule(project, region, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules', options) command.request_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -3944,7 +3945,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_forwarding_rules(project, region, 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}/regions/{region}/forwardingRules', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules', options) command.response_representation = Google::Apis::ComputeBeta::ForwardingRuleList::Representation command.response_class = Google::Apis::ComputeBeta::ForwardingRuleList command.params['project'] = project unless project.nil? @@ -4000,7 +4001,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_forwarding_rule(project, region, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options) command.request_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4055,7 +4056,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_forwarding_rule_labels(project, region, resource, region_set_labels_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}/forwardingRules/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4110,7 +4111,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_forwarding_rule_target(project, region, forwarding_rule, target_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget', options) command.request_representation = Google::Apis::ComputeBeta::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4153,7 +4154,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_forwarding_rule_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/forwardingRules/{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 @@ -4203,7 +4204,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_address(project, address, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/addresses/{address}', options) + command = make_simple_command(:delete, 'projects/{project}/global/addresses/{address}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -4241,7 +4242,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_address(project, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/addresses/{address}', options) + command = make_simple_command(:get, 'projects/{project}/global/addresses/{address}', options) command.response_representation = Google::Apis::ComputeBeta::Address::Representation command.response_class = Google::Apis::ComputeBeta::Address command.params['project'] = project unless project.nil? @@ -4288,7 +4289,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_address(project, address_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/addresses', options) + command = make_simple_command(:post, 'projects/{project}/global/addresses', options) command.request_representation = Google::Apis::ComputeBeta::Address::Representation command.request_object = address_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4358,7 +4359,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_addresses(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}/global/addresses', options) + command = make_simple_command(:get, 'projects/{project}/global/addresses', options) command.response_representation = Google::Apis::ComputeBeta::AddressList::Representation command.response_class = Google::Apis::ComputeBeta::AddressList command.params['project'] = project unless project.nil? @@ -4399,7 +4400,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_global_address_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/addresses/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4438,7 +4439,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_global_address_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/addresses/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/addresses/{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 @@ -4487,7 +4488,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_forwarding_rule(project, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:delete, 'projects/{project}/global/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -4525,7 +4526,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:get, 'projects/{project}/global/forwardingRules/{forwardingRule}', options) command.response_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation command.response_class = Google::Apis::ComputeBeta::ForwardingRule command.params['project'] = project unless project.nil? @@ -4572,7 +4573,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_forwarding_rule(project, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules', options) command.request_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4643,7 +4644,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_forwarding_rules(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}/global/forwardingRules', options) + command = make_simple_command(:get, 'projects/{project}/global/forwardingRules', options) command.response_representation = Google::Apis::ComputeBeta::ForwardingRuleList::Representation command.response_class = Google::Apis::ComputeBeta::ForwardingRuleList command.params['project'] = project unless project.nil? @@ -4696,7 +4697,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_global_forwarding_rule(project, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/forwardingRules/{forwardingRule}', options) + command = make_simple_command(:patch, 'projects/{project}/global/forwardingRules/{forwardingRule}', options) command.request_representation = Google::Apis::ComputeBeta::ForwardingRule::Representation command.request_object = forwarding_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4737,7 +4738,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_global_forwarding_rule_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4788,7 +4789,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_global_forwarding_rule_target(project, forwarding_rule, target_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules/{forwardingRule}/setTarget', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{forwardingRule}/setTarget', options) command.request_representation = Google::Apis::ComputeBeta::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4828,7 +4829,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_global_forwarding_rule_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/forwardingRules/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{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 @@ -4879,7 +4880,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def attach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeBeta::GlobalNetworkEndpointGroupsAttachEndpointsRequest::Representation command.request_object = global_network_endpoint_groups_attach_endpoints_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -4931,7 +4932,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_network_endpoint_group(project, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -4981,7 +4982,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def detach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeBeta::GlobalNetworkEndpointGroupsDetachEndpointsRequest::Representation command.request_object = global_network_endpoint_groups_detach_endpoints_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -5021,7 +5022,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_network_endpoint_group(project, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:get, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup command.params['project'] = project unless project.nil? @@ -5068,7 +5069,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_global_network_endpoint_group(project, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networkEndpointGroups', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups', options) command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation command.request_object = network_endpoint_group_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -5139,7 +5140,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_network_endpoint_groups(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}/global/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/global/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList command.params['project'] = project unless project.nil? @@ -5213,7 +5214,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, 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(:post, '{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints command.params['project'] = project unless project.nil? @@ -5292,7 +5293,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_global_operation(project, filter: nil, include_all_scopes: 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/operations', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/operations', options) command.response_representation = Google::Apis::ComputeBeta::OperationAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::OperationAggregatedList command.params['project'] = project unless project.nil? @@ -5332,7 +5333,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/operations/{operation}', options) + command = make_simple_command(:delete, 'projects/{project}/global/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? @@ -5367,7 +5368,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/operations/{operation}', options) + command = make_simple_command(:get, 'projects/{project}/global/operations/{operation}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -5435,7 +5436,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_global_operations(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}/global/operations', options) + command = make_simple_command(:get, 'projects/{project}/global/operations', options) command.response_representation = Google::Apis::ComputeBeta::OperationList::Representation command.response_class = Google::Apis::ComputeBeta::OperationList command.params['project'] = project unless project.nil? @@ -5484,7 +5485,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def wait_global_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/operations/{operation}/wait', options) + command = make_simple_command(:post, 'projects/{project}/global/operations/{operation}/wait', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -5703,7 +5704,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_health_check_list(project, filter: nil, include_all_scopes: 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/healthChecks', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/healthChecks', options) command.response_representation = Google::Apis::ComputeBeta::HealthChecksAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::HealthChecksAggregatedList command.params['project'] = project unless project.nil? @@ -5754,7 +5755,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_health_check(project, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -5792,7 +5793,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_health_check(project, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.response_class = Google::Apis::ComputeBeta::HealthCheck command.params['project'] = project unless project.nil? @@ -5839,7 +5840,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_health_check(project, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/healthChecks', options) + command = make_simple_command(:post, 'projects/{project}/global/healthChecks', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -5909,7 +5910,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_health_checks(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}/global/healthChecks', options) + command = make_simple_command(:get, 'projects/{project}/global/healthChecks', options) command.response_representation = Google::Apis::ComputeBeta::HealthCheckList::Representation command.response_class = Google::Apis::ComputeBeta::HealthCheckList command.params['project'] = project unless project.nil? @@ -5962,7 +5963,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_health_check(project, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6002,7 +6003,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/healthChecks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/healthChecks/{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 @@ -6053,7 +6054,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_health_check(project, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/healthChecks/{healthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/global/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6103,7 +6104,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_http_health_check(project, http_health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -6141,7 +6142,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_http_health_check(project, http_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation command.response_class = Google::Apis::ComputeBeta::HttpHealthCheck command.params['project'] = project unless project.nil? @@ -6188,7 +6189,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_http_health_check(project, http_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpHealthChecks', options) + command = make_simple_command(:post, 'projects/{project}/global/httpHealthChecks', options) command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6259,7 +6260,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_http_health_checks(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}/global/httpHealthChecks', options) + command = make_simple_command(:get, 'projects/{project}/global/httpHealthChecks', options) command.response_representation = Google::Apis::ComputeBeta::HttpHealthCheckList::Representation command.response_class = Google::Apis::ComputeBeta::HttpHealthCheckList command.params['project'] = project unless project.nil? @@ -6312,7 +6313,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_http_health_check(project, http_health_check, http_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6352,7 +6353,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_http_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpHealthChecks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/httpHealthChecks/{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 @@ -6403,7 +6404,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_http_health_check(project, http_health_check, http_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/httpHealthChecks/{httpHealthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/global/httpHealthChecks/{httpHealthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HttpHealthCheck::Representation command.request_object = http_health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6453,7 +6454,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_https_health_check(project, https_health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -6491,7 +6492,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_https_health_check(project, https_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation command.response_class = Google::Apis::ComputeBeta::HttpsHealthCheck command.params['project'] = project unless project.nil? @@ -6538,7 +6539,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_https_health_check(project, https_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpsHealthChecks', options) + command = make_simple_command(:post, 'projects/{project}/global/httpsHealthChecks', options) command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation command.request_object = https_health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6609,7 +6610,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_https_health_checks(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}/global/httpsHealthChecks', options) + command = make_simple_command(:get, 'projects/{project}/global/httpsHealthChecks', options) command.response_representation = Google::Apis::ComputeBeta::HttpsHealthCheckList::Representation command.response_class = Google::Apis::ComputeBeta::HttpsHealthCheckList command.params['project'] = project unless project.nil? @@ -6662,7 +6663,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_https_health_check(project, https_health_check, https_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation command.request_object = https_health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6702,7 +6703,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_https_health_check_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/httpsHealthChecks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/httpsHealthChecks/{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 @@ -6753,7 +6754,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_https_health_check(project, https_health_check, https_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HttpsHealthCheck::Representation command.request_object = https_health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6803,7 +6804,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_image(project, image, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/images/{image}', options) + command = make_simple_command(:delete, 'projects/{project}/global/images/{image}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -6853,7 +6854,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def deprecate_image(project, image, deprecation_status_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{image}/deprecate', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{image}/deprecate', options) command.request_representation = Google::Apis::ComputeBeta::DeprecationStatus::Representation command.request_object = deprecation_status_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -6893,7 +6894,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_image(project, image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/images/{image}', options) + command = make_simple_command(:get, 'projects/{project}/global/images/{image}', options) command.response_representation = Google::Apis::ComputeBeta::Image::Representation command.response_class = Google::Apis::ComputeBeta::Image command.params['project'] = project unless project.nil? @@ -6929,7 +6930,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_image_from_family(project, family, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/images/family/{family}', options) + command = make_simple_command(:get, 'projects/{project}/global/images/family/{family}', options) command.response_representation = Google::Apis::ComputeBeta::Image::Representation command.response_class = Google::Apis::ComputeBeta::Image command.params['project'] = project unless project.nil? @@ -6968,7 +6969,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/images/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/images/{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? @@ -7018,7 +7019,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_image(project, image_object = nil, force_create: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images', options) + command = make_simple_command(:post, 'projects/{project}/global/images', options) command.request_representation = Google::Apis::ComputeBeta::Image::Representation command.request_object = image_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7094,7 +7095,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_images(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}/global/images', options) + command = make_simple_command(:get, 'projects/{project}/global/images', options) command.response_representation = Google::Apis::ComputeBeta::ImageList::Representation command.response_class = Google::Apis::ComputeBeta::ImageList command.params['project'] = project unless project.nil? @@ -7146,7 +7147,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_image(project, image, image_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/images/{image}', options) + command = make_simple_command(:patch, 'projects/{project}/global/images/{image}', options) command.request_representation = Google::Apis::ComputeBeta::Image::Representation command.request_object = image_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7187,7 +7188,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -7227,7 +7228,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7266,7 +7267,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/images/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/images/{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 @@ -7329,7 +7330,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def abandon_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_abandon_instances_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}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersAbandonInstancesRequest::Representation command.request_object = instance_group_managers_abandon_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7408,7 +7409,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_instance_group_managers(project, filter: nil, include_all_scopes: 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/instanceGroupManagers', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagerAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagerAggregatedList command.params['project'] = project unless project.nil? @@ -7453,7 +7454,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -7511,7 +7512,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_create_instances_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}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersCreateInstancesRequest::Representation command.request_object = instance_group_managers_create_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7566,7 +7567,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager(project, zone, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -7628,7 +7629,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_delete_instances_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}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersDeleteInstancesRequest::Representation command.request_object = instance_group_managers_delete_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7672,7 +7673,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group_manager_per_instance_configs(project, zone, instance_group_manager, instance_group_managers_delete_per_instance_configs_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersDeletePerInstanceConfigsReq::Representation command.request_object = instance_group_managers_delete_per_instance_configs_req_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7714,7 +7715,7 @@ module Google # @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_group_manager(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupManager command.params['project'] = project unless project.nil? @@ -7770,7 +7771,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_group_manager(project, zone, instance_group_manager_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', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -7844,7 +7845,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_managers(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}/instanceGroupManagers', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagerList::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagerList command.params['project'] = project unless project.nil? @@ -7924,7 +7925,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_manager_errors(project, zone, instance_group_manager, 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}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagersListErrorsResponse::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagersListErrorsResponse command.params['project'] = project unless project.nil? @@ -8006,7 +8007,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, 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(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagersListManagedInstancesResponse::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagersListManagedInstancesResponse command.params['project'] = project unless project.nil? @@ -8085,7 +8086,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_manager_per_instance_configs(project, zone, instance_group_manager, 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(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagersListPerInstanceConfigsResp::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagersListPerInstanceConfigsResp command.params['project'] = project unless project.nil? @@ -8145,7 +8146,7 @@ module Google # @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(project, zone, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8202,7 +8203,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersPatchPerInstanceConfigsReq::Representation command.request_object = instance_group_managers_patch_per_instance_configs_req_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8265,7 +8266,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def recreate_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_recreate_instances_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}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersRecreateInstancesRequest::Representation command.request_object = instance_group_managers_recreate_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8337,7 +8338,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_instance_group_manager(project, zone, instance_group_manager, size, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -8401,7 +8402,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_instance_group_manager_advanced(project, zone, instance_group_manager, instance_group_managers_resize_advanced_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}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersResizeAdvancedRequest::Representation command.request_object = instance_group_managers_resize_advanced_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8456,7 +8457,7 @@ module Google # @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_group_manager_auto_healing_policies(project, zone, instance_group_manager, instance_group_managers_set_auto_healing_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}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersSetAutoHealingRequest::Representation command.request_object = instance_group_managers_set_auto_healing_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8512,7 +8513,7 @@ module Google # @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_group_manager_instance_template(project, zone, instance_group_manager, instance_group_managers_set_instance_template_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}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersSetInstanceTemplateRequest::Representation command.request_object = instance_group_managers_set_instance_template_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8571,7 +8572,7 @@ module Google # @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_group_manager_target_pools(project, zone, instance_group_manager, instance_group_managers_set_target_pools_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}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersSetTargetPoolsRequest::Representation command.request_object = instance_group_managers_set_target_pools_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8614,7 +8615,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_group_manager_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}/instanceGroupManagers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{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 @@ -8671,7 +8672,7 @@ module Google # @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_group_manager(project, zone, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8728,7 +8729,7 @@ module Google # @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_group_manager_per_instance_configs(project, zone, instance_group_manager, instance_group_managers_update_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}/updatePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersUpdatePerInstanceConfigsReq::Representation command.request_object = instance_group_managers_update_per_instance_configs_req_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8784,7 +8785,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_group_instances(project, zone, instance_group, instance_groups_add_instances_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}/instanceGroups/{instanceGroup}/addInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupsAddInstancesRequest::Representation command.request_object = instance_groups_add_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -8863,7 +8864,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_instance_groups(project, filter: nil, include_all_scopes: 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/instanceGroups', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/instanceGroups', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupAggregatedList command.params['project'] = project unless project.nil? @@ -8918,7 +8919,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_group(project, zone, instance_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -8959,7 +8960,7 @@ module Google # @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_group(project, zone, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroup::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroup command.params['project'] = project unless project.nil? @@ -9009,7 +9010,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_group(project, zone, instance_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroups', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroup::Representation command.request_object = instance_group_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -9083,7 +9084,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_groups(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}/instanceGroups', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroups', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupList::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupList command.params['project'] = project unless project.nil? @@ -9162,7 +9163,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_group_instances(project, zone, instance_group, instance_groups_list_instances_request_object = nil, 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(:post, '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupsListInstancesRequest::Representation command.request_object = instance_groups_list_instances_request_object command.response_representation = Google::Apis::ComputeBeta::InstanceGroupsListInstances::Representation @@ -9223,7 +9224,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_instance_group_instances(project, zone, instance_group, instance_groups_remove_instances_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}/instanceGroups/{instanceGroup}/removeInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupsRemoveInstancesRequest::Representation command.request_object = instance_groups_remove_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -9277,7 +9278,7 @@ module Google # @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_group_named_ports(project, zone, instance_group, instance_groups_set_named_ports_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}/instanceGroups/{instanceGroup}/setNamedPorts', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupsSetNamedPortsRequest::Representation command.request_object = instance_groups_set_named_ports_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -9320,7 +9321,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_group_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}/instanceGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroups/{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 @@ -9372,7 +9373,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_template(project, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/instanceTemplates/{instanceTemplate}', options) + command = make_simple_command(:delete, 'projects/{project}/global/instanceTemplates/{instanceTemplate}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -9410,7 +9411,7 @@ module Google # @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_template(project, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/instanceTemplates/{instanceTemplate}', options) + command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates/{instanceTemplate}', options) command.response_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation command.response_class = Google::Apis::ComputeBeta::InstanceTemplate command.params['project'] = project unless project.nil? @@ -9449,7 +9450,7 @@ module Google # @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_template_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates/{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? @@ -9499,7 +9500,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance_template(project, instance_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/instanceTemplates', options) + command = make_simple_command(:post, 'projects/{project}/global/instanceTemplates', options) command.request_representation = Google::Apis::ComputeBeta::InstanceTemplate::Representation command.request_object = instance_template_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -9570,7 +9571,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_templates(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}/global/instanceTemplates', options) + command = make_simple_command(:get, 'projects/{project}/global/instanceTemplates', options) command.response_representation = Google::Apis::ComputeBeta::InstanceTemplateList::Representation command.response_class = Google::Apis::ComputeBeta::InstanceTemplateList command.params['project'] = project unless project.nil? @@ -9611,7 +9612,7 @@ module Google # @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_template_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/instanceTemplates/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -9650,7 +9651,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_template_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/instanceTemplates/{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 @@ -9704,7 +9705,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_access_config(project, zone, instance, network_interface, access_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/addAccessConfig', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig', options) command.request_representation = Google::Apis::ComputeBeta::AccessConfig::Representation command.request_object = access_config_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -9761,7 +9762,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_instance_resource_policies(project, zone, instance, instances_add_resource_policies_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}/instances/{instance}/addResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies', options) command.request_representation = Google::Apis::ComputeBeta::InstancesAddResourcePoliciesRequest::Representation command.request_object = instances_add_resource_policies_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -9841,7 +9842,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_instances(project, filter: nil, include_all_scopes: 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/instances', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/instances', options) command.response_representation = Google::Apis::ComputeBeta::InstanceAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::InstanceAggregatedList command.params['project'] = project unless project.nil? @@ -9901,7 +9902,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def attach_disk(project, zone, instance, attached_disk_object = nil, force_attach: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/attachDisk', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/attachDisk', options) command.request_representation = Google::Apis::ComputeBeta::AttachedDisk::Representation command.request_object = attached_disk_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -9956,7 +9957,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/instances/{instance}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -10011,7 +10012,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_instance_access_config(project, zone, instance, access_config, network_interface, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -10067,7 +10068,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def detach_disk(project, zone, instance, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/detachDisk', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/detachDisk', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -10109,7 +10110,7 @@ module Google # @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(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}', options) command.response_representation = Google::Apis::ComputeBeta::Instance::Representation command.response_class = Google::Apis::ComputeBeta::Instance command.params['project'] = project unless project.nil? @@ -10150,7 +10151,7 @@ module Google # @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_effective_firewalls(project, zone, instance, network_interface, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls', options) command.response_representation = Google::Apis::ComputeBeta::InstancesGetEffectiveFirewallsResponse::Representation command.response_class = Google::Apis::ComputeBeta::InstancesGetEffectiveFirewallsResponse command.params['project'] = project unless project.nil? @@ -10194,7 +10195,7 @@ module Google # @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_guest_attributes(project, zone, instance, query_path: nil, variable_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/getGuestAttributes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes', options) command.response_representation = Google::Apis::ComputeBeta::GuestAttributes::Representation command.response_class = Google::Apis::ComputeBeta::GuestAttributes command.params['project'] = project unless project.nil? @@ -10238,7 +10239,7 @@ module Google # @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_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{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? @@ -10278,7 +10279,7 @@ module Google # @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_screenshot(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/screenshot', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/screenshot', options) command.response_representation = Google::Apis::ComputeBeta::Screenshot::Representation command.response_class = Google::Apis::ComputeBeta::Screenshot command.params['project'] = project unless project.nil? @@ -10332,7 +10333,7 @@ module Google # @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_serial_port_output(project, zone, instance, port: nil, start: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/instances/{instance}/serialPort', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/serialPort', options) command.response_representation = Google::Apis::ComputeBeta::SerialPortOutput::Representation command.response_class = Google::Apis::ComputeBeta::SerialPortOutput command.params['project'] = project unless project.nil? @@ -10373,7 +10374,7 @@ module Google # @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 = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity', options) command.response_representation = Google::Apis::ComputeBeta::ShieldedInstanceIdentity::Representation command.response_class = Google::Apis::ComputeBeta::ShieldedInstanceIdentity command.params['project'] = project unless project.nil? @@ -10412,7 +10413,7 @@ module Google # @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_vm_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}/getShieldedVmIdentity', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity', options) command.response_representation = Google::Apis::ComputeBeta::ShieldedVmIdentity::Representation command.response_class = Google::Apis::ComputeBeta::ShieldedVmIdentity command.params['project'] = project unless project.nil? @@ -10478,7 +10479,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances', options) command.request_representation = Google::Apis::ComputeBeta::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -10553,7 +10554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instances(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}/instances', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances', options) command.response_representation = Google::Apis::ComputeBeta::InstanceList::Representation command.response_class = Google::Apis::ComputeBeta::InstanceList command.params['project'] = project unless project.nil? @@ -10633,7 +10634,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_instance_referrers(project, zone, instance, 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}/instances/{instance}/referrers', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/referrers', options) command.response_representation = Google::Apis::ComputeBeta::InstanceListReferrers::Representation command.response_class = Google::Apis::ComputeBeta::InstanceListReferrers command.params['project'] = project unless project.nil? @@ -10688,7 +10689,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_instance_resource_policies(project, zone, instance, instances_remove_resource_policies_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}/instances/{instance}/removeResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies', options) command.request_representation = Google::Apis::ComputeBeta::InstancesRemoveResourcePoliciesRequest::Representation command.request_object = instances_remove_resource_policies_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -10742,7 +10743,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reset_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/reset', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reset', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -10794,7 +10795,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resume_instance(project, zone, instance, instances_resume_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}/instances/{instance}/resume', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/resume', options) command.request_representation = Google::Apis::ComputeBeta::InstancesResumeRequest::Representation command.request_object = instances_resume_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -10849,7 +10850,7 @@ module Google # @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_deletion_protection(project, zone, resource, deletion_protection: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -10906,7 +10907,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_disk_auto_delete(project, zone, instance, auto_delete, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -10950,7 +10951,7 @@ module Google # @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_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}/instances/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{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 @@ -11004,7 +11005,7 @@ module Google # @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_labels(project, zone, instance, instances_set_labels_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}/instances/{instance}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::InstancesSetLabelsRequest::Representation command.request_object = instances_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11059,7 +11060,7 @@ module Google # @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_machine_resources(project, zone, instance, instances_set_machine_resources_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}/instances/{instance}/setMachineResources', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineResources', options) command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineResourcesRequest::Representation command.request_object = instances_set_machine_resources_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11114,7 +11115,7 @@ module Google # @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_machine_type(project, zone, instance, instances_set_machine_type_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}/instances/{instance}/setMachineType', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMachineType', options) command.request_representation = Google::Apis::ComputeBeta::InstancesSetMachineTypeRequest::Representation command.request_object = instances_set_machine_type_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11168,7 +11169,7 @@ module Google # @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_metadata(project, zone, instance, metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMetadata', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMetadata', options) command.request_representation = Google::Apis::ComputeBeta::Metadata::Representation command.request_object = metadata_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11224,7 +11225,7 @@ module Google # @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_min_cpu_platform(project, zone, instance, instances_set_min_cpu_platform_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}/instances/{instance}/setMinCpuPlatform', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform', options) command.request_representation = Google::Apis::ComputeBeta::InstancesSetMinCpuPlatformRequest::Representation command.request_object = instances_set_min_cpu_platform_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11280,7 +11281,7 @@ module Google # @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_scheduling(project, zone, instance, scheduling_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setScheduling', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setScheduling', options) command.request_representation = Google::Apis::ComputeBeta::Scheduling::Representation command.request_object = scheduling_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11335,7 +11336,7 @@ module Google # @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_service_account(project, zone, instance, instances_set_service_account_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}/instances/{instance}/setServiceAccount', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount', options) command.request_representation = Google::Apis::ComputeBeta::InstancesSetServiceAccountRequest::Representation command.request_object = instances_set_service_account_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11391,7 +11392,7 @@ module Google # @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 = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy', options) command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceIntegrityPolicy::Representation command.request_object = shielded_instance_integrity_policy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11447,7 +11448,7 @@ module Google # @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_vm_integrity_policy(project, zone, instance, shielded_vm_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}/setShieldedVmIntegrityPolicy', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy', options) command.request_representation = Google::Apis::ComputeBeta::ShieldedVmIntegrityPolicy::Representation command.request_object = shielded_vm_integrity_policy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11502,7 +11503,7 @@ module Google # @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_tags(project, zone, instance, tags_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setTags', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setTags', options) command.request_representation = Google::Apis::ComputeBeta::Tags::Representation command.request_object = tags_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11544,7 +11545,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def simulate_instance_maintenance_event(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -11595,7 +11596,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/start', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/start', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -11648,7 +11649,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def start_instance_with_encryption_key(project, zone, instance, instances_start_with_encryption_key_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}/instances/{instance}/startWithEncryptionKey', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey', options) command.request_representation = Google::Apis::ComputeBeta::InstancesStartWithEncryptionKeyRequest::Representation command.request_object = instances_start_with_encryption_key_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11705,7 +11706,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/stop', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -11764,7 +11765,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def suspend_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/suspend', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/suspend', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -11806,7 +11807,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_instance_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}/instances/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{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 @@ -11870,7 +11871,7 @@ module Google # @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(project, zone, instance, instance_object = nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/zones/{zone}/instances/{instance}', options) + command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options) command.request_representation = Google::Apis::ComputeBeta::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11930,7 +11931,7 @@ module Google # @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_access_config(project, zone, instance, network_interface, access_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/updateAccessConfig', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig', options) command.request_representation = Google::Apis::ComputeBeta::AccessConfig::Representation command.request_object = access_config_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -11987,7 +11988,7 @@ module Google # @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_display_device(project, zone, instance, display_device_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}/updateDisplayDevice', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice', options) command.request_representation = Google::Apis::ComputeBeta::DisplayDevice::Representation command.request_object = display_device_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12043,7 +12044,7 @@ module Google # @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_network_interface(project, zone, instance, network_interface, network_interface_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}/updateNetworkInterface', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface', options) command.request_representation = Google::Apis::ComputeBeta::NetworkInterface::Representation command.request_object = network_interface_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12100,7 +12101,7 @@ module Google # @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 = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig', options) command.request_representation = Google::Apis::ComputeBeta::ShieldedInstanceConfig::Representation command.request_object = shielded_instance_config_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12156,7 +12157,7 @@ module Google # @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_vm_config(project, zone, instance, shielded_vm_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}/updateShieldedVmConfig', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig', options) command.request_representation = Google::Apis::ComputeBeta::ShieldedVmConfig::Representation command.request_object = shielded_vm_config_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12235,7 +12236,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_interconnect_attachment_list(project, filter: nil, include_all_scopes: 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/interconnectAttachments', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/interconnectAttachments', options) command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentAggregatedList command.params['project'] = project unless project.nil? @@ -12288,7 +12289,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_interconnect_attachment(project, region, interconnect_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -12328,7 +12329,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_attachment(project, region, interconnect_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation command.response_class = Google::Apis::ComputeBeta::InterconnectAttachment command.params['project'] = project unless project.nil? @@ -12380,7 +12381,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_interconnect_attachment(project, region, interconnect_attachment_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments', options) command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation command.request_object = interconnect_attachment_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12455,7 +12456,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_interconnect_attachments(project, region, 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}/regions/{region}/interconnectAttachments', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/interconnectAttachments', options) command.response_representation = Google::Apis::ComputeBeta::InterconnectAttachmentList::Representation command.response_class = Google::Apis::ComputeBeta::InterconnectAttachmentList command.params['project'] = project unless project.nil? @@ -12511,7 +12512,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options) command.request_representation = Google::Apis::ComputeBeta::InterconnectAttachment::Representation command.request_object = interconnect_attachment_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12566,7 +12567,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_interconnect_attachment_labels(project, region, resource, region_set_labels_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}/interconnectAttachments/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12609,7 +12610,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_interconnect_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/interconnectAttachments/{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 @@ -12649,7 +12650,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_location(project, interconnect_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnectLocations/{interconnectLocation}', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations/{interconnectLocation}', options) command.response_representation = Google::Apis::ComputeBeta::InterconnectLocation::Representation command.response_class = Google::Apis::ComputeBeta::InterconnectLocation command.params['project'] = project unless project.nil? @@ -12718,7 +12719,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_interconnect_locations(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}/global/interconnectLocations', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnectLocations', options) command.response_representation = Google::Apis::ComputeBeta::InterconnectLocationList::Representation command.response_class = Google::Apis::ComputeBeta::InterconnectLocationList command.params['project'] = project unless project.nil? @@ -12768,7 +12769,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_interconnect(project, interconnect, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/interconnects/{interconnect}', options) + command = make_simple_command(:delete, 'projects/{project}/global/interconnects/{interconnect}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -12806,7 +12807,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnects/{interconnect}', options) command.response_representation = Google::Apis::ComputeBeta::Interconnect::Representation command.response_class = Google::Apis::ComputeBeta::Interconnect command.params['project'] = project unless project.nil? @@ -12842,7 +12843,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_interconnect_diagnostics(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/interconnects/{interconnect}/getDiagnostics', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnects/{interconnect}/getDiagnostics', options) command.response_representation = Google::Apis::ComputeBeta::InterconnectsGetDiagnosticsResponse::Representation command.response_class = Google::Apis::ComputeBeta::InterconnectsGetDiagnosticsResponse command.params['project'] = project unless project.nil? @@ -12889,7 +12890,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_interconnect(project, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnects', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnects', options) command.request_representation = Google::Apis::ComputeBeta::Interconnect::Representation command.request_object = interconnect_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -12959,7 +12960,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_interconnects(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}/global/interconnects', options) + command = make_simple_command(:get, 'projects/{project}/global/interconnects', options) command.response_representation = Google::Apis::ComputeBeta::InterconnectList::Representation command.response_class = Google::Apis::ComputeBeta::InterconnectList command.params['project'] = project unless project.nil? @@ -13012,7 +13013,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_interconnect(project, interconnect, interconnect_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/interconnects/{interconnect}', options) + command = make_simple_command(:patch, 'projects/{project}/global/interconnects/{interconnect}', options) command.request_representation = Google::Apis::ComputeBeta::Interconnect::Representation command.request_object = interconnect_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -13053,7 +13054,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnects/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnects/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -13092,7 +13093,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_interconnect_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/interconnects/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/interconnects/{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 @@ -13133,7 +13134,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license_code(project, license_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenseCodes/{licenseCode}', options) + command = make_simple_command(:get, 'projects/{project}/global/licenseCodes/{licenseCode}', options) command.response_representation = Google::Apis::ComputeBeta::LicenseCode::Representation command.response_class = Google::Apis::ComputeBeta::LicenseCode command.params['project'] = project unless project.nil? @@ -13181,7 +13182,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_license(project, license, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/licenses/{license}', options) + command = make_simple_command(:delete, 'projects/{project}/global/licenses/{license}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -13219,7 +13220,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license(project, license, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenses/{license}', options) + command = make_simple_command(:get, 'projects/{project}/global/licenses/{license}', options) command.response_representation = Google::Apis::ComputeBeta::License::Representation command.response_class = Google::Apis::ComputeBeta::License command.params['project'] = project unless project.nil? @@ -13259,7 +13260,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_license_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/licenses/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/licenses/{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? @@ -13308,7 +13309,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_license(project, license_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/licenses', options) + command = make_simple_command(:post, 'projects/{project}/global/licenses', options) command.request_representation = Google::Apis::ComputeBeta::License::Representation command.request_object = license_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -13384,7 +13385,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_licenses(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}/global/licenses', options) + command = make_simple_command(:get, 'projects/{project}/global/licenses', options) command.response_representation = Google::Apis::ComputeBeta::LicensesListResponse::Representation command.response_class = Google::Apis::ComputeBeta::LicensesListResponse command.params['project'] = project unless project.nil? @@ -13426,7 +13427,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_license_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/licenses/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/licenses/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -13476,7 +13477,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_machine_image(project, machine_image, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/machineImages/{machineImage}', options) + command = make_simple_command(:delete, 'projects/{project}/global/machineImages/{machineImage}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -13514,7 +13515,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_machine_image(project, machine_image, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/machineImages/{machineImage}', options) + command = make_simple_command(:get, 'projects/{project}/global/machineImages/{machineImage}', options) command.response_representation = Google::Apis::ComputeBeta::MachineImage::Representation command.response_class = Google::Apis::ComputeBeta::MachineImage command.params['project'] = project unless project.nil? @@ -13553,7 +13554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_machine_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/machineImages/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/machineImages/{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? @@ -13605,7 +13606,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_machine_image(project, machine_image_object = nil, request_id: nil, source_instance: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/machineImages', options) + command = make_simple_command(:post, 'projects/{project}/global/machineImages', options) command.request_representation = Google::Apis::ComputeBeta::MachineImage::Representation command.request_object = machine_image_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -13677,7 +13678,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_machine_images(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}/global/machineImages', options) + command = make_simple_command(:get, 'projects/{project}/global/machineImages', options) command.response_representation = Google::Apis::ComputeBeta::MachineImageList::Representation command.response_class = Google::Apis::ComputeBeta::MachineImageList command.params['project'] = project unless project.nil? @@ -13718,7 +13719,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/machineImages/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -13757,7 +13758,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/machineImages/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/machineImages/{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 @@ -13834,7 +13835,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_machine_types(project, filter: nil, include_all_scopes: 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/machineTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options) command.response_representation = Google::Apis::ComputeBeta::MachineTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::MachineTypeAggregatedList command.params['project'] = project unless project.nil? @@ -13877,7 +13878,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/machineTypes/{machineType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes/{machineType}', options) command.response_representation = Google::Apis::ComputeBeta::MachineType::Representation command.response_class = Google::Apis::ComputeBeta::MachineType command.params['project'] = project unless project.nil? @@ -13948,7 +13949,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_machine_types(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}/machineTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes', options) command.response_representation = Google::Apis::ComputeBeta::MachineTypeList::Representation command.response_class = Google::Apis::ComputeBeta::MachineTypeList command.params['project'] = project unless project.nil? @@ -14027,7 +14028,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_network_endpoint_group_list(project, filter: nil, include_all_scopes: 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/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupAggregatedList command.params['project'] = project unless project.nil? @@ -14083,7 +14084,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def attach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_attach_endpoints_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}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupsAttachEndpointsRequest::Representation command.request_object = network_endpoint_groups_attach_endpoints_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -14141,7 +14142,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_network_endpoint_group(project, zone, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -14195,7 +14196,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def detach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_detach_endpoints_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}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupsDetachEndpointsRequest::Representation command.request_object = network_endpoint_groups_detach_endpoints_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -14239,7 +14240,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_endpoint_group(project, zone, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup command.params['project'] = project unless project.nil? @@ -14290,7 +14291,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_network_endpoint_group(project, zone, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups', options) command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation command.request_object = network_endpoint_group_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -14365,7 +14366,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_endpoint_groups(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}/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList command.params['project'] = project unless project.nil? @@ -14444,7 +14445,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_list_endpoints_request_object = nil, 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(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options) command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupsListEndpointsRequest::Representation command.request_object = network_endpoint_groups_list_endpoints_request_object command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints::Representation @@ -14490,7 +14491,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_network_endpoint_group_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}/networkEndpointGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/networkEndpointGroups/{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 @@ -14541,7 +14542,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_network_peering(project, network, networks_add_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{network}/addPeering', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/addPeering', options) command.request_representation = Google::Apis::ComputeBeta::NetworksAddPeeringRequest::Representation command.request_object = networks_add_peering_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -14591,7 +14592,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_network(project, network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/networks/{network}', options) + command = make_simple_command(:delete, 'projects/{project}/global/networks/{network}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -14629,7 +14630,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}', options) command.response_representation = Google::Apis::ComputeBeta::Network::Representation command.response_class = Google::Apis::ComputeBeta::Network command.params['project'] = project unless project.nil? @@ -14665,7 +14666,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_network_effective_firewalls(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}/getEffectiveFirewalls', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}/getEffectiveFirewalls', options) command.response_representation = Google::Apis::ComputeBeta::NetworksGetEffectiveFirewallsResponse::Representation command.response_class = Google::Apis::ComputeBeta::NetworksGetEffectiveFirewallsResponse command.params['project'] = project unless project.nil? @@ -14712,7 +14713,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_network(project, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks', options) + command = make_simple_command(:post, 'projects/{project}/global/networks', options) command.request_representation = Google::Apis::ComputeBeta::Network::Representation command.request_object = network_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -14782,7 +14783,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_networks(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}/global/networks', options) + command = make_simple_command(:get, 'projects/{project}/global/networks', options) command.response_representation = Google::Apis::ComputeBeta::NetworkList::Representation command.response_class = Google::Apis::ComputeBeta::NetworkList command.params['project'] = project unless project.nil? @@ -14862,7 +14863,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_network_peering_routes(project, network, direction: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, peering_name: nil, region: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/networks/{network}/listPeeringRoutes', options) + command = make_simple_command(:get, 'projects/{project}/global/networks/{network}/listPeeringRoutes', options) command.response_representation = Google::Apis::ComputeBeta::ExchangedPeeringRoutesList::Representation command.response_class = Google::Apis::ComputeBeta::ExchangedPeeringRoutesList command.params['project'] = project unless project.nil? @@ -14918,7 +14919,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_network(project, network, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/networks/{network}', options) + command = make_simple_command(:patch, 'projects/{project}/global/networks/{network}', options) command.request_representation = Google::Apis::ComputeBeta::Network::Representation command.request_object = network_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -14969,7 +14970,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_network_peering(project, network, networks_remove_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{network}/removePeering', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/removePeering', options) command.request_representation = Google::Apis::ComputeBeta::NetworksRemovePeeringRequest::Representation command.request_object = networks_remove_peering_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -15019,7 +15020,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def switch_network_to_custom_mode(project, network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{network}/switchToCustomMode', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/switchToCustomMode', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -15057,7 +15058,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_network_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/networks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/networks/{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 @@ -15109,7 +15110,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_network_peering(project, network, networks_update_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/networks/{network}/updatePeering', options) + command = make_simple_command(:patch, 'projects/{project}/global/networks/{network}/updatePeering', options) command.request_representation = Google::Apis::ComputeBeta::NetworksUpdatePeeringRequest::Representation command.request_object = networks_update_peering_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -15162,7 +15163,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_node_group_nodes(project, zone, node_group, node_groups_add_nodes_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}/nodeGroups/{nodeGroup}/addNodes', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes', options) command.request_representation = Google::Apis::ComputeBeta::NodeGroupsAddNodesRequest::Representation command.request_object = node_groups_add_nodes_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -15242,7 +15243,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_node_group_list(project, filter: nil, include_all_scopes: 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/nodeGroups', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/nodeGroups', options) command.response_representation = Google::Apis::ComputeBeta::NodeGroupAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::NodeGroupAggregatedList command.params['project'] = project unless project.nil? @@ -15295,7 +15296,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_node_group(project, zone, node_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -15347,7 +15348,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_node_group_nodes(project, zone, node_group, node_groups_delete_nodes_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}/nodeGroups/{nodeGroup}/deleteNodes', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes', options) command.request_representation = Google::Apis::ComputeBeta::NodeGroupsDeleteNodesRequest::Representation command.request_object = node_groups_delete_nodes_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -15391,7 +15392,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_group(project, zone, node_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) command.response_representation = Google::Apis::ComputeBeta::NodeGroup::Representation command.response_class = Google::Apis::ComputeBeta::NodeGroup command.params['project'] = project unless project.nil? @@ -15433,7 +15434,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_group_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeGroups/{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? @@ -15486,7 +15487,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_node_group(project, zone, initial_node_count, node_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups', options) command.request_representation = Google::Apis::ComputeBeta::NodeGroup::Representation command.request_object = node_group_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -15561,7 +15562,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_groups(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}/nodeGroups', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeGroups', options) command.response_representation = Google::Apis::ComputeBeta::NodeGroupList::Representation command.response_class = Google::Apis::ComputeBeta::NodeGroupList command.params['project'] = project unless project.nil? @@ -15637,7 +15638,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_group_nodes(project, zone, node_group, 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(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options) command.response_representation = Google::Apis::ComputeBeta::NodeGroupsListNodes::Representation command.response_class = Google::Apis::ComputeBeta::NodeGroupsListNodes command.params['project'] = project unless project.nil? @@ -15692,7 +15693,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_node_group(project, zone, node_group, node_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) + command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}', options) command.request_representation = Google::Apis::ComputeBeta::NodeGroup::Representation command.request_object = node_group_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -15736,7 +15737,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_node_group_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}/nodeGroups/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{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 @@ -15789,7 +15790,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_node_group_node_template(project, zone, node_group, node_groups_set_node_template_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}/nodeGroups/{nodeGroup}/setNodeTemplate', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', options) command.request_representation = Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest::Representation command.request_object = node_groups_set_node_template_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -15832,7 +15833,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_node_group_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}/nodeGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{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 @@ -15910,7 +15911,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_node_template_list(project, filter: nil, include_all_scopes: 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/nodeTemplates', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/nodeTemplates', options) command.response_representation = Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::NodeTemplateAggregatedList command.params['project'] = project unless project.nil? @@ -15963,7 +15964,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_node_template(project, region, node_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -16004,7 +16005,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_template(project, region, node_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}', options) command.response_representation = Google::Apis::ComputeBeta::NodeTemplate::Representation command.response_class = Google::Apis::ComputeBeta::NodeTemplate command.params['project'] = project unless project.nil? @@ -16046,7 +16047,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_template_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/nodeTemplates/{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? @@ -16097,7 +16098,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_node_template(project, region, node_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/nodeTemplates', options) command.request_representation = Google::Apis::ComputeBeta::NodeTemplate::Representation command.request_object = node_template_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -16170,7 +16171,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_templates(project, region, 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}/regions/{region}/nodeTemplates', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/nodeTemplates', options) command.response_representation = Google::Apis::ComputeBeta::NodeTemplateList::Representation command.response_class = Google::Apis::ComputeBeta::NodeTemplateList command.params['project'] = project unless project.nil? @@ -16214,7 +16215,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_node_template_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -16256,7 +16257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/nodeTemplates/{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 @@ -16334,7 +16335,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_node_type_list(project, filter: nil, include_all_scopes: 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/nodeTypes', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/nodeTypes', options) command.response_representation = Google::Apis::ComputeBeta::NodeTypeAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::NodeTypeAggregatedList command.params['project'] = project unless project.nil? @@ -16377,7 +16378,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_node_type(project, zone, node_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/nodeTypes/{nodeType}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeTypes/{nodeType}', options) command.response_representation = Google::Apis::ComputeBeta::NodeType::Representation command.response_class = Google::Apis::ComputeBeta::NodeType command.params['project'] = project unless project.nil? @@ -16448,7 +16449,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_node_types(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}/nodeTypes', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeTypes', options) command.response_representation = Google::Apis::ComputeBeta::NodeTypeList::Representation command.response_class = Google::Apis::ComputeBeta::NodeTypeList command.params['project'] = project unless project.nil? @@ -17222,7 +17223,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_packet_mirroring_list(project, filter: nil, include_all_scopes: 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/packetMirrorings', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/packetMirrorings', options) command.response_representation = Google::Apis::ComputeBeta::PacketMirroringAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::PacketMirroringAggregatedList command.params['project'] = project unless project.nil? @@ -17275,7 +17276,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_packet_mirroring(project, region, packet_mirroring, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -17315,7 +17316,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_packet_mirroring(project, region, packet_mirroring, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) command.response_representation = Google::Apis::ComputeBeta::PacketMirroring::Representation command.response_class = Google::Apis::ComputeBeta::PacketMirroring command.params['project'] = project unless project.nil? @@ -17365,7 +17366,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_packet_mirroring(project, region, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/packetMirrorings', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings', options) command.request_representation = Google::Apis::ComputeBeta::PacketMirroring::Representation command.request_object = packet_mirroring_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -17439,7 +17440,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_packet_mirrorings(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/packetMirrorings', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/packetMirrorings', options) command.response_representation = Google::Apis::ComputeBeta::PacketMirroringList::Representation command.response_class = Google::Apis::ComputeBeta::PacketMirroringList command.params['project'] = project unless project.nil? @@ -17495,7 +17496,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_packet_mirroring(project, region, packet_mirroring, packet_mirroring_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}', options) command.request_representation = Google::Apis::ComputeBeta::PacketMirroring::Representation command.request_object = packet_mirroring_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -17538,7 +17539,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_packet_mirroring_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/packetMirrorings/{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 @@ -17586,7 +17587,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def disable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/disableXpnHost', options) + command = make_simple_command(:post, 'projects/{project}/disableXpnHost', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -17633,7 +17634,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def disable_project_xpn_resource(project, projects_disable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/disableXpnResource', options) + command = make_simple_command(:post, 'projects/{project}/disableXpnResource', options) command.request_representation = Google::Apis::ComputeBeta::ProjectsDisableXpnResourceRequest::Representation command.request_object = projects_disable_xpn_resource_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -17680,7 +17681,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def enable_project_xpn_host(project, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/enableXpnHost', options) + command = make_simple_command(:post, 'projects/{project}/enableXpnHost', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -17727,7 +17728,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def enable_project_xpn_resource(project, projects_enable_xpn_resource_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/enableXpnResource', options) + command = make_simple_command(:post, 'projects/{project}/enableXpnResource', options) command.request_representation = Google::Apis::ComputeBeta::ProjectsEnableXpnResourceRequest::Representation command.request_object = projects_enable_xpn_resource_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -17763,7 +17764,7 @@ module Google # @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(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}', options) + command = make_simple_command(:get, 'projects/{project}', options) command.response_representation = Google::Apis::ComputeBeta::Project::Representation command.response_class = Google::Apis::ComputeBeta::Project command.params['project'] = project unless project.nil? @@ -17797,7 +17798,7 @@ module Google # @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_xpn_host(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/getXpnHost', options) + command = make_simple_command(:get, 'projects/{project}/getXpnHost', options) command.response_representation = Google::Apis::ComputeBeta::Project::Representation command.response_class = Google::Apis::ComputeBeta::Project command.params['project'] = project unless project.nil? @@ -17865,7 +17866,7 @@ module Google # @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_xpn_resources(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}/getXpnResources', options) + command = make_simple_command(:get, 'projects/{project}/getXpnResources', options) command.response_representation = Google::Apis::ComputeBeta::ProjectsGetXpnResources::Representation command.response_class = Google::Apis::ComputeBeta::ProjectsGetXpnResources command.params['project'] = project unless project.nil? @@ -17937,7 +17938,7 @@ module Google # @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_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, 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(:post, '{project}/listXpnHosts', options) + command = make_simple_command(:post, 'projects/{project}/listXpnHosts', options) command.request_representation = Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest::Representation command.request_object = projects_list_xpn_hosts_request_object command.response_representation = Google::Apis::ComputeBeta::XpnHostList::Representation @@ -17988,7 +17989,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_disk(project, disk_move_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/moveDisk', options) + command = make_simple_command(:post, 'projects/{project}/moveDisk', options) command.request_representation = Google::Apis::ComputeBeta::DiskMoveRequest::Representation command.request_object = disk_move_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18036,7 +18037,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def move_instance(project, move_instance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/moveInstance', options) + command = make_simple_command(:post, 'projects/{project}/moveInstance', options) command.request_representation = Google::Apis::ComputeBeta::MoveInstanceRequest::Representation command.request_object = move_instance_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18085,7 +18086,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_common_instance_metadata(project, metadata_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setCommonInstanceMetadata', options) + command = make_simple_command(:post, 'projects/{project}/setCommonInstanceMetadata', options) command.request_representation = Google::Apis::ComputeBeta::Metadata::Representation command.request_object = metadata_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18135,7 +18136,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_project_default_network_tier(project, projects_set_default_network_tier_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setDefaultNetworkTier', options) + command = make_simple_command(:post, 'projects/{project}/setDefaultNetworkTier', options) command.request_representation = Google::Apis::ComputeBeta::ProjectsSetDefaultNetworkTierRequest::Representation command.request_object = projects_set_default_network_tier_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18185,7 +18186,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_usage_export_bucket(project, usage_export_location_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setUsageExportBucket', options) + command = make_simple_command(:post, 'projects/{project}/setUsageExportBucket', options) command.request_representation = Google::Apis::ComputeBeta::UsageExportLocation::Representation command.request_object = usage_export_location_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18236,7 +18237,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_autoscaler(project, region, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/autoscalers/{autoscaler}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -18276,7 +18277,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/autoscalers/{autoscaler}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options) command.response_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.response_class = Google::Apis::ComputeBeta::Autoscaler command.params['project'] = project unless project.nil? @@ -18326,7 +18327,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_autoscaler(project, region, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/autoscalers', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers', options) command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18399,7 +18400,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_autoscalers(project, region, 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}/regions/{region}/autoscalers', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers', options) command.response_representation = Google::Apis::ComputeBeta::RegionAutoscalerList::Representation command.response_class = Google::Apis::ComputeBeta::RegionAutoscalerList command.params['project'] = project unless project.nil? @@ -18455,7 +18456,7 @@ module Google # @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_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/autoscalers', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/autoscalers', options) command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18498,7 +18499,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_autoscaler_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/autoscalers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers/{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 @@ -18552,7 +18553,7 @@ module Google # @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_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/autoscalers', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/autoscalers', options) command.request_representation = Google::Apis::ComputeBeta::Autoscaler::Representation command.request_object = autoscaler_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18605,7 +18606,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_backend_service(project, region, backend_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -18645,7 +18646,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.response_representation = Google::Apis::ComputeBeta::BackendService::Representation command.response_class = Google::Apis::ComputeBeta::BackendService command.params['project'] = project unless project.nil? @@ -18684,7 +18685,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_backend_service_health(project, region, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{backendService}/getHealth', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{backendService}/getHealth', options) command.request_representation = Google::Apis::ComputeBeta::ResourceGroupReference::Representation command.request_object = resource_group_reference_object command.response_representation = Google::Apis::ComputeBeta::BackendServiceGroupHealth::Representation @@ -18737,7 +18738,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_backend_service(project, region, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/backendServices', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices', options) command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18811,7 +18812,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_backend_services(project, region, 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}/regions/{region}/backendServices', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices', options) command.response_representation = Google::Apis::ComputeBeta::BackendServiceList::Representation command.response_class = Google::Apis::ComputeBeta::BackendServiceList command.params['project'] = project unless project.nil? @@ -18868,7 +18869,7 @@ module Google # @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_backend_service(project, region, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -18911,7 +18912,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_backend_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/backendServices/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{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 @@ -18965,7 +18966,7 @@ module Google # @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_backend_service(project, region, backend_service, backend_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/backendServices/{backendService}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/backendServices/{backendService}', options) command.request_representation = Google::Apis::ComputeBeta::BackendService::Representation command.request_object = backend_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -19044,7 +19045,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_region_commitment_list(project, filter: nil, include_all_scopes: 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/commitments', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/commitments', options) command.response_representation = Google::Apis::ComputeBeta::CommitmentAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::CommitmentAggregatedList command.params['project'] = project unless project.nil? @@ -19087,7 +19088,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_commitment(project, region, commitment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/commitments/{commitment}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/commitments/{commitment}', options) command.response_representation = Google::Apis::ComputeBeta::Commitment::Representation command.response_class = Google::Apis::ComputeBeta::Commitment command.params['project'] = project unless project.nil? @@ -19137,7 +19138,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_commitment(project, region, commitment_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', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments', options) command.request_representation = Google::Apis::ComputeBeta::Commitment::Representation command.request_object = commitment_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -19210,7 +19211,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_commitments(project, region, 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}/regions/{region}/commitments', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/commitments', options) command.response_representation = Google::Apis::ComputeBeta::CommitmentList::Representation command.response_class = Google::Apis::ComputeBeta::CommitmentList command.params['project'] = project unless project.nil? @@ -19264,7 +19265,7 @@ module Google # @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_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 = make_simple_command(:post, 'projects/{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 @@ -19307,7 +19308,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/diskTypes/{diskType}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes/{diskType}', options) command.response_representation = Google::Apis::ComputeBeta::DiskType::Representation command.response_class = Google::Apis::ComputeBeta::DiskType command.params['project'] = project unless project.nil? @@ -19378,7 +19379,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_disk_types(project, region, 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}/regions/{region}/diskTypes', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes', options) command.response_representation = Google::Apis::ComputeBeta::RegionDiskTypeList::Representation command.response_class = Google::Apis::ComputeBeta::RegionDiskTypeList command.params['project'] = project unless project.nil? @@ -19433,7 +19434,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_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}/disks/{disk}/addResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies', options) command.request_representation = Google::Apis::ComputeBeta::RegionDisksAddResourcePoliciesRequest::Representation command.request_object = region_disks_add_resource_policies_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -19487,7 +19488,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_region_disk_snapshot(project, region, disk, snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/createSnapshot', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/createSnapshot', options) command.request_representation = Google::Apis::ComputeBeta::Snapshot::Representation command.request_object = snapshot_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -19543,7 +19544,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_disk(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/disks/{disk}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -19583,7 +19584,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_disk(project, region, disk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/disks/{disk}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/disks/{disk}', options) command.response_representation = Google::Apis::ComputeBeta::Disk::Representation command.response_class = Google::Apis::ComputeBeta::Disk command.params['project'] = project unless project.nil? @@ -19625,7 +19626,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_disk_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/disks/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/disks/{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? @@ -19678,7 +19679,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_disk(project, region, disk_object = nil, request_id: nil, source_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks', options) command.request_representation = Google::Apis::ComputeBeta::Disk::Representation command.request_object = disk_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -19752,7 +19753,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_disks(project, region, 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}/regions/{region}/disks', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/disks', options) command.response_representation = Google::Apis::ComputeBeta::DiskList::Representation command.response_class = Google::Apis::ComputeBeta::DiskList command.params['project'] = project unless project.nil? @@ -19806,7 +19807,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_region_disk_resource_policies(project, region, disk, region_disks_remove_resource_policies_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}/disks/{disk}/removeResourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies', options) command.request_representation = Google::Apis::ComputeBeta::RegionDisksRemoveResourcePoliciesRequest::Representation command.request_object = region_disks_remove_resource_policies_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -19860,7 +19861,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_region_disk(project, region, disk, region_disks_resize_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}/disks/{disk}/resize', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/resize', options) command.request_representation = Google::Apis::ComputeBeta::RegionDisksResizeRequest::Representation command.request_object = region_disks_resize_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -19904,7 +19905,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_disk_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -19957,7 +19958,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_disk_labels(project, region, resource, region_set_labels_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}/disks/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20000,7 +20001,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_disk_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/disks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{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 @@ -20053,7 +20054,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_health_check_service(project, region, health_check_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -20094,7 +20095,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_health_check_service(project, region, health_check_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) command.response_representation = Google::Apis::ComputeBeta::HealthCheckService::Representation command.response_class = Google::Apis::ComputeBeta::HealthCheckService command.params['project'] = project unless project.nil? @@ -20144,7 +20145,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_health_check_service(project, region, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/healthCheckServices', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheckService::Representation command.request_object = health_check_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20218,7 +20219,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_health_check_services(project, region, 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}/regions/{region}/healthCheckServices', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices', options) command.response_representation = Google::Apis::ComputeBeta::HealthCheckServicesList::Representation command.response_class = Google::Apis::ComputeBeta::HealthCheckServicesList command.params['project'] = project unless project.nil? @@ -20275,7 +20276,7 @@ module Google # @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_health_check_service(project, region, health_check_service, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheckService::Representation command.request_object = health_check_service_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20328,7 +20329,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -20369,7 +20370,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.response_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.response_class = Google::Apis::ComputeBeta::HealthCheck command.params['project'] = project unless project.nil? @@ -20419,7 +20420,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_health_check(project, region, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/healthChecks', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20492,7 +20493,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_health_checks(project, region, 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}/regions/{region}/healthChecks', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks', options) command.response_representation = Google::Apis::ComputeBeta::HealthCheckList::Representation command.response_class = Google::Apis::ComputeBeta::HealthCheckList command.params['project'] = project unless project.nil? @@ -20548,7 +20549,7 @@ module Google # @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_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20603,7 +20604,7 @@ module Google # @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_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/healthChecks/{healthCheck}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options) command.request_representation = Google::Apis::ComputeBeta::HealthCheck::Representation command.request_object = health_check_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20668,7 +20669,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_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}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest::Representation command.request_object = region_instance_group_managers_abandon_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20711,7 +20712,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -20769,7 +20770,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_create_instances_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}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest::Representation command.request_object = region_instance_group_managers_create_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20823,7 +20824,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_instance_group_manager(project, region, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -20885,7 +20886,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_delete_instances_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}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersDeleteInstancesRequest::Representation command.request_object = region_instance_group_managers_delete_instances_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20928,7 +20929,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_delete_instance_config_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerDeleteInstanceConfigReq::Representation command.request_object = region_instance_group_manager_delete_instance_config_req_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -20969,7 +20970,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_instance_group_manager(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroupManager command.params['project'] = project unless project.nil? @@ -21024,7 +21025,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_instance_group_manager(project, region, instance_group_manager_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', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21098,7 +21099,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_managers(project, region, 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}/regions/{region}/instanceGroupManagers', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers', options) command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerList::Representation command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagerList command.params['project'] = project unless project.nil? @@ -21177,7 +21178,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_manager_errors(project, region, instance_group_manager, 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}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors', options) command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListErrorsResponse::Representation command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListErrorsResponse command.params['project'] = project unless project.nil? @@ -21256,7 +21257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, 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(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options) command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstancesResponse::Representation command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstancesResponse command.params['project'] = project unless project.nil? @@ -21334,7 +21335,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, 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(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstanceConfigsResp::Representation command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstanceConfigsResp command.params['project'] = project unless project.nil? @@ -21394,7 +21395,7 @@ module Google # @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(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21450,7 +21451,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerPatchInstanceConfigReq::Representation command.request_object = region_instance_group_manager_patch_instance_config_req_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21513,7 +21514,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def recreate_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_recreate_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}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersRecreateRequest::Representation command.request_object = region_instance_group_managers_recreate_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21576,7 +21577,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resize_region_instance_group_manager(project, region, instance_group_manager, size, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -21630,7 +21631,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_manager_auto_healing_policies(project, region, instance_group_manager, region_instance_group_managers_set_auto_healing_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}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetAutoHealingRequest::Representation command.request_object = region_instance_group_managers_set_auto_healing_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21685,7 +21686,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_manager_instance_template(project, region, instance_group_manager, region_instance_group_managers_set_template_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}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTemplateRequest::Representation command.request_object = region_instance_group_managers_set_template_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21740,7 +21741,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_manager_target_pools(project, region, instance_group_manager, region_instance_group_managers_set_target_pools_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}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTargetPoolsRequest::Representation command.request_object = region_instance_group_managers_set_target_pools_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21783,7 +21784,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_instance_group_manager_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{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 @@ -21840,7 +21841,7 @@ module Google # @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_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options) command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation command.request_object = instance_group_manager_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21896,7 +21897,7 @@ module Google # @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_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_update_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}/updatePerInstanceConfigs', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerUpdateInstanceConfigReq::Representation command.request_object = region_instance_group_manager_update_instance_config_req_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -21938,7 +21939,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_instance_group(project, region, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups/{instanceGroup}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}', options) command.response_representation = Google::Apis::ComputeBeta::InstanceGroup::Representation command.response_class = Google::Apis::ComputeBeta::InstanceGroup command.params['project'] = project unless project.nil? @@ -22010,7 +22011,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_groups(project, region, 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}/regions/{region}/instanceGroups', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroups', options) command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupList::Representation command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupList command.params['project'] = project unless project.nil? @@ -22090,7 +22091,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_instance_group_instances(project, region, instance_group, region_instance_groups_list_instances_request_object = nil, 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(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest::Representation command.request_object = region_instance_groups_list_instances_request_object command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances::Representation @@ -22147,7 +22148,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_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}/instanceGroups/{instanceGroup}/setNamedPorts', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options) command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest::Representation command.request_object = region_instance_groups_set_named_ports_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -22190,7 +22191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_region_instance_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{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 @@ -22245,7 +22246,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -22287,7 +22288,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroup command.params['project'] = project unless project.nil? @@ -22338,7 +22339,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/networkEndpointGroups', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options) command.request_representation = Google::Apis::ComputeBeta::NetworkEndpointGroup::Representation command.request_object = network_endpoint_group_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -22413,7 +22414,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_network_endpoint_groups(project, region, 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}/regions/{region}/networkEndpointGroups', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options) command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupList::Representation command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupList command.params['project'] = project unless project.nil? @@ -22466,7 +22467,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -22506,7 +22507,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options) command.response_representation = Google::Apis::ComputeBeta::NotificationEndpoint::Representation command.response_class = Google::Apis::ComputeBeta::NotificationEndpoint command.params['project'] = project unless project.nil? @@ -22556,7 +22557,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/notificationEndpoints', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options) command.request_representation = Google::Apis::ComputeBeta::NotificationEndpoint::Representation command.request_object = notification_endpoint_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -22629,7 +22630,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_notification_endpoints(project, region, 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}/regions/{region}/notificationEndpoints', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options) command.response_representation = Google::Apis::ComputeBeta::NotificationEndpointList::Representation command.response_class = Google::Apis::ComputeBeta::NotificationEndpointList command.params['project'] = project unless project.nil? @@ -22671,7 +22672,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/operations/{operation}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['region'] = region unless region.nil? command.params['operation'] = operation unless operation.nil? @@ -22708,7 +22709,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/operations/{operation}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations/{operation}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -22779,7 +22780,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_operations(project, region, 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}/regions/{region}/operations', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options) command.response_representation = Google::Apis::ComputeBeta::OperationList::Representation command.response_class = Google::Apis::ComputeBeta::OperationList command.params['project'] = project unless project.nil? @@ -22831,7 +22832,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def wait_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/operations/{operation}/wait', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/operations/{operation}/wait', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -22881,7 +22882,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_ssl_certificate(project, region, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -22922,7 +22923,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_ssl_certificate(project, region, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeBeta::SslCertificate::Representation command.response_class = Google::Apis::ComputeBeta::SslCertificate command.params['project'] = project unless project.nil? @@ -22972,7 +22973,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_ssl_certificate(project, region, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/sslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslCertificates', options) command.request_representation = Google::Apis::ComputeBeta::SslCertificate::Representation command.request_object = ssl_certificate_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23046,7 +23047,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_ssl_certificates(project, region, 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}/regions/{region}/sslCertificates', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslCertificates', options) command.response_representation = Google::Apis::ComputeBeta::SslCertificateList::Representation command.response_class = Google::Apis::ComputeBeta::SslCertificateList command.params['project'] = project unless project.nil? @@ -23099,7 +23100,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_target_http_proxy(project, region, target_http_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -23140,7 +23141,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_target_http_proxy(project, region, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpProxy command.params['project'] = project unless project.nil? @@ -23190,7 +23191,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_target_http_proxy(project, region, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies', options) command.request_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation command.request_object = target_http_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23264,7 +23265,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_target_http_proxies(project, region, 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}/regions/{region}/targetHttpProxies', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxyList::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpProxyList command.params['project'] = project unless project.nil? @@ -23318,7 +23319,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_target_http_proxy_url_map(project, region, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23371,7 +23372,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_target_https_proxy(project, region, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -23412,7 +23413,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_target_https_proxy(project, region, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy command.params['project'] = project unless project.nil? @@ -23462,7 +23463,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_target_https_proxy(project, region, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies', options) command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation command.request_object = target_https_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23536,7 +23537,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_target_https_proxies(project, region, 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}/regions/{region}/targetHttpsProxies', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetHttpsProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyList::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyList command.params['project'] = project unless project.nil? @@ -23590,7 +23591,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_target_https_proxy_ssl_certificates(project, region, target_https_proxy, region_target_https_proxies_set_ssl_certificates_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}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) command.request_representation = Google::Apis::ComputeBeta::RegionTargetHttpsProxiesSetSslCertificatesRequest::Representation command.request_object = region_target_https_proxies_set_ssl_certificates_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23644,7 +23645,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_region_target_https_proxy_url_map(project, region, target_https_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23688,7 +23689,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_region_url_map(project, region, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -23729,7 +23730,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region_url_map(project, region, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.response_class = Google::Apis::ComputeBeta::UrlMap command.params['project'] = project unless project.nil? @@ -23770,7 +23771,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_region_url_map(project, region, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/urlMaps', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps', options) command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23815,7 +23816,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def invalidate_region_url_map_cache(project, region, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache', options) command.request_representation = Google::Apis::ComputeBeta::CacheInvalidationRule::Representation command.request_object = cache_invalidation_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23890,7 +23891,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_region_url_maps(project, region, 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}/regions/{region}/urlMaps', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/urlMaps', options) command.response_representation = Google::Apis::ComputeBeta::UrlMapList::Representation command.response_class = Google::Apis::ComputeBeta::UrlMapList command.params['project'] = project unless project.nil? @@ -23937,7 +23938,7 @@ module Google # @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_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -23982,7 +23983,7 @@ module Google # @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_url_map(project, region, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/urlMaps/{urlMap}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -24026,7 +24027,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def validate_region_url_map(project, region, url_map, region_url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/urlMaps/{urlMap}/validate', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/urlMaps/{urlMap}/validate', options) command.request_representation = Google::Apis::ComputeBeta::RegionUrlMapsValidateRequest::Representation command.request_object = region_url_maps_validate_request_object command.response_representation = Google::Apis::ComputeBeta::ValidateUrlMapsResponse::Representation @@ -24066,7 +24067,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}', options) command.response_representation = Google::Apis::ComputeBeta::Region::Representation command.response_class = Google::Apis::ComputeBeta::Region command.params['project'] = project unless project.nil? @@ -24134,7 +24135,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_regions(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}/regions', options) + command = make_simple_command(:get, 'projects/{project}/regions', options) command.response_representation = Google::Apis::ComputeBeta::RegionList::Representation command.response_class = Google::Apis::ComputeBeta::RegionList command.params['project'] = project unless project.nil? @@ -24212,7 +24213,7 @@ module Google # @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, include_all_scopes: 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 = make_simple_command(:get, 'projects/{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? @@ -24265,7 +24266,7 @@ module Google # @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 = make_simple_command(:delete, 'projects/{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? @@ -24305,7 +24306,7 @@ module Google # @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 = make_simple_command(:get, 'projects/{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? @@ -24347,7 +24348,7 @@ module Google # @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, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/reservations/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{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? @@ -24398,7 +24399,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -24472,7 +24473,7 @@ module Google # @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 = make_simple_command(:get, 'projects/{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? @@ -24527,7 +24528,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -24571,7 +24572,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -24613,7 +24614,7 @@ module Google # @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 = make_simple_command(:post, 'projects/{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 @@ -24691,7 +24692,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_resource_policy_list(project, filter: nil, include_all_scopes: 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/resourcePolicies', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/resourcePolicies', options) command.response_representation = Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::ResourcePolicyAggregatedList command.params['project'] = project unless project.nil? @@ -24744,7 +24745,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -24784,7 +24785,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options) command.response_representation = Google::Apis::ComputeBeta::ResourcePolicy::Representation command.response_class = Google::Apis::ComputeBeta::ResourcePolicy command.params['project'] = project unless project.nil? @@ -24826,7 +24827,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_resource_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies/{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? @@ -24876,7 +24877,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies', options) command.request_representation = Google::Apis::ComputeBeta::ResourcePolicy::Representation command.request_object = resource_policy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -24950,7 +24951,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_resource_policies(project, region, 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}/regions/{region}/resourcePolicies', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/resourcePolicies', options) command.response_representation = Google::Apis::ComputeBeta::ResourcePolicyList::Representation command.response_class = Google::Apis::ComputeBeta::ResourcePolicyList command.params['project'] = project unless project.nil? @@ -24994,7 +24995,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_resource_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -25036,7 +25037,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_resource_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/resourcePolicies/{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 @@ -25114,7 +25115,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_routers(project, filter: nil, include_all_scopes: 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/routers', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/routers', options) command.response_representation = Google::Apis::ComputeBeta::RouterAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::RouterAggregatedList command.params['project'] = project unless project.nil? @@ -25167,7 +25168,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_router(project, region, router, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/routers/{router}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -25208,7 +25209,7 @@ module Google # @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(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}', options) command.response_representation = Google::Apis::ComputeBeta::Router::Representation command.response_class = Google::Apis::ComputeBeta::Router command.params['project'] = project unless project.nil? @@ -25286,7 +25287,7 @@ module Google # @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, 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 = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo', options) command.response_representation = Google::Apis::ComputeBeta::VmEndpointNatMappingsList::Representation command.response_class = Google::Apis::ComputeBeta::VmEndpointNatMappingsList command.params['project'] = project unless project.nil? @@ -25330,7 +25331,7 @@ module Google # @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_status(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/routers/{router}/getRouterStatus', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getRouterStatus', options) command.response_representation = Google::Apis::ComputeBeta::RouterStatusResponse::Representation command.response_class = Google::Apis::ComputeBeta::RouterStatusResponse command.params['project'] = project unless project.nil? @@ -25380,7 +25381,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_router(project, region, router_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/routers', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers', options) command.request_representation = Google::Apis::ComputeBeta::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -25453,7 +25454,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_routers(project, region, 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}/regions/{region}/routers', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers', options) command.response_representation = Google::Apis::ComputeBeta::RouterList::Representation command.response_class = Google::Apis::ComputeBeta::RouterList command.params['project'] = project unless project.nil? @@ -25509,7 +25510,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_router(project, region, router, router_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/routers/{router}', options) command.request_representation = Google::Apis::ComputeBeta::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -25553,7 +25554,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def preview_router(project, region, router, router_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/routers/{router}/preview', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/preview', options) command.request_representation = Google::Apis::ComputeBeta::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeBeta::RoutersPreviewResponse::Representation @@ -25595,7 +25596,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_router_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/routers/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{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 @@ -25651,7 +25652,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_router(project, region, router, router_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/regions/{region}/routers/{router}', options) + command = make_simple_command(:put, 'projects/{project}/regions/{region}/routers/{router}', options) command.request_representation = Google::Apis::ComputeBeta::Router::Representation command.request_object = router_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -25702,7 +25703,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_route(project, route, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/routes/{route}', options) + command = make_simple_command(:delete, 'projects/{project}/global/routes/{route}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -25740,7 +25741,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_route(project, route, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/routes/{route}', options) + command = make_simple_command(:get, 'projects/{project}/global/routes/{route}', options) command.response_representation = Google::Apis::ComputeBeta::Route::Representation command.response_class = Google::Apis::ComputeBeta::Route command.params['project'] = project unless project.nil? @@ -25787,7 +25788,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_route(project, route_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/routes', options) + command = make_simple_command(:post, 'projects/{project}/global/routes', options) command.request_representation = Google::Apis::ComputeBeta::Route::Representation command.request_object = route_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -25857,7 +25858,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_routes(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}/global/routes', options) + command = make_simple_command(:get, 'projects/{project}/global/routes', options) command.response_representation = Google::Apis::ComputeBeta::RouteList::Representation command.response_class = Google::Apis::ComputeBeta::RouteList command.params['project'] = project unless project.nil? @@ -25897,7 +25898,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_route_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/routes/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/routes/{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 @@ -25938,7 +25939,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_security_policy_rule(project, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/addRule', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{securityPolicy}/addRule', options) command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation command.request_object = security_policy_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -25988,7 +25989,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_security_policy(project, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/securityPolicies/{securityPolicy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/securityPolicies/{securityPolicy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -26025,7 +26026,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_security_policy(project, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/securityPolicies/{securityPolicy}', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies/{securityPolicy}', options) command.response_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation command.response_class = Google::Apis::ComputeBeta::SecurityPolicy command.params['project'] = project unless project.nil? @@ -26063,7 +26064,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/securityPolicies/{securityPolicy}/getRule', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies/{securityPolicy}/getRule', options) command.response_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation command.response_class = Google::Apis::ComputeBeta::SecurityPolicyRule command.params['project'] = project unless project.nil? @@ -26113,7 +26114,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_security_policy(project, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies', options) command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation command.request_object = security_policy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -26184,7 +26185,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_security_policies(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}/global/securityPolicies', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies', options) command.response_representation = Google::Apis::ComputeBeta::SecurityPolicyList::Representation command.response_class = Google::Apis::ComputeBeta::SecurityPolicyList command.params['project'] = project unless project.nil? @@ -26256,7 +26257,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_security_policy_preconfigured_expression_sets(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}/global/securityPolicies/listPreconfiguredExpressionSets', options) + command = make_simple_command(:get, 'projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets', options) command.response_representation = Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation command.response_class = Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse command.params['project'] = project unless project.nil? @@ -26307,7 +26308,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_security_policy(project, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/securityPolicies/{securityPolicy}', options) + command = make_simple_command(:patch, 'projects/{project}/global/securityPolicies/{securityPolicy}', options) command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation command.request_object = security_policy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -26351,7 +26352,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/patchRule', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{securityPolicy}/patchRule', options) command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation command.request_object = security_policy_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -26393,7 +26394,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_security_policy_rule(project, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/removeRule', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{securityPolicy}/removeRule', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -26432,7 +26433,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -26471,7 +26472,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_security_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/securityPolicies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{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 @@ -26524,7 +26525,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_snapshot(project, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/snapshots/{snapshot}', options) + command = make_simple_command(:delete, 'projects/{project}/global/snapshots/{snapshot}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -26562,7 +26563,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/snapshots/{snapshot}', options) + command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}', options) command.response_representation = Google::Apis::ComputeBeta::Snapshot::Representation command.response_class = Google::Apis::ComputeBeta::Snapshot command.params['project'] = project unless project.nil? @@ -26601,7 +26602,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/snapshots/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/global/snapshots/{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? @@ -26671,7 +26672,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_snapshots(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}/global/snapshots', options) + command = make_simple_command(:get, 'projects/{project}/global/snapshots', options) command.response_representation = Google::Apis::ComputeBeta::SnapshotList::Representation command.response_class = Google::Apis::ComputeBeta::SnapshotList command.params['project'] = project unless project.nil? @@ -26712,7 +26713,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_snapshot_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/snapshots/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -26752,7 +26753,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_snapshot_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/global/snapshots/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation command.request_object = global_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -26791,7 +26792,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_snapshot_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/snapshots/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/snapshots/{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 @@ -26869,7 +26870,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_ssl_certificate_list(project, filter: nil, include_all_scopes: 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/sslCertificates', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/sslCertificates', options) command.response_representation = Google::Apis::ComputeBeta::SslCertificateAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::SslCertificateAggregatedList command.params['project'] = project unless project.nil? @@ -26920,7 +26921,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_ssl_certificate(project, ssl_certificate, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:delete, 'projects/{project}/global/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -26958,7 +26959,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ssl_certificate(project, ssl_certificate, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/sslCertificates/{sslCertificate}', options) + command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/{sslCertificate}', options) command.response_representation = Google::Apis::ComputeBeta::SslCertificate::Representation command.response_class = Google::Apis::ComputeBeta::SslCertificate command.params['project'] = project unless project.nil? @@ -27005,7 +27006,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_ssl_certificate(project, ssl_certificate_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/global/sslCertificates', options) command.request_representation = Google::Apis::ComputeBeta::SslCertificate::Representation command.request_object = ssl_certificate_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -27076,7 +27077,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ssl_certificates(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}/global/sslCertificates', options) + command = make_simple_command(:get, 'projects/{project}/global/sslCertificates', options) command.response_representation = Google::Apis::ComputeBeta::SslCertificateList::Representation command.response_class = Google::Apis::ComputeBeta::SslCertificateList command.params['project'] = project unless project.nil? @@ -27116,7 +27117,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_ssl_certificate_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslCertificates/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/sslCertificates/{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 @@ -27167,7 +27168,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_ssl_policy(project, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/sslPolicies/{sslPolicy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/sslPolicies/{sslPolicy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -27205,7 +27206,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_ssl_policy(project, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/sslPolicies/{sslPolicy}', options) + command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/{sslPolicy}', options) command.response_representation = Google::Apis::ComputeBeta::SslPolicy::Representation command.response_class = Google::Apis::ComputeBeta::SslPolicy command.params['project'] = project unless project.nil? @@ -27252,7 +27253,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_ssl_policy(project, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslPolicies', options) + command = make_simple_command(:post, 'projects/{project}/global/sslPolicies', options) command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation command.request_object = ssl_policy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -27322,7 +27323,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ssl_policies(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}/global/sslPolicies', options) + command = make_simple_command(:get, 'projects/{project}/global/sslPolicies', options) command.response_representation = Google::Apis::ComputeBeta::SslPoliciesList::Representation command.response_class = Google::Apis::ComputeBeta::SslPoliciesList command.params['project'] = project unless project.nil? @@ -27394,7 +27395,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_ssl_policy_available_features(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}/global/sslPolicies/listAvailableFeatures', options) + command = make_simple_command(:get, 'projects/{project}/global/sslPolicies/listAvailableFeatures', options) command.response_representation = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse::Representation command.response_class = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse command.params['project'] = project unless project.nil? @@ -27446,7 +27447,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_ssl_policy(project, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/sslPolicies/{sslPolicy}', options) + command = make_simple_command(:patch, 'projects/{project}/global/sslPolicies/{sslPolicy}', options) command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation command.request_object = ssl_policy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -27486,7 +27487,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_ssl_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/sslPolicies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/sslPolicies/{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 @@ -27563,7 +27564,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_subnetworks(project, filter: nil, include_all_scopes: 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/subnetworks', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks', options) command.response_representation = Google::Apis::ComputeBeta::SubnetworkAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::SubnetworkAggregatedList command.params['project'] = project unless project.nil? @@ -27616,7 +27617,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_subnetwork(project, region, subnetwork, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/subnetworks/{subnetwork}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -27668,7 +27669,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def expand_subnetwork_ip_cidr_range(project, region, subnetwork, subnetworks_expand_ip_cidr_range_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}/subnetworks/{subnetwork}/expandIpCidrRange', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange', options) command.request_representation = Google::Apis::ComputeBeta::SubnetworksExpandIpCidrRangeRequest::Representation command.request_object = subnetworks_expand_ip_cidr_range_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -27711,7 +27712,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{subnetwork}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options) command.response_representation = Google::Apis::ComputeBeta::Subnetwork::Representation command.response_class = Google::Apis::ComputeBeta::Subnetwork command.params['project'] = project unless project.nil? @@ -27753,7 +27754,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_subnetwork_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks/{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? @@ -27804,7 +27805,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_subnetwork(project, region, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/subnetworks', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks', options) command.request_representation = Google::Apis::ComputeBeta::Subnetwork::Representation command.request_object = subnetwork_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -27877,7 +27878,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subnetworks(project, region, 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}/regions/{region}/subnetworks', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/subnetworks', options) command.response_representation = Google::Apis::ComputeBeta::SubnetworkList::Representation command.response_class = Google::Apis::ComputeBeta::SubnetworkList command.params['project'] = project unless project.nil? @@ -27949,7 +27950,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_subnetwork_usable(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/subnetworks/listUsable', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/subnetworks/listUsable', options) command.response_representation = Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::UsableSubnetworksAggregatedList command.params['project'] = project unless project.nil? @@ -28013,7 +28014,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, drain_timeout_seconds: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options) + command = make_simple_command(:patch, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', options) command.request_representation = Google::Apis::ComputeBeta::Subnetwork::Representation command.request_object = subnetwork_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -28058,7 +28059,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_subnetwork_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation command.request_object = region_set_policy_request_object command.response_representation = Google::Apis::ComputeBeta::Policy::Representation @@ -28112,7 +28113,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_subnetwork_private_ip_google_access(project, region, subnetwork, subnetworks_set_private_ip_google_access_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}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess', options) command.request_representation = Google::Apis::ComputeBeta::SubnetworksSetPrivateIpGoogleAccessRequest::Representation command.request_object = subnetworks_set_private_ip_google_access_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -28155,7 +28156,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_subnetwork_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/subnetworks/{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 @@ -28205,7 +28206,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_grpc_proxy(project, target_grpc_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -28242,7 +28243,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_grpc_proxy(project, target_grpc_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) command.response_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation command.response_class = Google::Apis::ComputeBeta::TargetGrpcProxy command.params['project'] = project unless project.nil? @@ -28289,7 +28290,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_grpc_proxy(project, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetGrpcProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetGrpcProxies', options) command.request_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation command.request_object = target_grpc_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -28359,7 +28360,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_grpc_proxies(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}/global/targetGrpcProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetGrpcProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetGrpcProxyList::Representation command.response_class = Google::Apis::ComputeBeta::TargetGrpcProxyList command.params['project'] = project unless project.nil? @@ -28412,7 +28413,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_target_grpc_proxy(project, target_grpc_proxy, target_grpc_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) + command = make_simple_command(:patch, 'projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}', options) command.request_representation = Google::Apis::ComputeBeta::TargetGrpcProxy::Representation command.request_object = target_grpc_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -28491,7 +28492,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_target_http_proxy_list(project, filter: nil, include_all_scopes: 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/targetHttpProxies', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetHttpProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpProxyAggregatedList command.params['project'] = project unless project.nil? @@ -28542,7 +28543,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_http_proxy(project, target_http_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -28580,7 +28581,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_http_proxy(project, target_http_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetHttpProxies/{targetHttpProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpProxies/{targetHttpProxy}', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpProxy command.params['project'] = project unless project.nil? @@ -28627,7 +28628,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_http_proxy(project, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpProxies', options) command.request_representation = Google::Apis::ComputeBeta::TargetHttpProxy::Representation command.request_object = target_http_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -28698,7 +28699,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_http_proxies(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}/global/targetHttpProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpProxyList::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpProxyList command.params['project'] = project unless project.nil? @@ -28749,7 +28750,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_http_proxy_url_map(project, target_http_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -28789,7 +28790,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_http_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpProxies/{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 @@ -28867,7 +28868,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_target_https_proxy_list(project, filter: nil, include_all_scopes: 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/targetHttpsProxies', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetHttpsProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyAggregatedList command.params['project'] = project unless project.nil? @@ -28918,7 +28919,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_https_proxy(project, target_https_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -28956,7 +28957,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_https_proxy(project, target_https_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxy command.params['project'] = project unless project.nil? @@ -29003,7 +29004,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_https_proxy(project, target_https_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies', options) command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxy::Representation command.request_object = target_https_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29074,7 +29075,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_https_proxies(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}/global/targetHttpsProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetHttpsProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetHttpsProxyList::Representation command.response_class = Google::Apis::ComputeBeta::TargetHttpsProxyList command.params['project'] = project unless project.nil? @@ -29126,7 +29127,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_quic_override(project, target_https_proxy, target_https_proxies_set_quic_override_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride', options) command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxiesSetQuicOverrideRequest::Representation command.request_object = target_https_proxies_set_quic_override_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29177,7 +29178,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_ssl_certificates(project, target_https_proxy, target_https_proxies_set_ssl_certificates_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', options) command.request_representation = Google::Apis::ComputeBeta::TargetHttpsProxiesSetSslCertificatesRequest::Representation command.request_object = target_https_proxies_set_ssl_certificates_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29232,7 +29233,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_ssl_policy(project, target_https_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy', options) command.request_representation = Google::Apis::ComputeBeta::SslPolicyReference::Representation command.request_object = ssl_policy_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29283,7 +29284,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_https_proxy_url_map(project, target_https_proxy, url_map_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) + command = make_simple_command(:post, 'projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', options) command.request_representation = Google::Apis::ComputeBeta::UrlMapReference::Representation command.request_object = url_map_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29323,7 +29324,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_https_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetHttpsProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetHttpsProxies/{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 @@ -29400,7 +29401,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_target_instance(project, filter: nil, include_all_scopes: 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/targetInstances', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetInstances', options) command.response_representation = Google::Apis::ComputeBeta::TargetInstanceAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::TargetInstanceAggregatedList command.params['project'] = project unless project.nil? @@ -29453,7 +29454,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_instance(project, zone, target_instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/targetInstances/{targetInstance}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -29494,7 +29495,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_instance(project, zone, target_instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/targetInstances/{targetInstance}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}', options) command.response_representation = Google::Apis::ComputeBeta::TargetInstance::Representation command.response_class = Google::Apis::ComputeBeta::TargetInstance command.params['project'] = project unless project.nil? @@ -29544,7 +29545,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_instance(project, zone, target_instance_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/targetInstances', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances', options) command.request_representation = Google::Apis::ComputeBeta::TargetInstance::Representation command.request_object = target_instance_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29618,7 +29619,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_instances(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}/targetInstances', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/targetInstances', options) command.response_representation = Google::Apis::ComputeBeta::TargetInstanceList::Representation command.response_class = Google::Apis::ComputeBeta::TargetInstanceList command.params['project'] = project unless project.nil? @@ -29661,7 +29662,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_instance_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}/targetInstances/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances/{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 @@ -29714,7 +29715,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_target_pool_health_check(project, region, target_pool, add_target_pools_health_check_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}/targetPools/{targetPool}/addHealthCheck', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck', options) command.request_representation = Google::Apis::ComputeBeta::AddTargetPoolsHealthCheckRequest::Representation command.request_object = add_target_pools_health_check_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29768,7 +29769,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def add_target_pool_instance(project, region, target_pool, add_target_pools_instance_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}/targetPools/{targetPool}/addInstance', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance', options) command.request_representation = Google::Apis::ComputeBeta::AddTargetPoolsInstanceRequest::Representation command.request_object = add_target_pools_instance_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -29847,7 +29848,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_target_pools(project, filter: nil, include_all_scopes: 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/targetPools', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetPools', options) command.response_representation = Google::Apis::ComputeBeta::TargetPoolAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::TargetPoolAggregatedList command.params['project'] = project unless project.nil? @@ -29900,7 +29901,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_pool(project, region, target_pool, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetPools/{targetPool}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetPools/{targetPool}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -29941,7 +29942,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_pool(project, region, target_pool, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetPools/{targetPool}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetPools/{targetPool}', options) command.response_representation = Google::Apis::ComputeBeta::TargetPool::Representation command.response_class = Google::Apis::ComputeBeta::TargetPool command.params['project'] = project unless project.nil? @@ -29982,7 +29983,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_pool_health(project, region, target_pool, instance_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/getHealth', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth', options) command.request_representation = Google::Apis::ComputeBeta::InstanceReference::Representation command.request_object = instance_reference_object command.response_representation = Google::Apis::ComputeBeta::TargetPoolInstanceHealth::Representation @@ -30034,7 +30035,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_pool(project, region, target_pool_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools', options) command.request_representation = Google::Apis::ComputeBeta::TargetPool::Representation command.request_object = target_pool_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30107,7 +30108,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_pools(project, region, 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}/regions/{region}/targetPools', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetPools', options) command.response_representation = Google::Apis::ComputeBeta::TargetPoolList::Representation command.response_class = Google::Apis::ComputeBeta::TargetPoolList command.params['project'] = project unless project.nil? @@ -30161,7 +30162,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_target_pool_health_check(project, region, target_pool, remove_target_pools_health_check_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}/targetPools/{targetPool}/removeHealthCheck', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck', options) command.request_representation = Google::Apis::ComputeBeta::RemoveTargetPoolsHealthCheckRequest::Representation command.request_object = remove_target_pools_health_check_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30215,7 +30216,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def remove_target_pool_instance(project, region, target_pool, remove_target_pools_instance_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}/targetPools/{targetPool}/removeInstance', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance', options) command.request_representation = Google::Apis::ComputeBeta::RemoveTargetPoolsInstanceRequest::Representation command.request_object = remove_target_pools_instance_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30271,7 +30272,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_pool_backup(project, region, target_pool, target_reference_object = nil, failover_ratio: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{targetPool}/setBackup', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup', options) command.request_representation = Google::Apis::ComputeBeta::TargetReference::Representation command.request_object = target_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30315,7 +30316,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_pool_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetPools/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{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 @@ -30365,7 +30366,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_ssl_proxy(project, target_ssl_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetSslProxies/{targetSslProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetSslProxies/{targetSslProxy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -30403,7 +30404,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_ssl_proxy(project, target_ssl_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetSslProxies/{targetSslProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetSslProxies/{targetSslProxy}', options) command.response_representation = Google::Apis::ComputeBeta::TargetSslProxy::Representation command.response_class = Google::Apis::ComputeBeta::TargetSslProxy command.params['project'] = project unless project.nil? @@ -30450,7 +30451,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_ssl_proxy(project, target_ssl_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies', options) command.request_representation = Google::Apis::ComputeBeta::TargetSslProxy::Representation command.request_object = target_ssl_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30521,7 +30522,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_ssl_proxies(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}/global/targetSslProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetSslProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetSslProxyList::Representation command.response_class = Google::Apis::ComputeBeta::TargetSslProxyList command.params['project'] = project unless project.nil? @@ -30572,7 +30573,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_backend_service(project, target_ssl_proxy, target_ssl_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService', options) command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetBackendServiceRequest::Representation command.request_object = target_ssl_proxies_set_backend_service_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30623,7 +30624,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_proxy_header(project, target_ssl_proxy, target_ssl_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader', options) command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetProxyHeaderRequest::Representation command.request_object = target_ssl_proxies_set_proxy_header_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30674,7 +30675,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_ssl_certificates(project, target_ssl_proxy, target_ssl_proxies_set_ssl_certificates_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates', options) command.request_representation = Google::Apis::ComputeBeta::TargetSslProxiesSetSslCertificatesRequest::Representation command.request_object = target_ssl_proxies_set_ssl_certificates_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30729,7 +30730,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_ssl_proxy_ssl_policy(project, target_ssl_proxy, ssl_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy', options) command.request_representation = Google::Apis::ComputeBeta::SslPolicyReference::Representation command.request_object = ssl_policy_reference_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30769,7 +30770,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_ssl_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetSslProxies/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/targetSslProxies/{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 @@ -30818,7 +30819,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_tcp_proxy(project, target_tcp_proxy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/targetTcpProxies/{targetTcpProxy}', options) + command = make_simple_command(:delete, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -30856,7 +30857,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/targetTcpProxies/{targetTcpProxy}', options) + command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options) command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation command.response_class = Google::Apis::ComputeBeta::TargetTcpProxy command.params['project'] = project unless project.nil? @@ -30903,7 +30904,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetTcpProxies', options) + command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options) command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxy::Representation command.request_object = target_tcp_proxy_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -30974,7 +30975,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_tcp_proxies(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}/global/targetTcpProxies', options) + command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options) command.response_representation = Google::Apis::ComputeBeta::TargetTcpProxyList::Representation command.response_class = Google::Apis::ComputeBeta::TargetTcpProxyList command.params['project'] = project unless project.nil? @@ -31025,7 +31026,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_tcp_proxy_backend_service(project, target_tcp_proxy, target_tcp_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options) + command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options) command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetBackendServiceRequest::Representation command.request_object = target_tcp_proxies_set_backend_service_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31076,7 +31077,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_tcp_proxy_proxy_header(project, target_tcp_proxy, target_tcp_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options) + command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options) command.request_representation = Google::Apis::ComputeBeta::TargetTcpProxiesSetProxyHeaderRequest::Representation command.request_object = target_tcp_proxies_set_proxy_header_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31154,7 +31155,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_target_vpn_gateways(project, filter: nil, include_all_scopes: 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/targetVpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/targetVpnGateways', options) command.response_representation = Google::Apis::ComputeBeta::TargetVpnGatewayAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::TargetVpnGatewayAggregatedList command.params['project'] = project unless project.nil? @@ -31207,7 +31208,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -31248,7 +31249,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options) command.response_representation = Google::Apis::ComputeBeta::TargetVpnGateway::Representation command.response_class = Google::Apis::ComputeBeta::TargetVpnGateway command.params['project'] = project unless project.nil? @@ -31298,7 +31299,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_target_vpn_gateway(project, region, target_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options) command.request_representation = Google::Apis::ComputeBeta::TargetVpnGateway::Representation command.request_object = target_vpn_gateway_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31372,7 +31373,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_target_vpn_gateways(project, region, 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}/regions/{region}/targetVpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options) command.response_representation = Google::Apis::ComputeBeta::TargetVpnGatewayList::Representation command.response_class = Google::Apis::ComputeBeta::TargetVpnGatewayList command.params['project'] = project unless project.nil? @@ -31427,7 +31428,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_target_vpn_gateway_labels(project, region, resource, region_set_labels_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}/targetVpnGateways/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31470,7 +31471,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_target_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{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 @@ -31549,7 +31550,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_url_map_list(project, filter: nil, include_all_scopes: 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/urlMaps', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/urlMaps', options) command.response_representation = Google::Apis::ComputeBeta::UrlMapsAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::UrlMapsAggregatedList command.params['project'] = project unless project.nil? @@ -31600,7 +31601,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_url_map(project, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:delete, 'projects/{project}/global/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -31638,7 +31639,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_url_map(project, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:get, 'projects/{project}/global/urlMaps/{urlMap}', options) command.response_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.response_class = Google::Apis::ComputeBeta::UrlMap command.params['project'] = project unless project.nil? @@ -31685,7 +31686,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_url_map(project, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps', options) command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31736,7 +31737,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def invalidate_url_map_cache(project, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/invalidateCache', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/invalidateCache', options) command.request_representation = Google::Apis::ComputeBeta::CacheInvalidationRule::Representation command.request_object = cache_invalidation_rule_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31807,7 +31808,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_url_maps(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}/global/urlMaps', options) + command = make_simple_command(:get, 'projects/{project}/global/urlMaps', options) command.response_representation = Google::Apis::ComputeBeta::UrlMapList::Representation command.response_class = Google::Apis::ComputeBeta::UrlMapList command.params['project'] = project unless project.nil? @@ -31860,7 +31861,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:patch, 'projects/{project}/global/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31900,7 +31901,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{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 @@ -31950,7 +31951,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def update_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/urlMaps/{urlMap}', options) + command = make_simple_command(:put, 'projects/{project}/global/urlMaps/{urlMap}', options) command.request_representation = Google::Apis::ComputeBeta::UrlMap::Representation command.request_object = url_map_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -31991,7 +31992,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def validate_url_map(project, url_map, validate_url_maps_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/urlMaps/{urlMap}/validate', options) + command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/validate', options) command.request_representation = Google::Apis::ComputeBeta::ValidateUrlMapsRequest::Representation command.request_object = validate_url_maps_request_object command.response_representation = Google::Apis::ComputeBeta::ValidateUrlMapsResponse::Representation @@ -32068,7 +32069,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def aggregated_vpn_gateway_list(project, filter: nil, include_all_scopes: 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/vpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/vpnGateways', options) command.response_representation = Google::Apis::ComputeBeta::VpnGatewayAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::VpnGatewayAggregatedList command.params['project'] = project unless project.nil? @@ -32121,7 +32122,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/vpnGateways/{vpnGateway}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -32162,7 +32163,7 @@ module Google # @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(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}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options) command.response_representation = Google::Apis::ComputeBeta::VpnGateway::Representation command.response_class = Google::Apis::ComputeBeta::VpnGateway command.params['project'] = project unless project.nil? @@ -32201,7 +32202,7 @@ module Google # @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 = make_simple_command(:get, 'projects/{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? @@ -32251,7 +32252,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/vpnGateways', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options) command.request_representation = Google::Apis::ComputeBeta::VpnGateway::Representation command.request_object = vpn_gateway_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -32324,7 +32325,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_vpn_gateways(project, region, 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}/regions/{region}/vpnGateways', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options) command.response_representation = Google::Apis::ComputeBeta::VpnGatewayList::Representation command.response_class = Google::Apis::ComputeBeta::VpnGatewayList command.params['project'] = project unless project.nil? @@ -32379,7 +32380,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_vpn_gateway_labels(project, region, resource, region_set_labels_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}/vpnGateways/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -32458,7 +32459,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_aggregated_vpn_tunnel(project, filter: nil, include_all_scopes: 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/vpnTunnels', options) + command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options) command.response_representation = Google::Apis::ComputeBeta::VpnTunnelAggregatedList::Representation command.response_class = Google::Apis::ComputeBeta::VpnTunnelAggregatedList command.params['project'] = project unless project.nil? @@ -32511,7 +32512,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) + command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -32552,7 +32553,7 @@ module Google # @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_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options) command.response_representation = Google::Apis::ComputeBeta::VpnTunnel::Representation command.response_class = Google::Apis::ComputeBeta::VpnTunnel command.params['project'] = project unless project.nil? @@ -32602,7 +32603,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/vpnTunnels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options) command.request_representation = Google::Apis::ComputeBeta::VpnTunnel::Representation command.request_object = vpn_tunnel_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -32676,7 +32677,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_vpn_tunnels(project, region, 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}/regions/{region}/vpnTunnels', options) + command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options) command.response_representation = Google::Apis::ComputeBeta::VpnTunnelList::Representation command.response_class = Google::Apis::ComputeBeta::VpnTunnelList command.params['project'] = project unless project.nil? @@ -32731,7 +32732,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def set_vpn_tunnel_labels(project, region, resource, region_set_labels_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}/vpnTunnels/{resource}/setLabels', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options) command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation command.request_object = region_set_labels_request_object command.response_representation = Google::Apis::ComputeBeta::Operation::Representation @@ -32774,7 +32775,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options) + command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{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 @@ -32815,7 +32816,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/zones/{zone}/operations/{operation}', options) + command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/operations/{operation}', options) command.params['project'] = project unless project.nil? command.params['zone'] = zone unless zone.nil? command.params['operation'] = operation unless operation.nil? @@ -32852,7 +32853,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations/{operation}', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -32923,7 +32924,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zone_operations(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}/operations', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations', options) command.response_representation = Google::Apis::ComputeBeta::OperationList::Representation command.response_class = Google::Apis::ComputeBeta::OperationList command.params['project'] = project unless project.nil? @@ -32975,7 +32976,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def wait_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/zones/{zone}/operations/{operation}/wait', options) + command = make_simple_command(:post, 'projects/{project}/zones/{zone}/operations/{operation}/wait', options) command.response_representation = Google::Apis::ComputeBeta::Operation::Representation command.response_class = Google::Apis::ComputeBeta::Operation command.params['project'] = project unless project.nil? @@ -33013,7 +33014,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_zone(project, zone, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/zones/{zone}', options) + command = make_simple_command(:get, 'projects/{project}/zones/{zone}', options) command.response_representation = Google::Apis::ComputeBeta::Zone::Representation command.response_class = Google::Apis::ComputeBeta::Zone command.params['project'] = project unless project.nil? @@ -33081,7 +33082,7 @@ module Google # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_zones(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}/zones', options) + command = make_simple_command(:get, 'projects/{project}/zones', options) command.response_representation = Google::Apis::ComputeBeta::ZoneList::Representation command.response_class = Google::Apis::ComputeBeta::ZoneList command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 12ac1dfb5..a8d6cf48f 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 = '20200704' + REVISION = '20200719' # 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 6b999087f..16cf9ec65 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -2726,10 +2726,10 @@ module Google # The list of URLs to the healthChecks, httpHealthChecks (legacy), or # httpsHealthChecks (legacy) resource for health checking this backend service. # Not all backend services support legacy health checks. See Load balancer - # guide. Currently at most one health check can be specified. Backend services - # with instance group or zonal NEG backends must have a health check. Backend - # services with internet NEG backends must not have a health check. A health - # check must + # guide. Currently, at most one health check can be specified for each backend + # service. Backend services with instance group or zonal NEG backends must have + # a health check. Backend services with internet or serverless NEG backends must + # not have a health check. # Corresponds to the JSON property `healthChecks` # @return [Array] attr_accessor :health_checks @@ -2838,8 +2838,8 @@ module Google attr_accessor :port_name # The protocol this BackendService uses to communicate with backends. - # Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP. depending on the - # chosen load balancer or Traffic Director configuration. Refer to the + # Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on + # the chosen load balancer or Traffic Director configuration. Refer to the # documentation for the load balancer or for Traffic Director for more # information. # Corresponds to the JSON property `protocol` @@ -3685,6 +3685,15 @@ module Google class Commitment include Google::Apis::Core::Hashable + # The category of the commitment. Category MACHINE specifies commitments + # composed of machine resources such as VCPU or MEMORY, listed in resources. + # Category LICENSE specifies commitments composed of software licenses, listed + # in licenseResources. Note that only MACHINE commitments should have a Type + # specified. + # Corresponds to the JSON property `category` + # @return [String] + attr_accessor :category + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -3712,6 +3721,11 @@ module Google # @return [String] attr_accessor :kind + # Commitment for a particular license resource. + # Corresponds to the JSON property `licenseResource` + # @return [Google::Apis::ComputeV1::LicenseResourceCommitment] + attr_accessor :license_resource + # 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- @@ -3773,11 +3787,13 @@ module Google # Update properties of this object def update!(**args) + @category = args[:category] if args.key?(:category) @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) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @license_resource = args[:license_resource] if args.key?(:license_resource) @name = args[:name] if args.key?(:name) @plan = args[:plan] if args.key?(:plan) @region = args[:region] if args.key?(:region) @@ -4583,12 +4599,11 @@ module Google # @return [String] attr_accessor :self_link - # Size of the persistent disk, specified in GB. You can specify this field when - # creating a persistent disk using the sourceImage or sourceSnapshot parameter, - # or specify it alone to create an empty persistent disk. - # If you specify this field along with sourceImage or sourceSnapshot, the value - # of sizeGb must not be less than the size of the sourceImage or the size of the - # snapshot. Acceptable values are 1 to 65536, inclusive. + # Size, in GB, of the persistent disk. You can specify this field when creating + # a persistent disk using the sourceImage, sourceSnapshot, or sourceDisk + # parameter, or specify it alone to create an empty persistent disk. + # If you specify this field along with a source, the value of sizeGb must not be + # less than the size of the source. Acceptable values are 1 to 65536, inclusive. # Corresponds to the JSON property `sizeGb` # @return [Fixnum] attr_accessor :size_gb @@ -6864,13 +6879,14 @@ module Google # that points to a target proxy or a target pool. Do not use with a forwarding # rule that points to a backend service. This field is used along with the # target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, - # TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. + # TargetTcpProxy, TargetGrpcProxy, TargetVpnGateway, TargetPool, TargetInstance. # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed # to ports in the specified range will be forwarded to target. Forwarding rules # with the same [IPAddress, IPProtocol] pair must have disjoint port ranges. # Some types of forwarding target have constraints on the acceptable ports: # - TargetHttpProxy: 80, 8080 # - TargetHttpsProxy: 443 + # - TargetGrpcProxy: Any ports # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, # 1883, 5222 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, @@ -6940,8 +6956,8 @@ module Google # forwarding rules, this target must live in the same region as the forwarding # rule. For global forwarding rules, this target must be a global load balancing # resource. The forwarded traffic must be of a type appropriate to the target - # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy is - # valid, not targetHttpsProxy. + # object. For INTERNAL_SELF_MANAGED load balancing, only targetHttpProxy and + # targetGrpcProxy are valid, not targetHttpsProxy. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -9501,7 +9517,11 @@ module Google # @return [Google::Apis::ComputeV1::HttpHeaderAction] attr_accessor :header_action - # + # The list of criteria for matching attributes of a request to this routeRule. + # This list has OR semantics: the request matches this routeRule when any of the + # matchRules are satisfied. However predicates within a given matchRule have AND + # semantics. All predicates within a matchRule must match for the request to + # match the rule. # Corresponds to the JSON property `matchRules` # @return [Array] attr_accessor :match_rules @@ -9529,6 +9549,8 @@ module Google # routeAction cannot contain any weightedBackendServices. # Only one of urlRedirect, service or routeAction.weightedBackendService must be # set. + # UrlMaps for external HTTP(S) load balancers support only the urlRewrite action + # within a routeRule's routeAction. # Corresponds to the JSON property `routeAction` # @return [Google::Apis::ComputeV1::HttpRouteAction] attr_accessor :route_action @@ -11159,6 +11181,11 @@ module Google # @return [String] attr_accessor :self_link + # Stateful configuration for this Instanced Group Manager + # Corresponds to the JSON property `statefulPolicy` + # @return [Google::Apis::ComputeV1::StatefulPolicy] + attr_accessor :stateful_policy + # [Output Only] The status of this managed instance group. # Corresponds to the JSON property `status` # @return [Google::Apis::ComputeV1::InstanceGroupManagerStatus] @@ -11222,6 +11249,7 @@ module Google @named_ports = args[:named_ports] if args.key?(:named_ports) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @stateful_policy = args[:stateful_policy] if args.key?(:stateful_policy) @status = args[:status] if args.key?(:status) @target_pools = args[:target_pools] if args.key?(:target_pools) @target_size = args[:target_size] if args.key?(:target_size) @@ -11606,6 +11634,11 @@ module Google attr_accessor :is_stable alias_method :is_stable?, :is_stable + # [Output Only] Stateful status of the given Instance Group Manager. + # Corresponds to the JSON property `stateful` + # @return [Google::Apis::ComputeV1::InstanceGroupManagerStatusStateful] + attr_accessor :stateful + # [Output Only] A status of consistency of Instances' versions with their target # version specified by version field on Instance Group Manager. # Corresponds to the JSON property `versionTarget` @@ -11620,10 +11653,63 @@ module Google def update!(**args) @autoscaler = args[:autoscaler] if args.key?(:autoscaler) @is_stable = args[:is_stable] if args.key?(:is_stable) + @stateful = args[:stateful] if args.key?(:stateful) @version_target = args[:version_target] if args.key?(:version_target) end end + # + class InstanceGroupManagerStatusStateful + include Google::Apis::Core::Hashable + + # [Output Only] A bit indicating whether the managed instance group has stateful + # configuration, that is, if you have configured any items in a stateful policy + # or in per-instance configs. The group might report that it has no stateful + # config even when there is still some preserved state on a managed instance, + # for example, if you have deleted all PICs but not yet applied those deletions. + # Corresponds to the JSON property `hasStatefulConfig` + # @return [Boolean] + attr_accessor :has_stateful_config + alias_method :has_stateful_config?, :has_stateful_config + + # [Output Only] Status of per-instance configs on the instance. + # Corresponds to the JSON property `perInstanceConfigs` + # @return [Google::Apis::ComputeV1::InstanceGroupManagerStatusStatefulPerInstanceConfigs] + attr_accessor :per_instance_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @has_stateful_config = args[:has_stateful_config] if args.key?(:has_stateful_config) + @per_instance_configs = args[:per_instance_configs] if args.key?(:per_instance_configs) + end + end + + # + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + include Google::Apis::Core::Hashable + + # A bit indicating if all of the group's per-instance configs (listed in the + # output of a listPerInstanceConfigs API call) have status EFFECTIVE or there + # are no per-instance-configs. + # Corresponds to the JSON property `allEffective` + # @return [Boolean] + attr_accessor :all_effective + alias_method :all_effective?, :all_effective + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @all_effective = args[:all_effective] if args.key?(:all_effective) + end + end + # class InstanceGroupManagerStatusVersionTarget include Google::Apis::Core::Hashable @@ -11849,6 +11935,26 @@ module Google end end + # InstanceGroupManagers.deletePerInstanceConfigs + class InstanceGroupManagersDeletePerInstanceConfigsReq + include Google::Apis::Core::Hashable + + # The list of instance names for which we want to delete per-instance configs on + # this managed instance group. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @names = args[:names] if args.key?(:names) + end + end + # class InstanceGroupManagersListErrorsResponse include Google::Apis::Core::Hashable @@ -11907,6 +12013,125 @@ module Google end end + # + class InstanceGroupManagersListPerInstanceConfigsResp + include Google::Apis::Core::Hashable + + # [Output Only] The list of PerInstanceConfig. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @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 + + # 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 @@ -12073,6 +12298,26 @@ module Google end end + # InstanceGroupManagers.updatePerInstanceConfigs + class InstanceGroupManagersUpdatePerInstanceConfigsReq + 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 InstanceGroupsAddInstancesRequest include Google::Apis::Core::Hashable @@ -15128,6 +15373,37 @@ module Google end end + # Commitment for a particular license resource. + class LicenseResourceCommitment + include Google::Apis::Core::Hashable + + # The number of licenses purchased. + # Corresponds to the JSON property `amount` + # @return [Fixnum] + attr_accessor :amount + + # Specifies the core range of the instance for which this license applies. + # Corresponds to the JSON property `coresPerLicense` + # @return [String] + attr_accessor :cores_per_license + + # Any applicable license URI. + # Corresponds to the JSON property `license` + # @return [String] + attr_accessor :license + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @cores_per_license = args[:cores_per_license] if args.key?(:cores_per_license) + @license = args[:license] if args.key?(:license) + end + end + # class LicenseResourceRequirements include Google::Apis::Core::Hashable @@ -15974,6 +16250,16 @@ module Google # @return [Google::Apis::ComputeV1::ManagedInstanceLastAttempt] attr_accessor :last_attempt + # Preserved state for a given instance. + # Corresponds to the JSON property `preservedStateFromConfig` + # @return [Google::Apis::ComputeV1::PreservedState] + attr_accessor :preserved_state_from_config + + # Preserved state for a given instance. + # Corresponds to the JSON property `preservedStateFromPolicy` + # @return [Google::Apis::ComputeV1::PreservedState] + attr_accessor :preserved_state_from_policy + # [Output Only] Intended version of this instance. # Corresponds to the JSON property `version` # @return [Google::Apis::ComputeV1::ManagedInstanceVersion] @@ -15991,6 +16277,8 @@ module Google @instance_health = args[:instance_health] if args.key?(:instance_health) @instance_status = args[:instance_status] if args.key?(:instance_status) @last_attempt = args[:last_attempt] if args.key?(:last_attempt) + @preserved_state_from_config = args[:preserved_state_from_config] if args.key?(:preserved_state_from_config) + @preserved_state_from_policy = args[:preserved_state_from_policy] if args.key?(:preserved_state_from_policy) @version = args[:version] if args.key?(:version) end end @@ -16455,10 +16743,11 @@ module Google # Represents a collection of network endpoints. # A network endpoint group (NEG) defines how a set of endpoints should be # reached, whether they are reachable, and where they are located. For more - # information about using NEGs, see Setting up internet NEGs or Setting up - # zonal NEGs. (== resource_for `$api_version`.networkEndpointGroups ==) (== - # resource_for `$api_version`.globalNetworkEndpointGroups ==) (== resource_for `$ - # api_version`.regionNetworkEndpointGroups ==) + # information about using NEGs, see Setting up internet NEGs, Setting up zonal + # NEGs, or Setting up serverless NEGs. (== resource_for `$api_version`. + # networkEndpointGroups ==) (== resource_for `$api_version`. + # globalNetworkEndpointGroups ==) (== resource_for `$api_version`. + # regionNetworkEndpointGroups ==) class NetworkEndpointGroup include Google::Apis::Core::Hashable @@ -16467,6 +16756,33 @@ module Google # @return [Hash] attr_accessor :annotations + # Configuration for an App Engine network endpoint group (NEG). The service is + # optional, may be provided explicitly or in the URL mask. The version is + # optional and can only be provided explicitly or in the URL mask when service + # is present. + # Note: App Engine service must be in the same project and located in the same + # region as the Serverless NEG. + # Corresponds to the JSON property `appEngine` + # @return [Google::Apis::ComputeV1::NetworkEndpointGroupAppEngine] + attr_accessor :app_engine + + # Configuration for a Cloud Function network endpoint group (NEG). The function + # must be provided explicitly or in the URL mask. + # Note: Cloud Function must be in the same project and located in the same + # region as the Serverless NEG. + # Corresponds to the JSON property `cloudFunction` + # @return [Google::Apis::ComputeV1::NetworkEndpointGroupCloudFunction] + attr_accessor :cloud_function + + # Configuration for a Cloud Run network endpoint group (NEG). The service must + # be provided explicitly or in the URL mask. The tag is optional, may be + # provided explicitly or in the URL mask. + # Note: Cloud Run service must be in the same project and located in the same + # region as the Serverless NEG. + # Corresponds to the JSON property `cloudRun` + # @return [Google::Apis::ComputeV1::NetworkEndpointGroupCloudRun] + attr_accessor :cloud_run + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -16512,11 +16828,19 @@ module Google # @return [String] attr_accessor :network - # Type of network endpoints in this network endpoint group. + # Type of network endpoints in this network endpoint group. Can be one of + # GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, + # or SERVERLESS. # Corresponds to the JSON property `networkEndpointType` # @return [String] attr_accessor :network_endpoint_type + # [Output Only] The URL of the region where the network endpoint group is + # located. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + # [Output Only] Server-defined URL for the resource. # Corresponds to the JSON property `selfLink` # @return [String] @@ -16545,6 +16869,9 @@ module Google # Update properties of this object def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) + @app_engine = args[:app_engine] if args.key?(:app_engine) + @cloud_function = args[:cloud_function] if args.key?(:cloud_function) + @cloud_run = args[:cloud_run] if args.key?(:cloud_run) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @default_port = args[:default_port] if args.key?(:default_port) @description = args[:description] if args.key?(:description) @@ -16553,6 +16880,7 @@ module Google @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_endpoint_type = args[:network_endpoint_type] if args.key?(:network_endpoint_type) + @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) @size = args[:size] if args.key?(:size) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @@ -16679,6 +17007,134 @@ module Google end end + # Configuration for an App Engine network endpoint group (NEG). The service is + # optional, may be provided explicitly or in the URL mask. The version is + # optional and can only be provided explicitly or in the URL mask when service + # is present. + # Note: App Engine service must be in the same project and located in the same + # region as the Serverless NEG. + class NetworkEndpointGroupAppEngine + include Google::Apis::Core::Hashable + + # Optional serving service. + # The service name must be 1-63 characters long, and comply with RFC1035. + # Example value: "default", "my-service". + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # A template to parse service and version fields from a request URL. URL mask + # allows for routing to multiple App Engine services without having to create + # multiple Network Endpoint Groups and backend services. + # For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot- + # appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask + # "-dot-appname.appspot.com/". The URL mask will parse them to ` service = "foo1" + # , version = "v1" ` and ` service = "foo1", version = "v2" ` respectively. + # Corresponds to the JSON property `urlMask` + # @return [String] + attr_accessor :url_mask + + # Optional serving version. + # The version must be 1-63 characters long, and comply with RFC1035. + # Example value: "v1", "v2". + # 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) + @service = args[:service] if args.key?(:service) + @url_mask = args[:url_mask] if args.key?(:url_mask) + @version = args[:version] if args.key?(:version) + end + end + + # Configuration for a Cloud Function network endpoint group (NEG). The function + # must be provided explicitly or in the URL mask. + # Note: Cloud Function must be in the same project and located in the same + # region as the Serverless NEG. + class NetworkEndpointGroupCloudFunction + include Google::Apis::Core::Hashable + + # A user-defined name of the Cloud Function. + # The function name is case-sensitive and must be 1-63 characters long. + # Example value: "func1". + # Corresponds to the JSON property `function` + # @return [String] + attr_accessor :function + + # A template to parse function field from a request URL. URL mask allows for + # routing to multiple Cloud Functions without having to create multiple Network + # Endpoint Groups and backend services. + # For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" + # can be backed by the same Serverless NEG with URL mask "/". The URL mask will + # parse them to ` function = "function1" ` and ` function = "function2" ` + # respectively. + # Corresponds to the JSON property `urlMask` + # @return [String] + attr_accessor :url_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @function = args[:function] if args.key?(:function) + @url_mask = args[:url_mask] if args.key?(:url_mask) + end + end + + # Configuration for a Cloud Run network endpoint group (NEG). The service must + # be provided explicitly or in the URL mask. The tag is optional, may be + # provided explicitly or in the URL mask. + # Note: Cloud Run service must be in the same project and located in the same + # region as the Serverless NEG. + class NetworkEndpointGroupCloudRun + include Google::Apis::Core::Hashable + + # Cloud Run service is the main resource of Cloud Run. + # The service must be 1-63 characters long, and comply with RFC1035. + # Example value: "run-service". + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + # Optional Cloud Run tag represents the "named-revision" to provide additional + # fine-grained traffic routing information. + # The tag must be 1-63 characters long, and comply with RFC1035. + # Example value: "revision-0010". + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + # A template to parse service and tag fields from a request URL. URL mask allows + # for routing to multiple Run services without having to create multiple network + # endpoint groups and backend services. + # For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" + # can be backed by the same Serverless Network Endpoint Group (NEG) with URL + # mask ".domain.com/". The URL mask will parse them to ` service="bar1", tag=" + # foo1" ` and ` service="bar2", tag="foo2" ` respectively. + # Corresponds to the JSON property `urlMask` + # @return [String] + attr_accessor :url_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @service = args[:service] if args.key?(:service) + @tag = args[:tag] if args.key?(:tag) + @url_mask = args[:url_mask] if args.key?(:url_mask) + end + end + # class NetworkEndpointGroupList include Google::Apis::Core::Hashable @@ -17892,6 +18348,11 @@ module Google class NodeGroupNode include Google::Apis::Core::Hashable + # CPU overcommit. + # Corresponds to the JSON property `cpuOvercommitType` + # @return [String] + attr_accessor :cpu_overcommit_type + # Instances scheduled on this node. # Corresponds to the JSON property `instances` # @return [Array] @@ -17928,6 +18389,7 @@ module Google # Update properties of this object def update!(**args) + @cpu_overcommit_type = args[:cpu_overcommit_type] if args.key?(:cpu_overcommit_type) @instances = args[:instances] if args.key?(:instances) @name = args[:name] if args.key?(:name) @node_type = args[:node_type] if args.key?(:node_type) @@ -18211,6 +18673,11 @@ module Google class NodeTemplate include Google::Apis::Core::Hashable + # CPU overcommit. + # Corresponds to the JSON property `cpuOvercommitType` + # @return [String] + attr_accessor :cpu_overcommit_type + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -18301,6 +18768,7 @@ module Google # Update properties of this object def update!(**args) + @cpu_overcommit_type = args[:cpu_overcommit_type] if args.key?(:cpu_overcommit_type) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @@ -20876,6 +21344,17 @@ module Google # @return [String] attr_accessor :name + # Preserved state for a given instance. + # Corresponds to the JSON property `preservedState` + # @return [Google::Apis::ComputeV1::PreservedState] + attr_accessor :preserved_state + + # The status of applying this per-instance config on the corresponding managed + # instance. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + def initialize(**args) update!(**args) end @@ -20884,6 +21363,8 @@ module Google def update!(**args) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) + @preserved_state = args[:preserved_state] if args.key?(:preserved_state) + @status = args[:status] if args.key?(:status) end end @@ -21021,6 +21502,69 @@ module Google end end + # Preserved state for a given instance. + class PreservedState + include Google::Apis::Core::Hashable + + # Preserved disks defined for this instance. This map is keyed with the device + # names of the disks. + # Corresponds to the JSON property `disks` + # @return [Hash] + attr_accessor :disks + + # Preserved metadata defined for this instance. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disks = args[:disks] if args.key?(:disks) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + + # + class PreservedStatePreservedDisk + include Google::Apis::Core::Hashable + + # These stateful disks will never be deleted during autohealing, update, + # instance recreate operations. This flag is used to configure if the disk + # should be deleted after it is no longer used by the group, e.g. when the given + # instance or the whole MIG is deleted. Note: disks attached in READ_ONLY mode + # cannot be auto-deleted. + # Corresponds to the JSON property `autoDelete` + # @return [String] + attr_accessor :auto_delete + + # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not + # specified, the default is to attach the disk in READ_WRITE mode. + # Corresponds to the JSON property `mode` + # @return [String] + attr_accessor :mode + + # The URL of the disk resource that is stateful and should be attached to the VM + # instance. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_delete = args[:auto_delete] if args.key?(:auto_delete) + @mode = args[:mode] if args.key?(:mode) + @source = args[:source] if args.key?(:source) + end + end + # Represents a Project resource. # A project is used to organize resources in a Google Cloud Platform environment. # For more information, read about the Resource Hierarchy. (== resource_for `$ @@ -21801,6 +22345,26 @@ module Google end end + # RegionInstanceGroupManagers.deletePerInstanceConfigs + class RegionInstanceGroupManagerDeleteInstanceConfigReq + include Google::Apis::Core::Hashable + + # The list of instance names for which we want to delete per-instance configs on + # this managed instance group. + # Corresponds to the JSON property `names` + # @return [Array] + attr_accessor :names + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @names = args[:names] if args.key?(:names) + end + end + # Contains a list of managed instance groups. class RegionInstanceGroupManagerList include Google::Apis::Core::Hashable @@ -21920,6 +22484,46 @@ 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 + + # 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 RegionInstanceGroupManagersAbandonInstancesRequest include Google::Apis::Core::Hashable @@ -22055,6 +22659,105 @@ module Google end end + # + class RegionInstanceGroupManagersListInstanceConfigsResp + include Google::Apis::Core::Hashable + + # [Output Only] The list of PerInstanceConfig. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # [Output Only] Informational warning message. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @items = args[:items] if args.key?(:items) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @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 RegionInstanceGroupManagersListInstancesResponse include Google::Apis::Core::Hashable @@ -25392,6 +26095,12 @@ module Google attr_accessor :automatic_restart alias_method :automatic_restart?, :automatic_restart + # The minimum number of virtual CPUs this instance will consume when running on + # a sole-tenant node. + # Corresponds to the JSON property `minNodeCpus` + # @return [Fixnum] + attr_accessor :min_node_cpus + # A set of node affinity and anti-affinity configurations. Refer to Configuring # node affinity for more information. Overrides reservationAffinity. # Corresponds to the JSON property `nodeAffinities` @@ -25422,6 +26131,7 @@ module Google # Update properties of this object def update!(**args) @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) + @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus) @node_affinities = args[:node_affinities] if args.key?(:node_affinities) @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) @preemptible = args[:preemptible] if args.key?(:preemptible) @@ -27240,6 +27950,68 @@ module Google end end + # + class StatefulPolicy + include Google::Apis::Core::Hashable + + # Configuration of preserved resources. + # Corresponds to the JSON property `preservedState` + # @return [Google::Apis::ComputeV1::StatefulPolicyPreservedState] + attr_accessor :preserved_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @preserved_state = args[:preserved_state] if args.key?(:preserved_state) + end + end + + # Configuration of preserved resources. + class StatefulPolicyPreservedState + include Google::Apis::Core::Hashable + + # Disks created on the instances that will be preserved on instance delete, + # update, etc. This map is keyed with the device names of the disks. + # Corresponds to the JSON property `disks` + # @return [Hash] + attr_accessor :disks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disks = args[:disks] if args.key?(:disks) + end + end + + # + class StatefulPolicyPreservedStateDiskDevice + include Google::Apis::Core::Hashable + + # These stateful disks will never be deleted during autohealing, update or VM + # instance recreate operations. This flag is used to configure if the disk + # should be deleted after it is no longer used by the group, e.g. when the given + # instance or the whole group is deleted. Note: disks attached in READ_ONLY mode + # cannot be auto-deleted. + # Corresponds to the JSON property `autoDelete` + # @return [String] + attr_accessor :auto_delete + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_delete = args[:auto_delete] if args.key?(:auto_delete) + end + end + # Represents a Subnetwork resource. # A subnetwork (also known as a subnet) is a logical partition of a Virtual # Private Cloud network with one primary IP range and zero or more secondary IP @@ -29492,7 +30264,7 @@ module Google # The URL of the HttpHealthCheck resource. A member instance in this pool is # considered healthy if and only if the health checks pass. An empty list means - # all member instances will be considered healthy at all times. Only + # all member instances will be considered healthy at all times. Only legacy # HttpHealthChecks are supported. Only one health check may be specified. # Corresponds to the JSON property `healthChecks` # @return [Array] diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 425de5552..e4283876a 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -1390,6 +1390,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagerStatusStateful + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagerStatusVersionTarget class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1432,6 +1444,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagersDeletePerInstanceConfigsReq + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagersListErrorsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1444,6 +1462,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagersListPerInstanceConfigsResp + 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 InstanceGroupManagersPatchPerInstanceConfigsReq + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupManagersRecreateInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1480,6 +1522,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupManagersUpdatePerInstanceConfigsReq + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupsAddInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1906,6 +1954,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LicenseResourceCommitment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LicenseResourceRequirements class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2134,6 +2188,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NetworkEndpointGroupAppEngine + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NetworkEndpointGroupCloudFunction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NetworkEndpointGroupCloudRun + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NetworkEndpointGroupList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2746,6 +2818,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class PreservedState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PreservedStatePreservedDisk + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Project class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2872,6 +2956,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionInstanceGroupManagerDeleteInstanceConfigReq + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RegionInstanceGroupManagerList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2890,6 +2980,18 @@ 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 + + include Google::Apis::Core::JsonObjectSupport + end + class RegionInstanceGroupManagersAbandonInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2920,6 +3022,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegionInstanceGroupManagersListInstanceConfigsResp + 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 RegionInstanceGroupManagersListInstancesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3670,6 +3790,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class StatefulPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StatefulPolicyPreservedState + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StatefulPolicyPreservedStateDiskDevice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Subnetwork class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5450,11 +5588,14 @@ module Google class Commitment # @private class Representation < Google::Apis::Core::JsonRepresentation + property :category, as: 'category' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :end_timestamp, as: 'endTimestamp' property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + property :license_resource, as: 'licenseResource', class: Google::Apis::ComputeV1::LicenseResourceCommitment, decorator: Google::Apis::ComputeV1::LicenseResourceCommitment::Representation + property :name, as: 'name' property :plan, as: 'plan' property :region, as: 'region' @@ -7177,6 +7318,8 @@ module Google property :region, as: 'region' property :self_link, as: 'selfLink' + property :stateful_policy, as: 'statefulPolicy', class: Google::Apis::ComputeV1::StatefulPolicy, decorator: Google::Apis::ComputeV1::StatefulPolicy::Representation + property :status, as: 'status', class: Google::Apis::ComputeV1::InstanceGroupManagerStatus, decorator: Google::Apis::ComputeV1::InstanceGroupManagerStatus::Representation collection :target_pools, as: 'targetPools' @@ -7281,11 +7424,29 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :autoscaler, as: 'autoscaler' property :is_stable, as: 'isStable' + property :stateful, as: 'stateful', class: Google::Apis::ComputeV1::InstanceGroupManagerStatusStateful, decorator: Google::Apis::ComputeV1::InstanceGroupManagerStatusStateful::Representation + property :version_target, as: 'versionTarget', class: Google::Apis::ComputeV1::InstanceGroupManagerStatusVersionTarget, decorator: Google::Apis::ComputeV1::InstanceGroupManagerStatusVersionTarget::Representation end end + class InstanceGroupManagerStatusStateful + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :has_stateful_config, as: 'hasStatefulConfig' + property :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeV1::InstanceGroupManagerStatusStatefulPerInstanceConfigs, decorator: Google::Apis::ComputeV1::InstanceGroupManagerStatusStatefulPerInstanceConfigs::Representation + + end + end + + class InstanceGroupManagerStatusStatefulPerInstanceConfigs + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :all_effective, as: 'allEffective' + end + end + class InstanceGroupManagerStatusVersionTarget # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7348,6 +7509,13 @@ module Google end end + class InstanceGroupManagersDeletePerInstanceConfigsReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :names, as: 'names' + end + end + class InstanceGroupManagersListErrorsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7366,6 +7534,43 @@ module Google end end + class InstanceGroupManagersListPerInstanceConfigsResp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::ComputeV1::PerInstanceConfig, decorator: Google::Apis::ComputeV1::PerInstanceConfig::Representation + + property :next_page_token, as: 'nextPageToken' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp::Warning, decorator: Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp::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 InstanceGroupManagersPatchPerInstanceConfigsReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeV1::PerInstanceConfig, decorator: Google::Apis::ComputeV1::PerInstanceConfig::Representation + + end + end + class InstanceGroupManagersRecreateInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -7416,6 +7621,14 @@ module Google end end + class InstanceGroupManagersUpdatePerInstanceConfigsReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeV1::PerInstanceConfig, decorator: Google::Apis::ComputeV1::PerInstanceConfig::Representation + + end + end + class InstanceGroupsAddInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8191,6 +8404,15 @@ module Google end end + class LicenseResourceCommitment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, :numeric_string => true, as: 'amount' + property :cores_per_license, as: 'coresPerLicense' + property :license, as: 'license' + end + end + class LicenseResourceRequirements # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8419,6 +8641,10 @@ module Google property :instance_status, as: 'instanceStatus' property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Representation + property :preserved_state_from_config, as: 'preservedStateFromConfig', class: Google::Apis::ComputeV1::PreservedState, decorator: Google::Apis::ComputeV1::PreservedState::Representation + + property :preserved_state_from_policy, as: 'preservedStateFromPolicy', class: Google::Apis::ComputeV1::PreservedState, decorator: Google::Apis::ComputeV1::PreservedState::Representation + property :version, as: 'version', class: Google::Apis::ComputeV1::ManagedInstanceVersion, decorator: Google::Apis::ComputeV1::ManagedInstanceVersion::Representation end @@ -8543,6 +8769,12 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation hash :annotations, as: 'annotations' + property :app_engine, as: 'appEngine', class: Google::Apis::ComputeV1::NetworkEndpointGroupAppEngine, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupAppEngine::Representation + + property :cloud_function, as: 'cloudFunction', class: Google::Apis::ComputeV1::NetworkEndpointGroupCloudFunction, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupCloudFunction::Representation + + property :cloud_run, as: 'cloudRun', class: Google::Apis::ComputeV1::NetworkEndpointGroupCloudRun, decorator: Google::Apis::ComputeV1::NetworkEndpointGroupCloudRun::Representation + property :creation_timestamp, as: 'creationTimestamp' property :default_port, as: 'defaultPort' property :description, as: 'description' @@ -8551,6 +8783,7 @@ module Google property :name, as: 'name' property :network, as: 'network' property :network_endpoint_type, as: 'networkEndpointType' + property :region, as: 'region' property :self_link, as: 'selfLink' property :size, as: 'size' property :subnetwork, as: 'subnetwork' @@ -8590,6 +8823,32 @@ module Google end end + class NetworkEndpointGroupAppEngine + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service, as: 'service' + property :url_mask, as: 'urlMask' + property :version, as: 'version' + end + end + + class NetworkEndpointGroupCloudFunction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :function, as: 'function' + property :url_mask, as: 'urlMask' + end + end + + class NetworkEndpointGroupCloudRun + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service, as: 'service' + property :tag, as: 'tag' + property :url_mask, as: 'urlMask' + end + end + class NetworkEndpointGroupList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -8908,6 +9167,7 @@ module Google class NodeGroupNode # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_overcommit_type, as: 'cpuOvercommitType' collection :instances, as: 'instances' property :name, as: 'name' property :node_type, as: 'nodeType' @@ -9002,6 +9262,7 @@ module Google class NodeTemplate # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_overcommit_type, as: 'cpuOvercommitType' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :id, :numeric_string => true, as: 'id' @@ -9670,6 +9931,9 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :fingerprint, :base64 => true, as: 'fingerprint' property :name, as: 'name' + property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeV1::PreservedState, decorator: Google::Apis::ComputeV1::PreservedState::Representation + + property :status, as: 'status' end end @@ -9696,6 +9960,24 @@ module Google end end + class PreservedState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :disks, as: 'disks', class: Google::Apis::ComputeV1::PreservedStatePreservedDisk, decorator: Google::Apis::ComputeV1::PreservedStatePreservedDisk::Representation + + hash :metadata, as: 'metadata' + end + end + + class PreservedStatePreservedDisk + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_delete, as: 'autoDelete' + property :mode, as: 'mode' + property :source, as: 'source' + end + end + class Project # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9913,6 +10195,13 @@ module Google end end + class RegionInstanceGroupManagerDeleteInstanceConfigReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :names, as: 'names' + end + end + class RegionInstanceGroupManagerList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9945,6 +10234,22 @@ module Google end end + class RegionInstanceGroupManagerPatchInstanceConfigReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeV1::PerInstanceConfig, decorator: Google::Apis::ComputeV1::PerInstanceConfig::Representation + + end + end + + class RegionInstanceGroupManagerUpdateInstanceConfigReq + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeV1::PerInstanceConfig, decorator: Google::Apis::ComputeV1::PerInstanceConfig::Representation + + end + end + class RegionInstanceGroupManagersAbandonInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -9985,6 +10290,35 @@ module Google end end + class RegionInstanceGroupManagersListInstanceConfigsResp + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::ComputeV1::PerInstanceConfig, decorator: Google::Apis::ComputeV1::PerInstanceConfig::Representation + + property :next_page_token, as: 'nextPageToken' + property :warning, as: 'warning', class: Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp::Warning, decorator: Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp::Warning::Datum, decorator: Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp::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 RegionInstanceGroupManagersListInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -10844,6 +11178,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :automatic_restart, as: 'automaticRestart' + property :min_node_cpus, as: 'minNodeCpus' collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeV1::SchedulingNodeAffinity, decorator: Google::Apis::ComputeV1::SchedulingNodeAffinity::Representation property :on_host_maintenance, as: 'onHostMaintenance' @@ -11312,6 +11647,29 @@ module Google end end + class StatefulPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeV1::StatefulPolicyPreservedState, decorator: Google::Apis::ComputeV1::StatefulPolicyPreservedState::Representation + + end + end + + class StatefulPolicyPreservedState + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :disks, as: 'disks', class: Google::Apis::ComputeV1::StatefulPolicyPreservedStateDiskDevice, decorator: Google::Apis::ComputeV1::StatefulPolicyPreservedStateDiskDevice::Representation + + end + end + + class StatefulPolicyPreservedStateDiskDevice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_delete, as: 'autoDelete' + end + end + class Subnetwork # @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 a389c7e40..e6a8cd0b3 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -2473,9 +2473,10 @@ module Google end # Creates a persistent disk in the specified project using the data in the - # request. You can create a disk with a sourceImage, a sourceSnapshot, or create - # an empty 500 GB data disk by omitting all properties. You can also create a - # disk that is larger than the default size by specifying the sizeGb property. + # request. You can create a disk from a source (sourceImage, sourceSnapshot, or + # sourceDisk) or create an empty 500 GB data disk by omitting all properties. + # You can also create a disk that is larger than the default size by specifying + # the sizeGb property. # @param [String] project # Project ID for this request. # @param [String] zone @@ -6859,6 +6860,49 @@ module Google execute_or_queue_command(command, &block) end + # Deletes selected per-instance configs for the managed instance group. + # @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::ComputeV1::InstanceGroupManagersDeletePerInstanceConfigsReq] instance_group_managers_delete_per_instance_configs_req_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_instance_group_manager_per_instance_configs(project, zone, instance_group_manager, instance_group_managers_delete_per_instance_configs_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersDeletePerInstanceConfigsReq::Representation + command.request_object = instance_group_managers_delete_per_instance_configs_req_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['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 + # Returns all of the details about the specified managed instance group. Gets a # list of available managed instance groups by making a list() request. # @param [String] project @@ -7195,6 +7239,85 @@ module Google execute_or_queue_command(command, &block) end + # Lists all of the per-instance configs defined for the managed instance group. + # The orderBy query parameter is not supported. + # @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 [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::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp] + # + # @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_instance_group_manager_per_instance_configs(project, zone, instance_group_manager, 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(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) + command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp::Representation + command.response_class = Google::Apis::ComputeV1::InstanceGroupManagersListPerInstanceConfigsResp + 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['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 + # Updates a managed instance group using the information that you specify in the # request. This operation is marked as DONE when the group is patched even if # the instances in the group are still in the process of being patched. You must @@ -7254,6 +7377,63 @@ module Google execute_or_queue_command(command, &block) end + # Inserts or patches per-instance configs for the managed instance group. + # perInstanceConfig.name 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::ComputeV1::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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_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::ComputeV1::InstanceGroupManagersPatchPerInstanceConfigsReq::Representation + command.request_object = instance_group_managers_patch_per_instance_configs_req_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['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 @@ -7503,6 +7683,63 @@ module Google execute_or_queue_command(command, &block) end + # Inserts or updates per-instance configs for the managed instance group. + # perInstanceConfig.name 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::ComputeV1::InstanceGroupManagersUpdatePerInstanceConfigsReq] instance_group_managers_update_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::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_group_manager_per_instance_configs(project, zone, instance_group_manager, instance_group_managers_update_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}/updatePerInstanceConfigs', options) + command.request_representation = Google::Apis::ComputeV1::InstanceGroupManagersUpdatePerInstanceConfigsReq::Representation + command.request_object = instance_group_managers_update_per_instance_configs_req_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['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 + # Adds a list of instances to the specified instance group. All of the instances # in the instance group must be in the same network/subnetwork. Read Adding # instances for more information. @@ -17930,6 +18167,48 @@ module Google execute_or_queue_command(command, &block) end + # Deletes selected per-instance configs for 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. It should conform to RFC1035. + # @param [Google::Apis::ComputeV1::RegionInstanceGroupManagerDeleteInstanceConfigReq] region_instance_group_manager_delete_instance_config_req_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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_delete_instance_config_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options) + command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagerDeleteInstanceConfigReq::Representation + command.request_object = region_instance_group_manager_delete_instance_config_req_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['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 + # Returns all of the details about the specified managed instance group. # @param [String] project # Project ID for this request. @@ -18260,6 +18539,84 @@ module Google execute_or_queue_command(command, &block) end + # Lists all of the per-instance configs defined for the managed instance group. + # The orderBy query parameter is not supported. + # @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 [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::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp] + # + # @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_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, 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(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs', options) + command.response_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp::Representation + command.response_class = Google::Apis::ComputeV1::RegionInstanceGroupManagersListInstanceConfigsResp + 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['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 + # Updates a managed instance group using the information that you specify in the # request. This operation is marked as DONE when the group is patched even if # the instances in the group are still in the process of being patched. You must @@ -18319,6 +18676,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::ComputeV1::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::ComputeV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_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::ComputeV1::RegionInstanceGroupManagerPatchInstanceConfigReq::Representation + command.request_object = region_instance_group_manager_patch_instance_config_req_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['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 @@ -18554,6 +18967,62 @@ module Google execute_or_queue_command(command, &block) end + # Insert or update (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::ComputeV1::RegionInstanceGroupManagerUpdateInstanceConfigReq] region_instance_group_manager_update_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::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_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_update_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}/updatePerInstanceConfigs', options) + command.request_representation = Google::Apis::ComputeV1::RegionInstanceGroupManagerUpdateInstanceConfigReq::Representation + command.request_object = region_instance_group_manager_update_instance_config_req_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['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 + # Returns the specified instance group resource. # @param [String] project # Project ID for this request. @@ -18805,6 +19274,230 @@ module Google execute_or_queue_command(command, &block) end + # Deletes the specified network endpoint group. Note that the NEG cannot be + # deleted if it is configured as a backend of a backend service. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region where the network endpoint group is located. It should + # comply with RFC1035. + # @param [String] network_endpoint_group + # The name of the network endpoint group to delete. It should comply with + # RFC1035. + # @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 delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns the specified network endpoint group. Gets a list of available network + # endpoint groups by making a list() request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region where the network endpoint group is located. It should + # comply with RFC1035. + # @param [String] network_endpoint_group + # The name of the network endpoint group. It should comply with RFC1035. + # @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::NetworkEndpointGroup] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NetworkEndpointGroup] + # + # @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_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options) + command.response_representation = Google::Apis::ComputeV1::NetworkEndpointGroup::Representation + command.response_class = Google::Apis::ComputeV1::NetworkEndpointGroup + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.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 network endpoint group in the specified project using the parameters + # that are included in the request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region where you want to create the network endpoint group. It + # should comply with RFC1035. + # @param [Google::Apis::ComputeV1::NetworkEndpointGroup] network_endpoint_group_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 insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/networkEndpointGroups', options) + command.request_representation = Google::Apis::ComputeV1::NetworkEndpointGroup::Representation + command.request_object = network_endpoint_group_object + command.response_representation = Google::Apis::ComputeV1::Operation::Representation + command.response_class = Google::Apis::ComputeV1::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.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 the list of regional network endpoint groups available to the + # specified project in the given region. + # @param [String] project + # Project ID for this request. + # @param [String] region + # The name of the region where the network endpoint group is located. It should + # comply with RFC1035. + # @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::ComputeV1::NetworkEndpointGroupList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::NetworkEndpointGroupList] + # + # @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_region_network_endpoint_groups(project, region, 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}/regions/{region}/networkEndpointGroups', options) + command.response_representation = Google::Apis::ComputeV1::NetworkEndpointGroupList::Representation + command.response_class = Google::Apis::ComputeV1::NetworkEndpointGroupList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.query['filter'] = filter unless filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['orderBy'] = order_by unless order_by.nil? + 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 NotificationEndpoint in the given region # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/containeranalysis_v1alpha1.rb b/generated/google/apis/containeranalysis_v1alpha1.rb index 4bb1a1b42..7128795c5 100644 --- a/generated/google/apis/containeranalysis_v1alpha1.rb +++ b/generated/google/apis/containeranalysis_v1alpha1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200501' + REVISION = '20200807' # 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/containeranalysis_v1alpha1/classes.rb b/generated/google/apis/containeranalysis_v1alpha1/classes.rb index 2039a4600..8b1a886d1 100644 --- a/generated/google/apis/containeranalysis_v1alpha1/classes.rb +++ b/generated/google/apis/containeranalysis_v1alpha1/classes.rb @@ -32,28 +32,28 @@ module Google # @return [String] attr_accessor :checksum - # Artifact ID, if any; for container images, this will be a URL by digest - # like gcr.io/projectID/imagename@sha256:123456 + # Artifact ID, if any; for container images, this will be a URL by digest like + # gcr.io/projectID/imagename@sha256:123456 # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Name of the artifact. This may be the path to a binary or jar file, or in - # the case of a container build, the name used to push the container image to - # Google Container Registry, as presented to `docker push`. - # This field is deprecated in favor of the plural `names` field; it continues - # to exist here to allow existing BuildProvenance serialized to json in - # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to - # deserialize back into proto. + # Name of the artifact. This may be the path to a binary or jar file, or in the + # case of a container build, the name used to push the container image to Google + # Container Registry, as presented to `docker push`. This field is deprecated in + # favor of the plural `names` field; it continues to exist here to allow + # existing BuildProvenance serialized to json in google.devtools. + # containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back + # into proto. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Related artifact names. This may be the path to a binary or jar file, or in # the case of a container build, the name used to push the container image to - # Google Container Registry, as presented to `docker push`. Note that a - # single Artifact ID can have multiple names, for example if two tags are - # applied to one image. + # Google Container Registry, as presented to `docker push`. Note that a single + # Artifact ID can have multiple names, for example if two tags are applied to + # one image. # Corresponds to the JSON property `names` # @return [Array] attr_accessor :names @@ -71,20 +71,20 @@ module Google end end - # Occurrence that represents a single "attestation". The authenticity of an + # Occurrence that represents a single "attestation". The authenticity of an # Attestation can be verified using the attached signature. If the verifier # trusts the public key of the signer, then verifying the signature is - # sufficient to establish trust. In this circumstance, the - # AttestationAuthority to which this Attestation is attached is primarily - # useful for look-up (how to find this Attestation if you already know the - # Authority and artifact to be verified) and intent (which authority was this - # attestation intended to sign for). + # sufficient to establish trust. In this circumstance, the AttestationAuthority + # to which this Attestation is attached is primarily useful for look-up (how to + # find this Attestation if you already know the Authority and artifact to be + # verified) and intent (which authority was this attestation intended to sign + # for). class Attestation include Google::Apis::Core::Hashable - # An attestation wrapper with a PGP-compatible signature. - # This message only supports `ATTACHED` signatures, where the payload that is - # signed is included alongside the signature itself in the same file. + # An attestation wrapper with a PGP-compatible signature. This message only + # supports `ATTACHED` signatures, where the payload that is signed is included + # alongside the signature itself in the same file. # Corresponds to the JSON property `pgpSignedAttestation` # @return [Google::Apis::ContaineranalysisV1alpha1::PgpSignedAttestation] attr_accessor :pgp_signed_attestation @@ -99,24 +99,24 @@ module Google end end - # Note kind that represents a logical attestation "role" or "authority". For + # Note kind that represents a logical attestation "role" or "authority". For # example, an organization might have one `AttestationAuthority` for "QA" and - # one for "build". This Note is intended to act strictly as a grouping - # mechanism for the attached Occurrences (Attestations). This grouping - # mechanism also provides a security boundary, since IAM ACLs gate the ability - # for a principle to attach an Occurrence to a given Note. It also provides a - # single point of lookup to find all attached Attestation Occurrences, even if - # they don't all live in the same project. + # one for "build". This Note is intended to act strictly as a grouping mechanism + # for the attached Occurrences (Attestations). This grouping mechanism also + # provides a security boundary, since IAM ACLs gate the ability for a principle + # to attach an Occurrence to a given Note. It also provides a single point of + # lookup to find all attached Attestation Occurrences, even if they don't all + # live in the same project. class AttestationAuthority include Google::Apis::Core::Hashable # This submessage provides human-readable hints about the purpose of the - # AttestationAuthority. Because the name of a Note acts as its resource - # reference, it is important to disambiguate the canonical name of the Note - # (which might be a UUID for security purposes) from "readable" names more - # suitable for debug output. Note that these hints should NOT be used to - # look up AttestationAuthorities in security sensitive contexts, such as when - # looking up Attestations to verify. + # AttestationAuthority. Because the name of a Note acts as its resource + # reference, it is important to disambiguate the canonical name of the Note ( + # which might be a UUID for security purposes) from "readable" names more + # suitable for debug output. Note that these hints should NOT be used to look up + # AttestationAuthorities in security sensitive contexts, such as when looking up + # Attestations to verify. # Corresponds to the JSON property `hint` # @return [Google::Apis::ContaineranalysisV1alpha1::AttestationAuthorityHint] attr_accessor :hint @@ -132,12 +132,12 @@ module Google end # This submessage provides human-readable hints about the purpose of the - # AttestationAuthority. Because the name of a Note acts as its resource - # reference, it is important to disambiguate the canonical name of the Note - # (which might be a UUID for security purposes) from "readable" names more - # suitable for debug output. Note that these hints should NOT be used to - # look up AttestationAuthorities in security sensitive contexts, such as when - # looking up Attestations to verify. + # AttestationAuthority. Because the name of a Note acts as its resource + # reference, it is important to disambiguate the canonical name of the Note ( + # which might be a UUID for security purposes) from "readable" names more + # suitable for debug output. Note that these hints should NOT be used to look up + # AttestationAuthorities in security sensitive contexts, such as when looking up + # Attestations to verify. class AttestationAuthorityHint include Google::Apis::Core::Hashable @@ -156,11 +156,9 @@ module Google end end - # Basis describes the base image portion (Note) of the DockerImage - # relationship. Linked occurrences are derived from this or an - # equivalent image via: - # FROM - # Or an equivalent reference, e.g. a tag of the resource_url. + # Basis describes the base image portion (Note) of the DockerImage relationship. + # Linked occurrences are derived from this or an equivalent image via: FROM Or + # an equivalent reference, e.g. a tag of the resource_url. class Basis include Google::Apis::Core::Hashable @@ -169,8 +167,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1alpha1::Fingerprint] attr_accessor :fingerprint - # The resource_url for the resource representing the basis of - # associated occurrence images. + # The resource_url for the resource representing the basis of associated + # occurrence images. # Corresponds to the JSON property `resourceUrl` # @return [String] attr_accessor :resource_url @@ -190,69 +188,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::ContaineranalysisV1alpha1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -279,16 +265,14 @@ module Google # @return [Google::Apis::ContaineranalysisV1alpha1::BuildProvenance] attr_accessor :provenance - # Serialized JSON representation of the provenance, used in generating the - # `BuildSignature` in the corresponding Result. After verifying the - # signature, `provenance_bytes` can be unmarshalled and compared to the - # provenance to confirm that it is unchanged. A base64-encoded string - # representation of the provenance bytes is used for the signature in order - # to interoperate with openssl which expects this format for signature - # verification. - # The serialized form is captured both to avoid ambiguity in how the - # provenance is marshalled to json as well to prevent incompatibilities with - # future changes. + # Serialized JSON representation of the provenance, used in generating the ` + # BuildSignature` in the corresponding Result. After verifying the signature, ` + # provenance_bytes` can be unmarshalled and compared to the provenance to + # confirm that it is unchanged. A base64-encoded string representation of the + # provenance bytes is used for the signature in order to interoperate with + # openssl which expects this format for signature verification. The serialized + # form is captured both to avoid ambiguity in how the provenance is marshalled + # to json as well to prevent incompatibilities with future changes. # Corresponds to the JSON property `provenanceBytes` # @return [String] attr_accessor :provenance_bytes @@ -309,8 +293,8 @@ module Google class BuildProvenance include Google::Apis::Core::Hashable - # Special options applied to this build. This is a catch-all field where - # build providers can enter any desired additional details. + # Special options applied to this build. This is a catch-all field where build + # providers can enter any desired additional details. # Corresponds to the JSON property `buildOptions` # @return [Hash] attr_accessor :build_options @@ -403,31 +387,29 @@ module Google class BuildSignature include Google::Apis::Core::Hashable - # An Id for the key used to sign. This could be either an Id for the key - # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the - # CN for a cert), or a reference to an external key (such as a reference to a - # key in Cloud Key Management Service). + # An Id for the key used to sign. This could be either an Id for the key stored + # in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a + # cert), or a reference to an external key (such as a reference to a key in + # Cloud Key Management Service). # Corresponds to the JSON property `keyId` # @return [String] attr_accessor :key_id - # The type of the key, either stored in `public_key` or referenced in - # `key_id` + # The type of the key, either stored in `public_key` or referenced in `key_id` # Corresponds to the JSON property `keyType` # @return [String] attr_accessor :key_type # Public key of the builder which can be used to verify that the related - # findings are valid and unchanged. If `key_type` is empty, this defaults - # to PEM encoded public keys. - # This field may be empty if `key_id` references an external key. - # For Cloud Build based signatures, this is a PEM encoded public - # key. To verify the Cloud Build signature, place the contents of - # this field into a file (public.pem). The signature field is base64-decoded - # into its binary representation in signature.bin, and the provenance bytes - # from `BuildDetails` are base64-decoded into a binary representation in - # signed.bin. OpenSSL can then verify the signature: - # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` + # findings are valid and unchanged. If `key_type` is empty, this defaults to PEM + # encoded public keys. This field may be empty if `key_id` references an + # external key. For Cloud Build based signatures, this is a PEM encoded public + # key. To verify the Cloud Build signature, place the contents of this field + # into a file (public.pem). The signature field is base64-decoded into its + # binary representation in signature.bin, and the provenance bytes from ` + # BuildDetails` are base64-decoded into a binary representation in signed.bin. + # OpenSSL can then verify the signature: `openssl sha256 -verify public.pem - + # signature signature.bin signed.bin` # Corresponds to the JSON property `publicKey` # @return [String] attr_accessor :public_key @@ -450,8 +432,8 @@ module Google end end - # Note holding the version of the provider's builder and the signature of - # the provenance message in linked BuildDetails. + # Note holding the version of the provider's builder and the signature of the + # provenance message in linked BuildDetails. class BuildType include Google::Apis::Core::Hashable @@ -485,8 +467,8 @@ module Google # @return [Array] attr_accessor :args - # Working directory (relative to project source root) used when running - # this Command. + # Working directory (relative to project source root) used when running this + # Command. # Corresponds to the JSON property `dir` # @return [String] attr_accessor :dir @@ -629,14 +611,12 @@ module Google end end - # Derived describes the derived image portion (Occurrence) of the - # DockerImage relationship. This image would be produced from a Dockerfile - # with FROM . + # Derived describes the derived image portion (Occurrence) of the DockerImage + # relationship. This image would be produced from a Dockerfile with FROM . class Derived include Google::Apis::Core::Hashable - # Output only. This contains the base image URL for the derived image - # occurrence. + # Output only. This contains the base image URL for the derived image occurrence. # Corresponds to the JSON property `baseResourceUrl` # @return [String] attr_accessor :base_resource_url @@ -652,9 +632,9 @@ module Google # @return [Google::Apis::ContaineranalysisV1alpha1::Fingerprint] attr_accessor :fingerprint - # This contains layer-specific metadata, if populated it has length - # "distance" and is ordered with [distance] being the layer immediately - # following the base image and [1] being the final layer. + # This contains layer-specific metadata, if populated it has length "distance" + # and is ordered with [distance] being the layer immediately following the base + # image and [1] being the final layer. # Corresponds to the JSON property `layerInfo` # @return [Array] attr_accessor :layer_info @@ -672,16 +652,15 @@ module Google end end - # Identifies all occurrences of this vulnerability in the package for a - # specific distro/location - # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 + # Identifies all occurrences of this vulnerability in the package for a specific + # distro/location For example: glibc in cpe:/o:debian:debian_linux:8 for + # versions 2.1 - 2.2 class Detail include Google::Apis::Core::Hashable - # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in - # which the vulnerability manifests. Examples include distro or storage - # location for vulnerable jar. - # This field can be used as a filter in list requests. + # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which + # the vulnerability manifests. Examples include distro or storage location for + # vulnerable jar. This field can be used as a filter in list requests. # Corresponds to the JSON property `cpeUri` # @return [String] attr_accessor :cpe_uri @@ -703,32 +682,30 @@ module Google attr_accessor :is_obsolete alias_method :is_obsolete?, :is_obsolete - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Corresponds to the JSON property `maxAffectedVersion` # @return [Google::Apis::ContaineranalysisV1alpha1::Version] attr_accessor :max_affected_version - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Corresponds to the JSON property `minAffectedVersion` # @return [Google::Apis::ContaineranalysisV1alpha1::Version] attr_accessor :min_affected_version - # The name of the package where the vulnerability was found. - # This field can be used as a filter in list requests. + # The name of the package where the vulnerability was found. This field can be + # used as a filter in list requests. # Corresponds to the JSON property `package` # @return [String] attr_accessor :package - # The type of package; whether native or non native(ruby gems, - # node.js packages etc) + # The type of package; whether native or non native(ruby gems, node.js packages + # etc) # Corresponds to the JSON property `packageType` # @return [String] attr_accessor :package_type @@ -765,12 +742,12 @@ module Google # @return [String] attr_accessor :analysis_status - # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `analysisStatusError` # @return [Google::Apis::ContaineranalysisV1alpha1::Status] attr_accessor :analysis_status_error @@ -828,19 +805,19 @@ module Google end end - # This represents a particular channel of distribution for a given package. - # e.g. Debian's jessie-backports dpkg mirror + # This represents a particular channel of distribution for a given package. e.g. + # Debian's jessie-backports dpkg mirror class Distribution include Google::Apis::Core::Hashable - # The CPU architecture for which packages in this distribution - # channel were built + # The CPU architecture for which packages in this distribution channel were + # built # Corresponds to the JSON property `architecture` # @return [String] attr_accessor :architecture - # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) - # denoting the package manager version distributing a package. + # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the + # package manager version distributing a package. # Corresponds to the JSON property `cpeUri` # @return [String] attr_accessor :cpe_uri @@ -850,11 +827,10 @@ module Google # @return [String] attr_accessor :description - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Corresponds to the JSON property `latestVersion` # @return [Google::Apis::ContaineranalysisV1alpha1::Version] attr_accessor :latest_version @@ -884,13 +860,11 @@ module Google 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 ````. + # 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 @@ -903,52 +877,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -966,8 +931,8 @@ module Google end end - # Container message for hashes of byte content of files, used in Source - # messages to verify integrity of source input to the build. + # Container message for hashes of byte content of files, used in Source messages + # to verify integrity of source input to the build. class FileHashes include Google::Apis::Core::Hashable @@ -990,9 +955,8 @@ module Google class Fingerprint include Google::Apis::Core::Hashable - # The layer-id of the final layer in the Docker image's v1 - # representation. - # This field can be used as a filter in list requests. + # The layer-id of the final layer in the Docker image's v1 representation. This + # field can be used as a filter in list requests. # Corresponds to the JSON property `v1Name` # @return [String] attr_accessor :v1_name @@ -1002,10 +966,9 @@ module Google # @return [Array] attr_accessor :v2_blob - # Output only. The name of the image's v2 blobs computed via: - # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) - # Only the name of the final blob is kept. - # This field can be used as a filter in list requests. + # Output only. The name of the image's v2 blobs computed via: [bottom] := + # v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the + # final blob is kept. This field can be used as a filter in list requests. # Corresponds to the JSON property `v2Name` # @return [String] attr_accessor :v2_name @@ -1045,15 +1008,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -1068,9 +1029,8 @@ module Google end end - # A summary of how many vulnz occurrences there are per severity type. - # counts by groups, or if we should have different summary messages - # like this. + # A summary of how many vulnz occurrences there are per severity type. counts by + # groups, or if we should have different summary messages like this. class GetVulnzOccurrencesSummaryResponse include Google::Apis::Core::Hashable @@ -1155,9 +1115,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1AliasContext] attr_accessor :alias_context - # The full project name within the host. Projects may be nested, so - # "project/subproject" is a valid project name. The "repo name" is - # the hostURI/project. + # The full project name within the host. Projects may be nested, so "project/ + # subproject" is a valid project name. The "repo name" is the hostURI/project. # Corresponds to the JSON property `gerritProject` # @return [String] attr_accessor :gerrit_project @@ -1211,8 +1170,8 @@ module Google end end - # Metadata for all operations used and required for all operations - # that created by Container Analysis Providers + # Metadata for all operations used and required for all operations that created + # by Container Analysis Providers class GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata include Google::Apis::Core::Hashable @@ -1237,8 +1196,8 @@ module Google end end - # Selects a repo using a Google Cloud Platform project ID (e.g., - # winged-cargo-31) and a repo name within that project. + # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) + # and a repo name within that project. class GoogleDevtoolsContaineranalysisV1alpha1ProjectRepoId include Google::Apis::Core::Hashable @@ -1267,8 +1226,8 @@ module Google class GoogleDevtoolsContaineranalysisV1alpha1RepoId include Google::Apis::Core::Hashable - # Selects a repo using a Google Cloud Platform project ID (e.g., - # winged-cargo-31) and a repo name within that project. + # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) + # and a repo name within that project. # Corresponds to the JSON property `projectRepoId` # @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1ProjectRepoId] attr_accessor :project_repo_id @@ -1355,13 +1314,12 @@ module Google end end - # This represents how a particular software package may be installed on - # a system. + # This represents how a particular software package may be installed on a system. class Installation include Google::Apis::Core::Hashable - # All of the places within the filesystem versions of this package - # have been found. + # All of the places within the filesystem versions of this package have been + # found. # Corresponds to the JSON property `location` # @return [Array] attr_accessor :location @@ -1462,9 +1420,8 @@ module Google class ListOccurrencesResponse include Google::Apis::Core::Hashable - # The next pagination token in the list response. It should be used as - # `page_token` for the following request. An empty value means no more - # results. + # The next pagination token in the list response. It should be used as ` + # page_token` for the following request. An empty value means no more results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -1510,14 +1467,13 @@ module Google end end - # An occurrence of a particular package installation found within a - # system's filesystem. - # e.g. glibc was found in /var/lib/dpkg/status + # An occurrence of a particular package installation found within a system's + # filesystem. e.g. glibc was found in /var/lib/dpkg/status class Location include Google::Apis::Core::Hashable - # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) - # denoting the package manager version distributing a package. + # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the + # package manager version distributing a package. # Corresponds to the JSON property `cpeUri` # @return [String] attr_accessor :cpe_uri @@ -1527,11 +1483,10 @@ module Google # @return [String] attr_accessor :path - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Corresponds to the JSON property `version` # @return [Google::Apis::ContaineranalysisV1alpha1::Version] attr_accessor :version @@ -1552,29 +1507,27 @@ module Google class Note include Google::Apis::Core::Hashable - # Note kind that represents a logical attestation "role" or "authority". For + # Note kind that represents a logical attestation "role" or "authority". For # example, an organization might have one `AttestationAuthority` for "QA" and - # one for "build". This Note is intended to act strictly as a grouping - # mechanism for the attached Occurrences (Attestations). This grouping - # mechanism also provides a security boundary, since IAM ACLs gate the ability - # for a principle to attach an Occurrence to a given Note. It also provides a - # single point of lookup to find all attached Attestation Occurrences, even if - # they don't all live in the same project. + # one for "build". This Note is intended to act strictly as a grouping mechanism + # for the attached Occurrences (Attestations). This grouping mechanism also + # provides a security boundary, since IAM ACLs gate the ability for a principle + # to attach an Occurrence to a given Note. It also provides a single point of + # lookup to find all attached Attestation Occurrences, even if they don't all + # live in the same project. # Corresponds to the JSON property `attestationAuthority` # @return [Google::Apis::ContaineranalysisV1alpha1::AttestationAuthority] attr_accessor :attestation_authority - # Basis describes the base image portion (Note) of the DockerImage - # relationship. Linked occurrences are derived from this or an - # equivalent image via: - # FROM - # Or an equivalent reference, e.g. a tag of the resource_url. + # Basis describes the base image portion (Note) of the DockerImage relationship. + # Linked occurrences are derived from this or an equivalent image via: FROM Or + # an equivalent reference, e.g. a tag of the resource_url. # Corresponds to the JSON property `baseImage` # @return [Google::Apis::ContaineranalysisV1alpha1::Basis] attr_accessor :base_image - # Note holding the version of the provider's builder and the signature of - # the provenance message in linked BuildDetails. + # Note holding the version of the provider's builder and the signature of the + # provenance message in linked BuildDetails. # Corresponds to the JSON property `buildType` # @return [Google::Apis::ContaineranalysisV1alpha1::BuildType] attr_accessor :build_type @@ -1615,14 +1568,13 @@ module Google # @return [String] attr_accessor :long_description - # The name of the note in the form - # "projects/`provider_project_id`/notes/`NOTE_ID`" + # The name of the note in the form "projects/`provider_project_id`/notes/` + # NOTE_ID`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # This represents a particular package that is distributed over - # various channels. + # This represents a particular package that is distributed over various channels. # e.g. glibc (aka libc6) is distributed by many, at various versions. # Corresponds to the JSON property `package` # @return [Google::Apis::ContaineranalysisV1alpha1::Package] @@ -1638,15 +1590,15 @@ module Google # @return [String] attr_accessor :short_description - # Output only. The time this note was last updated. This field can be used as - # a filter in list requests. + # Output only. The time this note was last updated. This field can be used as a + # filter in list requests. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time - # An Upgrade Note represents a potential upgrade of a package to a given - # version. For each package version combination (i.e. bash 4.0, bash 4.1, - # bash 4.1.2), there will be a Upgrade Note. + # An Upgrade Note represents a potential upgrade of a package to a given version. + # For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), + # there will be a Upgrade Note. # Corresponds to the JSON property `upgrade` # @return [Google::Apis::ContaineranalysisV1alpha1::UpgradeNote] attr_accessor :upgrade @@ -1685,14 +1637,14 @@ module Google class Occurrence include Google::Apis::Core::Hashable - # Occurrence that represents a single "attestation". The authenticity of an + # Occurrence that represents a single "attestation". The authenticity of an # Attestation can be verified using the attached signature. If the verifier # trusts the public key of the signer, then verifying the signature is - # sufficient to establish trust. In this circumstance, the - # AttestationAuthority to which this Attestation is attached is primarily - # useful for look-up (how to find this Attestation if you already know the - # Authority and artifact to be verified) and intent (which authority was this - # attestation intended to sign for). + # sufficient to establish trust. In this circumstance, the AttestationAuthority + # to which this Attestation is attached is primarily useful for look-up (how to + # find this Attestation if you already know the Authority and artifact to be + # verified) and intent (which authority was this attestation intended to sign + # for). # Corresponds to the JSON property `attestation` # @return [Google::Apis::ContaineranalysisV1alpha1::Attestation] attr_accessor :attestation @@ -1712,9 +1664,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1alpha1::Deployment] attr_accessor :deployment - # Derived describes the derived image portion (Occurrence) of the - # DockerImage relationship. This image would be produced from a Dockerfile - # with FROM . + # Derived describes the derived image portion (Occurrence) of the DockerImage + # relationship. This image would be produced from a Dockerfile with FROM . # Corresponds to the JSON property `derivedImage` # @return [Google::Apis::ContaineranalysisV1alpha1::Derived] attr_accessor :derived_image @@ -1724,8 +1675,7 @@ module Google # @return [Google::Apis::ContaineranalysisV1alpha1::Discovered] attr_accessor :discovered - # This represents how a particular software package may be installed on - # a system. + # This represents how a particular software package may be installed on a system. # Corresponds to the JSON property `installation` # @return [Google::Apis::ContaineranalysisV1alpha1::Installation] attr_accessor :installation @@ -1736,15 +1686,15 @@ module Google # @return [String] attr_accessor :kind - # Output only. The name of the `Occurrence` in the form - # "projects/`project_id`/occurrences/`OCCURRENCE_ID`" + # Output only. The name of the `Occurrence` in the form "projects/`project_id`/ + # occurrences/`OCCURRENCE_ID`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An analysis note associated with this image, in the form - # "providers/`provider_id`/notes/`NOTE_ID`" - # This field can be used as a filter in list requests. + # An analysis note associated with this image, in the form "providers/` + # provider_id`/notes/`NOTE_ID`" This field can be used as a filter in list + # requests. # Corresponds to the JSON property `noteName` # @return [String] attr_accessor :note_name @@ -1760,8 +1710,8 @@ module Google attr_accessor :resource # The unique URL of the image or the container for which the `Occurrence` - # applies. For example, https://gcr.io/project/image@sha256:foo This field - # can be used as a filter in list requests. + # applies. For example, https://gcr.io/project/image@sha256:foo This field can + # be used as a filter in list requests. # Corresponds to the JSON property `resourceUrl` # @return [String] attr_accessor :resource_url @@ -1778,8 +1728,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1alpha1::UpgradeOccurrence] attr_accessor :upgrade - # Used by Occurrence to point to where the vulnerability exists and how - # to fix it. + # Used by Occurrence to point to where the vulnerability exists and how to fix + # it. # Corresponds to the JSON property `vulnerabilityDetails` # @return [Google::Apis::ContaineranalysisV1alpha1::VulnerabilityDetails] attr_accessor :vulnerability_details @@ -1814,47 +1764,45 @@ module Google 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. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::ContaineranalysisV1alpha1::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. + # 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 be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # 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`. + # 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 @@ -1873,8 +1821,7 @@ module Google end end - # This represents a particular package that is distributed over - # various channels. + # This represents a particular package that is distributed over various channels. # e.g. glibc (aka libc6) is distributed by many, at various versions. class Package include Google::Apis::Core::Hashable @@ -1900,8 +1847,8 @@ module Google end end - # This message wraps a location affected by a vulnerability and its - # associated fix (if one is available). + # This message wraps a location affected by a vulnerability and its associated + # fix (if one is available). class PackageIssue include Google::Apis::Core::Hashable @@ -1932,49 +1879,43 @@ module Google end end - # An attestation wrapper with a PGP-compatible signature. - # This message only supports `ATTACHED` signatures, where the payload that is - # signed is included alongside the signature itself in the same file. + # An attestation wrapper with a PGP-compatible signature. This message only + # supports `ATTACHED` signatures, where the payload that is signed is included + # alongside the signature itself in the same file. class PgpSignedAttestation include Google::Apis::Core::Hashable - # Type (for example schema) of the attestation payload that was signed. - # The verifier must ensure that the provided type is one that the verifier - # supports, and that the attestation payload is a valid instantiation of that - # type (for example by validating a JSON schema). + # Type (for example schema) of the attestation payload that was signed. The + # verifier must ensure that the provided type is one that the verifier supports, + # and that the attestation payload is a valid instantiation of that type (for + # example by validating a JSON schema). # Corresponds to the JSON property `contentType` # @return [String] attr_accessor :content_type - # The cryptographic fingerprint of the key used to generate the signature, - # as output by, e.g. `gpg --list-keys`. This should be the version 4, full - # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See - # https://tools.ietf.org/html/rfc4880#section-12.2 for details. - # Implementations may choose to acknowledge "LONG", "SHORT", or other - # abbreviated key IDs, but only the full fingerprint is guaranteed to work. - # In gpg, the full fingerprint can be retrieved from the `fpr` field - # returned when calling --list-keys with --with-colons. For example: - # ``` - # gpg --with-colons --with-fingerprint --force-v4-certs \ - # --list-keys attester@example.com - # tru::1:1513631572:0:3:1:5 - # pub:...... - # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: - # ``` - # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. + # The cryptographic fingerprint of the key used to generate the signature, as + # output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit + # fingerprint, expressed as a 40 character hexadecimal string. See https://tools. + # ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to + # acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full + # fingerprint is guaranteed to work. In gpg, the full fingerprint can be + # retrieved from the `fpr` field returned when calling --list-keys with --with- + # colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs + # \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::: + # :::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is ` + # 24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. # Corresponds to the JSON property `pgpKeyId` # @return [String] attr_accessor :pgp_key_id # The raw content of the signature, as output by GNU Privacy Guard (GPG) or - # equivalent. Since this message only supports attached signatures, the - # payload that was signed must be attached. While the signature format - # supported is dependent on the verification implementation, currently only - # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than - # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor - # --output=signature.gpg payload.json` will create the signature content - # expected in this field in `signature.gpg` for the `payload.json` - # attestation payload. + # equivalent. Since this message only supports attached signatures, the payload + # that was signed must be attached. While the signature format supported is + # dependent on the verification implementation, currently only ASCII-armored (`-- + # armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) + # are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload. + # json` will create the signature content expected in this field in `signature. + # gpg` for the `payload.json` attestation payload. # Corresponds to the JSON property `signature` # @return [String] attr_accessor :signature @@ -1992,111 +1933,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2196,8 +2099,8 @@ module Google # @return [String] attr_accessor :name - # The unique URI of the resource. E.g., - # "https://gcr.io/project/image@sha256:foo" for a Docker image. + # The unique URI of the resource. E.g., "https://gcr.io/project/image@sha256:foo" + # for a Docker image. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -2234,8 +2137,8 @@ module Google attr_accessor :enabled alias_method :enabled?, :enabled - # Output only. The name of the ScanConfig in the form - # “projects/`project_id`/scanConfigs/`scan_config_id`". + # Output only. The name of the ScanConfig in the form “projects/`project_id`/ + # scanConfigs/`scan_config_id`". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2264,66 +2167,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::ContaineranalysisV1alpha1::Policy] attr_accessor :policy @@ -2367,10 +2236,10 @@ module Google class Source include Google::Apis::Core::Hashable - # If provided, some of the source code used for the build may be found in - # these locations, in the case where the source repository had multiple - # remotes or submodules. This list will not include the context specified in - # the context field. + # If provided, some of the source code used for the build may be found in these + # locations, in the case where the source repository had multiple remotes or + # submodules. This list will not include the context specified in the context + # field. # Corresponds to the JSON property `additionalContexts` # @return [Array] attr_accessor :additional_contexts @@ -2388,11 +2257,10 @@ module Google attr_accessor :context # Hash(es) of the build source, which can be used to verify that the original - # source integrity was maintained in the build. - # The keys to this map are file paths used as build source and the values - # contain the hash values for those files. - # If the build source came in a single package such as a gzipped tarfile - # (.tar.gz), the FileHash will be for the single path to that file. + # source integrity was maintained in the build. The keys to this map are file + # paths used as build source and the values contain the hash values for those + # files. If the build source came in a single package such as a gzipped tarfile ( + # .tar.gz), the FileHash will be for the single path to that file. # Corresponds to the JSON property `fileHashes` # @return [Hash] attr_accessor :file_hashes @@ -2424,12 +2292,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -2438,15 +2306,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -2468,9 +2336,8 @@ module Google class StorageSource include Google::Apis::Core::Hashable - # Google Cloud Storage bucket containing source (see [Bucket Name - # Requirements] - # (https://cloud.google.com/storage/docs/bucket-naming#requirements)). + # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] ( + # https://cloud.google.com/storage/docs/bucket-naming#requirements)). # Corresponds to the JSON property `bucket` # @return [String] attr_accessor :bucket @@ -2501,10 +2368,9 @@ module Google 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). + # 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 @@ -2523,8 +2389,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -2577,8 +2442,8 @@ module Google # @return [String] attr_accessor :classification - # Required - The specific operating system this metadata applies to. See - # https://cpe.mitre.org/specification/. + # Required - The specific operating system this metadata applies to. See https:// + # cpe.mitre.org/specification/. # Corresponds to the JSON property `cpeUri` # @return [String] attr_accessor :cpe_uri @@ -2606,9 +2471,9 @@ module Google end end - # An Upgrade Note represents a potential upgrade of a package to a given - # version. For each package version combination (i.e. bash 4.0, bash 4.1, - # bash 4.1.2), there will be a Upgrade Note. + # An Upgrade Note represents a potential upgrade of a package to a given version. + # For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), + # there will be a Upgrade Note. class UpgradeNote include Google::Apis::Core::Hashable @@ -2622,11 +2487,10 @@ module Google # @return [String] attr_accessor :package - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Corresponds to the JSON property `version` # @return [Google::Apis::ContaineranalysisV1alpha1::Version] attr_accessor :version @@ -2661,11 +2525,10 @@ module Google # @return [String] attr_accessor :package - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Corresponds to the JSON property `parsedVersion` # @return [Google::Apis::ContaineranalysisV1alpha1::Version] attr_accessor :parsed_version @@ -2682,11 +2545,10 @@ module Google end end - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ class Version include Google::Apis::Core::Hashable @@ -2695,8 +2557,8 @@ module Google # @return [Fixnum] attr_accessor :epoch - # Distinguish between sentinel MIN/MAX versions and normal versions. - # If kind is not NORMAL, then the other fields are ignored. + # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is + # not NORMAL, then the other fields are ignored. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2724,27 +2586,26 @@ module Google end end - # Used by Occurrence to point to where the vulnerability exists and how - # to fix it. + # Used by Occurrence to point to where the vulnerability exists and how to fix + # it. class VulnerabilityDetails include Google::Apis::Core::Hashable - # Output only. The CVSS score of this vulnerability. CVSS score is on a - # scale of 0-10 where 0 indicates low severity and 10 indicates high - # severity. + # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of + # 0-10 where 0 indicates low severity and 10 indicates high severity. # Corresponds to the JSON property `cvssScore` # @return [Float] attr_accessor :cvss_score - # The distro assigned severity for this vulnerability when that is - # available and note provider assigned severity when distro has not yet - # assigned a severity for this vulnerability. + # The distro assigned severity for this vulnerability when that is available and + # note provider assigned severity when distro has not yet assigned a severity + # for this vulnerability. # Corresponds to the JSON property `effectiveSeverity` # @return [String] attr_accessor :effective_severity - # The set of affected locations and their fixes (if available) within - # the associated resource. + # The set of affected locations and their fixes (if available) within the + # associated resource. # Corresponds to the JSON property `packageIssue` # @return [Array] attr_accessor :package_issue @@ -2754,8 +2615,8 @@ module Google # @return [String] attr_accessor :severity - # The type of package; whether native or non native(ruby gems, - # node.js packages etc) + # The type of package; whether native or non native(ruby gems, node.js packages + # etc) # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2778,9 +2639,9 @@ module Google class VulnerabilityLocation include Google::Apis::Core::Hashable - # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) - # format. Examples include distro or storage location for vulnerable jar. - # This field can be used as a filter in list requests. + # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. + # Examples include distro or storage location for vulnerable jar. This field can + # be used as a filter in list requests. # Corresponds to the JSON property `cpeUri` # @return [String] attr_accessor :cpe_uri @@ -2790,11 +2651,10 @@ module Google # @return [String] attr_accessor :package - # Version contains structured information about the version of the package. - # For a discussion of this in Debian/Ubuntu: - # http://serverfault.com/questions/604541/debian-packages-version-convention - # For a discussion of this in Redhat/Fedora/Centos: - # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ + # Version contains structured information about the version of the package. For + # a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/ + # debian-packages-version-convention For a discussion of this in Redhat/Fedora/ + # Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Corresponds to the JSON property `version` # @return [Google::Apis::ContaineranalysisV1alpha1::Version] attr_accessor :version @@ -2820,9 +2680,9 @@ module Google # @return [Float] attr_accessor :cvss_score - # All information about the package to specifically identify this - # vulnerability. One entry per (version range and cpe_uri) the - # package vulnerability has manifested in. + # All information about the package to specifically identify this vulnerability. + # One entry per (version range and cpe_uri) the package vulnerability has + # manifested in. # Corresponds to the JSON property `details` # @return [Array] attr_accessor :details diff --git a/generated/google/apis/containeranalysis_v1alpha1/service.rb b/generated/google/apis/containeranalysis_v1alpha1/service.rb index 36d5dda6c..97ae5fb54 100644 --- a/generated/google/apis/containeranalysis_v1alpha1/service.rb +++ b/generated/google/apis/containeranalysis_v1alpha1/service.rb @@ -50,13 +50,11 @@ module Google # Creates a new `Note`. # @param [String] parent - # This field contains the project Id for example: - # "projects/`project_id` + # This field contains the project Id for example: "projects/`project_id` # @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object # @param [String] name - # The name of the project. - # Should be of the form "providers/`provider_id`". - # @Deprecated + # The name of the project. Should be of the form "providers/`provider_id`". @ + # Deprecated # @param [String] note_id # The ID to use for this note. # @param [String] fields @@ -92,8 +90,7 @@ module Google # Deletes the given `Note` from the system. # @param [String] name - # The name of the note in the form of - # "providers/`provider_id`/notes/`NOTE_ID`" + # The name of the note in the form of "providers/`provider_id`/notes/`NOTE_ID`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -123,8 +120,7 @@ module Google # Returns the requested `Note`. # @param [String] name - # The name of the note in the form of - # "providers/`provider_id`/notes/`NOTE_ID`" + # The name of the note in the form of "providers/`provider_id`/notes/`NOTE_ID`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -153,19 +149,18 @@ module Google end # Gets the access control policy for a note or an `Occurrence` resource. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a note or occurrence, respectively. - # Attempting to call this method on a resource without the required - # permission will result in a `PERMISSION_DENIED` error. Attempting to call - # this method on a non-existent resource will result in a `NOT_FOUND` error - # if the user has list permission on the project, or a `PERMISSION_DENIED` - # error otherwise. The resource takes the following formats: - # `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for occurrences and - # projects/`PROJECT_ID`/notes/`NOTE_ID` for notes + # Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis. + # occurrences.setIamPolicy` permission if the resource is a note or occurrence, + # respectively. Attempting to call this method on a resource without the + # required permission will result in a `PERMISSION_DENIED` error. Attempting to + # call this method on a non-existent resource will result in a `NOT_FOUND` error + # if the user has list permission on the project, or a `PERMISSION_DENIED` error + # otherwise. The resource takes the following formats: `projects/`PROJECT_ID`/ + # occurrences/`OCCURRENCE_ID`` for occurrences and projects/`PROJECT_ID`/notes/` + # NOTE_ID` for notes # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -202,9 +197,8 @@ module Google # @param [String] filter # The filter expression. # @param [String] name - # The name field will contain the project Id for example: - # "providers/`provider_id` - # @Deprecated + # The name field will contain the project Id for example: "providers/` + # provider_id` @Deprecated # @param [Fixnum] page_size # Number of notes to return in the list. # @param [String] page_token @@ -242,8 +236,8 @@ module Google # Updates an existing `Note`. # @param [String] name - # The name of the note. - # Should be of the form "projects/`provider_id`/notes/`note_id`". + # The name of the note. Should be of the form "projects/`provider_id`/notes/` + # note_id`". # @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object # @param [String] update_mask # The fields to update. @@ -278,20 +272,19 @@ module Google end # Sets the access control policy on the specified `Note` or `Occurrence`. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a `Note` or an `Occurrence`, respectively. - # Attempting to call this method without these permissions will result in a ` - # `PERMISSION_DENIED` error. - # Attempting to call this method on a non-existent resource will result in a - # `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission - # on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or - # a `PERMISSION_DENIED` error otherwise. The resource takes the following - # formats: `projects/`projectid`/occurrences/`occurrenceid`` for occurrences - # and projects/`projectid`/notes/`noteid` for notes + # Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis. + # occurrences.setIamPolicy` permission if the resource is a `Note` or an ` + # Occurrence`, respectively. Attempting to call this method without these + # permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call + # this method on a non-existent resource will result in a `NOT_FOUND` error if + # the user has `containeranalysis.notes.list` permission on a `Note` or ` + # containeranalysis.occurrences.list` on an `Occurrence`, or a ` + # PERMISSION_DENIED` error otherwise. The resource takes the following formats: ` + # projects/`projectid`/occurrences/`occurrenceid`` for occurrences and projects/` + # projectid`/notes/`noteid` for notes # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -322,17 +315,17 @@ module Google execute_or_queue_command(command, &block) end - # Returns the permissions that a caller has on the specified note or - # occurrence resource. Requires list permission on the project (for example, - # "storage.objects.list" on the containing bucket for testing permission of - # an object). Attempting to call this method on a non-existent resource will - # result in a `NOT_FOUND` error if the user has list permission on the - # project, or a `PERMISSION_DENIED` error otherwise. The resource takes the - # following formats: `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for - # `Occurrences` and `projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes` + # Returns the permissions that a caller has on the specified note or occurrence + # resource. Requires list permission on the project (for example, "storage. + # objects.list" on the containing bucket for testing permission of an object). + # Attempting to call this method on a non-existent resource will result in a ` + # NOT_FOUND` error if the user has list permission on the project, or a ` + # PERMISSION_DENIED` error otherwise. The resource takes the following formats: ` + # projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for `Occurrences` and ` + # projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes` # @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. + # 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::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -363,12 +356,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists `Occurrences` referencing the specified `Note`. Use this method to - # get all occurrences referencing your `Note` across all your customer - # projects. + # Lists `Occurrences` referencing the specified `Note`. Use this method to get + # all occurrences referencing your `Note` across all your customer projects. # @param [String] name - # The name field will contain the note name for example: - # "provider/`provider_id`/notes/`note_id`" + # The name field will contain the note name for example: "provider/`provider_id`/ + # notes/`note_id`" # @param [String] filter # The filter expression. # @param [Fixnum] page_size @@ -405,14 +397,14 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new `Occurrence`. Use this method to create `Occurrences` - # for a resource. + # Creates a new `Occurrence`. Use this method to create `Occurrences` for a + # resource. # @param [String] parent # This field contains the project Id for example: "projects/`project_id`" # @param [Google::Apis::ContaineranalysisV1alpha1::Occurrence] occurrence_object # @param [String] name - # The name of the project. Should be of the form "projects/`project_id`". - # @Deprecated + # The name of the project. Should be of the form "projects/`project_id`". @ + # Deprecated # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -443,11 +435,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes the given `Occurrence` from the system. Use this when - # an `Occurrence` is no longer applicable for the given resource. + # Deletes the given `Occurrence` from the system. Use this when an `Occurrence` + # is no longer applicable for the given resource. # @param [String] name - # The name of the occurrence in the form of - # "projects/`project_id`/occurrences/`OCCURRENCE_ID`" + # The name of the occurrence in the form of "projects/`project_id`/occurrences/` + # OCCURRENCE_ID`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -477,8 +469,8 @@ module Google # Returns the requested `Occurrence`. # @param [String] name - # The name of the occurrence of the form - # "projects/`project_id`/occurrences/`OCCURRENCE_ID`" + # The name of the occurrence of the form "projects/`project_id`/occurrences/` + # OCCURRENCE_ID`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -507,19 +499,18 @@ module Google end # Gets the access control policy for a note or an `Occurrence` resource. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a note or occurrence, respectively. - # Attempting to call this method on a resource without the required - # permission will result in a `PERMISSION_DENIED` error. Attempting to call - # this method on a non-existent resource will result in a `NOT_FOUND` error - # if the user has list permission on the project, or a `PERMISSION_DENIED` - # error otherwise. The resource takes the following formats: - # `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for occurrences and - # projects/`PROJECT_ID`/notes/`NOTE_ID` for notes + # Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis. + # occurrences.setIamPolicy` permission if the resource is a note or occurrence, + # respectively. Attempting to call this method on a resource without the + # required permission will result in a `PERMISSION_DENIED` error. Attempting to + # call this method on a non-existent resource will result in a `NOT_FOUND` error + # if the user has list permission on the project, or a `PERMISSION_DENIED` error + # otherwise. The resource takes the following formats: `projects/`PROJECT_ID`/ + # occurrences/`OCCURRENCE_ID`` for occurrences and projects/`PROJECT_ID`/notes/` + # NOTE_ID` for notes # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -552,8 +543,8 @@ module Google # Gets the `Note` attached to the given `Occurrence`. # @param [String] name - # The name of the occurrence in the form - # "projects/`project_id`/occurrences/`OCCURRENCE_ID`" + # The name of the occurrence in the form "projects/`project_id`/occurrences/` + # OCCURRENCE_ID`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -622,9 +613,8 @@ module Google # @param [String] kind # The kind of occurrences to filter on. # @param [String] name - # The name field contains the project Id. For example: - # "projects/`project_id` - # @Deprecated + # The name field contains the project Id. For example: "projects/`project_id` @ + # Deprecated # @param [Fixnum] page_size # Number of occurrences to return in the list. # @param [String] page_token @@ -663,8 +653,8 @@ module Google # Updates an existing occurrence. # @param [String] name - # The name of the occurrence. - # Should be of the form "projects/`project_id`/occurrences/`OCCURRENCE_ID`". + # The name of the occurrence. Should be of the form "projects/`project_id`/ + # occurrences/`OCCURRENCE_ID`". # @param [Google::Apis::ContaineranalysisV1alpha1::Occurrence] occurrence_object # @param [String] update_mask # The fields to update. @@ -699,20 +689,19 @@ module Google end # Sets the access control policy on the specified `Note` or `Occurrence`. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a `Note` or an `Occurrence`, respectively. - # Attempting to call this method without these permissions will result in a ` - # `PERMISSION_DENIED` error. - # Attempting to call this method on a non-existent resource will result in a - # `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission - # on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or - # a `PERMISSION_DENIED` error otherwise. The resource takes the following - # formats: `projects/`projectid`/occurrences/`occurrenceid`` for occurrences - # and projects/`projectid`/notes/`noteid` for notes + # Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis. + # occurrences.setIamPolicy` permission if the resource is a `Note` or an ` + # Occurrence`, respectively. Attempting to call this method without these + # permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call + # this method on a non-existent resource will result in a `NOT_FOUND` error if + # the user has `containeranalysis.notes.list` permission on a `Note` or ` + # containeranalysis.occurrences.list` on an `Occurrence`, or a ` + # PERMISSION_DENIED` error otherwise. The resource takes the following formats: ` + # projects/`projectid`/occurrences/`occurrenceid`` for occurrences and projects/` + # projectid`/notes/`noteid` for notes # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -743,17 +732,17 @@ module Google execute_or_queue_command(command, &block) end - # Returns the permissions that a caller has on the specified note or - # occurrence resource. Requires list permission on the project (for example, - # "storage.objects.list" on the containing bucket for testing permission of - # an object). Attempting to call this method on a non-existent resource will - # result in a `NOT_FOUND` error if the user has list permission on the - # project, or a `PERMISSION_DENIED` error otherwise. The resource takes the - # following formats: `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for - # `Occurrences` and `projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes` + # Returns the permissions that a caller has on the specified note or occurrence + # resource. Requires list permission on the project (for example, "storage. + # objects.list" on the containing bucket for testing permission of an object). + # Attempting to call this method on a non-existent resource will result in a ` + # NOT_FOUND` error if the user has list permission on the project, or a ` + # PERMISSION_DENIED` error otherwise. The resource takes the following formats: ` + # projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for `Occurrences` and ` + # projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes` # @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. + # 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::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -817,12 +806,11 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing operation returns an error if operation - # does not exist. The only valid operations are to update mark the done bit - # change the result. + # Updates an existing operation returns an error if operation does not exist. + # The only valid operations are to update mark the done bit change the result. # @param [String] name - # The name of the Operation. - # Should be of the form "projects/`provider_id`/operations/`operation_id`". + # The name of the Operation. Should be of the form "projects/`provider_id`/ + # operations/`operation_id`". # @param [Google::Apis::ContaineranalysisV1alpha1::UpdateOperationRequest] update_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -855,8 +843,8 @@ module Google # Gets a specific scan configuration for a project. # @param [String] name - # The name of the ScanConfig in the form - # projects/`project_id`/scanConfigs/`scan_config_id` + # The name of the ScanConfig in the form projects/`project_id`/scanConfigs/` + # scan_config_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -925,8 +913,8 @@ module Google # Updates the scan configuration to a new value. # @param [String] name - # The scan config to update of the form - # projects/`project_id`/scanConfigs/`scan_config_id`. + # The scan config to update of the form projects/`project_id`/scanConfigs/` + # scan_config_id`. # @param [Google::Apis::ContaineranalysisV1alpha1::ScanConfig] scan_config_object # @param [String] update_mask # The fields to update. @@ -962,15 +950,13 @@ module Google # Creates a new `Note`. # @param [String] name - # The name of the project. - # Should be of the form "providers/`provider_id`". - # @Deprecated + # The name of the project. Should be of the form "providers/`provider_id`". @ + # Deprecated # @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object # @param [String] note_id # The ID to use for this note. # @param [String] parent - # This field contains the project Id for example: - # "projects/`project_id` + # This field contains the project Id for example: "projects/`project_id` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1004,8 +990,7 @@ module Google # Deletes the given `Note` from the system. # @param [String] name - # The name of the note in the form of - # "providers/`provider_id`/notes/`NOTE_ID`" + # The name of the note in the form of "providers/`provider_id`/notes/`NOTE_ID`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1035,8 +1020,7 @@ module Google # Returns the requested `Note`. # @param [String] name - # The name of the note in the form of - # "providers/`provider_id`/notes/`NOTE_ID`" + # The name of the note in the form of "providers/`provider_id`/notes/`NOTE_ID`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1065,19 +1049,18 @@ module Google end # Gets the access control policy for a note or an `Occurrence` resource. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a note or occurrence, respectively. - # Attempting to call this method on a resource without the required - # permission will result in a `PERMISSION_DENIED` error. Attempting to call - # this method on a non-existent resource will result in a `NOT_FOUND` error - # if the user has list permission on the project, or a `PERMISSION_DENIED` - # error otherwise. The resource takes the following formats: - # `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for occurrences and - # projects/`PROJECT_ID`/notes/`NOTE_ID` for notes + # Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis. + # occurrences.setIamPolicy` permission if the resource is a note or occurrence, + # respectively. Attempting to call this method on a resource without the + # required permission will result in a `PERMISSION_DENIED` error. Attempting to + # call this method on a non-existent resource will result in a `NOT_FOUND` error + # if the user has list permission on the project, or a `PERMISSION_DENIED` error + # otherwise. The resource takes the following formats: `projects/`PROJECT_ID`/ + # occurrences/`OCCURRENCE_ID`` for occurrences and projects/`PROJECT_ID`/notes/` + # NOTE_ID` for notes # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1110,9 +1093,8 @@ module Google # Lists all `Notes` for a given project. # @param [String] name - # The name field will contain the project Id for example: - # "providers/`provider_id` - # @Deprecated + # The name field will contain the project Id for example: "providers/` + # provider_id` @Deprecated # @param [String] filter # The filter expression. # @param [Fixnum] page_size @@ -1154,8 +1136,8 @@ module Google # Updates an existing `Note`. # @param [String] name - # The name of the note. - # Should be of the form "projects/`provider_id`/notes/`note_id`". + # The name of the note. Should be of the form "projects/`provider_id`/notes/` + # note_id`". # @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object # @param [String] update_mask # The fields to update. @@ -1190,20 +1172,19 @@ module Google end # Sets the access control policy on the specified `Note` or `Occurrence`. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a `Note` or an `Occurrence`, respectively. - # Attempting to call this method without these permissions will result in a ` - # `PERMISSION_DENIED` error. - # Attempting to call this method on a non-existent resource will result in a - # `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission - # on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or - # a `PERMISSION_DENIED` error otherwise. The resource takes the following - # formats: `projects/`projectid`/occurrences/`occurrenceid`` for occurrences - # and projects/`projectid`/notes/`noteid` for notes + # Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis. + # occurrences.setIamPolicy` permission if the resource is a `Note` or an ` + # Occurrence`, respectively. Attempting to call this method without these + # permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call + # this method on a non-existent resource will result in a `NOT_FOUND` error if + # the user has `containeranalysis.notes.list` permission on a `Note` or ` + # containeranalysis.occurrences.list` on an `Occurrence`, or a ` + # PERMISSION_DENIED` error otherwise. The resource takes the following formats: ` + # projects/`projectid`/occurrences/`occurrenceid`` for occurrences and projects/` + # projectid`/notes/`noteid` for notes # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1234,17 +1215,17 @@ module Google execute_or_queue_command(command, &block) end - # Returns the permissions that a caller has on the specified note or - # occurrence resource. Requires list permission on the project (for example, - # "storage.objects.list" on the containing bucket for testing permission of - # an object). Attempting to call this method on a non-existent resource will - # result in a `NOT_FOUND` error if the user has list permission on the - # project, or a `PERMISSION_DENIED` error otherwise. The resource takes the - # following formats: `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for - # `Occurrences` and `projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes` + # Returns the permissions that a caller has on the specified note or occurrence + # resource. Requires list permission on the project (for example, "storage. + # objects.list" on the containing bucket for testing permission of an object). + # Attempting to call this method on a non-existent resource will result in a ` + # NOT_FOUND` error if the user has list permission on the project, or a ` + # PERMISSION_DENIED` error otherwise. The resource takes the following formats: ` + # projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for `Occurrences` and ` + # projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes` # @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. + # 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::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1275,12 +1256,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists `Occurrences` referencing the specified `Note`. Use this method to - # get all occurrences referencing your `Note` across all your customer - # projects. + # Lists `Occurrences` referencing the specified `Note`. Use this method to get + # all occurrences referencing your `Note` across all your customer projects. # @param [String] name - # The name field will contain the note name for example: - # "provider/`provider_id`/notes/`note_id`" + # The name field will contain the note name for example: "provider/`provider_id`/ + # notes/`note_id`" # @param [String] filter # The filter expression. # @param [Fixnum] page_size diff --git a/generated/google/apis/containeranalysis_v1beta1.rb b/generated/google/apis/containeranalysis_v1beta1.rb index 397e64cd3..09ede19d5 100644 --- a/generated/google/apis/containeranalysis_v1beta1.rb +++ b/generated/google/apis/containeranalysis_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-analysis/api/reference/rest/ module ContaineranalysisV1beta1 VERSION = 'V1beta1' - REVISION = '20200619' + REVISION = '20200807' # 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/containeranalysis_v1beta1/classes.rb b/generated/google/apis/containeranalysis_v1beta1/classes.rb index a8973a66c..92f511898 100644 --- a/generated/google/apis/containeranalysis_v1beta1/classes.rb +++ b/generated/google/apis/containeranalysis_v1beta1/classes.rb @@ -57,17 +57,17 @@ module Google # @return [String] attr_accessor :checksum - # Artifact ID, if any; for container images, this will be a URL by digest - # like `gcr.io/projectID/imagename@sha256:123456`. + # Artifact ID, if any; for container images, this will be a URL by digest like ` + # gcr.io/projectID/imagename@sha256:123456`. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id # Related artifact names. This may be the path to a binary or jar file, or in # the case of a container build, the name used to push the container image to - # Google Container Registry, as presented to `docker push`. Note that a - # single Artifact ID can have multiple names, for example if two tags are - # applied to one image. + # Google Container Registry, as presented to `docker push`. Note that a single + # Artifact ID can have multiple names, for example if two tags are applied to + # one image. # Corresponds to the JSON property `names` # @return [Array] attr_accessor :names @@ -126,17 +126,16 @@ module Google # attestation can be verified using the attached signature. If the verifier # trusts the public key of the signer, then verifying the signature is # sufficient to establish trust. In this circumstance, the authority to which - # this attestation is attached is primarily useful for look-up (how to find - # this attestation if you already know the authority and artifact to be - # verified) and intent (which authority was this attestation intended to sign - # for). + # this attestation is attached is primarily useful for look-up (how to find this + # attestation if you already know the authority and artifact to be verified) and + # intent (which authority was this attestation intended to sign for). class Attestation include Google::Apis::Core::Hashable - # An attestation wrapper that uses the Grafeas `Signature` message. - # This attestation must define the `serialized_payload` that the `signatures` - # verify and any metadata necessary to interpret that plaintext. The - # signatures should always be over the `serialized_payload` bytestring. + # An attestation wrapper that uses the Grafeas `Signature` message. This + # attestation must define the `serialized_payload` that the `signatures` verify + # and any metadata necessary to interpret that plaintext. The signatures should + # always be over the `serialized_payload` bytestring. # Corresponds to the JSON property `genericSignedAttestation` # @return [Google::Apis::ContaineranalysisV1beta1::GenericSignedAttestation] attr_accessor :generic_signed_attestation @@ -160,13 +159,13 @@ module Google end # Note kind that represents a logical attestation "role" or "authority". For - # example, an organization might have one `Authority` for "QA" and one for - # "build". This note is intended to act strictly as a grouping mechanism for - # the attached occurrences (Attestations). This grouping mechanism also - # provides a security boundary, since IAM ACLs gate the ability for a principle - # to attach an occurrence to a given note. It also provides a single point of - # lookup to find all attached attestation occurrences, even if they don't all - # live in the same project. + # example, an organization might have one `Authority` for "QA" and one for " + # build". This note is intended to act strictly as a grouping mechanism for the + # attached occurrences (Attestations). This grouping mechanism also provides a + # security boundary, since IAM ACLs gate the ability for a principle to attach + # an occurrence to a given note. It also provides a single point of lookup to + # find all attached attestation occurrences, even if they don't all live in the + # same project. class Authority include Google::Apis::Core::Hashable @@ -175,8 +174,7 @@ module Google # important to disambiguate the canonical name of the Note (which might be a # UUID for security purposes) from "readable" names more suitable for debug # output. Note that these hints should not be used to look up authorities in - # security sensitive contexts, such as when looking up attestations to - # verify. + # security sensitive contexts, such as when looking up attestations to verify. # Corresponds to the JSON property `hint` # @return [Google::Apis::ContaineranalysisV1beta1::Hint] attr_accessor :hint @@ -191,11 +189,9 @@ module Google end end - # Basis describes the base image portion (Note) of the DockerImage - # relationship. Linked occurrences are derived from this or an - # equivalent image via: - # FROM - # Or an equivalent reference, e.g. a tag of the resource_url. + # Basis describes the base image portion (Note) of the DockerImage relationship. + # Linked occurrences are derived from this or an equivalent image via: FROM Or + # an equivalent reference, e.g. a tag of the resource_url. class Basis include Google::Apis::Core::Hashable @@ -204,8 +200,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::Fingerprint] attr_accessor :fingerprint - # Required. Immutable. The resource_url for the resource representing the - # basis of associated occurrence images. + # Required. Immutable. The resource_url for the resource representing the basis + # of associated occurrence images. # Corresponds to the JSON property `resourceUrl` # @return [String] attr_accessor :resource_url @@ -301,69 +297,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::ContaineranalysisV1beta1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -411,8 +395,8 @@ module Google class BuildProvenance include Google::Apis::Core::Hashable - # Special options applied to this build. This is a catch-all field where - # build providers can enter any desired additional details. + # Special options applied to this build. This is a catch-all field where build + # providers can enter any desired additional details. # Corresponds to the JSON property `buildOptions` # @return [Hash] attr_accessor :build_options @@ -505,37 +489,35 @@ module Google class BuildSignature include Google::Apis::Core::Hashable - # An ID for the key used to sign. This could be either an ID for the key - # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the - # CN for a cert), or a reference to an external key (such as a reference to a - # key in Cloud Key Management Service). + # An ID for the key used to sign. This could be either an ID for the key stored + # in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a + # cert), or a reference to an external key (such as a reference to a key in + # Cloud Key Management Service). # Corresponds to the JSON property `keyId` # @return [String] attr_accessor :key_id - # The type of the key, either stored in `public_key` or referenced in - # `key_id`. + # The type of the key, either stored in `public_key` or referenced in `key_id`. # Corresponds to the JSON property `keyType` # @return [String] attr_accessor :key_type # Public key of the builder which can be used to verify that the related - # findings are valid and unchanged. If `key_type` is empty, this defaults - # to PEM encoded public keys. - # This field may be empty if `key_id` references an external key. - # For Cloud Build based signatures, this is a PEM encoded public - # key. To verify the Cloud Build signature, place the contents of - # this field into a file (public.pem). The signature field is base64-decoded - # into its binary representation in signature.bin, and the provenance bytes - # from `BuildDetails` are base64-decoded into a binary representation in - # signed.bin. OpenSSL can then verify the signature: - # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` + # findings are valid and unchanged. If `key_type` is empty, this defaults to PEM + # encoded public keys. This field may be empty if `key_id` references an + # external key. For Cloud Build based signatures, this is a PEM encoded public + # key. To verify the Cloud Build signature, place the contents of this field + # into a file (public.pem). The signature field is base64-decoded into its + # binary representation in signature.bin, and the provenance bytes from ` + # BuildDetails` are base64-decoded into a binary representation in signed.bin. + # OpenSSL can then verify the signature: `openssl sha256 -verify public.pem - + # signature signature.bin signed.bin` # Corresponds to the JSON property `publicKey` # @return [String] attr_accessor :public_key - # Required. Signature of the related `BuildProvenance`. In JSON, this is - # base-64 encoded. + # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 + # encoded. # Corresponds to the JSON property `signature` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -574,8 +556,8 @@ module Google end end - # Common Vulnerability Scoring System version 3. - # For details, see https://www.first.org/cvss/specification-document + # Common Vulnerability Scoring System version 3. For details, see https://www. + # first.org/cvss/specification-document class CvsSv3 include Google::Apis::Core::Hashable @@ -584,9 +566,8 @@ module Google # @return [String] attr_accessor :attack_complexity - # Base Metrics - # Represents the intrinsic characteristics of a vulnerability that are - # constant over time and across user environments. + # Base Metrics Represents the intrinsic characteristics of a vulnerability that + # are constant over time and across user environments. # Corresponds to the JSON property `attackVector` # @return [String] attr_accessor :attack_vector @@ -783,8 +764,8 @@ module Google # @return [String] attr_accessor :platform - # Output only. Resource URI for the artifact being deployed taken from - # the deployable field with the same name. + # Output only. Resource URI for the artifact being deployed taken from the + # deployable field with the same name. # Corresponds to the JSON property `resourceUri` # @return [Array] attr_accessor :resource_uri @@ -816,13 +797,11 @@ module Google end # Derived describes the derived image portion (Occurrence) of the DockerImage - # relationship. This image would be produced from a Dockerfile with FROM - # . + # relationship. This image would be produced from a Dockerfile with FROM . class Derived include Google::Apis::Core::Hashable - # Output only. This contains the base image URL for the derived image - # occurrence. + # Output only. This contains the base image URL for the derived image occurrence. # Corresponds to the JSON property `baseResourceUrl` # @return [String] attr_accessor :base_resource_url @@ -838,9 +817,9 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::Fingerprint] attr_accessor :fingerprint - # This contains layer-specific metadata, if populated it has length - # "distance" and is ordered with [distance] being the layer immediately - # following the base image and [1] being the final layer. + # This contains layer-specific metadata, if populated it has length "distance" + # and is ordered with [distance] being the layer immediately following the base + # image and [1] being the final layer. # Corresponds to the JSON property `layerInfo` # @return [Array] attr_accessor :layer_info @@ -858,16 +837,15 @@ module Google end end - # Identifies all appearances of this vulnerability in the package for a - # specific distro/location. For example: glibc in - # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 + # Identifies all appearances of this vulnerability in the package for a specific + # distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for + # versions 2.1 - 2.2 class Detail include Google::Apis::Core::Hashable - # Required. The CPE URI in - # [cpe format](https://cpe.mitre.org/specification/) in which the - # vulnerability manifests. Examples include distro or storage location for - # vulnerable jar. + # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in + # which the vulnerability manifests. Examples include distro or storage location + # for vulnerable jar. # Corresponds to the JSON property `cpeUri` # @return [String] attr_accessor :cpe_uri @@ -904,8 +882,8 @@ module Google # @return [String] attr_accessor :package - # The type of package; whether native or non native(ruby gems, node.js - # packages etc). + # The type of package; whether native or non native(ruby gems, node.js packages + # etc). # Corresponds to the JSON property `packageType` # @return [String] attr_accessor :package_type @@ -915,9 +893,9 @@ module Google # @return [String] attr_accessor :severity_name - # The time this information was last changed at the source. This is an - # upstream timestamp from the underlying information source - e.g. Ubuntu - # security tracker. + # The time this information was last changed at the source. This is an upstream + # timestamp from the underlying information source - e.g. Ubuntu security + # tracker. # Corresponds to the JSON property `sourceUpdateTime` # @return [String] attr_accessor :source_update_time @@ -949,10 +927,9 @@ module Google # attestation can be verified using the attached signature. If the verifier # trusts the public key of the signer, then verifying the signature is # sufficient to establish trust. In this circumstance, the authority to which - # this attestation is attached is primarily useful for look-up (how to find - # this attestation if you already know the authority and artifact to be - # verified) and intent (which authority was this attestation intended to sign - # for). + # this attestation is attached is primarily useful for look-up (how to find this + # attestation if you already know the authority and artifact to be verified) and + # intent (which authority was this attestation intended to sign for). # Corresponds to the JSON property `attestation` # @return [Google::Apis::ContaineranalysisV1beta1::Attestation] attr_accessor :attestation @@ -976,12 +953,12 @@ module Google # @return [String] attr_accessor :analysis_status - # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `analysisStatusError` # @return [Google::Apis::ContaineranalysisV1beta1::Status] attr_accessor :analysis_status_error @@ -991,8 +968,8 @@ module Google # @return [String] attr_accessor :continuous_analysis - # The last time continuous analysis was done for this resource. - # Deprecated, do not use. + # The last time continuous analysis was done for this resource. Deprecated, do + # not use. # Corresponds to the JSON property `lastAnalysisTime` # @return [String] attr_accessor :last_analysis_time @@ -1016,8 +993,7 @@ module Google class Discovery include Google::Apis::Core::Hashable - # Required. Immutable. The kind of analysis that is handled by this - # discovery. + # Required. Immutable. The kind of analysis that is handled by this discovery. # Corresponds to the JSON property `analysisKind` # @return [String] attr_accessor :analysis_kind @@ -1032,8 +1008,8 @@ module Google end end - # This represents a particular channel of distribution for a given package. - # E.g., Debian's jessie-backports dpkg mirror. + # This represents a particular channel of distribution for a given package. E.g., + # Debian's jessie-backports dpkg mirror. class Distribution include Google::Apis::Core::Hashable @@ -1084,13 +1060,11 @@ module Google 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 ````. + # 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 @@ -1123,52 +1097,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -1186,8 +1151,8 @@ module Google end end - # Container message for hashes of byte content of files, used in source - # messages to verify integrity of source input to the build. + # Container message for hashes of byte content of files, used in source messages + # to verify integrity of source input to the build. class FileHashes include Google::Apis::Core::Hashable @@ -1221,9 +1186,9 @@ module Google # @return [Array] attr_accessor :v2_blob - # Output only. The name of the image's v2 blobs computed via: - # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) - # Only the name of the final blob is kept. + # Output only. The name of the image's v2 blobs computed via: [bottom] := + # v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the + # final blob is kept. # Corresponds to the JSON property `v2Name` # @return [String] attr_accessor :v2_name @@ -1254,8 +1219,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::Resource] attr_accessor :resource - # The severity for this count. SEVERITY_UNSPECIFIED indicates total across - # all severities. + # The severity for this count. SEVERITY_UNSPECIFIED indicates total across all + # severities. # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity @@ -1278,33 +1243,33 @@ module Google end end - # An attestation wrapper that uses the Grafeas `Signature` message. - # This attestation must define the `serialized_payload` that the `signatures` - # verify and any metadata necessary to interpret that plaintext. The - # signatures should always be over the `serialized_payload` bytestring. + # An attestation wrapper that uses the Grafeas `Signature` message. This + # attestation must define the `serialized_payload` that the `signatures` verify + # and any metadata necessary to interpret that plaintext. The signatures should + # always be over the `serialized_payload` bytestring. class GenericSignedAttestation include Google::Apis::Core::Hashable - # Type (for example schema) of the attestation payload that was signed. - # The verifier must ensure that the provided type is one that the verifier - # supports, and that the attestation payload is a valid instantiation of that - # type (for example by validating a JSON schema). + # Type (for example schema) of the attestation payload that was signed. The + # verifier must ensure that the provided type is one that the verifier supports, + # and that the attestation payload is a valid instantiation of that type (for + # example by validating a JSON schema). # Corresponds to the JSON property `contentType` # @return [String] attr_accessor :content_type - # The serialized payload that is verified by one or more `signatures`. - # The encoding and semantic meaning of this payload must match what is set in - # `content_type`. + # The serialized payload that is verified by one or more `signatures`. The + # encoding and semantic meaning of this payload must match what is set in ` + # content_type`. # Corresponds to the JSON property `serializedPayload` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :serialized_payload - # One or more signatures over `serialized_payload`. Verifier implementations - # should consider this attestation message verified if at least one - # `signature` verifies `serialized_payload`. See `Signature` in common.proto - # for more details on signature structure and verification. + # One or more signatures over `serialized_payload`. Verifier implementations + # should consider this attestation message verified if at least one `signature` + # verifies `serialized_payload`. See `Signature` in common.proto for more + # details on signature structure and verification. # Corresponds to the JSON property `signatures` # @return [Array] attr_accessor :signatures @@ -1330,9 +1295,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::AliasContext] attr_accessor :alias_context - # The full project name within the host. Projects may be nested, so - # "project/subproject" is a valid project name. The "repo name" is the - # hostURI/project. + # The full project name within the host. Projects may be nested, so "project/ + # subproject" is a valid project name. The "repo name" is the hostURI/project. # Corresponds to the JSON property `gerritProject` # @return [String] attr_accessor :gerrit_project @@ -1383,15 +1347,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -1432,8 +1394,8 @@ module Google end end - # Metadata for all operations used and required for all operations - # that created by Container Analysis Providers + # Metadata for all operations used and required for all operations that created + # by Container Analysis Providers class GoogleDevtoolsContaineranalysisV1alpha1OperationMetadata include Google::Apis::Core::Hashable @@ -1468,16 +1430,14 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::BuildProvenance] attr_accessor :provenance - # Serialized JSON representation of the provenance, used in generating the - # build signature in the corresponding build note. After verifying the - # signature, `provenance_bytes` can be unmarshalled and compared to the - # provenance to confirm that it is unchanged. A base64-encoded string - # representation of the provenance bytes is used for the signature in order - # to interoperate with openssl which expects this format for signature - # verification. - # The serialized form is captured both to avoid ambiguity in how the - # provenance is marshalled to json as well to prevent incompatibilities with - # future changes. + # Serialized JSON representation of the provenance, used in generating the build + # signature in the corresponding build note. After verifying the signature, ` + # provenance_bytes` can be unmarshalled and compared to the provenance to + # confirm that it is unchanged. A base64-encoded string representation of the + # provenance bytes is used for the signature in order to interoperate with + # openssl which expects this format for signature verification. The serialized + # form is captured both to avoid ambiguity in how the provenance is marshalled + # to json as well to prevent incompatibilities with future changes. # Corresponds to the JSON property `provenanceBytes` # @return [String] attr_accessor :provenance_bytes @@ -1536,8 +1496,7 @@ module Google include Google::Apis::Core::Hashable # Derived describes the derived image portion (Occurrence) of the DockerImage - # relationship. This image would be produced from a Dockerfile with FROM - # . + # relationship. This image would be produced from a Dockerfile with FROM . # Corresponds to the JSON property `derivedImage` # @return [Google::Apis::ContaineranalysisV1beta1::Derived] attr_accessor :derived_image @@ -1633,8 +1592,7 @@ module Google class GrafeasV1beta1PackageDetails include Google::Apis::Core::Hashable - # This represents how a particular software package may be installed on a - # system. + # This represents how a particular software package may be installed on a system. # Corresponds to the JSON property `installation` # @return [Google::Apis::ContaineranalysisV1beta1::Installation] attr_accessor :installation @@ -1653,16 +1611,15 @@ module Google class GrafeasV1beta1VulnerabilityDetails include Google::Apis::Core::Hashable - # Output only. The CVSS score of this vulnerability. CVSS score is on a - # scale of 0-10 where 0 indicates low severity and 10 indicates high - # severity. + # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of + # 0-10 where 0 indicates low severity and 10 indicates high severity. # Corresponds to the JSON property `cvssScore` # @return [Float] attr_accessor :cvss_score - # The distro assigned severity for this vulnerability when it is - # available, and note provider assigned severity when distro has not yet - # assigned a severity for this vulnerability. + # The distro assigned severity for this vulnerability when it is available, and + # note provider assigned severity when distro has not yet assigned a severity + # for this vulnerability. # Corresponds to the JSON property `effectiveSeverity` # @return [String] attr_accessor :effective_severity @@ -1672,8 +1629,8 @@ module Google # @return [String] attr_accessor :long_description - # Required. The set of affected locations and their fixes (if available) - # within the associated resource. + # Required. The set of affected locations and their fixes (if available) within + # the associated resource. # Corresponds to the JSON property `packageIssue` # @return [Array] attr_accessor :package_issue @@ -1693,8 +1650,8 @@ module Google # @return [String] attr_accessor :short_description - # The type of package; whether native or non native(ruby gems, node.js - # packages etc) + # The type of package; whether native or non native(ruby gems, node.js packages + # etc) # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1747,13 +1704,12 @@ module Google # important to disambiguate the canonical name of the Note (which might be a # UUID for security purposes) from "readable" names more suitable for debug # output. Note that these hints should not be used to look up authorities in - # security sensitive contexts, such as when looking up attestations to - # verify. + # security sensitive contexts, such as when looking up attestations to verify. class Hint include Google::Apis::Core::Hashable - # Required. The human readable name of this attestation authority, for - # example "qa". + # Required. The human readable name of this attestation authority, for example " + # qa". # Corresponds to the JSON property `humanReadableName` # @return [String] attr_accessor :human_readable_name @@ -1778,9 +1734,9 @@ module Google # @return [Array] attr_accessor :expected_command - # The following fields contain in-toto artifact rules identifying the - # artifacts that enter this supply chain step, and exit the supply chain - # step, i.e. materials and products of the step. + # The following fields contain in-toto artifact rules identifying the artifacts + # that enter this supply chain step, and exit the supply chain step, i.e. + # materials and products of the step. # Corresponds to the JSON property `expectedMaterials` # @return [Array] attr_accessor :expected_materials @@ -1790,8 +1746,8 @@ module Google # @return [Array] attr_accessor :expected_products - # This field contains the public keys that can be used to verify the - # signatures on the step metadata. + # This field contains the public keys that can be used to verify the signatures + # on the step metadata. # Corresponds to the JSON property `signingKeys` # @return [Array] attr_accessor :signing_keys @@ -1822,8 +1778,7 @@ module Google end end - # This represents how a particular software package may be installed on a - # system. + # This represents how a particular software package may be installed on a system. class Installation include Google::Apis::Core::Hashable @@ -1858,8 +1813,8 @@ module Google # @return [String] attr_accessor :name - # A link to the KB in the Windows update catalog - - # https://www.catalog.update.microsoft.com/ + # A link to the KB in the Windows update catalog - https://www.catalog.update. + # microsoft.com/ # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -1910,11 +1865,11 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::ByProducts] attr_accessor :byproducts - # This field contains the full command executed for the step. This can also - # be empty if links are generated for operations that aren't directly mapped - # to a specific command. Each term in the command is an independent string - # in the list. An example of a command in the in-toto metadata field is: - # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] + # This field contains the full command executed for the step. This can also be + # empty if links are generated for operations that aren't directly mapped to a + # specific command. Each term in the command is an independent string in the + # list. An example of a command in the in-toto metadata field is: "command": [" + # git", "clone", "https://github.com/in-toto/demo-project.git"] # Corresponds to the JSON property `command` # @return [Array] attr_accessor :command @@ -1927,22 +1882,15 @@ module Google # Materials are the supply chain artifacts that go into the step and are used # for the operation performed. The key of the map is the path of the artifact - # and the structure contains the recorded hash information. An example is: - # "materials": [ - # ` - # "resource_uri": "foo/bar", - # "hashes": ` - # "sha256": "ebebf...", - # : - # ` - # ` - # ] + # and the structure contains the recorded hash information. An example is: " + # materials": [ ` "resource_uri": "foo/bar", "hashes": ` "sha256": "ebebf...", : + # ` ` ] # Corresponds to the JSON property `materials` # @return [Array] attr_accessor :materials - # Products are the supply chain artifacts generated as a result of the step. - # The structure is identical to that of materials. + # Products are the supply chain artifacts generated as a result of the step. The + # structure is identical to that of materials. # Corresponds to the JSON property `products` # @return [Array] attr_accessor :products @@ -1990,9 +1938,8 @@ module Google class ListNotesResponse include Google::Apis::Core::Hashable - # The next pagination token in the list response. It should be used as - # `page_token` for the following request. An empty value means no more - # results. + # The next pagination token in the list response. It should be used as ` + # page_token` for the following request. An empty value means no more results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -2017,9 +1964,8 @@ module Google class ListOccurrencesResponse include Google::Apis::Core::Hashable - # The next pagination token in the list response. It should be used as - # `page_token` for the following request. An empty value means no more - # results. + # The next pagination token in the list response. It should be used as ` + # page_token` for the following request. An empty value means no more results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -2044,9 +1990,8 @@ module Google class ListScanConfigsResponse include Google::Apis::Core::Hashable - # The next pagination token in the list response. It should be used as - # `page_token` for the following request. An empty value means no more - # results. + # The next pagination token in the list response. It should be used as ` + # page_token` for the following request. An empty value means no more results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -2105,22 +2050,20 @@ module Google include Google::Apis::Core::Hashable # Note kind that represents a logical attestation "role" or "authority". For - # example, an organization might have one `Authority` for "QA" and one for - # "build". This note is intended to act strictly as a grouping mechanism for - # the attached occurrences (Attestations). This grouping mechanism also - # provides a security boundary, since IAM ACLs gate the ability for a principle - # to attach an occurrence to a given note. It also provides a single point of - # lookup to find all attached attestation occurrences, even if they don't all - # live in the same project. + # example, an organization might have one `Authority` for "QA" and one for " + # build". This note is intended to act strictly as a grouping mechanism for the + # attached occurrences (Attestations). This grouping mechanism also provides a + # security boundary, since IAM ACLs gate the ability for a principle to attach + # an occurrence to a given note. It also provides a single point of lookup to + # find all attached attestation occurrences, even if they don't all live in the + # same project. # Corresponds to the JSON property `attestationAuthority` # @return [Google::Apis::ContaineranalysisV1beta1::Authority] attr_accessor :attestation_authority - # Basis describes the base image portion (Note) of the DockerImage - # relationship. Linked occurrences are derived from this or an - # equivalent image via: - # FROM - # Or an equivalent reference, e.g. a tag of the resource_url. + # Basis describes the base image portion (Note) of the DockerImage relationship. + # Linked occurrences are derived from this or an equivalent image via: FROM Or + # an equivalent reference, e.g. a tag of the resource_url. # Corresponds to the JSON property `baseImage` # @return [Google::Apis::ContaineranalysisV1beta1::Basis] attr_accessor :base_image @@ -2160,8 +2103,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::InToto] attr_accessor :intoto - # Output only. The type of analysis. This field can be used as a filter in - # list requests. + # Output only. The type of analysis. This field can be used as a filter in list + # requests. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -2171,15 +2114,14 @@ module Google # @return [String] attr_accessor :long_description - # Output only. The name of the note in the form of - # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/ + # [NOTE_ID]`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # This represents a particular package that is distributed over various - # channels. E.g., glibc (aka libc6) is distributed by many, at various - # versions. + # This represents a particular package that is distributed over various channels. + # E.g., glibc (aka libc6) is distributed by many, at various versions. # Corresponds to the JSON property `package` # @return [Google::Apis::ContaineranalysisV1beta1::Package] attr_accessor :package @@ -2199,8 +2141,8 @@ module Google # @return [String] attr_accessor :short_description - # Output only. The time this note was last updated. This field can be used as - # a filter in list requests. + # Output only. The time this note was last updated. This field can be used as a + # filter in list requests. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -2288,15 +2230,15 @@ module Google # @return [String] attr_accessor :kind - # Output only. The name of the occurrence in the form of - # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/ + # occurrences/[OCCURRENCE_ID]`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Required. Immutable. The analysis note associated with this occurrence, in - # the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be - # used as a filter in list requests. + # Required. Immutable. The analysis note associated with this occurrence, in the + # form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a + # filter in list requests. # Corresponds to the JSON property `noteName` # @return [String] attr_accessor :note_name @@ -2345,9 +2287,8 @@ module Google end end - # This represents a particular package that is distributed over various - # channels. E.g., glibc (aka libc6) is distributed by many, at various - # versions. + # This represents a particular package that is distributed over various channels. + # E.g., glibc (aka libc6) is distributed by many, at various versions. class Package include Google::Apis::Core::Hashable @@ -2372,8 +2313,8 @@ module Google end end - # This message wraps a location affected by a vulnerability and its - # associated fix (if one is available). + # This message wraps a location affected by a vulnerability and its associated + # fix (if one is available). class PackageIssue include Google::Apis::Core::Hashable @@ -2387,8 +2328,8 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::VulnerabilityLocation] attr_accessor :fixed_location - # Deprecated, use Details.effective_severity instead - # The severity (e.g., distro assigned severity) for this vulnerability. + # Deprecated, use Details.effective_severity instead The severity (e.g., distro + # assigned severity) for this vulnerability. # Corresponds to the JSON property `severityName` # @return [String] attr_accessor :severity_name @@ -2411,43 +2352,37 @@ module Google class PgpSignedAttestation include Google::Apis::Core::Hashable - # Type (for example schema) of the attestation payload that was signed. - # The verifier must ensure that the provided type is one that the verifier - # supports, and that the attestation payload is a valid instantiation of that - # type (for example by validating a JSON schema). + # Type (for example schema) of the attestation payload that was signed. The + # verifier must ensure that the provided type is one that the verifier supports, + # and that the attestation payload is a valid instantiation of that type (for + # example by validating a JSON schema). # Corresponds to the JSON property `contentType` # @return [String] attr_accessor :content_type - # The cryptographic fingerprint of the key used to generate the signature, - # as output by, e.g. `gpg --list-keys`. This should be the version 4, full - # 160-bit fingerprint, expressed as a 40 character hexidecimal string. See - # https://tools.ietf.org/html/rfc4880#section-12.2 for details. - # Implementations may choose to acknowledge "LONG", "SHORT", or other - # abbreviated key IDs, but only the full fingerprint is guaranteed to work. - # In gpg, the full fingerprint can be retrieved from the `fpr` field - # returned when calling --list-keys with --with-colons. For example: - # ``` - # gpg --with-colons --with-fingerprint --force-v4-certs \ - # --list-keys attester@example.com - # tru::1:1513631572:0:3:1:5 - # pub:...... - # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: - # ``` - # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. + # The cryptographic fingerprint of the key used to generate the signature, as + # output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit + # fingerprint, expressed as a 40 character hexidecimal string. See https://tools. + # ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to + # acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full + # fingerprint is guaranteed to work. In gpg, the full fingerprint can be + # retrieved from the `fpr` field returned when calling --list-keys with --with- + # colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs + # \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::: + # :::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is ` + # 24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. # Corresponds to the JSON property `pgpKeyId` # @return [String] attr_accessor :pgp_key_id - # Required. The raw content of the signature, as output by GNU Privacy Guard - # (GPG) or equivalent. Since this message only supports attached signatures, - # the payload that was signed must be attached. While the signature format - # supported is dependent on the verification implementation, currently only - # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than - # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor - # --output=signature.gpg payload.json` will create the signature content - # expected in this field in `signature.gpg` for the `payload.json` - # attestation payload. + # Required. The raw content of the signature, as output by GNU Privacy Guard ( + # GPG) or equivalent. Since this message only supports attached signatures, the + # payload that was signed must be attached. While the signature format supported + # is dependent on the verification implementation, currently only ASCII-armored ( + # `--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) + # are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload. + # json` will create the signature content expected in this field in `signature. + # gpg` for the `payload.json` attestation payload. # Corresponds to the JSON property `signature` # @return [String] attr_accessor :signature @@ -2465,111 +2400,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2586,8 +2483,8 @@ module Google end end - # Selects a repo using a Google Cloud Platform project ID (e.g., - # winged-cargo-31) and a repo name within that project. + # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) + # and a repo name within that project. class ProjectRepoId include Google::Apis::Core::Hashable @@ -2641,8 +2538,8 @@ module Google class RepoId include Google::Apis::Core::Hashable - # Selects a repo using a Google Cloud Platform project ID (e.g., - # winged-cargo-31) and a repo name within that project. + # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) + # and a repo name within that project. # Corresponds to the JSON property `projectRepoId` # @return [Google::Apis::ContaineranalysisV1beta1::ProjectRepoId] attr_accessor :project_repo_id @@ -2672,15 +2569,14 @@ module Google # @return [Google::Apis::ContaineranalysisV1beta1::HashProp] attr_accessor :content_hash - # Deprecated, do not use. Use uri instead. - # The name of the resource. For example, the name of a Docker image - - # "Debian". + # Deprecated, do not use. Use uri instead. The name of the resource. For example, + # the name of a Docker image - "Debian". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Required. The unique URI of the resource. For example, - # `https://gcr.io/project/image@sha256:foo` for a Docker image. + # Required. The unique URI of the resource. For example, `https://gcr.io/project/ + # image@sha256:foo` for a Docker image. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -2708,8 +2604,7 @@ module Google # @return [String] attr_accessor :create_time - # Output only. A human-readable description of what the scan configuration - # does. + # Output only. A human-readable description of what the scan configuration does. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -2720,8 +2615,8 @@ module Google attr_accessor :enabled alias_method :enabled?, :enabled - # Output only. The name of the scan configuration in the form of - # `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. + # Output only. The name of the scan configuration in the form of `projects/[ + # PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2750,66 +2645,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::ContaineranalysisV1beta1::Policy] attr_accessor :policy @@ -2824,54 +2685,45 @@ module Google end end - # Verifiers (e.g. Kritis implementations) MUST verify signatures - # with respect to the trust anchors defined in policy (e.g. a Kritis policy). - # Typically this means that the verifier has been configured with a map from - # `public_key_id` to public key material (and any required parameters, e.g. - # signing algorithm). - # In particular, verification implementations MUST NOT treat the signature - # `public_key_id` as anything more than a key lookup hint. The `public_key_id` + # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to + # the trust anchors defined in policy (e.g. a Kritis policy). Typically this + # means that the verifier has been configured with a map from `public_key_id` to + # public key material (and any required parameters, e.g. signing algorithm). In + # particular, verification implementations MUST NOT treat the signature ` + # public_key_id` as anything more than a key lookup hint. The `public_key_id` # DOES NOT validate or authenticate a public key; it only provides a mechanism # for quickly selecting a public key ALREADY CONFIGURED on the verifier through # a trusted channel. Verification implementations MUST reject signatures in any - # of the following circumstances: - # * The `public_key_id` is not recognized by the verifier. - # * The public key that `public_key_id` refers to does not verify the - # signature with respect to the payload. - # The `signature` contents SHOULD NOT be "attached" (where the payload is - # included with the serialized `signature` bytes). Verifiers MUST ignore any - # "attached" payload and only verify signatures with respect to explicitly - # provided payload (e.g. a `payload` field on the proto message that holds - # this Signature, or the canonical serialization of the proto message that - # holds this signature). + # of the following circumstances: * The `public_key_id` is not recognized by the + # verifier. * The public key that `public_key_id` refers to does not verify the + # signature with respect to the payload. The `signature` contents SHOULD NOT be " + # attached" (where the payload is included with the serialized `signature` bytes) + # . Verifiers MUST ignore any "attached" payload and only verify signatures with + # respect to explicitly provided payload (e.g. a `payload` field on the proto + # message that holds this Signature, or the canonical serialization of the proto + # message that holds this signature). class Signature include Google::Apis::Core::Hashable - # The identifier for the public key that verifies this signature. - # * The `public_key_id` is required. - # * The `public_key_id` SHOULD be an RFC3986 conformant URI. - # * When possible, the `public_key_id` SHOULD be an immutable reference, - # such as a cryptographic digest. - # Examples of valid `public_key_id`s: - # OpenPGP V4 public key fingerprint: - # * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" - # See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more - # details on this scheme. - # RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER - # serialization): - # * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" - # * "nih:///sha-256; + # The identifier for the public key that verifies this signature. * The ` + # public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 + # conformant URI. * When possible, the `public_key_id` SHOULD be an immutable + # reference, such as a cryptographic digest. Examples of valid `public_key_id`s: + # OpenPGP V4 public key fingerprint: * "openpgp4fpr: + # 74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See https://www.iana.org/assignments/ + # uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest- + # named SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256; + # cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256; # 703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" # Corresponds to the JSON property `publicKeyId` # @return [String] attr_accessor :public_key_id - # The content of the signature, an opaque bytestring. - # The payload that this signature verifies MUST be unambiguously provided - # with the Signature during verification. A wrapper message might provide - # the payload explicitly. Alternatively, a message might have a canonical - # serialization that can always be unambiguously computed to derive the - # payload. + # The content of the signature, an opaque bytestring. The payload that this + # signature verifies MUST be unambiguously provided with the Signature during + # verification. A wrapper message might provide the payload explicitly. + # Alternatively, a message might have a canonical serialization that can always + # be unambiguously computed to derive the payload. # Corresponds to the JSON property `signature` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2888,17 +2740,13 @@ module Google end end - # This defines the format used to record keys used in the software supply - # chain. An in-toto link is attested using one or more keys defined in the - # in-toto layout. An example of this is: - # ` - # "key_id": "776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...", - # "key_type": "rsa", - # "public_key_value": "-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...", - # "key_scheme": "rsassa-pss-sha256" - # ` - # The format for in-toto's key definition can be found in section 4.2 of the - # in-toto specification. + # This defines the format used to record keys used in the software supply chain. + # An in-toto link is attested using one or more keys defined in the in-toto + # layout. An example of this is: ` "key_id": " + # 776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...", "key_type": " + # rsa", "public_key_value": "-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B..." + # , "key_scheme": "rsassa-pss-sha256" ` The format for in-toto's key definition + # can be found in section 4.2 of the in-toto specification. class SigningKey include Google::Apis::Core::Hashable @@ -2907,14 +2755,14 @@ module Google # @return [String] attr_accessor :key_id - # This field contains the corresponding signature scheme. - # Eg: "rsassa-pss-sha256". + # This field contains the corresponding signature scheme. Eg: "rsassa-pss-sha256" + # . # Corresponds to the JSON property `keyScheme` # @return [String] attr_accessor :key_scheme - # This field identifies the specific signing method. Eg: "rsa", "ed25519", - # and "ecdsa". + # This field identifies the specific signing method. Eg: "rsa", "ed25519", and " + # ecdsa". # Corresponds to the JSON property `keyType` # @return [String] attr_accessor :key_type @@ -2941,16 +2789,15 @@ module Google class Source include Google::Apis::Core::Hashable - # If provided, some of the source code used for the build may be found in - # these locations, in the case where the source repository had multiple - # remotes or submodules. This list will not include the context specified in - # the context field. + # If provided, some of the source code used for the build may be found in these + # locations, in the case where the source repository had multiple remotes or + # submodules. This list will not include the context specified in the context + # field. # Corresponds to the JSON property `additionalContexts` # @return [Array] attr_accessor :additional_contexts - # If provided, the input binary artifacts for the build came from this - # location. + # If provided, the input binary artifacts for the build came from this location. # Corresponds to the JSON property `artifactStorageSourceUri` # @return [String] attr_accessor :artifact_storage_source_uri @@ -2962,11 +2809,10 @@ module Google attr_accessor :context # Hash(es) of the build source, which can be used to verify that the original - # source integrity was maintained in the build. - # The keys to this map are file paths used as build source and the values - # contain the hash values for those files. - # If the build source came in a single package such as a gzipped tarfile - # (.tar.gz), the FileHash will be for the single path to that file. + # source integrity was maintained in the build. The keys to this map are file + # paths used as build source and the values contain the hash values for those + # files. If the build source came in a single package such as a gzipped tarfile ( + # .tar.gz), the FileHash will be for the single path to that file. # Corresponds to the JSON property `fileHashes` # @return [Hash] attr_accessor :file_hashes @@ -3024,12 +2870,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -3038,15 +2884,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -3067,10 +2913,9 @@ module Google 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). + # 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 @@ -3089,8 +2934,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -3114,14 +2958,12 @@ module Google # @return [Fixnum] attr_accessor :epoch - # Required. Distinguishes between sentinel MIN/MAX versions and normal - # versions. + # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # Required only when version kind is NORMAL. The main part of the version - # name. + # Required only when version kind is NORMAL. The main part of the version name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -3153,15 +2995,15 @@ module Google # @return [Float] attr_accessor :cvss_score - # Common Vulnerability Scoring System version 3. - # For details, see https://www.first.org/cvss/specification-document + # Common Vulnerability Scoring System version 3. For details, see https://www. + # first.org/cvss/specification-document # Corresponds to the JSON property `cvssV3` # @return [Google::Apis::ContaineranalysisV1beta1::CvsSv3] attr_accessor :cvss_v3 - # All information about the package to specifically identify this - # vulnerability. One entry per (version range and cpe_uri) the package - # vulnerability has manifested in. + # All information about the package to specifically identify this vulnerability. + # One entry per (version range and cpe_uri) the package vulnerability has + # manifested in. # Corresponds to the JSON property `details` # @return [Array] attr_accessor :details @@ -3171,17 +3013,17 @@ module Google # @return [String] attr_accessor :severity - # The time this information was last changed at the source. This is an - # upstream timestamp from the underlying information source - e.g. Ubuntu - # security tracker. + # The time this information was last changed at the source. This is an upstream + # timestamp from the underlying information source - e.g. Ubuntu security + # tracker. # Corresponds to the JSON property `sourceUpdateTime` # @return [String] attr_accessor :source_update_time - # Windows details get their own format because the information format and - # model don't match a normal detail. Specifically Windows updates are done as - # patches, thus Windows vulnerabilities really are a missing package, rather - # than a package being at an incorrect version. + # Windows details get their own format because the information format and model + # don't match a normal detail. Specifically Windows updates are done as patches, + # thus Windows vulnerabilities really are a missing package, rather than a + # package being at an incorrect version. # Corresponds to the JSON property `windowsDetails` # @return [Array] attr_accessor :windows_details @@ -3257,10 +3099,9 @@ module Google class WindowsDetail include Google::Apis::Core::Hashable - # Required. The CPE URI in - # [cpe format](https://cpe.mitre.org/specification/) in which the - # vulnerability manifests. Examples include distro or storage location for - # vulnerable jar. + # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in + # which the vulnerability manifests. Examples include distro or storage location + # for vulnerable jar. # Corresponds to the JSON property `cpeUri` # @return [String] attr_accessor :cpe_uri @@ -3271,9 +3112,9 @@ module Google attr_accessor :description # Required. The names of the KBs which have hotfixes to mitigate this - # vulnerability. Note that there may be multiple hotfixes (and thus - # multiple KBs) that mitigate a given vulnerability. Currently any listed - # kb's presence is considered a fix. + # vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) + # that mitigate a given vulnerability. Currently any listed kb's presence is + # considered a fix. # Corresponds to the JSON property `fixingKbs` # @return [Array] attr_accessor :fixing_kbs diff --git a/generated/google/apis/containeranalysis_v1beta1/service.rb b/generated/google/apis/containeranalysis_v1beta1/service.rb index ea77934d8..54db2907a 100644 --- a/generated/google/apis/containeranalysis_v1beta1/service.rb +++ b/generated/google/apis/containeranalysis_v1beta1/service.rb @@ -51,8 +51,7 @@ module Google # Creates new notes in batch. # @param [String] parent # Required. The name of the project in the form of `projects/[PROJECT_ID]`, - # under which - # the notes are to be created. + # under which the notes are to be created. # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest] batch_create_notes_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -86,8 +85,7 @@ module Google # Creates a new note. # @param [String] parent # Required. The name of the project in the form of `projects/[PROJECT_ID]`, - # under which - # the note is to be created. + # under which the note is to be created. # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object # @param [String] note_id # Required. The ID to use for this note. @@ -123,8 +121,8 @@ module Google # Deletes the specified note. # @param [String] name - # Required. The name of the note in the form of - # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[ + # NOTE_ID]`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -154,8 +152,8 @@ module Google # Gets the specified note. # @param [String] name - # Required. The name of the note in the form of - # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[ + # NOTE_ID]`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -183,16 +181,14 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a note or an occurrence resource. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a note or occurrence, respectively. + # Gets the access control policy for a note or an occurrence resource. Requires ` + # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences. + # setIamPolicy` permission if the resource is a note or occurrence, respectively. # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for - # occurrences. + # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -225,13 +221,13 @@ module Google # Lists notes for the specified project. # @param [String] parent - # Required. The name of the project to list notes for in the form of - # `projects/[PROJECT_ID]`. + # Required. The name of the project to list notes for in the form of `projects/[ + # PROJECT_ID]`. # @param [String] filter # The filter expression. # @param [Fixnum] page_size - # Number of notes to return in the list. Must be positive. Max allowed page - # size is 1000. If not specified, page size defaults to 20. + # Number of notes to return in the list. Must be positive. Max allowed page size + # is 1000. If not specified, page size defaults to 20. # @param [String] page_token # Token to provide to skip to a particular spot in the list. # @param [String] fields @@ -266,8 +262,8 @@ module Google # Updates the specified note. # @param [String] name - # Required. The name of the note in the form of - # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[ + # NOTE_ID]`. # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object # @param [String] update_mask # The fields to update. @@ -301,16 +297,15 @@ module Google execute_or_queue_command(command, &block) end - # Sets the access control policy on the specified note or occurrence. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a note or an occurrence, respectively. - # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for - # occurrences. + # Sets the access control policy on the specified note or occurrence. Requires ` + # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences. + # setIamPolicy` permission if the resource is a note or an occurrence, + # respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[ + # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` + # for occurrences. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -341,15 +336,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns the permissions that a caller has on the specified note or - # occurrence. Requires list permission on the project (for example, - # `containeranalysis.notes.list`). - # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + # Returns the permissions that a caller has on the specified note or occurrence. + # Requires list permission on the project (for example, `containeranalysis.notes. + # list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` + # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for # occurrences. # @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. + # 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::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -384,8 +378,8 @@ module Google # this method to get all occurrences across consumer projects referencing the # specified note. # @param [String] name - # Required. The name of the note to list occurrences for in the form of - # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + # Required. The name of the note to list occurrences for in the form of ` + # projects/[PROVIDER_ID]/notes/[NOTE_ID]`. # @param [String] filter # The filter expression. # @param [Fixnum] page_size @@ -425,8 +419,7 @@ module Google # Creates new occurrences in batch. # @param [String] parent # Required. The name of the project in the form of `projects/[PROJECT_ID]`, - # under which - # the occurrences are to be created. + # under which the occurrences are to be created. # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest] batch_create_occurrences_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -460,8 +453,7 @@ module Google # Creates a new occurrence. # @param [String] parent # Required. The name of the project in the form of `projects/[PROJECT_ID]`, - # under which - # the occurrence is to be created. + # under which the occurrence is to be created. # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -493,11 +485,10 @@ module Google end # Deletes the specified occurrence. For example, use this method to delete an - # occurrence when the occurrence is no longer applicable for the given - # resource. + # occurrence when the occurrence is no longer applicable for the given resource. # @param [String] name - # Required. The name of the occurrence in the form of - # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/ + # occurrences/[OCCURRENCE_ID]`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -527,8 +518,8 @@ module Google # Gets the specified occurrence. # @param [String] name - # Required. The name of the occurrence in the form of - # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/ + # occurrences/[OCCURRENCE_ID]`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -556,16 +547,14 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a note or an occurrence resource. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a note or occurrence, respectively. + # Gets the access control policy for a note or an occurrence resource. Requires ` + # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences. + # setIamPolicy` permission if the resource is a note or occurrence, respectively. # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for - # occurrences. + # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -596,11 +585,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the note attached to the specified occurrence. Consumer projects can - # use this method to get a note that belongs to a provider project. + # Gets the note attached to the specified occurrence. Consumer projects can use + # this method to get a note that belongs to a provider project. # @param [String] name - # Required. The name of the occurrence in the form of - # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/ + # occurrences/[OCCURRENCE_ID]`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -631,8 +620,7 @@ module Google # Gets a summary of the number and severity of occurrences. # @param [String] parent # Required. The name of the project to get a vulnerability summary for in the - # form of - # `projects/[PROJECT_ID]`. + # form of `projects/[PROJECT_ID]`. # @param [String] filter # The filter expression. # @param [String] fields @@ -665,8 +653,8 @@ module Google # Lists occurrences for the specified project. # @param [String] parent - # Required. The name of the project to list occurrences for in the form of - # `projects/[PROJECT_ID]`. + # Required. The name of the project to list occurrences for in the form of ` + # projects/[PROJECT_ID]`. # @param [String] filter # The filter expression. # @param [Fixnum] page_size @@ -706,8 +694,8 @@ module Google # Updates the specified occurrence. # @param [String] name - # Required. The name of the occurrence in the form of - # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/ + # occurrences/[OCCURRENCE_ID]`. # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object # @param [String] update_mask # The fields to update. @@ -741,16 +729,15 @@ module Google execute_or_queue_command(command, &block) end - # Sets the access control policy on the specified note or occurrence. - # Requires `containeranalysis.notes.setIamPolicy` or - # `containeranalysis.occurrences.setIamPolicy` permission if the resource is - # a note or an occurrence, respectively. - # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for - # occurrences. + # Sets the access control policy on the specified note or occurrence. Requires ` + # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences. + # setIamPolicy` permission if the resource is a note or an occurrence, + # respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[ + # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` + # for occurrences. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -781,15 +768,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns the permissions that a caller has on the specified note or - # occurrence. Requires list permission on the project (for example, - # `containeranalysis.notes.list`). - # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for + # Returns the permissions that a caller has on the specified note or occurrence. + # Requires list permission on the project (for example, `containeranalysis.notes. + # list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` + # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for # occurrences. # @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. + # 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::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -822,8 +808,8 @@ module Google # Gets the specified scan configuration. # @param [String] name - # Required. The name of the scan configuration in the form of - # `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. + # Required. The name of the scan configuration in the form of `projects/[ + # PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -854,8 +840,7 @@ module Google # Lists scan configurations for the specified project. # @param [String] parent # Required. The name of the project to list scan configurations for in the form - # of - # `projects/[PROJECT_ID]`. + # of `projects/[PROJECT_ID]`. # @param [String] filter # Required. The filter expression. # @param [Fixnum] page_size @@ -894,8 +879,8 @@ module Google # Updates the specified scan configuration. # @param [String] name - # Required. The name of the scan configuration in the form of - # `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. + # Required. The name of the scan configuration in the form of `projects/[ + # PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`. # @param [Google::Apis::ContaineranalysisV1beta1::ScanConfig] scan_config_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 48c97aa7a..ad24177d2 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20200721' + REVISION = '20200805' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index c07560d03..24d3b4db4 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -5829,7 +5829,9 @@ module Google class OrderShipmentScheduledDeliveryDetails include Google::Apis::Core::Hashable - # The phone number of the carrier fulfilling the delivery. + # The phone number of the carrier fulfilling the delivery. The phone number is + # formatted as the international notation in ITU-T Recommendation E.123 (e.g., "+ + # 41 44 668 1800"). # Corresponds to the JSON property `carrierPhoneNumber` # @return [String] attr_accessor :carrier_phone_number diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index e39085789..a4f3c5f3a 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20200721' + REVISION = '20200805' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 7b2a10e6a..f0e35fe94 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -48,6 +48,11 @@ module Google # @return [Google::Apis::ContentV2_1::AccountBusinessInformation] attr_accessor :business_information + # ID of CSS the account belongs to. + # Corresponds to the JSON property `cssId` + # @return [Fixnum] + attr_accessor :css_id + # The GMB account which is linked or in the process of being linked with the # Merchant Center account. # Corresponds to the JSON property `googleMyBusinessLink` @@ -65,6 +70,11 @@ module Google # @return [String] attr_accessor :kind + # List of label IDs that are assigned to the account by CSS. + # Corresponds to the JSON property `labelIds` + # @return [Array] + attr_accessor :label_ids + # Required. Display name for the account. # Corresponds to the JSON property `name` # @return [String] @@ -104,9 +114,11 @@ module Google @ads_links = args[:ads_links] if args.key?(:ads_links) @adult_content = args[:adult_content] if args.key?(:adult_content) @business_information = args[:business_information] if args.key?(:business_information) + @css_id = args[:css_id] if args.key?(:css_id) @google_my_business_link = args[:google_my_business_link] if args.key?(:google_my_business_link) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) + @label_ids = args[:label_ids] if args.key?(:label_ids) @name = args[:name] if args.key?(:name) @seller_id = args[:seller_id] if args.key?(:seller_id) @users = args[:users] if args.key?(:users) @@ -862,6 +874,11 @@ module Google attr_accessor :overwrite alias_method :overwrite?, :overwrite + # Controls which fields are visible. Only applicable if the method is 'get'. + # Corresponds to the JSON property `view` + # @return [String] + attr_accessor :view + def initialize(**args) update!(**args) end @@ -877,6 +894,7 @@ module Google @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @method_prop = args[:method_prop] if args.key?(:method_prop) @overwrite = args[:overwrite] if args.key?(:overwrite) + @view = args[:view] if args.key?(:view) end end @@ -1120,6 +1138,45 @@ module Google end end + # + class AccountsUpdateLabelsRequest + include Google::Apis::Core::Hashable + + # The IDs of labels that should be assigned to the account. + # Corresponds to the JSON property `labelIds` + # @return [Array] + attr_accessor :label_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @label_ids = args[:label_ids] if args.key?(:label_ids) + end + end + + # + class AccountsUpdateLabelsResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsUpdateLabelsResponse". + # 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) + @kind = args[:kind] if args.key?(:kind) + end + end + # class AccountstatusesCustomBatchRequest include Google::Apis::Core::Hashable @@ -5625,7 +5682,9 @@ module Google class OrderShipmentScheduledDeliveryDetails include Google::Apis::Core::Hashable - # The phone number of the carrier fulfilling the delivery. + # The phone number of the carrier fulfilling the delivery. The phone number is + # formatted as the international notation in ITU-T Recommendation E.123 (e.g., "+ + # 41 44 668 1800"). # Corresponds to the JSON property `carrierPhoneNumber` # @return [String] attr_accessor :carrier_phone_number @@ -9312,11 +9371,26 @@ module Google class ProductStatusDestinationStatus include Google::Apis::Core::Hashable + # List of country codes (ISO 3166-1 alpha-2) where the offer is approved. + # Corresponds to the JSON property `approvedCountrys` + # @return [Array] + attr_accessor :approved_countrys + # The name of the destination # Corresponds to the JSON property `destination` # @return [String] attr_accessor :destination + # List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved. + # Corresponds to the JSON property `disapprovedCountrys` + # @return [Array] + attr_accessor :disapproved_countrys + + # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval. + # Corresponds to the JSON property `pendingCountrys` + # @return [Array] + attr_accessor :pending_countrys + # Destination approval status in `targetCountry` of the offer. # Corresponds to the JSON property `status` # @return [String] @@ -9328,7 +9402,10 @@ module Google # Update properties of this object def update!(**args) + @approved_countrys = args[:approved_countrys] if args.key?(:approved_countrys) @destination = args[:destination] if args.key?(:destination) + @disapproved_countrys = args[:disapproved_countrys] if args.key?(:disapproved_countrys) + @pending_countrys = args[:pending_countrys] if args.key?(:pending_countrys) @status = args[:status] if args.key?(:status) end end @@ -9337,6 +9414,11 @@ module Google class ProductStatusItemLevelIssue include Google::Apis::Core::Hashable + # List of country codes (ISO 3166-1 alpha-2) where issue applies to the offer. + # Corresponds to the JSON property `applicableCountrys` + # @return [Array] + attr_accessor :applicable_countrys + # The attribute's name, if the issue is caused by a single attribute. # Corresponds to the JSON property `attributeName` # @return [String] @@ -9383,6 +9465,7 @@ module Google # Update properties of this object def update!(**args) + @applicable_countrys = args[:applicable_countrys] if args.key?(:applicable_countrys) @attribute_name = args[:attribute_name] if args.key?(:attribute_name) @code = args[:code] if args.key?(:code) @description = args[:description] if args.key?(:description) @@ -10069,7 +10152,7 @@ module Google # @return [Google::Apis::ContentV2_1::Price] attr_accessor :price - # The ID (name) of the region. + # The ID uniquely identifying each region. # Corresponds to the JSON property `regionId` # @return [String] attr_accessor :region_id diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index cb816853d..1e98e59d8 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -184,6 +184,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AccountsUpdateLabelsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AccountsUpdateLabelsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccountstatusesCustomBatchRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1800,10 +1812,12 @@ module Google property :adult_content, as: 'adultContent' property :business_information, as: 'businessInformation', class: Google::Apis::ContentV2_1::AccountBusinessInformation, decorator: Google::Apis::ContentV2_1::AccountBusinessInformation::Representation + property :css_id, :numeric_string => true, as: 'cssId' property :google_my_business_link, as: 'googleMyBusinessLink', class: Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink, decorator: Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink::Representation property :id, :numeric_string => true, as: 'id' property :kind, as: 'kind' + collection :label_ids, as: 'labelIds' property :name, as: 'name' property :seller_id, as: 'sellerId' collection :users, as: 'users', class: Google::Apis::ContentV2_1::AccountUser, decorator: Google::Apis::ContentV2_1::AccountUser::Representation @@ -2011,6 +2025,7 @@ module Google property :merchant_id, :numeric_string => true, as: 'merchantId' property :method_prop, as: 'method' property :overwrite, as: 'overwrite' + property :view, as: 'view' end end @@ -2082,6 +2097,20 @@ module Google end end + class AccountsUpdateLabelsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :label_ids, as: 'labelIds' + end + end + + class AccountsUpdateLabelsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + class AccountstatusesCustomBatchRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4215,7 +4244,10 @@ module Google class ProductStatusDestinationStatus # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :approved_countrys, as: 'approvedCountrys' property :destination, as: 'destination' + collection :disapproved_countrys, as: 'disapprovedCountrys' + collection :pending_countrys, as: 'pendingCountrys' property :status, as: 'status' end end @@ -4223,6 +4255,7 @@ module Google class ProductStatusItemLevelIssue # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :applicable_countrys, as: 'applicableCountrys' property :attribute_name, as: 'attributeName' property :code, as: 'code' property :description, as: 'description' diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index 0b95afad2..46040e091 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -204,6 +204,9 @@ module Google # ID of a sub-account of this account. # @param [Fixnum] account_id # The ID of the account. + # @param [String] view + # Controls which fields will be populated. Acceptable values are: "merchant" and + # "css". The default value is "merchant". # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -223,12 +226,13 @@ 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_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options) command.response_representation = Google::Apis::ContentV2_1::Account::Representation command.response_class = Google::Apis::ContentV2_1::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? + command.query['view'] = view unless view.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? @@ -316,10 +320,16 @@ module Google # Lists the sub-accounts in your Merchant Center account. # @param [Fixnum] merchant_id # The ID of the managing account. This must be a multi-client account. + # @param [Fixnum] label + # If view is set to "css", only return accounts that are assigned label with + # given ID. # @param [Fixnum] max_results # The maximum number of accounts to return in the response, used for paging. # @param [String] page_token # The token returned by the previous request. + # @param [String] view + # Controls which fields will be populated. Acceptable values are: "merchant" and + # "css". The default value is "merchant". # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -339,13 +349,15 @@ 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 list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounts', options) command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.query['label'] = label unless label.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['view'] = view unless view.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? @@ -438,6 +450,45 @@ module Google execute_or_queue_command(command, &block) end + # Updates labels that are assigned to the Merchant Center account by CSS user. + # @param [Fixnum] merchant_id + # The ID of the managing account. + # @param [Fixnum] account_id + # The ID of the account whose labels are updated. + # @param [Google::Apis::ContentV2_1::AccountsUpdateLabelsRequest] accounts_update_labels_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::ContentV2_1::AccountsUpdateLabelsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse] + # + # @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 updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/updatelabels', options) + command.request_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsRequest::Representation + command.request_object = accounts_update_labels_request_object + command.response_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse::Representation + command.response_class = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse + command.params['merchantId'] = merchant_id unless merchant_id.nil? + command.params['accountId'] = account_id unless account_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 multiple Merchant Center account statuses in a single request. # @param [Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest] accountstatuses_custom_batch_request_object # @param [String] fields diff --git a/generated/google/apis/documentai_v1beta2.rb b/generated/google/apis/documentai_v1beta2.rb index 0ad3b6f51..b3394b41a 100644 --- a/generated/google/apis/documentai_v1beta2.rb +++ b/generated/google/apis/documentai_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/document-ai/docs/ module DocumentaiV1beta2 VERSION = 'V1beta2' - REVISION = '20200619' + REVISION = '20200807' # 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/documentai_v1beta2/classes.rb b/generated/google/apis/documentai_v1beta2/classes.rb index dfb528fb7..be6f3b315 100644 --- a/generated/google/apis/documentai_v1beta2/classes.rb +++ b/generated/google/apis/documentai_v1beta2/classes.rb @@ -22,8 +22,295 @@ module Google module Apis module DocumentaiV1beta2 - # Response to an batch document processing request. This is returned in - # the LRO Operation after the operation is complete. + # The long running operation metadata for CreateLabelerPool. + class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Used only when Operation.done is false. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The metadata that represents a processor version being created. + class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current disable processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The long running operation metadata for DeleteLabelerPool. + class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Used only when Operation.done is false. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The long running operation metadata for delete processor method. + class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current delete processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The long running operation metadata for disable processor method. + class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current disable processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response message for the disable processor method. Intentionally empty proto + # for adding fields in future. + class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The long running operation metadata for enable processor method. + class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The state of the current enable processor operation. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response message for the enable processor method. Intentionally empty proto + # for adding fields in future. + class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The long running operation metadata for UpdateLabelerPool. + class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Used only when Operation.done is false. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response to an batch document processing request. This is returned in the LRO + # Operation after the operation is complete. class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse include Google::Apis::Core::Hashable @@ -68,23 +355,22 @@ module Google end # Document represents the canonical document resource in Document Understanding - # AI. - # It is an interchange format that provides insights into documents and allows - # for collaboration between users and Document Understanding AI to iterate and - # optimize for quality. + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. class GoogleCloudDocumentaiV1beta1Document include Google::Apis::Core::Hashable - # Inline document content, represented as a stream of bytes. - # Note: As with all `bytes` fields, protobuffers use a pure binary - # representation, whereas JSON representations use base64. + # Inline document content, represented as a stream of bytes. Note: As with all ` + # bytes` fields, protobuffers use a pure binary representation, whereas JSON + # representations use base64. # Corresponds to the JSON property `content` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :content - # A list of entities detected on Document.text. For document shards, - # entities in this list may cross shard boundaries. + # A list of entities detected on Document.text. For document shards, entities in + # this list may cross shard boundaries. # Corresponds to the JSON property `entities` # @return [Array] attr_accessor :entities @@ -94,19 +380,19 @@ module Google # @return [Array] attr_accessor :entity_relations - # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus] attr_accessor :error # An IANA published MIME type (also referred to as media type). For more - # information, see - # https://www.iana.org/assignments/media-types/media-types.xhtml. + # information, see https://www.iana.org/assignments/media-types/media-types. + # xhtml. # Corresponds to the JSON property `mimeType` # @return [String] attr_accessor :mime_type @@ -116,9 +402,8 @@ module Google # @return [Array] attr_accessor :pages - # For a large document, sharding may be performed to produce several - # document shards. Each document shard contains this field to detail which - # shard it is. + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. # Corresponds to the JSON property `shardInfo` # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentShardInfo] attr_accessor :shard_info @@ -133,16 +418,15 @@ module Google # @return [Array] attr_accessor :text_styles - # A list of translations on Document.text. For document shards, - # translations in this list may cross shard boundaries. + # A list of translations on Document.text. For document shards, translations in + # this list may cross shard boundaries. # Corresponds to the JSON property `translations` # @return [Array] attr_accessor :translations - # Currently supports Google Cloud Storage URI of the form - # `gs://bucket_name/object_name`. Object versioning is not supported. - # See [Google Cloud Storage Request - # URIs](https://cloud.google.com/storage/docs/reference-uris) for more + # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/ + # object_name`. Object versioning is not supported. See [Google Cloud Storage + # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more # info. # Corresponds to the JSON property `uri` # @return [String] @@ -178,7 +462,7 @@ module Google # @return [Float] attr_accessor :confidence - # Deprecated. Use `id` field instead. + # Deprecated. Use `id` field instead. # Corresponds to the JSON property `mentionId` # @return [String] attr_accessor :mention_id @@ -188,6 +472,17 @@ module Google # @return [String] attr_accessor :mention_text + # Parsed and normalized entity value. + # Corresponds to the JSON property `normalizedValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue] + attr_accessor :normalized_value + + # Optional. Whether the entity will be redacted for de-identification purposes. + # Corresponds to the JSON property `redacted` + # @return [Boolean] + attr_accessor :redacted + alias_method :redacted?, :redacted + # Text reference indexing into the Document.text. # Corresponds to the JSON property `textAnchor` # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor] @@ -207,11 +502,70 @@ module Google @confidence = args[:confidence] if args.key?(:confidence) @mention_id = args[:mention_id] if args.key?(:mention_id) @mention_text = args[:mention_text] if args.key?(:mention_text) + @normalized_value = args[:normalized_value] if args.key?(:normalized_value) + @redacted = args[:redacted] if args.key?(:redacted) @text_anchor = args[:text_anchor] if args.key?(:text_anchor) @type = args[:type] if args.key?(:type) end end + # Parsed and normalized entity value. + class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + # Corresponds to the JSON property `dateValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDate] + attr_accessor :date_value + + # Represents civil time in one of a few possible ways: * When utc_offset is set + # and time_zone is unset: a civil time on a calendar day with a particular + # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time + # on a calendar day in a particular time zone. * When neither time_zone nor + # utc_offset is set: a civil time on a calendar day in local time. The date is + # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is + # considered not to have a specific year. month and day must have valid, non- + # zero values. This type is more flexible than some applications may want. Make + # sure to document and validate your application's limitations. + # Corresponds to the JSON property `datetimeValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime] + attr_accessor :datetime_value + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `moneyValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeMoney] + attr_accessor :money_value + + # Required. Normalized entity value stored as a string. This field is populated + # for supported document type (e.g. Invoice). For some entity types, one of + # respective 'structured_value' fields may also be populated. - Money/Currency + # type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) + # is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the + # ISO 8601 text format. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @date_value = args[:date_value] if args.key?(:date_value) + @datetime_value = args[:datetime_value] if args.key?(:datetime_value) + @money_value = args[:money_value] if args.key?(:money_value) + @text = args[:text] if args.key?(:text) + end + end + # Relationship between Entities. class GoogleCloudDocumentaiV1beta1DocumentEntityRelation include Google::Apis::Core::Hashable @@ -247,9 +601,9 @@ module Google class GoogleCloudDocumentaiV1beta1DocumentPage include Google::Apis::Core::Hashable - # A list of visually detected text blocks on the page. - # A block has a set of lines (collected into paragraphs) that have a common - # line-spacing and orientation. + # A list of visually detected text blocks on the page. A block has a set of + # lines (collected into paragraphs) that have a common line-spacing and + # orientation. # Corresponds to the JSON property `blocks` # @return [Array] attr_accessor :blocks @@ -274,21 +628,20 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout] attr_accessor :layout - # A list of visually detected text lines on the page. - # A collection of tokens that a human would perceive as a line. + # A list of visually detected text lines on the page. A collection of tokens + # that a human would perceive as a line. # Corresponds to the JSON property `lines` # @return [Array] attr_accessor :lines - # 1-based index for current Page in a parent Document. - # Useful when a page is taken out of a Document for individual - # processing. + # 1-based index for current Page in a parent Document. Useful when a page is + # taken out of a Document for individual processing. # Corresponds to the JSON property `pageNumber` # @return [Fixnum] attr_accessor :page_number - # A list of visually detected text paragraphs on the page. - # A collection of lines that a human would perceive as a paragraph. + # A list of visually detected text paragraphs on the page. A collection of lines + # that a human would perceive as a paragraph. # Corresponds to the JSON property `paragraphs` # @return [Array] attr_accessor :paragraphs @@ -303,8 +656,8 @@ module Google # @return [Array] attr_accessor :tokens - # A list of detected non-text visual elements e.g. checkbox, - # signature etc. on the page. + # A list of detected non-text visual elements e.g. checkbox, signature etc. on + # the page. # Corresponds to the JSON property `visualElements` # @return [Array] attr_accessor :visual_elements @@ -329,8 +682,8 @@ module Google end end - # A block has a set of lines (collected into paragraphs) that have a - # common line-spacing and orientation. + # A block has a set of lines (collected into paragraphs) that have a common line- + # spacing and orientation. class GoogleCloudDocumentaiV1beta1DocumentPageBlock include Google::Apis::Core::Hashable @@ -364,9 +717,8 @@ module Google # @return [Float] attr_accessor :confidence - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -459,9 +811,9 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly] attr_accessor :bounding_poly - # Confidence of the current Layout within context of the object this - # layout is for. e.g. confidence can be for a single token, a table, - # a visual element, etc. depending on context. Range [0, 1]. + # Confidence of the current Layout within context of the object this layout is + # for. e.g. confidence can be for a single token, a table, a visual element, etc. + # depending on context. Range [0, 1]. # Corresponds to the JSON property `confidence` # @return [Float] attr_accessor :confidence @@ -489,8 +841,8 @@ module Google end end - # A collection of tokens that a human would perceive as a line. - # Does not cross column boundaries, can be horizontal, vertical, etc. + # A collection of tokens that a human would perceive as a line. Does not cross + # column boundaries, can be horizontal, vertical, etc. class GoogleCloudDocumentaiV1beta1DocumentPageLine include Google::Apis::Core::Hashable @@ -683,8 +1035,7 @@ module Google end end - # Detected non-text visual elements e.g. checkbox, signature etc. on the - # page. + # Detected non-text visual elements e.g. checkbox, signature etc. on the page. class GoogleCloudDocumentaiV1beta1DocumentPageVisualElement include Google::Apis::Core::Hashable @@ -715,9 +1066,8 @@ module Google end end - # For a large document, sharding may be performed to produce several - # document shards. Each document shard contains this field to detail which - # shard it is. + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. class GoogleCloudDocumentaiV1beta1DocumentShardInfo include Google::Apis::Core::Hashable @@ -731,8 +1081,8 @@ module Google # @return [Fixnum] attr_accessor :shard_index - # The index of the first character in Document.text in the overall - # document global text. + # The index of the first character in Document.text in the overall document + # global text. # Corresponds to the JSON property `textOffset` # @return [Fixnum] attr_accessor :text_offset @@ -749,227 +1099,105 @@ module Google end end - # Annotation for common text style attributes. This adheres to CSS - # conventions as much as possible. + # Annotation for common text style attributes. This adheres to CSS conventions + # as much as possible. class GoogleCloudDocumentaiV1beta1DocumentStyle include Google::Apis::Core::Hashable # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # Note: when color equality needs to be decided, implementations, unless - # documented otherwise, will treat two colors to be equal if all their red, - # green, blue and alpha values each differ by at most 1e-5. - # Example (Java): - # import com.google.type.Color; - # // ... - # public static java.awt.Color fromProto(Color protocolor) ` - # float alpha = protocolor.hasAlpha() - # ? protocolor.getAlpha().getValue() - # : 1.0; - # return new java.awt.Color( - # protocolor.getRed(), - # protocolor.getGreen(), - # protocolor.getBlue(), - # alpha); - # ` - # public static Color toProto(java.awt.Color color) ` - # float red = (float) color.getRed(); - # float green = (float) color.getGreen(); - # float blue = (float) color.getBlue(); - # float denominator = 255.0; - # Color.Builder resultBuilder = - # Color - # .newBuilder() - # .setRed(red / denominator) - # .setGreen(green / denominator) - # .setBlue(blue / denominator); - # int alpha = color.getAlpha(); - # if (alpha != 255) ` - # result.setAlpha( - # FloatValue - # .newBuilder() - # .setValue(((float) alpha) / denominator) - # .build()); - # ` - # return resultBuilder.build(); - # ` - # // ... - # Example (iOS / Obj-C): - # // ... - # static UIColor* fromProto(Color* protocolor) ` - # float red = [protocolor red]; - # float green = [protocolor green]; - # float blue = [protocolor blue]; - # FloatValue* alpha_wrapper = [protocolor alpha]; - # float alpha = 1.0; - # if (alpha_wrapper != nil) ` - # alpha = [alpha_wrapper value]; - # ` - # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; - # ` - # static Color* toProto(UIColor* color) ` - # CGFloat red, green, blue, alpha; - # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` - # return nil; - # ` - # Color* result = [[Color alloc] init]; - # [result setRed:red]; - # [result setGreen:green]; - # [result setBlue:blue]; - # if (alpha <= 0.9999) ` - # [result setAlpha:floatWrapperWithValue(alpha)]; - # ` - # [result autorelease]; - # return result; - # ` - # // ... - # Example (JavaScript): - # // ... - # var protoToCssColor = function(rgb_color) ` - # var redFrac = rgb_color.red || 0.0; - # var greenFrac = rgb_color.green || 0.0; - # var blueFrac = rgb_color.blue || 0.0; - # var red = Math.floor(redFrac * 255); - # var green = Math.floor(greenFrac * 255); - # var blue = Math.floor(blueFrac * 255); - # if (!('alpha' in rgb_color)) ` - # return rgbToCssColor_(red, green, blue); - # ` - # var alphaFrac = rgb_color.alpha.value || 0.0; - # var rgbParams = [red, green, blue].join(','); - # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); - # `; - # var rgbToCssColor_ = function(red, green, blue) ` - # var rgbNumber = new Number((red << 16) | (green << 8) | blue); - # var hexString = rgbNumber.toString(16); - # var missingZeros = 6 - hexString.length; - # var resultBuilder = ['#']; - # for (var i = 0; i < missingZeros; i++) ` - # resultBuilder.push('0'); - # ` - # resultBuilder.push(hexString); - # return resultBuilder.join(''); - # `; - # // ... + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... # Corresponds to the JSON property `backgroundColor` # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor] attr_accessor :background_color # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # Note: when color equality needs to be decided, implementations, unless - # documented otherwise, will treat two colors to be equal if all their red, - # green, blue and alpha values each differ by at most 1e-5. - # Example (Java): - # import com.google.type.Color; - # // ... - # public static java.awt.Color fromProto(Color protocolor) ` - # float alpha = protocolor.hasAlpha() - # ? protocolor.getAlpha().getValue() - # : 1.0; - # return new java.awt.Color( - # protocolor.getRed(), - # protocolor.getGreen(), - # protocolor.getBlue(), - # alpha); - # ` - # public static Color toProto(java.awt.Color color) ` - # float red = (float) color.getRed(); - # float green = (float) color.getGreen(); - # float blue = (float) color.getBlue(); - # float denominator = 255.0; - # Color.Builder resultBuilder = - # Color - # .newBuilder() - # .setRed(red / denominator) - # .setGreen(green / denominator) - # .setBlue(blue / denominator); - # int alpha = color.getAlpha(); - # if (alpha != 255) ` - # result.setAlpha( - # FloatValue - # .newBuilder() - # .setValue(((float) alpha) / denominator) - # .build()); - # ` - # return resultBuilder.build(); - # ` - # // ... - # Example (iOS / Obj-C): - # // ... - # static UIColor* fromProto(Color* protocolor) ` - # float red = [protocolor red]; - # float green = [protocolor green]; - # float blue = [protocolor blue]; - # FloatValue* alpha_wrapper = [protocolor alpha]; - # float alpha = 1.0; - # if (alpha_wrapper != nil) ` - # alpha = [alpha_wrapper value]; - # ` - # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; - # ` - # static Color* toProto(UIColor* color) ` - # CGFloat red, green, blue, alpha; - # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` - # return nil; - # ` - # Color* result = [[Color alloc] init]; - # [result setRed:red]; - # [result setGreen:green]; - # [result setBlue:blue]; - # if (alpha <= 0.9999) ` - # [result setAlpha:floatWrapperWithValue(alpha)]; - # ` - # [result autorelease]; - # return result; - # ` - # // ... - # Example (JavaScript): - # // ... - # var protoToCssColor = function(rgb_color) ` - # var redFrac = rgb_color.red || 0.0; - # var greenFrac = rgb_color.green || 0.0; - # var blueFrac = rgb_color.blue || 0.0; - # var red = Math.floor(redFrac * 255); - # var green = Math.floor(greenFrac * 255); - # var blue = Math.floor(blueFrac * 255); - # if (!('alpha' in rgb_color)) ` - # return rgbToCssColor_(red, green, blue); - # ` - # var alphaFrac = rgb_color.alpha.value || 0.0; - # var rgbParams = [red, green, blue].join(','); - # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); - # `; - # var rgbToCssColor_ = function(red, green, blue) ` - # var rgbNumber = new Number((red << 16) | (green << 8) | blue); - # var hexString = rgbNumber.toString(16); - # var missingZeros = 6 - hexString.length; - # var resultBuilder = ['#']; - # for (var i = 0; i < missingZeros; i++) ` - # resultBuilder.push('0'); - # ` - # resultBuilder.push(hexString); - # return resultBuilder.join(''); - # `; - # // ... + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... # Corresponds to the JSON property `color` # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor] attr_accessor :color @@ -979,8 +1207,8 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyleFontSize] attr_accessor :font_size - # Font weight. Possible values are normal, bold, bolder, and lighter. - # https://www.w3schools.com/cssref/pr_font_weight.asp + # Font weight. Possible values are normal, bold, bolder, and lighter. https:// + # www.w3schools.com/cssref/pr_font_weight.asp # Corresponds to the JSON property `fontWeight` # @return [String] attr_accessor :font_weight @@ -990,15 +1218,14 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor] attr_accessor :text_anchor - # Text decoration. Follows CSS standard. - # - # https://www.w3schools.com/cssref/pr_text_text-decoration.asp + # Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/ + # pr_text_text-decoration.asp # Corresponds to the JSON property `textDecoration` # @return [String] attr_accessor :text_decoration - # Text style. Possible values are normal, italic, and oblique. - # https://www.w3schools.com/cssref/pr_font_font-style.asp + # Text style. Possible values are normal, italic, and oblique. https://www. + # w3schools.com/cssref/pr_font_font-style.asp # Corresponds to the JSON property `textStyle` # @return [String] attr_accessor :text_style @@ -1063,14 +1290,13 @@ module Google end end - # A text segment in the Document.text. The indices may be out of bounds - # which indicate that the text extends into another document shard for - # large sharded documents. See ShardInfo.text_offset + # A text segment in the Document.text. The indices may be out of bounds which + # indicate that the text extends into another document shard for large sharded + # documents. See ShardInfo.text_offset class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment include Google::Apis::Core::Hashable - # TextSegment half open end UTF-8 char index in the - # Document.text. + # TextSegment half open end UTF-8 char index in the Document.text. # Corresponds to the JSON property `endIndex` # @return [Fixnum] attr_accessor :end_index @@ -1095,9 +1321,8 @@ module Google class GoogleCloudDocumentaiV1beta1DocumentTranslation include Google::Apis::Core::Hashable - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1172,11 +1397,9 @@ module Google attr_accessor :gcs_source # Required. Mimetype of the input. Current supported mimetypes are application/ - # pdf, - # image/tiff, and image/gif. - # In addition, application/json type is supported for requests with - # ProcessDocumentRequest.automl_params field set. The JSON file needs to - # be in Document format. + # pdf, image/tiff, and image/gif. In addition, application/json type is + # supported for requests with ProcessDocumentRequest.automl_params field set. + # The JSON file needs to be in Document format. # Corresponds to the JSON property `mimeType` # @return [String] attr_accessor :mime_type @@ -1192,9 +1415,8 @@ module Google end end - # A vertex represents a 2D point in the image. - # NOTE: the normalized vertex coordinates are relative to the original image - # and range from 0 to 1. + # A vertex represents a 2D point in the image. NOTE: the normalized vertex + # coordinates are relative to the original image and range from 0 to 1. class GoogleCloudDocumentaiV1beta1NormalizedVertex include Google::Apis::Core::Hashable @@ -1266,18 +1488,14 @@ module Google attr_accessor :gcs_destination # The max number of pages to include into each output Document shard JSON on - # Google Cloud Storage. - # The valid range is [1, 100]. If not specified, the default value is 20. - # For example, for one pdf file with 100 pages, 100 parsed pages will be - # produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each - # containing 20 parsed pages will be written under the prefix - # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where - # x and y are 1-indexed page numbers. - # Example GCS outputs with 157 pages and pages_per_shard = 50: - # pages-001-to-050.json - # pages-051-to-100.json - # pages-101-to-150.json - # pages-151-to-157.json + # Google Cloud Storage. The valid range is [1, 100]. If not specified, the + # default value is 20. For example, for one pdf file with 100 pages, 100 parsed + # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON + # files each containing 20 parsed pages will be written under the prefix + # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y + # are 1-indexed page numbers. Example GCS outputs with 157 pages and + # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to- + # 150.json pages-151-to-157.json # Corresponds to the JSON property `pagesPerShard` # @return [Fixnum] attr_accessor :pages_per_shard @@ -1318,8 +1536,8 @@ module Google end end - # A vertex represents a 2D point in the image. - # NOTE: the vertex coordinates are in the same scale as the original image. + # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are + # in the same scale as the original image. class GoogleCloudDocumentaiV1beta1Vertex include Google::Apis::Core::Hashable @@ -1348,8 +1566,8 @@ module Google class GoogleCloudDocumentaiV1beta2AutoMlParams include Google::Apis::Core::Hashable - # Resource name of the AutoML model. - # Format: `projects/`project-id`/locations/`location-id`/models/`model-id``. + # Resource name of the AutoML model. Format: `projects/`project-id`/locations/` + # location-id`/models/`model-id``. # Corresponds to the JSON property `model` # @return [String] attr_accessor :model @@ -1364,8 +1582,8 @@ module Google end end - # Request to batch process documents as an asynchronous operation. The output - # is written to Cloud Storage as JSON in the [Document] format. + # Request to batch process documents as an asynchronous operation. The output is + # written to Cloud Storage as JSON in the [Document] format. class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest include Google::Apis::Core::Hashable @@ -1384,8 +1602,8 @@ module Google end end - # Response to an batch document processing request. This is returned in - # the LRO Operation after the operation is complete. + # Response to an batch document processing request. This is returned in the LRO + # Operation after the operation is complete. class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse include Google::Apis::Core::Hashable @@ -1430,23 +1648,22 @@ module Google end # Document represents the canonical document resource in Document Understanding - # AI. - # It is an interchange format that provides insights into documents and allows - # for collaboration between users and Document Understanding AI to iterate and - # optimize for quality. + # AI. It is an interchange format that provides insights into documents and + # allows for collaboration between users and Document Understanding AI to + # iterate and optimize for quality. class GoogleCloudDocumentaiV1beta2Document include Google::Apis::Core::Hashable - # Inline document content, represented as a stream of bytes. - # Note: As with all `bytes` fields, protobuffers use a pure binary - # representation, whereas JSON representations use base64. + # Inline document content, represented as a stream of bytes. Note: As with all ` + # bytes` fields, protobuffers use a pure binary representation, whereas JSON + # representations use base64. # Corresponds to the JSON property `content` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :content - # A list of entities detected on Document.text. For document shards, - # entities in this list may cross shard boundaries. + # A list of entities detected on Document.text. For document shards, entities in + # this list may cross shard boundaries. # Corresponds to the JSON property `entities` # @return [Array] attr_accessor :entities @@ -1456,12 +1673,12 @@ module Google # @return [Array] attr_accessor :entity_relations - # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus] attr_accessor :error @@ -1472,8 +1689,8 @@ module Google attr_accessor :labels # An IANA published MIME type (also referred to as media type). For more - # information, see - # https://www.iana.org/assignments/media-types/media-types.xhtml. + # information, see https://www.iana.org/assignments/media-types/media-types. + # xhtml. # Corresponds to the JSON property `mimeType` # @return [String] attr_accessor :mime_type @@ -1483,9 +1700,8 @@ module Google # @return [Array] attr_accessor :pages - # For a large document, sharding may be performed to produce several - # document shards. Each document shard contains this field to detail which - # shard it is. + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. # Corresponds to the JSON property `shardInfo` # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentShardInfo] attr_accessor :shard_info @@ -1500,16 +1716,15 @@ module Google # @return [Array] attr_accessor :text_styles - # A list of translations on Document.text. For document shards, - # translations in this list may cross shard boundaries. + # A list of translations on Document.text. For document shards, translations in + # this list may cross shard boundaries. # Corresponds to the JSON property `translations` # @return [Array] attr_accessor :translations - # Currently supports Google Cloud Storage URI of the form - # `gs://bucket_name/object_name`. Object versioning is not supported. - # See [Google Cloud Storage Request - # URIs](https://cloud.google.com/storage/docs/reference-uris) for more + # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/ + # object_name`. Object versioning is not supported. See [Google Cloud Storage + # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more # info. # Corresponds to the JSON property `uri` # @return [String] @@ -1546,7 +1761,7 @@ module Google # @return [Float] attr_accessor :confidence - # Deprecated. Use `id` field instead. + # Deprecated. Use `id` field instead. # Corresponds to the JSON property `mentionId` # @return [String] attr_accessor :mention_id @@ -1556,6 +1771,17 @@ module Google # @return [String] attr_accessor :mention_text + # Parsed and normalized entity value. + # Corresponds to the JSON property `normalizedValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue] + attr_accessor :normalized_value + + # Optional. Whether the entity will be redacted for de-identification purposes. + # Corresponds to the JSON property `redacted` + # @return [Boolean] + attr_accessor :redacted + alias_method :redacted?, :redacted + # Text reference indexing into the Document.text. # Corresponds to the JSON property `textAnchor` # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor] @@ -1575,11 +1801,70 @@ module Google @confidence = args[:confidence] if args.key?(:confidence) @mention_id = args[:mention_id] if args.key?(:mention_id) @mention_text = args[:mention_text] if args.key?(:mention_text) + @normalized_value = args[:normalized_value] if args.key?(:normalized_value) + @redacted = args[:redacted] if args.key?(:redacted) @text_anchor = args[:text_anchor] if args.key?(:text_anchor) @type = args[:type] if args.key?(:type) end end + # Parsed and normalized entity value. + class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + # Corresponds to the JSON property `dateValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDate] + attr_accessor :date_value + + # Represents civil time in one of a few possible ways: * When utc_offset is set + # and time_zone is unset: a civil time on a calendar day with a particular + # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time + # on a calendar day in a particular time zone. * When neither time_zone nor + # utc_offset is set: a civil time on a calendar day in local time. The date is + # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is + # considered not to have a specific year. month and day must have valid, non- + # zero values. This type is more flexible than some applications may want. Make + # sure to document and validate your application's limitations. + # Corresponds to the JSON property `datetimeValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime] + attr_accessor :datetime_value + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `moneyValue` + # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeMoney] + attr_accessor :money_value + + # Required. Normalized entity value stored as a string. This field is populated + # for supported document type (e.g. Invoice). For some entity types, one of + # respective 'structured_value' fields may also be populated. - Money/Currency + # type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) + # is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the + # ISO 8601 text format. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @date_value = args[:date_value] if args.key?(:date_value) + @datetime_value = args[:datetime_value] if args.key?(:datetime_value) + @money_value = args[:money_value] if args.key?(:money_value) + @text = args[:text] if args.key?(:text) + end + end + # Relationship between Entities. class GoogleCloudDocumentaiV1beta2DocumentEntityRelation include Google::Apis::Core::Hashable @@ -1611,17 +1896,16 @@ module Google end end - # Label attaches schema information and/or other metadata to segments within - # a Document. Multiple Labels on a single field can denote either - # different labels, different instances of the same label created at - # different times, or some combination of both. + # Label attaches schema information and/or other metadata to segments within a + # Document. Multiple Labels on a single field can denote either different labels, + # different instances of the same label created at different times, or some + # combination of both. class GoogleCloudDocumentaiV1beta2DocumentLabel include Google::Apis::Core::Hashable - # Label is generated AutoML model. This field stores the full resource - # name of the AutoML model. - # Format: - # `projects/`project-id`/locations/`location-id`/models/`model-id`` + # Label is generated AutoML model. This field stores the full resource name of + # the AutoML model. Format: `projects/`project-id`/locations/`location-id`/ + # models/`model-id`` # Corresponds to the JSON property `automlModel` # @return [String] attr_accessor :automl_model @@ -1631,9 +1915,8 @@ module Google # @return [Float] attr_accessor :confidence - # Name of the label. - # When the label is generated from AutoML Text Classification model, this - # field represents the name of the category. + # Name of the label. When the label is generated from AutoML Text Classification + # model, this field represents the name of the category. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1654,9 +1937,9 @@ module Google class GoogleCloudDocumentaiV1beta2DocumentPage include Google::Apis::Core::Hashable - # A list of visually detected text blocks on the page. - # A block has a set of lines (collected into paragraphs) that have a common - # line-spacing and orientation. + # A list of visually detected text blocks on the page. A block has a set of + # lines (collected into paragraphs) that have a common line-spacing and + # orientation. # Corresponds to the JSON property `blocks` # @return [Array] attr_accessor :blocks @@ -1681,21 +1964,20 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout] attr_accessor :layout - # A list of visually detected text lines on the page. - # A collection of tokens that a human would perceive as a line. + # A list of visually detected text lines on the page. A collection of tokens + # that a human would perceive as a line. # Corresponds to the JSON property `lines` # @return [Array] attr_accessor :lines - # 1-based index for current Page in a parent Document. - # Useful when a page is taken out of a Document for individual - # processing. + # 1-based index for current Page in a parent Document. Useful when a page is + # taken out of a Document for individual processing. # Corresponds to the JSON property `pageNumber` # @return [Fixnum] attr_accessor :page_number - # A list of visually detected text paragraphs on the page. - # A collection of lines that a human would perceive as a paragraph. + # A list of visually detected text paragraphs on the page. A collection of lines + # that a human would perceive as a paragraph. # Corresponds to the JSON property `paragraphs` # @return [Array] attr_accessor :paragraphs @@ -1710,8 +1992,8 @@ module Google # @return [Array] attr_accessor :tokens - # A list of detected non-text visual elements e.g. checkbox, - # signature etc. on the page. + # A list of detected non-text visual elements e.g. checkbox, signature etc. on + # the page. # Corresponds to the JSON property `visualElements` # @return [Array] attr_accessor :visual_elements @@ -1736,8 +2018,8 @@ module Google end end - # A block has a set of lines (collected into paragraphs) that have a - # common line-spacing and orientation. + # A block has a set of lines (collected into paragraphs) that have a common line- + # spacing and orientation. class GoogleCloudDocumentaiV1beta2DocumentPageBlock include Google::Apis::Core::Hashable @@ -1771,9 +2053,8 @@ module Google # @return [Float] attr_accessor :confidence - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -1844,11 +2125,9 @@ module Google # @return [Array] attr_accessor :value_detected_languages - # If the value is non-textual, this field represents the type. Current - # valid values are: - # - blank (this indicates the field_value is normal text) - # - "unfilled_checkbox" - # - "filled_checkbox" + # If the value is non-textual, this field represents the type. Current valid + # values are: - blank (this indicates the field_value is normal text) - " + # unfilled_checkbox" - "filled_checkbox" # Corresponds to the JSON property `valueType` # @return [String] attr_accessor :value_type @@ -1876,9 +2155,9 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly] attr_accessor :bounding_poly - # Confidence of the current Layout within context of the object this - # layout is for. e.g. confidence can be for a single token, a table, - # a visual element, etc. depending on context. Range [0, 1]. + # Confidence of the current Layout within context of the object this layout is + # for. e.g. confidence can be for a single token, a table, a visual element, etc. + # depending on context. Range [0, 1]. # Corresponds to the JSON property `confidence` # @return [Float] attr_accessor :confidence @@ -1906,8 +2185,8 @@ module Google end end - # A collection of tokens that a human would perceive as a line. - # Does not cross column boundaries, can be horizontal, vertical, etc. + # A collection of tokens that a human would perceive as a line. Does not cross + # column boundaries, can be horizontal, vertical, etc. class GoogleCloudDocumentaiV1beta2DocumentPageLine include Google::Apis::Core::Hashable @@ -2100,8 +2379,7 @@ module Google end end - # Detected non-text visual elements e.g. checkbox, signature etc. on the - # page. + # Detected non-text visual elements e.g. checkbox, signature etc. on the page. class GoogleCloudDocumentaiV1beta2DocumentPageVisualElement include Google::Apis::Core::Hashable @@ -2132,9 +2410,8 @@ module Google end end - # For a large document, sharding may be performed to produce several - # document shards. Each document shard contains this field to detail which - # shard it is. + # For a large document, sharding may be performed to produce several document + # shards. Each document shard contains this field to detail which shard it is. class GoogleCloudDocumentaiV1beta2DocumentShardInfo include Google::Apis::Core::Hashable @@ -2148,8 +2425,8 @@ module Google # @return [Fixnum] attr_accessor :shard_index - # The index of the first character in Document.text in the overall - # document global text. + # The index of the first character in Document.text in the overall document + # global text. # Corresponds to the JSON property `textOffset` # @return [Fixnum] attr_accessor :text_offset @@ -2166,227 +2443,105 @@ module Google end end - # Annotation for common text style attributes. This adheres to CSS - # conventions as much as possible. + # Annotation for common text style attributes. This adheres to CSS conventions + # as much as possible. class GoogleCloudDocumentaiV1beta2DocumentStyle include Google::Apis::Core::Hashable # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # Note: when color equality needs to be decided, implementations, unless - # documented otherwise, will treat two colors to be equal if all their red, - # green, blue and alpha values each differ by at most 1e-5. - # Example (Java): - # import com.google.type.Color; - # // ... - # public static java.awt.Color fromProto(Color protocolor) ` - # float alpha = protocolor.hasAlpha() - # ? protocolor.getAlpha().getValue() - # : 1.0; - # return new java.awt.Color( - # protocolor.getRed(), - # protocolor.getGreen(), - # protocolor.getBlue(), - # alpha); - # ` - # public static Color toProto(java.awt.Color color) ` - # float red = (float) color.getRed(); - # float green = (float) color.getGreen(); - # float blue = (float) color.getBlue(); - # float denominator = 255.0; - # Color.Builder resultBuilder = - # Color - # .newBuilder() - # .setRed(red / denominator) - # .setGreen(green / denominator) - # .setBlue(blue / denominator); - # int alpha = color.getAlpha(); - # if (alpha != 255) ` - # result.setAlpha( - # FloatValue - # .newBuilder() - # .setValue(((float) alpha) / denominator) - # .build()); - # ` - # return resultBuilder.build(); - # ` - # // ... - # Example (iOS / Obj-C): - # // ... - # static UIColor* fromProto(Color* protocolor) ` - # float red = [protocolor red]; - # float green = [protocolor green]; - # float blue = [protocolor blue]; - # FloatValue* alpha_wrapper = [protocolor alpha]; - # float alpha = 1.0; - # if (alpha_wrapper != nil) ` - # alpha = [alpha_wrapper value]; - # ` - # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; - # ` - # static Color* toProto(UIColor* color) ` - # CGFloat red, green, blue, alpha; - # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` - # return nil; - # ` - # Color* result = [[Color alloc] init]; - # [result setRed:red]; - # [result setGreen:green]; - # [result setBlue:blue]; - # if (alpha <= 0.9999) ` - # [result setAlpha:floatWrapperWithValue(alpha)]; - # ` - # [result autorelease]; - # return result; - # ` - # // ... - # Example (JavaScript): - # // ... - # var protoToCssColor = function(rgb_color) ` - # var redFrac = rgb_color.red || 0.0; - # var greenFrac = rgb_color.green || 0.0; - # var blueFrac = rgb_color.blue || 0.0; - # var red = Math.floor(redFrac * 255); - # var green = Math.floor(greenFrac * 255); - # var blue = Math.floor(blueFrac * 255); - # if (!('alpha' in rgb_color)) ` - # return rgbToCssColor_(red, green, blue); - # ` - # var alphaFrac = rgb_color.alpha.value || 0.0; - # var rgbParams = [red, green, blue].join(','); - # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); - # `; - # var rgbToCssColor_ = function(red, green, blue) ` - # var rgbNumber = new Number((red << 16) | (green << 8) | blue); - # var hexString = rgbNumber.toString(16); - # var missingZeros = 6 - hexString.length; - # var resultBuilder = ['#']; - # for (var i = 0; i < missingZeros; i++) ` - # resultBuilder.push('0'); - # ` - # resultBuilder.push(hexString); - # return resultBuilder.join(''); - # `; - # // ... + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... # Corresponds to the JSON property `backgroundColor` # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor] attr_accessor :background_color # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # Note: when color equality needs to be decided, implementations, unless - # documented otherwise, will treat two colors to be equal if all their red, - # green, blue and alpha values each differ by at most 1e-5. - # Example (Java): - # import com.google.type.Color; - # // ... - # public static java.awt.Color fromProto(Color protocolor) ` - # float alpha = protocolor.hasAlpha() - # ? protocolor.getAlpha().getValue() - # : 1.0; - # return new java.awt.Color( - # protocolor.getRed(), - # protocolor.getGreen(), - # protocolor.getBlue(), - # alpha); - # ` - # public static Color toProto(java.awt.Color color) ` - # float red = (float) color.getRed(); - # float green = (float) color.getGreen(); - # float blue = (float) color.getBlue(); - # float denominator = 255.0; - # Color.Builder resultBuilder = - # Color - # .newBuilder() - # .setRed(red / denominator) - # .setGreen(green / denominator) - # .setBlue(blue / denominator); - # int alpha = color.getAlpha(); - # if (alpha != 255) ` - # result.setAlpha( - # FloatValue - # .newBuilder() - # .setValue(((float) alpha) / denominator) - # .build()); - # ` - # return resultBuilder.build(); - # ` - # // ... - # Example (iOS / Obj-C): - # // ... - # static UIColor* fromProto(Color* protocolor) ` - # float red = [protocolor red]; - # float green = [protocolor green]; - # float blue = [protocolor blue]; - # FloatValue* alpha_wrapper = [protocolor alpha]; - # float alpha = 1.0; - # if (alpha_wrapper != nil) ` - # alpha = [alpha_wrapper value]; - # ` - # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; - # ` - # static Color* toProto(UIColor* color) ` - # CGFloat red, green, blue, alpha; - # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` - # return nil; - # ` - # Color* result = [[Color alloc] init]; - # [result setRed:red]; - # [result setGreen:green]; - # [result setBlue:blue]; - # if (alpha <= 0.9999) ` - # [result setAlpha:floatWrapperWithValue(alpha)]; - # ` - # [result autorelease]; - # return result; - # ` - # // ... - # Example (JavaScript): - # // ... - # var protoToCssColor = function(rgb_color) ` - # var redFrac = rgb_color.red || 0.0; - # var greenFrac = rgb_color.green || 0.0; - # var blueFrac = rgb_color.blue || 0.0; - # var red = Math.floor(redFrac * 255); - # var green = Math.floor(greenFrac * 255); - # var blue = Math.floor(blueFrac * 255); - # if (!('alpha' in rgb_color)) ` - # return rgbToCssColor_(red, green, blue); - # ` - # var alphaFrac = rgb_color.alpha.value || 0.0; - # var rgbParams = [red, green, blue].join(','); - # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); - # `; - # var rgbToCssColor_ = function(red, green, blue) ` - # var rgbNumber = new Number((red << 16) | (green << 8) | blue); - # var hexString = rgbNumber.toString(16); - # var missingZeros = 6 - hexString.length; - # var resultBuilder = ['#']; - # for (var i = 0; i < missingZeros; i++) ` - # resultBuilder.push('0'); - # ` - # resultBuilder.push(hexString); - # return resultBuilder.join(''); - # `; - # // ... + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... # Corresponds to the JSON property `color` # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor] attr_accessor :color @@ -2396,8 +2551,8 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyleFontSize] attr_accessor :font_size - # Font weight. Possible values are normal, bold, bolder, and lighter. - # https://www.w3schools.com/cssref/pr_font_weight.asp + # Font weight. Possible values are normal, bold, bolder, and lighter. https:// + # www.w3schools.com/cssref/pr_font_weight.asp # Corresponds to the JSON property `fontWeight` # @return [String] attr_accessor :font_weight @@ -2407,15 +2562,14 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor] attr_accessor :text_anchor - # Text decoration. Follows CSS standard. - # - # https://www.w3schools.com/cssref/pr_text_text-decoration.asp + # Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/ + # pr_text_text-decoration.asp # Corresponds to the JSON property `textDecoration` # @return [String] attr_accessor :text_decoration - # Text style. Possible values are normal, italic, and oblique. - # https://www.w3schools.com/cssref/pr_font_font-style.asp + # Text style. Possible values are normal, italic, and oblique. https://www. + # w3schools.com/cssref/pr_font_font-style.asp # Corresponds to the JSON property `textStyle` # @return [String] attr_accessor :text_style @@ -2480,14 +2634,13 @@ module Google end end - # A text segment in the Document.text. The indices may be out of bounds - # which indicate that the text extends into another document shard for - # large sharded documents. See ShardInfo.text_offset + # A text segment in the Document.text. The indices may be out of bounds which + # indicate that the text extends into another document shard for large sharded + # documents. See ShardInfo.text_offset class GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment include Google::Apis::Core::Hashable - # TextSegment half open end UTF-8 char index in the - # Document.text. + # TextSegment half open end UTF-8 char index in the Document.text. # Corresponds to the JSON property `endIndex` # @return [Fixnum] attr_accessor :end_index @@ -2512,9 +2665,8 @@ module Google class GoogleCloudDocumentaiV1beta2DocumentTranslation include Google::Apis::Core::Hashable - # The BCP-47 language code, such as "en-US" or "sr-Latn". For more - # information, see - # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, + # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code @@ -2551,8 +2703,8 @@ module Google attr_accessor :enabled alias_method :enabled?, :enabled - # Model version of the entity extraction. Default is - # "builtin/stable". Specify "builtin/latest" for the latest model. + # Model version of the entity extraction. Default is "builtin/stable". Specify " + # builtin/latest" for the latest model. # Corresponds to the JSON property `modelVersion` # @return [String] attr_accessor :model_version @@ -2583,11 +2735,11 @@ module Google # @return [Array] attr_accessor :key_value_pair_hints - # Model version of the form extraction system. Default is - # "builtin/stable". Specify "builtin/latest" for the latest model. - # For custom form models, specify: “custom/`model_name`". Model name - # format is "bucket_name/path/to/modeldir" corresponding to - # "gs://bucket_name/path/to/modeldir" where annotated examples are stored. + # Model version of the form extraction system. Default is "builtin/stable". + # Specify "builtin/latest" for the latest model. For custom form models, specify: + # “custom/`model_name`". Model name format is "bucket_name/path/to/modeldir" + # corresponding to "gs://bucket_name/path/to/modeldir" where annotated examples + # are stored. # Corresponds to the JSON property `modelVersion` # @return [String] attr_accessor :model_version @@ -2646,10 +2798,10 @@ module Google class GoogleCloudDocumentaiV1beta2InputConfig include Google::Apis::Core::Hashable - # Content in bytes, represented as a stream of bytes. - # Note: As with all `bytes` fields, proto buffer messages use a pure binary - # representation, whereas JSON representations use base64. - # This field only works for synchronous ProcessDocument method. + # Content in bytes, represented as a stream of bytes. Note: As with all `bytes` + # fields, proto buffer messages use a pure binary representation, whereas JSON + # representations use base64. This field only works for synchronous + # ProcessDocument method. # Corresponds to the JSON property `contents` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2661,11 +2813,9 @@ module Google attr_accessor :gcs_source # Required. Mimetype of the input. Current supported mimetypes are application/ - # pdf, - # image/tiff, and image/gif. - # In addition, application/json type is supported for requests with - # ProcessDocumentRequest.automl_params field set. The JSON file needs to - # be in Document format. + # pdf, image/tiff, and image/gif. In addition, application/json type is + # supported for requests with ProcessDocumentRequest.automl_params field set. + # The JSON file needs to be in Document format. # Corresponds to the JSON property `mimeType` # @return [String] attr_accessor :mime_type @@ -2691,10 +2841,9 @@ module Google # @return [String] attr_accessor :key - # Type of the value. This is case-insensitive, and could be one of: - # ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, - # ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will - # be ignored. + # Type of the value. This is case-insensitive, and could be one of: ADDRESS, + # LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, ID, NUMBER, EMAIL, PRICE, TERMS, + # DATE, NAME. Types not in this list will be ignored. # Corresponds to the JSON property `valueTypes` # @return [Array] attr_accessor :value_types @@ -2710,9 +2859,8 @@ module Google end end - # A vertex represents a 2D point in the image. - # NOTE: the normalized vertex coordinates are relative to the original image - # and range from 0 to 1. + # A vertex represents a 2D point in the image. NOTE: the normalized vertex + # coordinates are relative to the original image and range from 0 to 1. class GoogleCloudDocumentaiV1beta2NormalizedVertex include Google::Apis::Core::Hashable @@ -2741,14 +2889,13 @@ module Google class GoogleCloudDocumentaiV1beta2OcrParams include Google::Apis::Core::Hashable - # List of languages to use for OCR. In most cases, an empty value - # yields the best results since it enables automatic language detection. For - # languages based on the Latin alphabet, setting `language_hints` is not - # needed. In rare cases, when the language of the text in the image is known, - # setting a hint will help get better results (although it will be a - # significant hindrance if the hint is wrong). Document processing returns an - # error if one or more of the specified languages is not one of the - # supported languages. + # List of languages to use for OCR. In most cases, an empty value yields the + # best results since it enables automatic language detection. For languages + # based on the Latin alphabet, setting `language_hints` is not needed. In rare + # cases, when the language of the text in the image is known, setting a hint + # will help get better results (although it will be a significant hindrance if + # the hint is wrong). Document processing returns an error if one or more of the + # specified languages is not one of the supported languages. # Corresponds to the JSON property `languageHints` # @return [Array] attr_accessor :language_hints @@ -2810,18 +2957,14 @@ module Google attr_accessor :gcs_destination # The max number of pages to include into each output Document shard JSON on - # Google Cloud Storage. - # The valid range is [1, 100]. If not specified, the default value is 20. - # For example, for one pdf file with 100 pages, 100 parsed pages will be - # produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each - # containing 20 parsed pages will be written under the prefix - # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where - # x and y are 1-indexed page numbers. - # Example GCS outputs with 157 pages and pages_per_shard = 50: - # pages-001-to-050.json - # pages-051-to-100.json - # pages-101-to-150.json - # pages-151-to-157.json + # Google Cloud Storage. The valid range is [1, 100]. If not specified, the + # default value is 20. For example, for one pdf file with 100 pages, 100 parsed + # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON + # files each containing 20 parsed pages will be written under the prefix + # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y + # are 1-indexed page numbers. Example GCS outputs with 157 pages and + # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to- + # 150.json pages-151-to-157.json # Corresponds to the JSON property `pagesPerShard` # @return [Fixnum] attr_accessor :pages_per_shard @@ -2846,9 +2989,9 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2AutoMlParams] attr_accessor :automl_params - # Specifies a known document type for deeper structure detection. Valid - # values are currently "general" and "invoice". If not provided, "general"\ - # is used as default. If any other value is given, the request is rejected. + # Specifies a known document type for deeper structure detection. Valid values + # are currently "general" and "invoice". If not provided, "general"\ is used as + # default. If any other value is given, the request is rejected. # Corresponds to the JSON property `documentType` # @return [String] attr_accessor :document_type @@ -2878,10 +3021,10 @@ module Google # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OutputConfig] attr_accessor :output_config - # Target project and location to make a call. - # Format: `projects/`project-id`/locations/`location-id``. - # If no location is specified, a region will be chosen automatically. - # This field is only populated when used in ProcessDocument method. + # Target project and location to make a call. Format: `projects/`project-id`/ + # locations/`location-id``. If no location is specified, a region will be chosen + # automatically. This field is only populated when used in ProcessDocument + # method. # Corresponds to the JSON property `parent` # @return [String] attr_accessor :parent @@ -2944,8 +3087,7 @@ module Google attr_accessor :bounding_box # Optional. Page number for multi-paged inputs this hint applies to. If not - # provided, this hint will apply to all pages by default. This value is - # 1-based. + # provided, this hint will apply to all pages by default. This value is 1-based. # Corresponds to the JSON property `pageNumber` # @return [Fixnum] attr_accessor :page_number @@ -2982,8 +3124,8 @@ module Google # @return [String] attr_accessor :model_version - # Optional. Table bounding box hints that can be provided to complex cases - # which our algorithm cannot locate the table(s) in. + # Optional. Table bounding box hints that can be provided to complex cases which + # our algorithm cannot locate the table(s) in. # Corresponds to the JSON property `tableBoundHints` # @return [Array] attr_accessor :table_bound_hints @@ -3001,8 +3143,8 @@ module Google end end - # A vertex represents a 2D point in the image. - # NOTE: the vertex coordinates are in the same scale as the original image. + # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are + # in the same scale as the original image. class GoogleCloudDocumentaiV1beta2Vertex include Google::Apis::Core::Hashable @@ -3027,52 +3169,147 @@ module Google end end + # The long running operation metadata for batch process method. + class GoogleCloudDocumentaiV1beta3BatchProcessMetadata + include Google::Apis::Core::Hashable + + # The creation time of the operation. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The list of response details of each document. + # Corresponds to the JSON property `individualProcessStatuses` + # @return [Array] + attr_accessor :individual_process_statuses + + # The state of the current batch processing. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message providing more details about the current state of processing. For + # example, the error message if the operation is failed. + # Corresponds to the JSON property `stateMessage` + # @return [String] + attr_accessor :state_message + + # The last update time of the operation. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @individual_process_statuses = args[:individual_process_statuses] if args.key?(:individual_process_statuses) + @state = args[:state] if args.key?(:state) + @state_message = args[:state_message] if args.key?(:state_message) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The status of a each individual document in the batch process. + class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus + include Google::Apis::Core::Hashable + + # The source of the document, same as the [input_gcs_source] field in the + # request when the batch process started. The batch process is started by take + # snapshot of that document, since a user can move or change that document + # during the process. + # Corresponds to the JSON property `inputGcsSource` + # @return [String] + attr_accessor :input_gcs_source + + # The output_gcs_destination (in the request as 'output_gcs_destination') of the + # processed document if it was successful, otherwise empty. + # Corresponds to the JSON property `outputGcsDestination` + # @return [String] + attr_accessor :output_gcs_destination + + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). + # Corresponds to the JSON property `status` + # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source) + @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination) + @status = args[:status] if args.key?(:status) + end + end + + # Response message for batch process document method. + class GoogleCloudDocumentaiV1beta3BatchProcessResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class GoogleLongrunningOperation 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. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus] 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. + # 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 be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # 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`. + # 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 @@ -3091,12 +3328,29 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class GoogleRpcStatus include Google::Apis::Core::Hashable @@ -3105,15 +3359,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -3132,122 +3386,61 @@ module Google # Represents a color in the RGBA color space. This representation is designed # for simplicity of conversion to/from color representations in various - # languages over compactness; for example, the fields of this representation - # can be trivially provided to the constructor of "java.awt.Color" in Java; it - # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" - # method in iOS; and, with just a little work, it can be easily formatted into - # a CSS "rgba()" string in JavaScript, as well. - # Note: this proto does not carry information about the absolute color space - # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, - # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color - # space. - # Note: when color equality needs to be decided, implementations, unless - # documented otherwise, will treat two colors to be equal if all their red, - # green, blue and alpha values each differ by at most 1e-5. - # Example (Java): - # import com.google.type.Color; - # // ... - # public static java.awt.Color fromProto(Color protocolor) ` - # float alpha = protocolor.hasAlpha() - # ? protocolor.getAlpha().getValue() - # : 1.0; - # return new java.awt.Color( - # protocolor.getRed(), - # protocolor.getGreen(), - # protocolor.getBlue(), - # alpha); - # ` - # public static Color toProto(java.awt.Color color) ` - # float red = (float) color.getRed(); - # float green = (float) color.getGreen(); - # float blue = (float) color.getBlue(); - # float denominator = 255.0; - # Color.Builder resultBuilder = - # Color - # .newBuilder() - # .setRed(red / denominator) - # .setGreen(green / denominator) - # .setBlue(blue / denominator); - # int alpha = color.getAlpha(); - # if (alpha != 255) ` - # result.setAlpha( - # FloatValue - # .newBuilder() - # .setValue(((float) alpha) / denominator) - # .build()); - # ` - # return resultBuilder.build(); - # ` - # // ... - # Example (iOS / Obj-C): - # // ... - # static UIColor* fromProto(Color* protocolor) ` - # float red = [protocolor red]; - # float green = [protocolor green]; - # float blue = [protocolor blue]; - # FloatValue* alpha_wrapper = [protocolor alpha]; - # float alpha = 1.0; - # if (alpha_wrapper != nil) ` - # alpha = [alpha_wrapper value]; - # ` - # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; - # ` - # static Color* toProto(UIColor* color) ` - # CGFloat red, green, blue, alpha; - # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) ` - # return nil; - # ` - # Color* result = [[Color alloc] init]; - # [result setRed:red]; - # [result setGreen:green]; - # [result setBlue:blue]; - # if (alpha <= 0.9999) ` - # [result setAlpha:floatWrapperWithValue(alpha)]; - # ` - # [result autorelease]; - # return result; - # ` - # // ... - # Example (JavaScript): - # // ... - # var protoToCssColor = function(rgb_color) ` - # var redFrac = rgb_color.red || 0.0; - # var greenFrac = rgb_color.green || 0.0; - # var blueFrac = rgb_color.blue || 0.0; - # var red = Math.floor(redFrac * 255); - # var green = Math.floor(greenFrac * 255); - # var blue = Math.floor(blueFrac * 255); - # if (!('alpha' in rgb_color)) ` - # return rgbToCssColor_(red, green, blue); - # ` - # var alphaFrac = rgb_color.alpha.value || 0.0; - # var rgbParams = [red, green, blue].join(','); - # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); - # `; - # var rgbToCssColor_ = function(red, green, blue) ` - # var rgbNumber = new Number((red << 16) | (green << 8) | blue); - # var hexString = rgbNumber.toString(16); - # var missingZeros = 6 - hexString.length; - # var resultBuilder = ['#']; - # for (var i = 0; i < missingZeros; i++) ` - # resultBuilder.push('0'); - # ` - # resultBuilder.push(hexString); - # return resultBuilder.join(''); - # `; - # // ... + # languages over compactness; for example, the fields of this representation can + # be trivially provided to the constructor of "java.awt.Color" in Java; it can + # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" + # method in iOS; and, with just a little work, it can be easily formatted into a + # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry + # information about the absolute color space that should be used to interpret + # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, + # applications SHOULD assume the sRGB color space. Note: when color equality + # needs to be decided, implementations, unless documented otherwise, will treat + # two colors to be equal if all their red, green, blue and alpha values each + # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... + # public static java.awt.Color fromProto(Color protocolor) ` float alpha = + # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new + # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue( + # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = ( + # float) color.getRed(); float green = (float) color.getGreen(); float blue = ( + # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder + # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) + # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) + # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / + # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS / + # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [ + # protocolor red]; float green = [protocolor green]; float blue = [protocolor + # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if ( + # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor + # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto( + # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red + # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color + # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue: + # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` + # [result autorelease]; return result; ` // ... Example (JavaScript): // ... + # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0; + # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; + # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); + # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return + # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0. + # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ', + # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue) + # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var + # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; + # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` + # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder. + # join(''); `; // ... class GoogleTypeColor include Google::Apis::Core::Hashable - # The fraction of this color that should be applied to the pixel. That is, - # the final pixel color is defined by the equation: - # pixel color = alpha * (this color) + (1.0 - alpha) * (background color) - # This means that a value of 1.0 corresponds to a solid color, whereas - # a value of 0.0 corresponds to a completely transparent color. This - # uses a wrapper message rather than a simple float scalar so that it is - # possible to distinguish between a default value and the value being unset. - # If omitted, this color object is to be rendered as a solid color - # (as if the alpha value had been explicitly given with a value of 1.0). + # The fraction of this color that should be applied to the pixel. That is, the + # final pixel color is defined by the equation: pixel color = alpha * (this + # color) + (1.0 - alpha) * (background color) This means that a value of 1.0 + # corresponds to a solid color, whereas a value of 0.0 corresponds to a + # completely transparent color. This uses a wrapper message rather than a simple + # float scalar so that it is possible to distinguish between a default value and + # the value being unset. If omitted, this color object is to be rendered as a + # solid color (as if the alpha value had been explicitly given with a value of 1. + # 0). # Corresponds to the JSON property `alpha` # @return [Float] attr_accessor :alpha @@ -3279,6 +3472,189 @@ module Google @red = args[:red] if args.key?(:red) end end + + # Represents a whole or partial calendar date, e.g. a birthday. The time of day + # and time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. + class GoogleTypeDate + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + # specifying a year by itself or a year and month where the day is not + # significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # and day. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + + # Represents civil time in one of a few possible ways: * When utc_offset is set + # and time_zone is unset: a civil time on a calendar day with a particular + # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time + # on a calendar day in a particular time zone. * When neither time_zone nor + # utc_offset is set: a civil time on a calendar day in local time. The date is + # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is + # considered not to have a specific year. month and day must have valid, non- + # zero values. This type is more flexible than some applications may want. Make + # sure to document and validate your application's limitations. + class GoogleTypeDateTime + include Google::Apis::Core::Hashable + + # Required. Day of month. Must be from 1 to 31 and valid for the year and month. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may + # choose to allow the value "24:00:00" for scenarios like business closing time. + # Corresponds to the JSON property `hours` + # @return [Fixnum] + attr_accessor :hours + + # Required. Minutes of hour of day. Must be from 0 to 59. + # Corresponds to the JSON property `minutes` + # @return [Fixnum] + attr_accessor :minutes + + # Required. Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An + # API may allow the value 60 if it allows leap-seconds. + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/ + # time-zones). + # Corresponds to the JSON property `timeZone` + # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeTimeZone] + attr_accessor :time_zone + + # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For + # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `. + # Corresponds to the JSON property `utcOffset` + # @return [String] + attr_accessor :utc_offset + + # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime + # without a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @hours = args[:hours] if args.key?(:hours) + @minutes = args[:minutes] if args.key?(:minutes) + @month = args[:month] if args.key?(:month) + @nanos = args[:nanos] if args.key?(:nanos) + @seconds = args[:seconds] if args.key?(:seconds) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @utc_offset = args[:utc_offset] if args.key?(:utc_offset) + @year = args[:year] if args.key?(:year) + end + end + + # Represents an amount of money with its currency type. + class GoogleTypeMoney + include Google::Apis::Core::Hashable + + # The 3-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) + end + end + + # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/ + # time-zones). + class GoogleTypeTimeZone + include Google::Apis::Core::Hashable + + # IANA Time Zone Database time zone, e.g. "America/New_York". + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Optional. IANA Time Zone Database version number, e.g. "2019a". + # 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) + @id = args[:id] if args.key?(:id) + @version = args[:version] if args.key?(:version) + end + end end end end diff --git a/generated/google/apis/documentai_v1beta2/representations.rb b/generated/google/apis/documentai_v1beta2/representations.rb index 8cad8d599..9dd756bfb 100644 --- a/generated/google/apis/documentai_v1beta2/representations.rb +++ b/generated/google/apis/documentai_v1beta2/representations.rb @@ -22,6 +22,60 @@ module Google module Apis module DocumentaiV1beta2 + class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,6 +100,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDocumentaiV1beta1DocumentEntityRelation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -256,6 +316,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDocumentaiV1beta2DocumentEntityRelation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -478,12 +544,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDocumentaiV1beta3BatchProcessMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiV1beta3BatchProcessResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleLongrunningOperation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleRpcStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -496,6 +586,111 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleTypeDate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeDateTime + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeMoney + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeTimeZone + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -544,12 +739,28 @@ module Google property :confidence, as: 'confidence' property :mention_id, as: 'mentionId' property :mention_text, as: 'mentionText' + property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue::Representation + + property :redacted, as: 'redacted' property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor::Representation property :type, as: 'type' end end + class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDate::Representation + + property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime::Representation + + property :money_value, as: 'moneyValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeMoney, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeMoney::Representation + + property :text, as: 'text' + end + end + class GoogleCloudDocumentaiV1beta1DocumentEntityRelation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -916,12 +1127,28 @@ module Google property :confidence, as: 'confidence' property :mention_id, as: 'mentionId' property :mention_text, as: 'mentionText' + property :normalized_value, as: 'normalizedValue', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue::Representation + + property :redacted, as: 'redacted' property :text_anchor, as: 'textAnchor', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor::Representation property :type, as: 'type' end end + class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :date_value, as: 'dateValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDate, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDate::Representation + + property :datetime_value, as: 'datetimeValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime::Representation + + property :money_value, as: 'moneyValue', class: Google::Apis::DocumentaiV1beta2::GoogleTypeMoney, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeMoney::Representation + + property :text, as: 'text' + end + end + class GoogleCloudDocumentaiV1beta2DocumentEntityRelation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1309,6 +1536,34 @@ module Google end end + class GoogleCloudDocumentaiV1beta3BatchProcessMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + collection :individual_process_statuses, as: 'individualProcessStatuses', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus::Representation + + property :state, as: 'state' + property :state_message, as: 'stateMessage' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :input_gcs_source, as: 'inputGcsSource' + property :output_gcs_destination, as: 'outputGcsDestination' + property :status, as: 'status', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation + + end + end + + class GoogleCloudDocumentaiV1beta3BatchProcessResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleLongrunningOperation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1321,6 +1576,12 @@ module Google end end + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleRpcStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1339,6 +1600,48 @@ module Google property :red, as: 'red' end end + + class GoogleTypeDate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + + class GoogleTypeDateTime + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :hours, as: 'hours' + property :minutes, as: 'minutes' + property :month, as: 'month' + property :nanos, as: 'nanos' + property :seconds, as: 'seconds' + property :time_zone, as: 'timeZone', class: Google::Apis::DocumentaiV1beta2::GoogleTypeTimeZone, decorator: Google::Apis::DocumentaiV1beta2::GoogleTypeTimeZone::Representation + + property :utc_offset, as: 'utcOffset' + property :year, as: 'year' + end + end + + class GoogleTypeMoney + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' + property :nanos, as: 'nanos' + property :units, :numeric_string => true, as: 'units' + end + end + + class GoogleTypeTimeZone + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :version, as: 'version' + end + end end end end diff --git a/generated/google/apis/documentai_v1beta2/service.rb b/generated/google/apis/documentai_v1beta2/service.rb index 4b17e70b0..3558e099b 100644 --- a/generated/google/apis/documentai_v1beta2/service.rb +++ b/generated/google/apis/documentai_v1beta2/service.rb @@ -49,12 +49,12 @@ module Google @batch_path = 'batch' end - # LRO endpoint to batch process many documents. The output is written - # to Cloud Storage as JSON in the [Document] format. + # LRO endpoint to batch process many documents. The output is written to Cloud + # Storage as JSON in the [Document] format. # @param [String] parent - # Target project and location to make a call. - # Format: `projects/`project-id`/locations/`location-id``. - # If no location is specified, a region will be chosen automatically. + # Target project and location to make a call. Format: `projects/`project-id`/ + # locations/`location-id``. If no location is specified, a region will be chosen + # automatically. # @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest] google_cloud_documentai_v1beta2_batch_process_documents_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -87,10 +87,10 @@ module Google # Processes a single document. # @param [String] parent - # Target project and location to make a call. - # Format: `projects/`project-id`/locations/`location-id``. - # If no location is specified, a region will be chosen automatically. - # This field is only populated when used in ProcessDocument method. + # Target project and location to make a call. Format: `projects/`project-id`/ + # locations/`location-id``. If no location is specified, a region will be chosen + # automatically. This field is only populated when used in ProcessDocument + # method. # @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest] google_cloud_documentai_v1beta2_process_document_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -121,12 +121,12 @@ module Google execute_or_queue_command(command, &block) end - # LRO endpoint to batch process many documents. The output is written - # to Cloud Storage as JSON in the [Document] format. + # LRO endpoint to batch process many documents. The output is written to Cloud + # Storage as JSON in the [Document] format. # @param [String] parent - # Target project and location to make a call. - # Format: `projects/`project-id`/locations/`location-id``. - # If no location is specified, a region will be chosen automatically. + # Target project and location to make a call. Format: `projects/`project-id`/ + # locations/`location-id``. If no location is specified, a region will be chosen + # automatically. # @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest] google_cloud_documentai_v1beta2_batch_process_documents_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -159,10 +159,10 @@ module Google # Processes a single document. # @param [String] parent - # Target project and location to make a call. - # Format: `projects/`project-id`/locations/`location-id``. - # If no location is specified, a region will be chosen automatically. - # This field is only populated when used in ProcessDocument method. + # Target project and location to make a call. Format: `projects/`project-id`/ + # locations/`location-id``. If no location is specified, a region will be chosen + # automatically. This field is only populated when used in ProcessDocument + # method. # @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest] google_cloud_documentai_v1beta2_process_document_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -193,9 +193,8 @@ module Google execute_or_queue_command(command, &block) 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. + # 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 @@ -225,9 +224,8 @@ module Google execute_or_queue_command(command, &block) 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. + # 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 diff --git a/generated/google/apis/firebasehosting_v1beta1.rb b/generated/google/apis/firebasehosting_v1beta1.rb index 1ae10abd6..4a890799f 100644 --- a/generated/google/apis/firebasehosting_v1beta1.rb +++ b/generated/google/apis/firebasehosting_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://firebase.google.com/docs/hosting/ module FirebasehostingV1beta1 VERSION = 'V1beta1' - REVISION = '20200731' + REVISION = '20200811' # 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/firebasehosting_v1beta1/classes.rb b/generated/google/apis/firebasehosting_v1beta1/classes.rb index c50b17f62..ca80f65f1 100644 --- a/generated/google/apis/firebasehosting_v1beta1/classes.rb +++ b/generated/google/apis/firebasehosting_v1beta1/classes.rb @@ -324,6 +324,26 @@ module Google end end + # If provided, i18n rewrites are enabled. + class I18nConfig + include Google::Apis::Core::Hashable + + # Required. The user-supplied path where country and language specific content + # will be looked for within the public directory. + # Corresponds to the JSON property `root` + # @return [String] + attr_accessor :root + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @root = args[:root] if args.key?(:root) + end + end + # The response to listing Domains. class ListDomainsResponse include Google::Apis::Core::Hashable @@ -752,6 +772,11 @@ module Google # @return [Array] attr_accessor :headers + # If provided, i18n rewrites are enabled. + # Corresponds to the JSON property `i18n` + # @return [Google::Apis::FirebasehostingV1beta1::I18nConfig] + attr_accessor :i18n + # An array of objects (called redirect rules), where each rule specifies a URL # pattern that, if matched to the request URL path, triggers Hosting to respond # with a redirect to the specified destination path. @@ -780,6 +805,7 @@ module Google @app_association = args[:app_association] if args.key?(:app_association) @clean_urls = args[:clean_urls] if args.key?(:clean_urls) @headers = args[:headers] if args.key?(:headers) + @i18n = args[:i18n] if args.key?(:i18n) @redirects = args[:redirects] if args.key?(:redirects) @rewrites = args[:rewrites] if args.key?(:rewrites) @trailing_slash_behavior = args[:trailing_slash_behavior] if args.key?(:trailing_slash_behavior) diff --git a/generated/google/apis/firebasehosting_v1beta1/representations.rb b/generated/google/apis/firebasehosting_v1beta1/representations.rb index 325c6b59a..4b968a77e 100644 --- a/generated/google/apis/firebasehosting_v1beta1/representations.rb +++ b/generated/google/apis/firebasehosting_v1beta1/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class I18nConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListDomainsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -257,6 +263,13 @@ module Google end end + class I18nConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :root, as: 'root' + end + end + class ListDomainsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -372,6 +385,8 @@ module Google property :clean_urls, as: 'cleanUrls' collection :headers, as: 'headers', class: Google::Apis::FirebasehostingV1beta1::Header, decorator: Google::Apis::FirebasehostingV1beta1::Header::Representation + property :i18n, as: 'i18n', class: Google::Apis::FirebasehostingV1beta1::I18nConfig, decorator: Google::Apis::FirebasehostingV1beta1::I18nConfig::Representation + collection :redirects, as: 'redirects', class: Google::Apis::FirebasehostingV1beta1::Redirect, decorator: Google::Apis::FirebasehostingV1beta1::Redirect::Representation collection :rewrites, as: 'rewrites', class: Google::Apis::FirebasehostingV1beta1::Rewrite, decorator: Google::Apis::FirebasehostingV1beta1::Rewrite::Representation diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 8879cbd31..e3550477f 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/games/ module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20200720' + REVISION = '20200811' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_configuration_v1configuration/classes.rb b/generated/google/apis/games_configuration_v1configuration/classes.rb index 2388da054..fb211603e 100644 --- a/generated/google/apis/games_configuration_v1configuration/classes.rb +++ b/generated/google/apis/games_configuration_v1configuration/classes.rb @@ -57,7 +57,7 @@ module Google # @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail] attr_accessor :published - # Steps to unlock. Only applicable to incremental achievements. + # Steps to unlock. Only applicable to incremental achievements. # Corresponds to the JSON property `stepsToUnlock` # @return [Fixnum] attr_accessor :steps_to_unlock @@ -406,8 +406,7 @@ module Google attr_accessor :items # Uniquely identifies the type of this resource. Value is always the fixed - # string - # `gamesConfiguration#leaderboardConfigurationListResponse`. + # string `gamesConfiguration#leaderboardConfigurationListResponse`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/games_configuration_v1configuration/service.rb b/generated/google/apis/games_configuration_v1configuration/service.rb index 5caa77dba..8e02d9dc8 100644 --- a/generated/google/apis/games_configuration_v1configuration/service.rb +++ b/generated/google/apis/games_configuration_v1configuration/service.rb @@ -143,9 +143,9 @@ module Google # @param [String] application_id # The application ID from the Google Play developer console. # @param [Fixnum] max_results - # The maximum number of resource configurations to return in the response, - # used for paging. For any response, the actual number of resources returned - # may be less than the specified `maxResults`. + # The maximum number of resource configurations to return in the response, used + # for paging. For any response, the actual number of resources returned may be + # less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -348,9 +348,9 @@ module Google # @param [String] application_id # The application ID from the Google Play developer console. # @param [Fixnum] max_results - # The maximum number of resource configurations to return in the response, - # used for paging. For any response, the actual number of resources returned - # may be less than the specified `maxResults`. + # The maximum number of resource configurations to return in the response, used + # for paging. For any response, the actual number of resources returned may be + # less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 76b2f9007..ee58ac3e1 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -21,13 +21,12 @@ module Google # Google Play Game Management # # The Google Play Game Management API allows developers to manage resources from - # the Google - # Play Game service. + # the Google Play Game service. # # @see https://developers.google.com/games/ module GamesManagementV1management VERSION = 'V1management' - REVISION = '20200720' + REVISION = '20200811' # Create, edit, and delete your Google Play Games activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_management_v1management/classes.rb b/generated/google/apis/games_management_v1management/classes.rb index a1a458aa7..4ac561dd7 100644 --- a/generated/google/apis/games_management_v1management/classes.rb +++ b/generated/google/apis/games_management_v1management/classes.rb @@ -78,11 +78,10 @@ module Google class AchievementResetResponse include Google::Apis::Core::Hashable - # The current state of the achievement. This is the same as the initial - # state of the achievement.
                                          Possible values are:
                                            - #
                                          • "`HIDDEN`"- Achievement is hidden.
                                          • - #
                                          • "`REVEALED`" - Achievement is revealed.
                                          • - #
                                          • "`UNLOCKED`" - Achievement is unlocked.
                                          + # The current state of the achievement. This is the same as the initial state of + # the achievement. Possible values are: - "`HIDDEN`"- Achievement is hidden. - "` + # REVEALED`" - Achievement is revealed. - "`UNLOCKED`" - Achievement is unlocked. + # # Corresponds to the JSON property `currentState` # @return [String] attr_accessor :current_state @@ -157,8 +156,7 @@ module Google # @return [Google::Apis::GamesManagementV1management::GamesPlayerLevelResource] attr_accessor :current_level - # The timestamp when the player was leveled up, in millis since Unix epoch - # UTC. + # The timestamp when the player was leveled up, in millis since Unix epoch UTC. # Corresponds to the JSON property `lastLevelUpTimestampMillis` # @return [Fixnum] attr_accessor :last_level_up_timestamp_millis @@ -222,8 +220,7 @@ module Google attr_accessor :hidden_time_millis # Output only. Uniquely identifies the type of this resource. Value is always - # the fixed - # string `gamesManagement#hiddenPlayer`. + # the fixed string `gamesManagement#hiddenPlayer`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind @@ -319,9 +316,9 @@ module Google attr_accessor :name # The player ID that was used for this player the first time they signed into - # the game in question. This is only populated for calls to player.get for - # the requesting player, only if the player ID has subsequently changed, and - # only to clients that support remapping player IDs. + # the game in question. This is only populated for calls to player.get for the + # requesting player, only if the player ID has subsequently changed, and only to + # clients that support remapping player IDs. # Corresponds to the JSON property `originalPlayerId` # @return [String] attr_accessor :original_player_id @@ -365,14 +362,12 @@ module Google class Name include Google::Apis::Core::Hashable - # The family name of this player. In some places, this is known as the last - # name. + # The family name of this player. In some places, this is known as the last name. # Corresponds to the JSON property `familyName` # @return [String] attr_accessor :family_name - # The given name of this player. In some places, this is known as the first - # name. + # The given name of this player. In some places, this is known as the first name. # Corresponds to the JSON property `givenName` # @return [String] attr_accessor :given_name @@ -430,10 +425,9 @@ module Google # @return [String] attr_accessor :kind - # The time spans of the updated score.
                                          Possible values are:
                                            - #
                                          • "`ALL_TIME`" - The score is an all-time score.
                                          • - #
                                          • "`WEEKLY`" - The score is a weekly score.
                                          • - #
                                          • "`DAILY`" - The score is a daily score.
                                          + # The time spans of the updated score. Possible values are: - "`ALL_TIME`" - The + # score is an all-time score. - "`WEEKLY`" - The score is a weekly score. - "` + # DAILY`" - The score is a daily score. # Corresponds to the JSON property `resetScoreTimeSpans` # @return [Array] attr_accessor :reset_score_time_spans diff --git a/generated/google/apis/games_management_v1management/service.rb b/generated/google/apis/games_management_v1management/service.rb index 5851ce5d4..9c8071b61 100644 --- a/generated/google/apis/games_management_v1management/service.rb +++ b/generated/google/apis/games_management_v1management/service.rb @@ -23,8 +23,7 @@ module Google # Google Play Game Management # # The Google Play Game Management API allows developers to manage resources from - # the Google - # Play Game service. + # the Google Play Game service. # # @example # require 'google/apis/games_management_v1management' @@ -50,8 +49,8 @@ module Google end # Resets the achievement with the given ID for the currently authenticated - # player. This method is only accessible to whitelisted tester accounts for - # your application. + # player. This method is only accessible to whitelisted tester accounts for your + # application. # @param [String] achievement_id # The ID of the achievement used by this method. # @param [String] fields @@ -82,8 +81,8 @@ module Google end # Resets all achievements for the currently authenticated player for your - # application. This method is only accessible to whitelisted tester accounts - # for your application. + # application. This method is only accessible to whitelisted tester accounts for + # your application. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -110,8 +109,8 @@ module Google execute_or_queue_command(command, &block) end - # Resets all draft achievements for all players. This method is only - # available to user accounts for your developer console. + # Resets all draft achievements for all players. This method is only available + # to user accounts for your developer console. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -136,9 +135,9 @@ module Google execute_or_queue_command(command, &block) end - # Resets the achievement with the given ID for all players. This method is - # only available to user accounts for your developer console. Only draft - # achievements can be reset. + # Resets the achievement with the given ID for all players. This method is only + # available to user accounts for your developer console. Only draft achievements + # can be reset. # @param [String] achievement_id # The ID of the achievement used by this method. # @param [String] fields @@ -167,8 +166,8 @@ module Google end # Resets achievements with the given IDs for all players. This method is only - # available to user accounts for your developer console. Only draft - # achievements may be reset. + # available to user accounts for your developer console. Only draft achievements + # may be reset. # @param [Google::Apis::GamesManagementV1management::AchievementResetMultipleForAllRequest] achievement_reset_multiple_for_all_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -196,14 +195,14 @@ module Google execute_or_queue_command(command, &block) end - # Get the list of players hidden from the given application. This method is - # only available to user accounts for your developer console. + # Get the list of players hidden from the given application. This method is only + # available to user accounts for your developer console. # @param [String] application_id # The application ID from the Google Play developer console. # @param [Fixnum] max_results # The maximum number of player resources to return in the response, used for - # paging. For any response, the actual number of player resources returned - # may be less than the specified `maxResults`. + # paging. For any response, the actual number of player resources returned may + # be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -266,8 +265,8 @@ module Google end # Resets all player progress on all events for the currently authenticated - # player. This method is only accessible to whitelisted tester accounts for - # your application. + # player. This method is only accessible to whitelisted tester accounts for your + # application. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -292,8 +291,8 @@ module Google execute_or_queue_command(command, &block) end - # Resets all draft events for all players. This method is only available to - # user accounts for your developer console. + # Resets all draft events for all players. This method is only available to user + # accounts for your developer console. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -319,8 +318,8 @@ module Google end # Resets the event with the given ID for all players. This method is only - # available to user accounts for your developer console. Only draft events - # can be reset. + # available to user accounts for your developer console. Only draft events can + # be reset. # @param [String] event_id # The ID of the event. # @param [String] fields @@ -349,8 +348,8 @@ module Google end # Resets events with the given IDs for all players. This method is only - # available to user accounts for your developer console. Only draft events - # may be reset. + # available to user accounts for your developer console. Only draft events may + # be reset. # @param [Google::Apis::GamesManagementV1management::EventsResetMultipleForAllRequest] events_reset_multiple_for_all_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -383,8 +382,8 @@ module Google # @param [String] application_id # The application ID from the Google Play developer console. # @param [String] player_id - # A player ID. A value of `me` may be used in place of the - # authenticated player's ID. + # A player ID. A value of `me` may be used in place of the authenticated player' + # s ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -411,13 +410,13 @@ module Google execute_or_queue_command(command, &block) end - # Unhide the given player's leaderboard scores from the given application. - # This method is only available to user accounts for your developer console. + # Unhide the given player's leaderboard scores from the given application. This + # method is only available to user accounts for your developer console. # @param [String] application_id # The application ID from the Google Play developer console. # @param [String] player_id - # A player ID. A value of `me` may be used in place of the - # authenticated player's ID. + # A player ID. A value of `me` may be used in place of the authenticated player' + # s ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -476,9 +475,9 @@ module Google execute_or_queue_command(command, &block) end - # Resets all scores for all leaderboards for the currently authenticated - # players. This method is only accessible to whitelisted tester accounts for - # your application. + # Resets all scores for all leaderboards for the currently authenticated players. + # This method is only accessible to whitelisted tester accounts for your + # application. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -505,8 +504,8 @@ module Google execute_or_queue_command(command, &block) end - # Resets scores for all draft leaderboards for all players. This method is - # only available to user accounts for your developer console. + # Resets scores for all draft leaderboards for all players. This method is only + # available to user accounts for your developer console. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index b5140363c..a7ea6e10e 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -21,13 +21,12 @@ module Google # Google Play Game Services # # The Google Play games service allows developers to enhance games with social - # leaderboards, - # achievements, game state, sign-in with Google, and more. + # leaderboards, achievements, game state, sign-in with Google, and more. # # @see https://developers.google.com/games/ module GamesV1 VERSION = 'V1' - REVISION = '20200720' + REVISION = '20200811' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/games_v1/classes.rb b/generated/google/apis/games_v1/classes.rb index 973459f89..c2b0952e7 100644 --- a/generated/google/apis/games_v1/classes.rb +++ b/generated/google/apis/games_v1/classes.rb @@ -56,15 +56,15 @@ module Google # @return [String] attr_accessor :initial_state - # Indicates whether the revealed icon image being returned is a default - # image, or is provided by the game. + # Indicates whether the revealed icon image being returned is a default image, + # or is provided by the game. # Corresponds to the JSON property `isRevealedIconUrlDefault` # @return [Boolean] attr_accessor :is_revealed_icon_url_default alias_method :is_revealed_icon_url_default?, :is_revealed_icon_url_default - # Indicates whether the unlocked icon image being returned is a default - # image, or is game-provided. + # Indicates whether the unlocked icon image being returned is a default image, + # or is game-provided. # Corresponds to the JSON property `isUnlockedIconUrlDefault` # @return [Boolean] attr_accessor :is_unlocked_icon_url_default @@ -165,8 +165,8 @@ module Google # @return [String] attr_accessor :kind - # Whether the current steps for the achievement has reached the number of - # steps required to unlock. + # Whether the current steps for the achievement has reached the number of steps + # required to unlock. # Corresponds to the JSON property `newlyUnlocked` # @return [Boolean] attr_accessor :newly_unlocked @@ -226,8 +226,8 @@ module Google # @return [String] attr_accessor :kind - # Whether the current steps for the achievement has reached the number of - # steps required to unlock. + # Whether the current steps for the achievement has reached the number of steps + # required to unlock. # Corresponds to the JSON property `newlyUnlocked` # @return [Boolean] attr_accessor :newly_unlocked @@ -334,8 +334,7 @@ module Google # @return [String] attr_accessor :achievement_id - # The payload to request to increment an - # achievement. + # The payload to request to increment an achievement. # Corresponds to the JSON property `incrementPayload` # @return [Google::Apis::GamesV1::GamesAchievementIncrement] attr_accessor :increment_payload @@ -346,8 +345,7 @@ module Google # @return [String] attr_accessor :kind - # The payload to request to increment an - # achievement. + # The payload to request to increment an achievement. # Corresponds to the JSON property `setStepsAtLeastPayload` # @return [Google::Apis::GamesV1::GamesAchievementSetStepsAtLeast] attr_accessor :set_steps_at_least_payload @@ -733,8 +731,8 @@ module Google # @return [String] attr_accessor :image_url - # Indicates whether the icon image being returned is a default image, or is - # game-provided. + # Indicates whether the icon image being returned is a default image, or is game- + # provided. # Corresponds to the JSON property `isDefaultImageUrl` # @return [Boolean] attr_accessor :is_default_image_url @@ -810,14 +808,13 @@ module Google # @return [String] attr_accessor :kind - # The time when this update period ends, in millis, since 1970 UTC (Unix - # Epoch). + # The time when this update period ends, in millis, since 1970 UTC (Unix Epoch). # Corresponds to the JSON property `periodEndMillis` # @return [Fixnum] attr_accessor :period_end_millis - # The time when this update period begins, in millis, since 1970 UTC (Unix - # Epoch). + # The time when this update period begins, in millis, since 1970 UTC (Unix Epoch) + # . # Corresponds to the JSON property `periodStartMillis` # @return [Fixnum] attr_accessor :period_start_millis @@ -902,8 +899,8 @@ module Google class EventRecordRequest include Google::Apis::Core::Hashable - # The current time when this update was sent, in milliseconds, since 1970 UTC - # (Unix Epoch). + # The current time when this update was sent, in milliseconds, since 1970 UTC ( + # Unix Epoch). # Corresponds to the JSON property `currentTimeMillis` # @return [Fixnum] attr_accessor :current_time_millis @@ -1007,8 +1004,7 @@ module Google end end - # The payload to request to increment an - # achievement. + # The payload to request to increment an achievement. class GamesAchievementIncrement include Google::Apis::Core::Hashable @@ -1040,8 +1036,7 @@ module Google end end - # The payload to request to increment an - # achievement. + # The payload to request to increment an achievement. class GamesAchievementSetStepsAtLeast include Google::Apis::Core::Hashable @@ -1330,8 +1325,8 @@ module Google # @return [String] attr_accessor :id - # Indicates whether the icon image being returned is a default image, or is - # game-provided. + # Indicates whether the icon image being returned is a default image, or is game- + # provided. # Corresponds to the JSON property `isIconUrlDefault` # @return [Boolean] attr_accessor :is_icon_url_default @@ -1398,8 +1393,8 @@ module Google # @return [Fixnum] attr_accessor :score_rank - # Additional information about the score. Values must contain no more than - # 64 URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about the score. Values must contain no more than 64 + # URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag @@ -1568,8 +1563,8 @@ module Google class MetagameConfig include Google::Apis::Core::Hashable - # Current version of the metagame configuration data. When this data is - # updated, the version number will be increased by one. + # Current version of the metagame configuration data. When this data is updated, + # the version number will be increased by one. # Corresponds to the JSON property `currentVersion` # @return [Fixnum] attr_accessor :current_version @@ -1644,9 +1639,9 @@ module Google attr_accessor :name # The player ID that was used for this player the first time they signed into - # the game in question. This is only populated for calls to player.get for - # the requesting player, only if the player ID has subsequently changed, and - # only to clients that support remapping player IDs. + # the game in question. This is only populated for calls to player.get for the + # requesting player, only if the player ID has subsequently changed, and only to + # clients that support remapping player IDs. # Corresponds to the JSON property `originalPlayerId` # @return [String] attr_accessor :original_player_id @@ -1690,14 +1685,12 @@ module Google class Name include Google::Apis::Core::Hashable - # The family name of this player. In some places, this is known as the last - # name. + # The family name of this player. In some places, this is known as the last name. # Corresponds to the JSON property `familyName` # @return [String] attr_accessor :family_name - # The given name of this player. In some places, this is known as the first - # name. + # The given name of this player. In some places, this is known as the first name. # Corresponds to the JSON property `givenName` # @return [String] attr_accessor :given_name @@ -1729,8 +1722,8 @@ module Google attr_accessor :current_steps # Experience points earned for the achievement. This field is absent for - # achievements that have not yet been unlocked and 0 for achievements that - # have been unlocked by testers but that are unpublished. + # achievements that have not yet been unlocked and 0 for achievements that have + # been unlocked by testers but that are unpublished. # Corresponds to the JSON property `experiencePoints` # @return [Fixnum] attr_accessor :experience_points @@ -1902,8 +1895,7 @@ module Google # @return [String] attr_accessor :kind - # The timestamp when the player was leveled up, in millis since Unix epoch - # UTC. + # The timestamp when the player was leveled up, in millis since Unix epoch UTC. # Corresponds to the JSON property `lastLevelUpTimestampMillis` # @return [Fixnum] attr_accessor :last_level_up_timestamp_millis @@ -1931,6 +1923,11 @@ module Google class PlayerLeaderboardScore include Google::Apis::Core::Hashable + # A score rank in a leaderboard. + # Corresponds to the JSON property `friendsRank` + # @return [Google::Apis::GamesV1::LeaderboardScoreRank] + attr_accessor :friends_rank + # Uniquely identifies the type of this resource. Value is always the fixed # string `games#playerLeaderboardScore`. # Corresponds to the JSON property `kind` @@ -1952,8 +1949,8 @@ module Google # @return [String] attr_accessor :score_string - # Additional information about the score. Values must contain no more than - # 64 URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about the score. Values must contain no more than 64 + # URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag @@ -1985,6 +1982,7 @@ module Google # Update properties of this object def update!(**args) + @friends_rank = args[:friends_rank] if args.key?(:friends_rank) @kind = args[:kind] if args.key?(:kind) @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) @public_rank = args[:public_rank] if args.key?(:public_rank) @@ -2125,8 +2123,8 @@ module Google # @return [Fixnum] attr_accessor :score - # Additional information about this score. Values will contain no more than - # 64 URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about this score. Values will contain no more than 64 + # URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag @@ -2180,8 +2178,8 @@ module Google class PlayerScoreResponse include Google::Apis::Core::Hashable - # The time spans where the submitted score is better than the existing score - # for that time span. + # The time spans where the submitted score is better than the existing score for + # that time span. # Corresponds to the JSON property `beatenScoreTimeSpans` # @return [Array] attr_accessor :beaten_score_time_spans @@ -2202,16 +2200,15 @@ module Google # @return [String] attr_accessor :leaderboard_id - # Additional information about this score. Values will contain no more than - # 64 URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about this score. Values will contain no more than 64 + # URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag - # The scores in time spans that have not been beaten. As an example, the - # submitted score may be better than the - # player's `DAILY` score, but not better than the player's scores - # for the `WEEKLY` or `ALL_TIME` time spans. + # The scores in time spans that have not been beaten. As an example, the + # submitted score may be better than the player's `DAILY` score, but not better + # than the player's scores for the `WEEKLY` or `ALL_TIME` time spans. # Corresponds to the JSON property `unbeatenScores` # @return [Array] attr_accessor :unbeaten_scores @@ -2343,14 +2340,14 @@ module Google # @return [Fixnum] attr_accessor :score - # Additional information about this score. Values will contain no more than - # 64 URI-safe characters as defined by section 2.3 of RFC 3986. + # Additional information about this score. Values will contain no more than 64 + # URI-safe characters as defined by section 2.3 of RFC 3986. # Corresponds to the JSON property `scoreTag` # @return [String] attr_accessor :score_tag - # Signature Values will contain URI-safe characters as defined by section 2.3 - # of RFC 3986. + # Signature Values will contain URI-safe characters as defined by section 2.3 of + # RFC 3986. # Corresponds to the JSON property `signature` # @return [String] attr_accessor :signature @@ -2383,9 +2380,8 @@ module Google # @return [String] attr_accessor :description - # The ID of the file underlying this snapshot in the Drive API. Only present - # if the snapshot is a view on a Drive file and the file is owned by the - # caller. + # The ID of the file underlying this snapshot in the Drive API. Only present if + # the snapshot is a view on a Drive file and the file is owned by the caller. # Corresponds to the JSON property `driveId` # @return [String] attr_accessor :drive_id @@ -2473,8 +2469,8 @@ module Google # @return [String] attr_accessor :mime_type - # The URL of the image. This URL may be invalidated at any time and should - # not be cached. + # The URL of the image. This URL may be invalidated at any time and should not + # be cached. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -2513,8 +2509,8 @@ module Google # @return [String] attr_accessor :kind - # Token corresponding to the next page of results. If there are no more - # results, the token is omitted. + # Token corresponding to the next page of results. If there are no more results, + # the token is omitted. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -2541,15 +2537,14 @@ module Google # @return [Float] attr_accessor :avg_session_length_minutes - # The probability of the player not returning to play the game in the next - # day. E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough - # information. + # The probability of the player not returning to play the game in the next day. + # E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough information. # Corresponds to the JSON property `churn_probability` # @return [Float] attr_accessor :churn_probability - # Number of days since the player last played this game. E.g., 0, 1, 5, 10, - # ... . Not populated if there is not enough information. + # Number of days since the player last played this game. E.g., 0, 1, 5, 10, ... . + # Not populated if there is not enough information. # Corresponds to the JSON property `days_since_last_played` # @return [Fixnum] attr_accessor :days_since_last_played @@ -2567,44 +2562,42 @@ module Google # @return [String] attr_accessor :kind - # Number of in-app purchases made by the player in this game. E.g., 0, 1, 5, - # 10, ... . Not populated if there is not enough information. + # Number of in-app purchases made by the player in this game. E.g., 0, 1, 5, 10, + # ... . Not populated if there is not enough information. # Corresponds to the JSON property `num_purchases` # @return [Fixnum] attr_accessor :num_purchases # The approximate number of sessions of the player within the last 28 days, - # where a session begins when the player is connected to Play Games Services - # and ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated - # if there is not enough information. + # where a session begins when the player is connected to Play Games Services and + # ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated if + # there is not enough information. # Corresponds to the JSON property `num_sessions` # @return [Fixnum] attr_accessor :num_sessions - # The approximation of the sessions percentile of the player within the last - # 30 days, where a session begins when the player is connected to Play Games + # The approximation of the sessions percentile of the player within the last 30 + # days, where a session begins when the player is connected to Play Games # Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not # populated if there is not enough information. # Corresponds to the JSON property `num_sessions_percentile` # @return [Float] attr_accessor :num_sessions_percentile - # The approximate spend percentile of the player in this game. E.g., 0, 0.25, - # 0.5, 0.75. Not populated if there is not enough information. + # The approximate spend percentile of the player in this game. E.g., 0, 0.25, 0. + # 5, 0.75. Not populated if there is not enough information. # Corresponds to the JSON property `spend_percentile` # @return [Float] attr_accessor :spend_percentile - # The probability of the player going to spend the game in the next seven - # days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough - # information. + # The probability of the player going to spend the game in the next seven days. + # E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough information. # Corresponds to the JSON property `spend_probability` # @return [Float] attr_accessor :spend_probability # The predicted amount of money that the player going to spend in the next 28 - # days. E.g., 1, 30, 60, ... . Not populated if there is not enough - # information. + # days. E.g., 1, 30, 60, ... . Not populated if there is not enough information. # Corresponds to the JSON property `total_spend_next_28_days` # @return [Float] attr_accessor :total_spend_next_28_days diff --git a/generated/google/apis/games_v1/representations.rb b/generated/google/apis/games_v1/representations.rb index 75ecd3888..d5b5cf1c2 100644 --- a/generated/google/apis/games_v1/representations.rb +++ b/generated/google/apis/games_v1/representations.rb @@ -892,6 +892,8 @@ module Google class PlayerLeaderboardScore # @private class Representation < Google::Apis::Core::JsonRepresentation + property :friends_rank, as: 'friendsRank', class: Google::Apis::GamesV1::LeaderboardScoreRank, decorator: Google::Apis::GamesV1::LeaderboardScoreRank::Representation + property :kind, as: 'kind' property :leaderboard_id, as: 'leaderboard_id' property :public_rank, as: 'publicRank', class: Google::Apis::GamesV1::LeaderboardScoreRank, decorator: Google::Apis::GamesV1::LeaderboardScoreRank::Representation diff --git a/generated/google/apis/games_v1/service.rb b/generated/google/apis/games_v1/service.rb index 21c678076..202346b34 100644 --- a/generated/google/apis/games_v1/service.rb +++ b/generated/google/apis/games_v1/service.rb @@ -23,8 +23,7 @@ module Google # Google Play Game Services # # The Google Play games service allows developers to enhance games with social - # leaderboards, - # achievements, game state, sign-in with Google, and more. + # leaderboards, achievements, game state, sign-in with Google, and more. # # @example # require 'google/apis/games_v1' @@ -94,9 +93,9 @@ module Google # @param [Fixnum] steps_to_increment # The number of steps to increment. # @param [Fixnum] request_id - # A randomly generated numeric ID for each request specified by the caller. - # This number is used at the server to ensure that the request is handled - # correctly across retries. + # A randomly generated numeric ID for each request specified by the caller. This + # number is used at the server to ensure that the request is handled correctly + # across retries. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -126,11 +125,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists the progress for all your application's achievements for the - # currently authenticated player. + # Lists the progress for all your application's achievements for the currently + # authenticated player. # @param [String] player_id - # A player ID. A value of `me` may be used in place of the - # authenticated player's ID. + # A player ID. A value of `me` may be used in place of the authenticated player' + # s ID. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results @@ -140,8 +139,8 @@ module Google # @param [String] page_token # The token returned by the previous request. # @param [String] state - # Tells the server to return only achievements with the specified state. If - # this parameter isn't specified, all achievements are returned. + # Tells the server to return only achievements with the specified state. If this + # parameter isn't specified, all achievements are returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -173,8 +172,8 @@ module Google execute_or_queue_command(command, &block) end - # Sets the state of the achievement with the given ID to - # `REVEALED` for the currently authenticated player. + # Sets the state of the achievement with the given ID to `REVEALED` for the + # currently authenticated player. # @param [String] achievement_id # The ID of the achievement used by this method. # @param [String] fields @@ -205,9 +204,9 @@ module Google end # Sets the steps for the currently authenticated player towards unlocking an - # achievement. If the steps parameter is less than the current number of - # steps that the player already gained for the achievement, the achievement - # is not modified. + # achievement. If the steps parameter is less than the current number of steps + # that the player already gained for the achievement, the achievement is not + # modified. # @param [String] achievement_id # The ID of the achievement used by this method. # @param [Fixnum] steps @@ -300,10 +299,9 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the metadata of the application with the given ID. If the - # requested application is not available for the specified - # `platformType`, the returned response will not include any - # instance data. + # Retrieves the metadata of the application with the given ID. If the requested + # application is not available for the specified `platformType`, the returned + # response will not include any instance data. # @param [String] application_id # The application ID from the Google Play developer console. # @param [String] language @@ -339,8 +337,7 @@ module Google execute_or_queue_command(command, &block) end - # Indicate that the currently authenticated user is playing your - # application. + # Indicate that the currently authenticated user is playing your application. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -365,8 +362,8 @@ module Google execute_or_queue_command(command, &block) end - # Verifies the auth token provided with this request is for the application - # with the specified ID, and returns the ID of the player it was granted for. + # Verifies the auth token provided with this request is for the application with + # the specified ID, and returns the ID of the player it was granted for. # @param [String] application_id # The application ID from the Google Play developer console. # @param [String] fields @@ -396,14 +393,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns a list showing the current progress on events in this application - # for the currently authenticated user. + # Returns a list showing the current progress on events in this application for + # the currently authenticated user. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of events to return in the response, used for paging. - # For any response, the actual number of events to return may be less than - # the specified maxResults. + # The maximum number of events to return in the response, used for paging. For + # any response, the actual number of events to return may be less than the + # specified maxResults. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -440,8 +437,8 @@ module Google # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results # The maximum number of event definitions to return in the response, used for - # paging. For any response, the actual number of event definitions to return - # may be less than the specified `maxResults`. + # paging. For any response, the actual number of event definitions to return may + # be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -473,8 +470,8 @@ module Google execute_or_queue_command(command, &block) end - # Records a batch of changes to the number of times events have occurred for - # the currently authenticated user of this application. + # Records a batch of changes to the number of times events have occurred for the + # currently authenticated user of this application. # @param [Google::Apis::GamesV1::EventRecordRequest] event_record_request_object # @param [String] language # The preferred language to use for strings returned by this method. @@ -544,9 +541,9 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboards to return in the response. For any - # response, the actual number of leaderboards returned may be less than the - # specified `maxResults`. + # The maximum number of leaderboards to return in the response. For any response, + # the actual number of leaderboards returned may be less than the specified ` + # maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -605,19 +602,19 @@ module Google execute_or_queue_command(command, &block) end - # List play data aggregated per category for the player corresponding to - # `playerId`. + # List play data aggregated per category for the player corresponding to ` + # playerId`. # @param [String] player_id - # A player ID. A value of `me` may be used in place of the - # authenticated player's ID. + # A player ID. A value of `me` may be used in place of the authenticated player' + # s ID. # @param [String] collection # The collection of categories for which data will be returned. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of category resources to return in the response, used - # for paging. For any response, the actual number of category resources - # returned may be less than the specified `maxResults`. + # The maximum number of category resources to return in the response, used for + # paging. For any response, the actual number of category resources returned may + # be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -651,11 +648,11 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves the Player resource with the given ID. To retrieve the player - # for the currently authenticated user, set `playerId` to `me`. + # Retrieves the Player resource with the given ID. To retrieve the player for + # the currently authenticated user, set `playerId` to `me`. # @param [String] player_id - # A player ID. A value of `me` may be used in place of the - # authenticated player's ID. + # A player ID. A value of `me` may be used in place of the authenticated player' + # s ID. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] fields @@ -693,8 +690,8 @@ module Google # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results # The maximum number of player resources to return in the response, used for - # paging. For any response, the actual number of player resources returned - # may be less than the specified `maxResults`. + # paging. For any response, the actual number of player resources returned may + # be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -729,11 +726,10 @@ module Google # Checks whether the games client is out of date. # @param [String] client_revision - # The revision of the client SDK used by your application. Format: - # `[PLATFORM_TYPE]:[VERSION_NUMBER]`. Possible values of `PLATFORM_TYPE` are: - # * `ANDROID` - Client is running the Android SDK. - # * `IOS` - Client is running the iOS SDK. - # * `WEB_APP` - Client is running as a Web App. + # The revision of the client SDK used by your application. Format: `[ + # PLATFORM_TYPE]:[VERSION_NUMBER]`. Possible values of `PLATFORM_TYPE` are: * ` + # ANDROID` - Client is running the Android SDK. * `IOS` - Client is running the + # iOS SDK. * `WEB_APP` - Client is running as a Web App. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -762,16 +758,15 @@ module Google end # Get high scores, and optionally ranks, in leaderboards for the currently - # authenticated player. For a specific time span, `leaderboardId` - # can be set to `ALL` to retrieve data for all leaderboards in a - # given time span. `NOTE: You cannot ask for 'ALL' leaderboards and - # 'ALL' timeSpans in the same request; only one parameter may be set to - # 'ALL'. + # authenticated player. For a specific time span, `leaderboardId` can be set to ` + # ALL` to retrieve data for all leaderboards in a given time span. `NOTE: You + # cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; + # only one parameter may be set to 'ALL'. # @param [String] player_id - # A player ID. A value of `me` may be used in place of the - # authenticated player's ID. + # A player ID. A value of `me` may be used in place of the authenticated player' + # s ID. # @param [String] leaderboard_id - # The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all + # The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all # leaderboards for this application. # @param [String] time_span # The time span for the scores and ranks you're requesting. @@ -781,9 +776,9 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboard scores to return in the response. For - # any response, the actual number of leaderboard scores returned may be less - # than the specified `maxResults`. + # The maximum number of leaderboard scores to return in the response. For any + # response, the actual number of leaderboard scores returned may be less than + # the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -829,9 +824,9 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboard scores to return in the response. For - # any response, the actual number of leaderboard scores returned may be less - # than the specified `maxResults`. + # The maximum number of leaderboard scores to return in the response. For any + # response, the actual number of leaderboard scores returned may be less than + # the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -876,16 +871,16 @@ module Google # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of leaderboard scores to return in the response. For - # any response, the actual number of leaderboard scores returned may be less - # than the specified `maxResults`. + # The maximum number of leaderboard scores to return in the response. For any + # response, the actual number of leaderboard scores returned may be less than + # the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [Fixnum] results_above - # The preferred number of scores to return above the player's score. More - # scores may be returned if the player is at the bottom of the leaderboard; - # fewer may be returned if the player is at the top. Must be less than or - # equal to maxResults. + # The preferred number of scores to return above the player's score. More scores + # may be returned if the player is at the bottom of the leaderboard; fewer may + # be returned if the player is at the top. Must be less than or equal to + # maxResults. # @param [Boolean] return_top_if_absent # True if the top scores should be returned when the player is not in the # leaderboard. Defaults to true. @@ -928,17 +923,16 @@ module Google # The ID of the leaderboard. # @param [Fixnum] score # The score you're submitting. The submitted score is ignored if it is worse - # than a previously submitted score, where worse depends on the leaderboard - # sort order. The meaning of the score value depends on the leaderboard - # format type. For fixed-point, the score represents the raw value. For - # time, the score represents elapsed time in milliseconds. For currency, the - # score represents a value in micro units. + # than a previously submitted score, where worse depends on the leaderboard sort + # order. The meaning of the score value depends on the leaderboard format type. + # For fixed-point, the score represents the raw value. For time, the score + # represents elapsed time in milliseconds. For currency, the score represents a + # value in micro units. # @param [String] language # The preferred language to use for strings returned by this method. # @param [String] score_tag - # Additional information about the score you're submitting. Values must - # contain no more than 64 URI-safe characters as defined by section 2.3 of - # RFC 3986. + # Additional information about the score you're submitting. Values must contain + # no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1038,14 +1032,14 @@ module Google # Retrieves a list of snapshots created by your application for the player # corresponding to the player ID. # @param [String] player_id - # A player ID. A value of `me` may be used in place of the authenticated - # player's ID. + # A player ID. A value of `me` may be used in place of the authenticated player' + # s ID. # @param [String] language # The preferred language to use for strings returned by this method. # @param [Fixnum] max_results - # The maximum number of snapshot resources to return in the response, used - # for paging. For any response, the actual number of snapshot resources - # returned may be less than the specified `maxResults`. + # The maximum number of snapshot resources to return in the response, used for + # paging. For any response, the actual number of snapshot resources returned may + # be less than the specified `maxResults`. # @param [String] page_token # The token returned by the previous request. # @param [String] fields @@ -1078,8 +1072,8 @@ module Google execute_or_queue_command(command, &block) end - # Returns engagement and spend statistics in this application for the - # currently authenticated user. + # Returns engagement and spend statistics in this application for the currently + # authenticated user. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/gmail_v1.rb b/generated/google/apis/gmail_v1.rb index 09b2eec36..24e6a88e2 100644 --- a/generated/google/apis/gmail_v1.rb +++ b/generated/google/apis/gmail_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/gmail/api/ module GmailV1 VERSION = 'V1' - REVISION = '20200803' + REVISION = '20200810' # Read, compose, send, and permanently delete all your email from Gmail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index c4fb73f60..f31c436f8 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -514,8 +514,7 @@ module Google include Google::Apis::Core::Hashable # The color to assign to the label. Color is only available for labels that have - # their `type` set to `user`. @mutable gmail.users.labels.create gmail.users. - # labels.update + # their `type` set to `user`. # Corresponds to the JSON property `color` # @return [Google::Apis::GmailV1::LabelColor] attr_accessor :color @@ -525,14 +524,13 @@ module Google # @return [String] attr_accessor :id - # The visibility of the label in the label list in the Gmail web interface. @ - # mutable gmail.users.labels.create gmail.users.labels.update + # The visibility of the label in the label list in the Gmail web interface. # Corresponds to the JSON property `labelListVisibility` # @return [String] attr_accessor :label_list_visibility # The visibility of messages with this label in the message list in the Gmail - # web interface. @mutable gmail.users.labels.create gmail.users.labels.update + # web interface. # Corresponds to the JSON property `messageListVisibility` # @return [String] attr_accessor :message_list_visibility @@ -547,8 +545,7 @@ module Google # @return [Fixnum] attr_accessor :messages_unread - # The display name of the label. @mutable gmail.users.labels.create gmail.users. - # labels.update + # The display name of the label. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -600,40 +597,39 @@ module Google # The background color represented as hex string #RRGGBB (ex #000000). This # field is required in order to set the color of a label. Only the following - # predefined set of color values are allowed: # 000000, #434343, #666666, # - # 999999, #cccccc, #efefef, #f3f3f3, #ffffff, # fb4c2f, #ffad47, #fad165, # - # 16a766, #43d692, #4a86e8, #a479e2, #f691b3, # f6c5be, #ffe6c7, #fef1d1, # - # b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, # efa093, #ffd6a2, #fce8b3, # - # 89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, # e66550, #ffbc6b, #fcda83, # - # 44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, # cc3a21, #eaa041, #f2c960, # - # 149e60, #3dc789, #3c78d8, #8e63ce, #e07798, # ac2b16, #cf8933, #d5ae49, # - # 0b804b, #2a9c68, #285bac, #653e9b, #b65775, # 822111, #a46a21, #aa8831, # - # 076239, #1a764d, #1c4587, #41236d, #83334c # 464646, #e7e7e7, #0d3472, #b6cff5, - # #0d3b44, #98d7e4, #3d188e, #e3d7ff, # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, # - # 7a2e0b, #ffc8af, #7a4706, #ffdeb5, # 594c05, #fbe983, #684e07, #fdedc1, # - # 0b4f30, #b3efd3, #04502e, #a2dcc1, # c2c2c2, #4986e7, #2da2bb, #b99aff, # - # 994a64, #f691b2, #ff7537, #ffad46, # 662e37, #ebdbde, #cca6ac, #094228, # - # 42d692, #16a765 @mutable gmail.users.labels.create gmail.users.labels.update + # predefined set of color values are allowed: \#000000, #434343, #666666, # + # 999999, #cccccc, #efefef, #f3f3f3, #ffffff, \#fb4c2f, #ffad47, #fad165, # + # 16a766, #43d692, #4a86e8, #a479e2, #f691b3, \#f6c5be, #ffe6c7, #fef1d1, # + # b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, \#efa093, #ffd6a2, #fce8b3, # + # 89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, \#e66550, #ffbc6b, #fcda83, # + # 44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, \#cc3a21, #eaa041, #f2c960, # + # 149e60, #3dc789, #3c78d8, #8e63ce, #e07798, \#ac2b16, #cf8933, #d5ae49, # + # 0b804b, #2a9c68, #285bac, #653e9b, #b65775, \#822111, #a46a21, #aa8831, # + # 076239, #1a764d, #1c4587, #41236d, #83334c \#464646, #e7e7e7, #0d3472, #b6cff5, + # #0d3b44, #98d7e4, #3d188e, #e3d7ff, \#711a36, #fbd3e0, #8a1c0a, #f2b2a8, # + # 7a2e0b, #ffc8af, #7a4706, #ffdeb5, \#594c05, #fbe983, #684e07, #fdedc1, # + # 0b4f30, #b3efd3, #04502e, #a2dcc1, \#c2c2c2, #4986e7, #2da2bb, #b99aff, # + # 994a64, #f691b2, #ff7537, #ffad46, \#662e37, #ebdbde, #cca6ac, #094228, # + # 42d692, #16a765 # Corresponds to the JSON property `backgroundColor` # @return [String] attr_accessor :background_color # The text color of the label, represented as hex string. This field is required # in order to set the color of a label. Only the following predefined set of - # color values are allowed: # 000000, #434343, #666666, #999999, #cccccc, # - # efefef, #f3f3f3, #ffffff, # fb4c2f, #ffad47, #fad165, #16a766, #43d692, # - # 4a86e8, #a479e2, #f691b3, # f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, # - # c9daf8, #e4d7f5, #fcdee8, # efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, # - # a4c2f4, #d0bcf1, #fbc8d9, # e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, # - # 6d9eeb, #b694e8, #f7a7c0, # cc3a21, #eaa041, #f2c960, #149e60, #3dc789, # - # 3c78d8, #8e63ce, #e07798, # ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, # - # 285bac, #653e9b, #b65775, # 822111, #a46a21, #aa8831, #076239, #1a764d, # - # 1c4587, #41236d, #83334c # 464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, - # #3d188e, #e3d7ff, # 711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, # - # 7a4706, #ffdeb5, # 594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, # - # 04502e, #a2dcc1, # c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, # - # ff7537, #ffad46, # 662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765 @ - # mutable gmail.users.labels.create gmail.users.labels.update + # color values are allowed: \#000000, #434343, #666666, #999999, #cccccc, # + # efefef, #f3f3f3, #ffffff, \#fb4c2f, #ffad47, #fad165, #16a766, #43d692, # + # 4a86e8, #a479e2, #f691b3, \#f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, # + # c9daf8, #e4d7f5, #fcdee8, \#efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, # + # a4c2f4, #d0bcf1, #fbc8d9, \#e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, # + # 6d9eeb, #b694e8, #f7a7c0, \#cc3a21, #eaa041, #f2c960, #149e60, #3dc789, # + # 3c78d8, #8e63ce, #e07798, \#ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, # + # 285bac, #653e9b, #b65775, \#822111, #a46a21, #aa8831, #076239, #1a764d, # + # 1c4587, #41236d, #83334c \#464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, + # #3d188e, #e3d7ff, \#711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, # + # 7a4706, #ffdeb5, \#594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, # + # 04502e, #a2dcc1, \#c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, # + # ff7537, #ffad46, \#662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765 # Corresponds to the JSON property `textColor` # @return [String] attr_accessor :text_color @@ -682,7 +678,8 @@ module Google class ListDelegatesResponse include Google::Apis::Core::Hashable - # List of the user's delegates (with any verification status). + # List of the user's delegates (with any verification status). If an account + # doesn't have delegates, this field doesn't appear. # Corresponds to the JSON property `delegates` # @return [Array] attr_accessor :delegates @@ -948,8 +945,7 @@ module Google # @return [Fixnum] attr_accessor :internal_date - # List of IDs of labels applied to this message. @mutable gmail.users.messages. - # insert gmail.users.messages.modify + # List of IDs of labels applied to this message. # Corresponds to the JSON property `labelIds` # @return [Array] attr_accessor :label_ids @@ -961,8 +957,7 @@ module Google # The entire email message in an RFC 2822 formatted and base64url encoded string. # Returned in `messages.get` and `drafts.get` responses when the `format=RAW` - # parameter is supplied. @mutable gmail.users.messages.insert gmail.users. - # messages.send @mutable gmail.users.drafts.create gmail.users.drafts.update + # parameter is supplied. # Corresponds to the JSON property `raw` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -982,9 +977,8 @@ module Google # thread, the following criteria must be met: 1. The requested `threadId` must # be specified on the `Message` or `Draft.Message` you supply with your request. # 2. The `References` and `In-Reply-To` headers must be set in compliance with - # the RFC 2822 standard. 3. The `Subject` headers must match. @mutable gmail. - # users.messages.insert gmail.users.messages.send @mutable gmail.users.drafts. - # create gmail.users.drafts.update + # the [RFC 2822](https://tools.ietf.org/html/rfc2822) standard. 3. The `Subject` + # headers must match. # Corresponds to the JSON property `threadId` # @return [String] attr_accessor :thread_id diff --git a/generated/google/apis/gmailpostmastertools_v1beta1.rb b/generated/google/apis/gmailpostmastertools_v1beta1.rb index 33bb3b098..10921b088 100644 --- a/generated/google/apis/gmailpostmastertools_v1beta1.rb +++ b/generated/google/apis/gmailpostmastertools_v1beta1.rb @@ -18,16 +18,16 @@ require 'google/apis/gmailpostmastertools_v1beta1/representations.rb' module Google module Apis - # Gmail Postmaster Tools API + # Postmaster Tools API # - # The Gmail Postmaster API is a RESTful API that provides programmatic access to + # The Postmaster Tools API is a RESTful API that provides programmatic access to # email traffic metrics (like spam reports, delivery errors etc) otherwise # available through the Gmail Postmaster Tools UI currently. # # @see https://developers.google.com/gmail/postmaster module GmailpostmastertoolsV1beta1 VERSION = 'V1beta1' - REVISION = '20200801' + REVISION = '20200811' # See email traffic metrics for the domains you have registered in Gmail Postmaster Tools AUTH_POSTMASTER_READONLY = 'https://www.googleapis.com/auth/postmaster.readonly' diff --git a/generated/google/apis/gmailpostmastertools_v1beta1/service.rb b/generated/google/apis/gmailpostmastertools_v1beta1/service.rb index 995969fac..28008e429 100644 --- a/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +++ b/generated/google/apis/gmailpostmastertools_v1beta1/service.rb @@ -20,9 +20,9 @@ require 'google/apis/errors' module Google module Apis module GmailpostmastertoolsV1beta1 - # Gmail Postmaster Tools API + # Postmaster Tools API # - # The Gmail Postmaster API is a RESTful API that provides programmatic access to + # The Postmaster Tools API is a RESTful API that provides programmatic access to # email traffic metrics (like spam reports, delivery errors etc) otherwise # available through the Gmail Postmaster Tools UI currently. # diff --git a/generated/google/apis/iap_v1.rb b/generated/google/apis/iap_v1.rb index 0ddea4456..af0a35d1e 100644 --- a/generated/google/apis/iap_v1.rb +++ b/generated/google/apis/iap_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1 VERSION = 'V1' - REVISION = '20200511' + REVISION = '20200807' # 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/iap_v1/classes.rb b/generated/google/apis/iap_v1/classes.rb index 4c6049fd8..0f496206e 100644 --- a/generated/google/apis/iap_v1/classes.rb +++ b/generated/google/apis/iap_v1/classes.rb @@ -22,10 +22,10 @@ module Google module Apis module IapV1 - # Custom content configuration for access denied page. - # IAP allows customers to define a custom URI to use as the error page when - # access is denied to users. If IAP prevents access to this page, the default - # IAP error page will be displayed instead. + # Custom content configuration for access denied page. IAP allows customers to + # define a custom URI to use as the error page when access is denied to users. + # If IAP prevents access to this page, the default IAP error page will be + # displayed instead. class AccessDeniedPageSettings include Google::Apis::Core::Hashable @@ -65,11 +65,11 @@ module Google # @return [Google::Apis::IapV1::OAuthSettings] attr_accessor :oauth_settings - # PolicyDelegationConfig allows google-internal teams to use IAP for apps - # hosted in a tenant project. Using these settings, the app can delegate - # permission check to happen against the linked customer project. - # This is only ever supposed to be used by google internal teams, hence the - # restriction on the proto. + # PolicyDelegationConfig allows google-internal teams to use IAP for apps hosted + # in a tenant project. Using these settings, the app can delegate permission + # check to happen against the linked customer project. This is only ever + # supposed to be used by google internal teams, hence the restriction on the + # proto. # Corresponds to the JSON property `policyDelegationSettings` # @return [Google::Apis::IapV1::PolicyDelegationSettings] attr_accessor :policy_delegation_settings @@ -91,10 +91,10 @@ module Google class ApplicationSettings include Google::Apis::Core::Hashable - # Custom content configuration for access denied page. - # IAP allows customers to define a custom URI to use as the error page when - # access is denied to users. If IAP prevents access to this page, the default - # IAP error page will be displayed instead. + # Custom content configuration for access denied page. IAP allows customers to + # define a custom URI to use as the error page when access is denied to users. + # If IAP prevents access to this page, the default IAP error page will be + # displayed instead. # Corresponds to the JSON property `accessDeniedPageSettings` # @return [Google::Apis::IapV1::AccessDeniedPageSettings] attr_accessor :access_denied_page_settings @@ -107,8 +107,8 @@ module Google # Configuration for RCTokens generated for CSM workloads protected by IAP. # RCTokens are IAP generated JWTs that can be verified at the application. The - # RCToken is primarily used for ISTIO deployments, and can be scoped to a - # single mesh by configuring the audience field accordingly + # RCToken is primarily used for ISTIO deployments, and can be scoped to a single + # mesh by configuring the audience field accordingly # Corresponds to the JSON property `csmSettings` # @return [Google::Apis::IapV1::CsmSettings] attr_accessor :csm_settings @@ -129,69 +129,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::IapV1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -208,8 +196,8 @@ module Google end end - # OAuth brand data. - # NOTE: Only contains a portion of the data that describes a brand. + # OAuth brand data. NOTE: Only contains a portion of the data that describes a + # brand. class Brand include Google::Apis::Core::Hashable @@ -218,15 +206,14 @@ module Google # @return [String] attr_accessor :application_title - # Output only. Identifier of the brand. - # NOTE: GCP project number achieves the same brand identification purpose as - # only one brand per project can be created. + # Output only. Identifier of the brand. NOTE: GCP project number achieves the + # same brand identification purpose as only one brand per project can be created. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output only. Whether the brand is only intended for usage inside the - # G Suite organization only. + # Output only. Whether the brand is only intended for usage inside the G Suite + # organization only. # Corresponds to the JSON property `orgInternalOnly` # @return [Boolean] attr_accessor :org_internal_only @@ -255,8 +242,8 @@ module Google class CorsSettings include Google::Apis::Core::Hashable - # Configuration to allow HTTP OPTIONS calls to skip authorization. If - # undefined, IAP will not apply any special logic to OPTIONS requests. + # Configuration to allow HTTP OPTIONS calls to skip authorization. If undefined, + # IAP will not apply any special logic to OPTIONS requests. # Corresponds to the JSON property `allowHttpOptions` # @return [Boolean] attr_accessor :allow_http_options @@ -274,8 +261,8 @@ module Google # Configuration for RCTokens generated for CSM workloads protected by IAP. # RCTokens are IAP generated JWTs that can be verified at the application. The - # RCToken is primarily used for ISTIO deployments, and can be scoped to a - # single mesh by configuring the audience field accordingly + # RCToken is primarily used for ISTIO deployments, and can be scoped to a single + # mesh by configuring the audience field accordingly class CsmSettings include Google::Apis::Core::Hashable @@ -295,13 +282,11 @@ module Google 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 ````. + # 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 @@ -314,52 +299,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -381,18 +357,17 @@ module Google class GcipSettings include Google::Apis::Core::Hashable - # Login page URI associated with the GCIP tenants. - # Typically, all resources within the same project share the same login page, - # though it could be overridden at the sub resource level. + # Login page URI associated with the GCIP tenants. Typically, all resources + # within the same project share the same login page, though it could be + # overridden at the sub resource level. # Corresponds to the JSON property `loginPageUri` # @return [String] attr_accessor :login_page_uri - # GCIP tenant ids that are linked to the IAP resource. - # tenant_ids could be a string beginning with a number character to indicate - # authenticating with GCIP tenant flow, or in the format of _ - # to indicate authenticating with GCIP agent flow. - # If agent flow is used, tenant_ids should only contain one single element, + # GCIP tenant ids that are linked to the IAP resource. tenant_ids could be a + # string beginning with a number character to indicate authenticating with GCIP + # tenant flow, or in the format of _ to indicate authenticating with GCIP agent + # flow. If agent flow is used, tenant_ids should only contain one single element, # while for tenant flow, tenant_ids can contain multiple elements. # Corresponds to the JSON property `tenantIds` # @return [Array] @@ -432,15 +407,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -545,8 +518,8 @@ module Google # @return [Array] attr_accessor :identity_aware_proxy_clients - # A token, which can be send as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. + # A token, which can be send as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -568,22 +541,20 @@ module Google include Google::Apis::Core::Hashable # OAuth 2.0 client ID used in the OAuth flow to generate an access token. If - # this field is set, you can skip obtaining the OAuth credentials in this - # step: + # this field is set, you can skip obtaining the OAuth credentials in this step: # https://developers.google.com/identity/protocols/OAuth2?hl=en_US#1.-obtain- - # oauth-2.0-credentials-from-the-google-api-console. - # However, this could allow for client sharing. The risks of client sharing - # are outlined here: - # https://cloud.google.com/iap/docs/sharing-oauth-clients#risks. + # oauth-2.0-credentials-from-the-google-api-console. However, this could allow + # for client sharing. The risks of client sharing are outlined here: https:// + # cloud.google.com/iap/docs/sharing-oauth-clients#risks. # Corresponds to the JSON property `clientId` # @return [String] attr_accessor :client_id - # Domain hint to send as hd=? parameter in OAuth request flow. Enables - # redirect to primary IDP by skipping Google's login screen. - # https://developers.google.com/identity/protocols/OpenIDConnect#hd-param - # Note: IAP does not verify that the id token's hd claim matches this value - # since access behavior is managed by IAM policies. + # Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect + # to primary IDP by skipping Google's login screen. https://developers.google. + # com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that + # the id token's hd claim matches this value since access behavior is managed by + # IAM policies. # Corresponds to the JSON property `loginHint` # @return [String] attr_accessor :login_hint @@ -600,111 +571,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -721,11 +654,11 @@ module Google end end - # PolicyDelegationConfig allows google-internal teams to use IAP for apps - # hosted in a tenant project. Using these settings, the app can delegate - # permission check to happen against the linked customer project. - # This is only ever supposed to be used by google internal teams, hence the - # restriction on the proto. + # PolicyDelegationConfig allows google-internal teams to use IAP for apps hosted + # in a tenant project. Using these settings, the app can delegate permission + # check to happen against the linked customer project. This is only ever + # supposed to be used by google internal teams, hence the restriction on the + # proto. class PolicyDelegationSettings include Google::Apis::Core::Hashable @@ -734,11 +667,10 @@ module Google # @return [String] attr_accessor :iam_permission - # The DNS name of the service (e.g. "resourcemanager.googleapis.com"). - # This should be the domain name part of the full resource names (see - # https://aip.dev/122#full-resource-names), which is usually - # the same as IamServiceSpec.service of the service where the resource type - # is defined. + # The DNS name of the service (e.g. "resourcemanager.googleapis.com"). This + # should be the domain name part of the full resource names (see https://aip.dev/ + # 122#full-resource-names), which is usually the same as IamServiceSpec.service + # of the service where the resource type is defined. # Corresponds to the JSON property `iamServiceName` # @return [String] attr_accessor :iam_service_name @@ -775,13 +707,10 @@ module Google # @return [String] attr_accessor :id - # For Cloud IAM: - # The location of the Policy. - # Must be empty or "global" for Policies owned by global IAM. Must name a - # region from prodspec/cloud-iam-cloudspec for Regional IAM Policies, see - # go/iam-faq#where-is-iam-currently-deployed. - # For Local IAM: - # This field should be set to "local". + # For Cloud IAM: The location of the Policy. Must be empty or "global" for + # Policies owned by global IAM. Must name a region from prodspec/cloud-iam- + # cloudspec for Regional IAM Policies, see go/iam-faq#where-is-iam-currently- + # deployed. For Local IAM: This field should be set to "local". # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -821,51 +750,49 @@ module Google include Google::Apis::Core::Hashable # The service defined labels of the resource on which the conditions will be - # evaluated. The semantics - including the key names - are vague to IAM. - # If the effective condition has a reference to a `resource.labels[foo]` - # construct, IAM consults with this map to retrieve the values associated - # with `foo` key for Conditions evaluation. If the provided key is not found - # in the labels map, the condition would evaluate to false. - # This field is in limited use. If your intended use case is not expected - # to express resource.labels attribute in IAM Conditions, leave this field - # empty. Before planning on using this attribute please: - # * Read go/iam-conditions-labels-comm and ensure your service can meet the - # data availability and management requirements. - # * Talk to iam-conditions-eng@ about your use case. + # evaluated. The semantics - including the key names - are vague to IAM. If the + # effective condition has a reference to a `resource.labels[foo]` construct, IAM + # consults with this map to retrieve the values associated with `foo` key for + # Conditions evaluation. If the provided key is not found in the labels map, the + # condition would evaluate to false. This field is in limited use. If your + # intended use case is not expected to express resource.labels attribute in IAM + # Conditions, leave this field empty. Before planning on using this attribute + # please: * Read go/iam-conditions-labels-comm and ensure your service can meet + # the data availability and management requirements. * Talk to iam-conditions- + # eng@ about your use case. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Name of the resource on which conditions will be evaluated. - # Must use the Relative Resource Name of the resource, which is the URI - # path of the resource without the leading "/". Examples are - # "projects/_/buckets/[BUCKET-ID]" for storage buckets or - # "projects/[PROJECT-ID]/global/firewalls/[FIREWALL-ID]" for a firewall. - # This field is required for evaluating conditions with rules on resource - # names. For a `list` permission check, the resource.name value must be set - # to the parent resource. If the parent resource is a project, this field + # Name of the resource on which conditions will be evaluated. Must use the + # Relative Resource Name of the resource, which is the URI path of the resource + # without the leading "/". Examples are "projects/_/buckets/[BUCKET-ID]" for + # storage buckets or "projects/[PROJECT-ID]/global/firewalls/[FIREWALL-ID]" for + # a firewall. This field is required for evaluating conditions with rules on + # resource names. For a `list` permission check, the resource.name value must be + # set to the parent resource. If the parent resource is a project, this field # should be left unset. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The name of the service this resource belongs to. It is configured using - # the official_service_name of the Service as defined in service - # configurations under //configs/cloud/resourcetypes. - # For example, the official_service_name of cloud resource manager service - # is set as 'cloudresourcemanager.googleapis.com' according to - # //configs/cloud/resourcetypes/google/cloud/resourcemanager/prod.yaml + # The name of the service this resource belongs to. It is configured using the + # official_service_name of the Service as defined in service configurations + # under //configs/cloud/resourcetypes. For example, the official_service_name of + # cloud resource manager service is set as 'cloudresourcemanager.googleapis.com' + # according to //configs/cloud/resourcetypes/google/cloud/resourcemanager/prod. + # yaml # Corresponds to the JSON property `service` # @return [String] attr_accessor :service # The public resource type name of the resource on which conditions will be # evaluated. It is configured using the official_name of the ResourceType as - # defined in service configurations under //configs/cloud/resourcetypes. - # For example, the official_name for GCP projects is set as - # 'cloudresourcemanager.googleapis.com/Project' according to - # //configs/cloud/resourcetypes/google/cloud/resourcemanager/prod.yaml - # For details see go/iam-conditions-integration-guide. + # defined in service configurations under //configs/cloud/resourcetypes. For + # example, the official_name for GCP projects is set as 'cloudresourcemanager. + # googleapis.com/Project' according to //configs/cloud/resourcetypes/google/ + # cloud/resourcemanager/prod.yaml For details see go/iam-conditions-integration- + # guide. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -888,66 +815,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::IapV1::Policy] attr_accessor :policy @@ -966,10 +859,9 @@ module Google 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). + # 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 @@ -988,8 +880,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions diff --git a/generated/google/apis/iap_v1/service.rb b/generated/google/apis/iap_v1/service.rb index 7482c9488..c2c0030e7 100644 --- a/generated/google/apis/iap_v1/service.rb +++ b/generated/google/apis/iap_v1/service.rb @@ -47,16 +47,16 @@ module Google @batch_path = 'batch' end - # Constructs a new OAuth brand for the project if one does not exist. - # The created brand is "internal only", meaning that OAuth clients created - # under it only accept requests from users who belong to the same G Suite - # organization as the project. The brand is created in an un-reviewed status. - # NOTE: The "internal only" status can be manually changed in the Google - # Cloud console. Requires that a brand does not already exist for the - # project, and that the specified support email is owned by the caller. + # Constructs a new OAuth brand for the project if one does not exist. The + # created brand is "internal only", meaning that OAuth clients created under it + # only accept requests from users who belong to the same G Suite organization as + # the project. The brand is created in an un-reviewed status. NOTE: The " + # internal only" status can be manually changed in the Google Cloud console. + # Requires that a brand does not already exist for the project, and that the + # specified support email is owned by the caller. # @param [String] parent - # Required. GCP Project number/id under which the brand is to be created. - # In the following format: projects/`project_number/id`. + # Required. GCP Project number/id under which the brand is to be created. In the + # following format: projects/`project_number/id`. # @param [Google::Apis::IapV1::Brand] brand_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -89,8 +89,8 @@ module Google # Retrieves the OAuth brand of the project. # @param [String] name - # Required. Name of the brand to be fetched. - # In the following format: projects/`project_number/id`/brands/`brand`. + # Required. Name of the brand to be fetched. In the following format: projects/` + # project_number/id`/brands/`brand`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -120,8 +120,8 @@ module Google # Lists the existing brands for the project. # @param [String] parent - # Required. GCP Project number/id. - # In the following format: projects/`project_number/id`. + # Required. GCP Project number/id. In the following format: projects/` + # project_number/id`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -149,14 +149,13 @@ module Google execute_or_queue_command(command, &block) end - # Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned - # by IAP. Requires that the brand for the project exists and that it is - # set for internal-only use. + # Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. + # Requires that the brand for the project exists and that it is set for + # internal-only use. # @param [String] parent - # Required. Path to create the client in. - # In the following format: - # projects/`project_number/id`/brands/`brand`. - # The project must belong to a G Suite account. + # Required. Path to create the client in. In the following format: projects/` + # project_number/id`/brands/`brand`. The project must belong to a G Suite + # account. # @param [Google::Apis::IapV1::IdentityAwareProxyClient] identity_aware_proxy_client_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -191,10 +190,9 @@ module Google # obsolete clients, managing the number of clients in a given project, and # cleaning up after tests. Requires that the client is owned by IAP. # @param [String] name - # Required. Name of the Identity Aware Proxy client to be deleted. - # In the following format: - # projects/`project_number/id`/brands/`brand`/identityAwareProxyClients/` - # client_id`. + # Required. Name of the Identity Aware Proxy client to be deleted. In the + # following format: projects/`project_number/id`/brands/`brand`/ + # identityAwareProxyClients/`client_id`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -222,13 +220,12 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves an Identity Aware Proxy (IAP) OAuth client. - # Requires that the client is owned by IAP. + # Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client + # is owned by IAP. # @param [String] name - # Required. Name of the Identity Aware Proxy client to be fetched. - # In the following format: - # projects/`project_number/id`/brands/`brand`/identityAwareProxyClients/` - # client_id`. + # Required. Name of the Identity Aware Proxy client to be fetched. In the + # following format: projects/`project_number/id`/brands/`brand`/ + # identityAwareProxyClients/`client_id`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -258,19 +255,17 @@ module Google # Lists the existing clients for the brand. # @param [String] parent - # Required. Full brand path. - # In the following format: projects/`project_number/id`/brands/`brand`. + # Required. Full brand path. In the following format: projects/`project_number/ + # id`/brands/`brand`. # @param [Fixnum] page_size # The maximum number of clients to return. The service may return fewer than - # this value. - # If unspecified, at most 100 clients will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. + # this value. If unspecified, at most 100 clients will be returned. The maximum + # value is 1000; values above 1000 will be coerced to 1000. # @param [String] page_token - # A page token, received from a previous `ListIdentityAwareProxyClients` - # call. Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to - # `ListIdentityAwareProxyClients` must match the call that provided the page - # token. + # A page token, received from a previous `ListIdentityAwareProxyClients` call. + # Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to `ListIdentityAwareProxyClients` must match the call + # that provided the page token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -300,13 +295,12 @@ module Google execute_or_queue_command(command, &block) end - # Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the - # secret was compromised. Requires that the client is owned by IAP. + # Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the secret + # was compromised. Requires that the client is owned by IAP. # @param [String] name - # Required. Name of the Identity Aware Proxy client to that will have its - # secret reset. In the following format: - # projects/`project_number/id`/brands/`brand`/identityAwareProxyClients/` - # client_id`. + # Required. Name of the Identity Aware Proxy client to that will have its secret + # reset. In the following format: projects/`project_number/id`/brands/`brand`/ + # identityAwareProxyClients/`client_id`. # @param [Google::Apis::IapV1::ResetIdentityAwareProxyClientSecretRequest] reset_identity_aware_proxy_client_secret_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -337,13 +331,12 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for an Identity-Aware Proxy protected - # resource. - # More information about managing access via IAP can be found at: - # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # Gets the access control policy for an Identity-Aware Proxy protected resource. + # More information about managing access via IAP can be found at: https://cloud. + # google.com/iap/docs/managing-access#managing_access_via_the_api # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::IapV1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -376,9 +369,8 @@ module Google # Gets the IAP settings on a particular IAP protected resource. # @param [String] name - # Required. The resource name for which to retrieve the settings. - # Authorization: Requires the `getSettings` permission for the associated - # resource. + # Required. The resource name for which to retrieve the settings. Authorization: + # Requires the `getSettings` permission for the associated resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -406,13 +398,13 @@ module Google execute_or_queue_command(command, &block) end - # Sets the access control policy for an Identity-Aware Proxy protected - # resource. Replaces any existing policy. - # More information about managing access via IAP can be found at: - # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # Sets the access control policy for an Identity-Aware Proxy protected resource. + # Replaces any existing policy. More information about managing access via IAP + # can be found at: https://cloud.google.com/iap/docs/managing-access# + # managing_access_via_the_api # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::IapV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -444,12 +436,11 @@ module Google end # Returns permissions that a caller has on the Identity-Aware Proxy protected - # resource. - # More information about managing access via IAP can be found at: + # resource. More information about managing access via IAP can be found at: # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api # @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. + # 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::IapV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -480,16 +471,15 @@ module Google execute_or_queue_command(command, &block) end - # Updates the IAP settings on a particular IAP protected resource. It - # replaces all fields unless the `update_mask` is set. + # Updates the IAP settings on a particular IAP protected resource. It replaces + # all fields unless the `update_mask` is set. # @param [String] name # Required. The resource name of the IAP protected resource. # @param [Google::Apis::IapV1::IapSettings] iap_settings_object # @param [String] update_mask - # The field mask specifying which IAP settings should be updated. - # If omitted, the all of the settings are updated. See - # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# - # fieldmask + # The field mask specifying which IAP settings should be updated. If omitted, + # the all of the settings are updated. See https://developers.google.com/ + # protocol-buffers/docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/iap_v1beta1.rb b/generated/google/apis/iap_v1beta1.rb index 468dca51e..b486aa0cf 100644 --- a/generated/google/apis/iap_v1beta1.rb +++ b/generated/google/apis/iap_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1beta1 VERSION = 'V1beta1' - REVISION = '20200511' + REVISION = '20200807' # 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/iap_v1beta1/classes.rb b/generated/google/apis/iap_v1beta1/classes.rb index c9ac962b0..dfb6a256c 100644 --- a/generated/google/apis/iap_v1beta1/classes.rb +++ b/generated/google/apis/iap_v1beta1/classes.rb @@ -26,69 +26,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::IapV1beta1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -105,52 +93,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -191,15 +170,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -215,111 +192,73 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -341,66 +280,32 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::IapV1beta1::Policy] attr_accessor :policy @@ -419,10 +324,9 @@ module Google 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). + # 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 @@ -441,8 +345,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions diff --git a/generated/google/apis/iap_v1beta1/service.rb b/generated/google/apis/iap_v1beta1/service.rb index 80e409a98..311c13ffa 100644 --- a/generated/google/apis/iap_v1beta1/service.rb +++ b/generated/google/apis/iap_v1beta1/service.rb @@ -47,13 +47,12 @@ module Google @batch_path = 'batch' end - # Gets the access control policy for an Identity-Aware Proxy protected - # resource. - # More information about managing access via IAP can be found at: - # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # Gets the access control policy for an Identity-Aware Proxy protected resource. + # More information about managing access via IAP can be found at: https://cloud. + # google.com/iap/docs/managing-access#managing_access_via_the_api # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::IapV1beta1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -84,13 +83,13 @@ module Google execute_or_queue_command(command, &block) end - # Sets the access control policy for an Identity-Aware Proxy protected - # resource. Replaces any existing policy. - # More information about managing access via IAP can be found at: - # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # Sets the access control policy for an Identity-Aware Proxy protected resource. + # Replaces any existing policy. More information about managing access via IAP + # can be found at: https://cloud.google.com/iap/docs/managing-access# + # managing_access_via_the_api # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::IapV1beta1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -122,14 +121,13 @@ module Google end # Returns permissions that a caller has on the Identity-Aware Proxy protected - # resource. If the resource does not exist or the caller does not have - # Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] - # will be returned. - # More information about managing access via IAP can be found at: - # https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api + # resource. If the resource does not exist or the caller does not have Identity- + # Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] will be returned. + # More information about managing access via IAP can be found at: https://cloud. + # google.com/iap/docs/managing-access#managing_access_via_the_api # @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. + # 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::IapV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb deleted file mode 100644 index 483381e83..000000000 --- a/generated/google/apis/oauth2_v2.rb +++ /dev/null @@ -1,40 +0,0 @@ -# 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/oauth2_v2/service.rb' -require 'google/apis/oauth2_v2/classes.rb' -require 'google/apis/oauth2_v2/representations.rb' - -module Google - module Apis - # Google OAuth2 API - # - # Obtains end-user authorization grants for use with other Google APIs. - # - # @see https://developers.google.com/identity/protocols/oauth2/ - module Oauth2V2 - VERSION = 'V2' - REVISION = '20200213' - - # View your email address - AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email' - - # See your personal info, including any personal info you've made publicly available - AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile' - - # Associate you with your personal info on Google - PENID = 'openid' - end - end -end diff --git a/generated/google/apis/oauth2_v2/classes.rb b/generated/google/apis/oauth2_v2/classes.rb deleted file mode 100644 index ada9a3162..000000000 --- a/generated/google/apis/oauth2_v2/classes.rb +++ /dev/null @@ -1,165 +0,0 @@ -# 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 Oauth2V2 - - # - class Tokeninfo - include Google::Apis::Core::Hashable - - # Who is the intended audience for this token. In general the same as issued_to. - # Corresponds to the JSON property `audience` - # @return [String] - attr_accessor :audience - - # The email address of the user. Present only if the email scope is present in - # the request. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # The expiry time of the token, as number of seconds left until expiry. - # Corresponds to the JSON property `expires_in` - # @return [Fixnum] - attr_accessor :expires_in - - # To whom was the token issued to. In general the same as audience. - # Corresponds to the JSON property `issued_to` - # @return [String] - attr_accessor :issued_to - - # The space separated list of scopes granted to this token. - # Corresponds to the JSON property `scope` - # @return [String] - attr_accessor :scope - - # The obfuscated user id. - # Corresponds to the JSON property `user_id` - # @return [String] - attr_accessor :user_id - - # Boolean flag which is true if the email address is verified. Present only if - # the email scope is present in the request. - # Corresponds to the JSON property `verified_email` - # @return [Boolean] - attr_accessor :verified_email - alias_method :verified_email?, :verified_email - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @audience = args[:audience] if args.key?(:audience) - @email = args[:email] if args.key?(:email) - @expires_in = args[:expires_in] if args.key?(:expires_in) - @issued_to = args[:issued_to] if args.key?(:issued_to) - @scope = args[:scope] if args.key?(:scope) - @user_id = args[:user_id] if args.key?(:user_id) - @verified_email = args[:verified_email] if args.key?(:verified_email) - end - end - - # - class Userinfo - include Google::Apis::Core::Hashable - - # The user's email address. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # The user's last name. - # Corresponds to the JSON property `family_name` - # @return [String] - attr_accessor :family_name - - # The user's gender. - # Corresponds to the JSON property `gender` - # @return [String] - attr_accessor :gender - - # The user's first name. - # Corresponds to the JSON property `given_name` - # @return [String] - attr_accessor :given_name - - # The hosted domain e.g. example.com if the user is Google apps user. - # Corresponds to the JSON property `hd` - # @return [String] - attr_accessor :hd - - # The obfuscated ID of the user. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # URL of the profile page. - # Corresponds to the JSON property `link` - # @return [String] - attr_accessor :link - - # The user's preferred locale. - # Corresponds to the JSON property `locale` - # @return [String] - attr_accessor :locale - - # The user's full name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # URL of the user's picture image. - # Corresponds to the JSON property `picture` - # @return [String] - attr_accessor :picture - - # Boolean flag which is true if the email address is verified. Always verified - # because we only return the user's primary email address. - # Corresponds to the JSON property `verified_email` - # @return [Boolean] - attr_accessor :verified_email - alias_method :verified_email?, :verified_email - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @email = args[:email] if args.key?(:email) - @family_name = args[:family_name] if args.key?(:family_name) - @gender = args[:gender] if args.key?(:gender) - @given_name = args[:given_name] if args.key?(:given_name) - @hd = args[:hd] if args.key?(:hd) - @id = args[:id] if args.key?(:id) - @link = args[:link] if args.key?(:link) - @locale = args[:locale] if args.key?(:locale) - @name = args[:name] if args.key?(:name) - @picture = args[:picture] if args.key?(:picture) - @verified_email = args[:verified_email] if args.key?(:verified_email) - end - end - end - end -end diff --git a/generated/google/apis/oauth2_v2/representations.rb b/generated/google/apis/oauth2_v2/representations.rb deleted file mode 100644 index b1ce7fd9d..000000000 --- a/generated/google/apis/oauth2_v2/representations.rb +++ /dev/null @@ -1,68 +0,0 @@ -# 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 Oauth2V2 - - class Tokeninfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Userinfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Tokeninfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :audience, as: 'audience' - property :email, as: 'email' - property :expires_in, as: 'expires_in' - property :issued_to, as: 'issued_to' - property :scope, as: 'scope' - property :user_id, as: 'user_id' - property :verified_email, as: 'verified_email' - end - end - - class Userinfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :email, as: 'email' - property :family_name, as: 'family_name' - property :gender, as: 'gender' - property :given_name, as: 'given_name' - property :hd, as: 'hd' - property :id, as: 'id' - property :link, as: 'link' - property :locale, as: 'locale' - property :name, as: 'name' - property :picture, as: 'picture' - property :verified_email, as: 'verified_email' - end - end - end - end -end diff --git a/generated/google/apis/oauth2_v2/service.rb b/generated/google/apis/oauth2_v2/service.rb deleted file mode 100644 index 295c53e74..000000000 --- a/generated/google/apis/oauth2_v2/service.rb +++ /dev/null @@ -1,158 +0,0 @@ -# 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 Oauth2V2 - # Google OAuth2 API - # - # Obtains end-user authorization grants for use with other Google APIs. - # - # @example - # require 'google/apis/oauth2_v2' - # - # Oauth2 = Google::Apis::Oauth2V2 # Alias the module - # service = Oauth2::Oauth2Service.new - # - # @see https://developers.google.com/identity/protocols/oauth2/ - class Oauth2Service < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', '') - @batch_path = 'batch/oauth2/v2' - end - - # - # @param [String] access_token - # @param [String] id_token - # @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::Oauth2V2::Tokeninfo] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Oauth2V2::Tokeninfo] - # - # @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 tokeninfo(access_token: nil, id_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'oauth2/v2/tokeninfo', options) - command.response_representation = Google::Apis::Oauth2V2::Tokeninfo::Representation - command.response_class = Google::Apis::Oauth2V2::Tokeninfo - command.query['access_token'] = access_token unless access_token.nil? - command.query['id_token'] = id_token unless id_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 - - # - # @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::Oauth2V2::Userinfo] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Oauth2V2::Userinfo] - # - # @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_userinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'oauth2/v2/userinfo', options) - command.response_representation = Google::Apis::Oauth2V2::Userinfo::Representation - command.response_class = Google::Apis::Oauth2V2::Userinfo - 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 - - # - # @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::Oauth2V2::Userinfo] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::Oauth2V2::Userinfo] - # - # @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_userinfo_v2(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'userinfo/v2/me', options) - command.response_representation = Google::Apis::Oauth2V2::Userinfo::Representation - command.response_class = Google::Apis::Oauth2V2::Userinfo - 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 - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/redis_v1.rb b/generated/google/apis/redis_v1.rb index 2c590f67d..f31044f0f 100644 --- a/generated/google/apis/redis_v1.rb +++ b/generated/google/apis/redis_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1 VERSION = 'V1' - REVISION = '20200722' + REVISION = '20200810' # 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/redis_v1/classes.rb b/generated/google/apis/redis_v1/classes.rb index a7b268cae..d25c73922 100644 --- a/generated/google/apis/redis_v1/classes.rb +++ b/generated/google/apis/redis_v1/classes.rb @@ -22,13 +22,11 @@ module Google module Apis module RedisV1 - # 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 ````. + # 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 @@ -84,8 +82,8 @@ module Google class GcsDestination include Google::Apis::Core::Hashable - # Required. Data destination URI (e.g. - # 'gs://my_bucket/my_object'). Existing files will be overwritten. + # Required. Data destination URI (e.g. 'gs://my_bucket/my_object'). Existing + # files will be overwritten. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -119,17 +117,16 @@ module Google end end - # This location metadata represents additional configuration options for a - # given location where a Redis instance may be created. All fields are output - # only. It is returned as content of the - # `google.cloud.location.Location.metadata` field. + # This location metadata represents additional configuration options for a given + # location where a Redis instance may be created. All fields are output only. It + # is returned as content of the `google.cloud.location.Location.metadata` field. class GoogleCloudRedisV1LocationMetadata include Google::Apis::Core::Hashable - # Output only. The set of available zones in the location. The map is keyed - # by the lowercase ID of each zone, as defined by GCE. These keys can be - # specified in `location_id` or `alternative_location_id` fields when - # creating a Redis instance. + # Output only. The set of available zones in the location. The map is keyed by + # the lowercase ID of each zone, as defined by GCE. These keys can be specified + # in `location_id` or `alternative_location_id` fields when creating a Redis + # instance. # Corresponds to the JSON property `availableZones` # @return [Hash] attr_accessor :available_zones @@ -219,10 +216,9 @@ module Google include Google::Apis::Core::Hashable # consumer_defined_name is the name that is set by the consumer. On the other - # hand Name field represents system-assigned id of an instance so consumers - # are not necessarily aware of it. - # consumer_defined_name is used for notification/UI purposes for consumer to - # recognize their instances. + # hand Name field represents system-assigned id of an instance so consumers are + # not necessarily aware of it. consumer_defined_name is used for notification/UI + # purposes for consumer to recognize their instances. # Corresponds to the JSON property `consumerDefinedName` # @return [String] attr_accessor :consumer_defined_name @@ -232,18 +228,17 @@ module Google # @return [String] attr_accessor :create_time - # Optional. Resource labels to represent user provided metadata. Each label - # is a key-value pair, where both the key and the value are arbitrary strings + # Optional. Resource labels to represent user provided metadata. Each label is a + # key-value pair, where both the key and the value are arbitrary strings # provided by the user. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The MaintenancePolicies that have been attached to the instance. - # The key must be of the type name of the oneof policy name defined in - # MaintenancePolicy, and the referenced policy must define the same policy - # type. For complete details of MaintenancePolicy, please refer to - # go/cloud-saas-mw-ug. + # The MaintenancePolicies that have been attached to the instance. The key must + # be of the type name of the oneof policy name defined in MaintenancePolicy, and + # the referenced policy must define the same policy type. For complete details + # of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. # Corresponds to the JSON property `maintenancePolicyNames` # @return [Hash] attr_accessor :maintenance_policy_names @@ -260,29 +255,28 @@ module Google # @return [Google::Apis::RedisV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings] attr_accessor :maintenance_settings - # Unique name of the resource. It uses the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` + # Unique name of the resource. It uses the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output only. Custom string attributes used primarily to expose - # producer-specific information in monitoring dashboards. - # See go/get-instance-metadata. + # Output only. Custom string attributes used primarily to expose producer- + # specific information in monitoring dashboards. See go/get-instance-metadata. # Corresponds to the JSON property `producerMetadata` # @return [Hash] attr_accessor :producer_metadata - # Output only. The list of data plane resources provisioned for this - # instance, e.g. compute VMs. See go/get-instance-metadata. + # Output only. The list of data plane resources provisioned for this instance, e. + # g. compute VMs. See go/get-instance-metadata. # Corresponds to the JSON property `provisionedResources` # @return [Array] attr_accessor :provisioned_resources - # Link to the SLM instance template. Only populated when updating SLM - # instances via SSA's Actuation service adaptor. - # Service producers with custom control plane (e.g. Cloud SQL) doesn't - # need to populate this field. Instead they should use software_versions. + # Link to the SLM instance template. Only populated when updating SLM instances + # via SSA's Actuation service adaptor. Service producers with custom control + # plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they + # should use software_versions. # Corresponds to the JSON property `slmInstanceTemplate` # @return [String] attr_accessor :slm_instance_template @@ -293,8 +287,8 @@ module Google # @return [Google::Apis::RedisV1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata] attr_accessor :slo_metadata - # Software versions that are used to deploy this instance. This can be - # mutated by rollout services. + # Software versions that are used to deploy this instance. This can be mutated + # by rollout services. # Corresponds to the JSON property `softwareVersions` # @return [Hash] attr_accessor :software_versions @@ -305,8 +299,8 @@ module Google # @return [String] attr_accessor :state - # Output only. ID of the associated GCP tenant project. - # See go/get-instance-metadata. + # Output only. ID of the associated GCP tenant project. See go/get-instance- + # metadata. # Corresponds to the JSON property `tenantProjectId` # @return [String] attr_accessor :tenant_project_id @@ -345,9 +339,9 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule include Google::Apis::Core::Hashable - # Can this scheduled update be rescheduled? - # By default, it's true and API needs to do explicitly check whether it's - # set, if it's set as false explicitly, it's false + # Can this scheduled update be rescheduled? By default, it's true and API needs + # to do explicitly check whether it's set, if it's set as false explicitly, it's + # false # Corresponds to the JSON property `canReschedule` # @return [Boolean] attr_accessor :can_reschedule @@ -358,9 +352,9 @@ module Google # @return [String] attr_accessor :end_time - # The rollout management policy this maintenance schedule is associated - # with. When doing reschedule update request, the reschedule should be - # against this given policy. + # The rollout management policy this maintenance schedule is associated with. + # When doing reschedule update request, the reschedule should be against this + # given policy. # Corresponds to the JSON property `rolloutManagementPolicy` # @return [String] attr_accessor :rollout_management_policy @@ -389,8 +383,7 @@ module Google include Google::Apis::Core::Hashable # Optional. Exclude instance from maintenance. When true, rollout service will - # not - # attempt maintenance on the instance. Rollout service will include the + # not attempt maintenance on the instance. Rollout service will include the # instance in reported rollout progress as not attempted. # Corresponds to the JSON property `exclude` # @return [Boolean] @@ -407,18 +400,17 @@ module Google end end - # Node information for custom per-node SLO implementations. - # SSA does not support per-node SLO, but producers can populate per-node - # information in SloMetadata for custom precomputations. - # SSA Eligibility Exporter will emit per-node metric based on this information. + # Node information for custom per-node SLO implementations. SSA does not support + # per-node SLO, but producers can populate per-node information in SloMetadata + # for custom precomputations. SSA Eligibility Exporter will emit per-node metric + # based on this information. class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata include Google::Apis::Core::Hashable - # By default node is eligible if instance is eligible. - # But individual node might be excluded from SLO by adding entry here. - # For semantic see SloMetadata.exclusions. - # If both instance and node level exclusions are present for time period, - # the node level's reason will be reported by Eligibility Exporter. + # By default node is eligible if instance is eligible. But individual node might + # be excluded from SLO by adding entry here. For semantic see SloMetadata. + # exclusions. If both instance and node level exclusions are present for time + # period, the node level's reason will be reported by Eligibility Exporter. # Corresponds to the JSON property `exclusions` # @return [Array] attr_accessor :exclusions @@ -428,8 +420,7 @@ module Google # @return [String] attr_accessor :location - # The id of the node. - # This should be equal to SaasInstanceNode.node_id. + # The id of the node. This should be equal to SaasInstanceNode.node_id. # Corresponds to the JSON property `nodeId` # @return [String] attr_accessor :node_id @@ -450,18 +441,17 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource include Google::Apis::Core::Hashable - # Type of the resource. This can be either a GCP resource or a custom one - # (e.g. another cloud provider's VM). For GCP compute resources use singular - # form of the names listed in GCP compute API documentation - # (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with - # 'compute-', for example: 'compute-instance', 'compute-disk', - # 'compute-autoscaler'. + # Type of the resource. This can be either a GCP resource or a custom one (e.g. + # another cloud provider's VM). For GCP compute resources use singular form of + # the names listed in GCP compute API documentation (https://cloud.google.com/ + # compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: ' + # compute-instance', 'compute-disk', 'compute-autoscaler'. # Corresponds to the JSON property `resourceType` # @return [String] attr_accessor :resource_type - # URL identifying the resource, e.g. - # "https://www.googleapis.com/compute/v1/projects/...)". + # URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/ + # projects/...)". # Corresponds to the JSON property `resourceUrl` # @return [String] attr_accessor :resource_url @@ -477,9 +467,9 @@ module Google end end - # SloEligibility is a tuple containing eligibility value: true if an instance - # is eligible for SLO calculation or false if it should be excluded from all - # SLO-related calculations along with a user-defined reason. + # SloEligibility is a tuple containing eligibility value: true if an instance is + # eligible for SLO calculation or false if it should be excluded from all SLO- + # related calculations along with a user-defined reason. class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility include Google::Apis::Core::Hashable @@ -490,8 +480,7 @@ module Google alias_method :eligible?, :eligible # User-defined reason for the current value of instance eligibility. Usually, - # this can be directly mapped to the internal state. An empty reason is - # allowed. + # this can be directly mapped to the internal state. An empty reason is allowed. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -511,28 +500,27 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion include Google::Apis::Core::Hashable - # Exclusion duration. No restrictions on the possible values. - # When an ongoing operation is taking longer than initially expected, - # an existing entry in the exclusion list can be updated by extending the - # duration. This is supported by the subsystem exporting eligibility data - # as long as such extension is committed at least 10 minutes before the - # original exclusion expiration - otherwise it is possible that there will - # be "gaps" in the exclusion application in the exported timeseries. + # Exclusion duration. No restrictions on the possible values. When an ongoing + # operation is taking longer than initially expected, an existing entry in the + # exclusion list can be updated by extending the duration. This is supported by + # the subsystem exporting eligibility data as long as such extension is + # committed at least 10 minutes before the original exclusion expiration - + # otherwise it is possible that there will be "gaps" in the exclusion + # application in the exported timeseries. # Corresponds to the JSON property `duration` # @return [String] attr_accessor :duration - # Human-readable reason for the exclusion. - # This should be a static string (e.g. "Disruptive update in progress") - # and should not contain dynamically generated data (e.g. instance name). - # Can be left empty. + # Human-readable reason for the exclusion. This should be a static string (e.g. " + # Disruptive update in progress") and should not contain dynamically generated + # data (e.g. instance name). Can be left empty. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason - # Name of an SLI that this exclusion applies to. Can be left empty, - # signaling that the instance should be excluded from all SLIs defined - # in the service SLO configuration. + # Name of an SLI that this exclusion applies to. Can be left empty, signaling + # that the instance should be excluded from all SLIs defined in the service SLO + # configuration. # Corresponds to the JSON property `sliName` # @return [String] attr_accessor :sli_name @@ -560,40 +548,38 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata include Google::Apis::Core::Hashable - # SloEligibility is a tuple containing eligibility value: true if an instance - # is eligible for SLO calculation or false if it should be excluded from all - # SLO-related calculations along with a user-defined reason. + # SloEligibility is a tuple containing eligibility value: true if an instance is + # eligible for SLO calculation or false if it should be excluded from all SLO- + # related calculations along with a user-defined reason. # Corresponds to the JSON property `eligibility` # @return [Google::Apis::RedisV1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility] attr_accessor :eligibility - # List of SLO exclusion windows. When multiple entries in the list match - # (matching the exclusion time-window against current time point) - # the exclusion reason used in the first matching entry will be published. - # It is not needed to include expired exclusion in this list, as only the - # currently applicable exclusions are taken into account by the eligibility - # exporting subsystem (the historical state of exclusions will be reflected - # in the historically produced timeseries regardless of the current state). - # This field can be used to mark the instance as temporary ineligible - # for the purpose of SLO calculation. For permanent instance SLO exclusion, - # use of custom instance eligibility is recommended. See 'eligibility' field - # below. + # List of SLO exclusion windows. When multiple entries in the list match ( + # matching the exclusion time-window against current time point) the exclusion + # reason used in the first matching entry will be published. It is not needed to + # include expired exclusion in this list, as only the currently applicable + # exclusions are taken into account by the eligibility exporting subsystem (the + # historical state of exclusions will be reflected in the historically produced + # timeseries regardless of the current state). This field can be used to mark + # the instance as temporary ineligible for the purpose of SLO calculation. For + # permanent instance SLO exclusion, use of custom instance eligibility is + # recommended. See 'eligibility' field below. # Corresponds to the JSON property `exclusions` # @return [Array] attr_accessor :exclusions - # Optional. List of nodes. - # Some producers need to use per-node metadata to calculate SLO. - # This field allows such producers to publish per-node SLO meta data, - # which will be consumed by SSA Eligibility Exporter and published in the + # Optional. List of nodes. Some producers need to use per-node metadata to + # calculate SLO. This field allows such producers to publish per-node SLO meta + # data, which will be consumed by SSA Eligibility Exporter and published in the # form of per node metric to Monarch. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes # Name of the SLO tier the Instance belongs to. This name will be expected to - # match the tiers specified in the service SLO configuration. - # Field is mandatory and must not be empty. + # match the tiers specified in the service SLO configuration. Field is mandatory + # and must not be empty. # Corresponds to the JSON property `tier` # @return [String] attr_accessor :tier @@ -660,16 +646,15 @@ module Google # @return [String] attr_accessor :alternative_location_id - # Optional. The full name of the Google Compute Engine - # [network](https://cloud.google.com/vpc/docs/vpc) to which the - # instance is connected. If left unspecified, the `default` network - # will be used. + # Optional. The full name of the Google Compute Engine [network](https://cloud. + # google.com/vpc/docs/vpc) to which the instance is connected. If left + # unspecified, the `default` network will be used. # Corresponds to the JSON property `authorizedNetwork` # @return [String] attr_accessor :authorized_network - # Optional. The network connect mode of the Redis instance. - # If not provided, the connect mode defaults to DIRECT_PEERING. + # Optional. The network connect mode of the Redis instance. If not provided, the + # connect mode defaults to DIRECT_PEERING. # Corresponds to the JSON property `connectMode` # @return [String] attr_accessor :connect_mode @@ -680,10 +665,9 @@ module Google attr_accessor :create_time # Output only. The current zone where the Redis endpoint is placed. For Basic - # Tier instances, this will always be the same as the location_id - # provided by the user at creation time. For Standard Tier instances, - # this can be either location_id or alternative_location_id and can - # change after a failover event. + # Tier instances, this will always be the same as the location_id provided by + # the user at creation time. For Standard Tier instances, this can be either + # location_id or alternative_location_id and can change after a failover event. # Corresponds to the JSON property `currentLocationId` # @return [String] attr_accessor :current_location_id @@ -707,8 +691,8 @@ module Google # Optional. The zone where the instance will be provisioned. If not provided, # the service will choose a zone for the instance. For STANDARD_HA tier, # instances will be created across two zones for protection against zonal - # failures. If alternative_location_id is also provided, it must be - # different from location_id. + # failures. If alternative_location_id is also provided, it must be different + # from location_id. # Corresponds to the JSON property `locationId` # @return [String] attr_accessor :location_id @@ -719,21 +703,19 @@ module Google attr_accessor :memory_size_gb # Required. Unique name of the resource in this scope including project and - # location using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # Note: Redis instances are managed and addressed at regional level so - # location_id here refers to a GCP region; however, users may choose which - # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to location_id and + # location using the form: `projects/`project_id`/locations/`location_id`/ + # instances/`instance_id`` Note: Redis instances are managed and addressed at + # regional level so location_id here refers to a GCP region; however, users may + # choose which specific zone (or collection of zones for cross-zone instances) + # an instance should be provisioned in. Refer to location_id and # alternative_location_id fields for more details. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output only. Cloud IAM identity used by import / export operations to - # transfer data to/from Cloud Storage. Format is - # "serviceAccount:". The value may change over time - # for a given instance so should be checked before each import/export + # Output only. Cloud IAM identity used by import / export operations to transfer + # data to/from Cloud Storage. Format is "serviceAccount:". The value may change + # over time for a given instance so should be checked before each import/export # operation. # Corresponds to the JSON property `persistenceIamIdentity` # @return [String] @@ -744,38 +726,27 @@ module Google # @return [Fixnum] attr_accessor :port - # Optional. Redis configuration parameters, according to - # http://redis.io/topics/config. Currently, the only supported parameters - # are: - # Redis version 3.2 and newer: - # * maxmemory-policy - # * notify-keyspace-events - # Redis version 4.0 and newer: - # * activedefrag - # * lfu-decay-time - # * lfu-log-factor - # * maxmemory-gb - # Redis version 5.0 and newer: - # * stream-node-max-bytes - # * stream-node-max-entries + # Optional. Redis configuration parameters, according to http://redis.io/topics/ + # config. Currently, the only supported parameters are: Redis version 3.2 and + # newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: + # * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version + # 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries # Corresponds to the JSON property `redisConfigs` # @return [Hash] attr_accessor :redis_configs - # Optional. The version of Redis software. - # If not provided, latest supported version will be used. Currently, the - # supported values are: - # * `REDIS_3_2` for Redis 3.2 compatibility - # * `REDIS_4_0` for Redis 4.0 compatibility (default) - # * `REDIS_5_0` for Redis 5.0 compatibility + # Optional. The version of Redis software. If not provided, latest supported + # version will be used. Currently, the supported values are: * `REDIS_3_2` for + # Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * ` + # REDIS_5_0` for Redis 5.0 compatibility # Corresponds to the JSON property `redisVersion` # @return [String] attr_accessor :redis_version # Optional. The CIDR range of internal addresses that are reserved for this - # instance. If not provided, the service will choose an unused /29 block, - # for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique - # and non-overlapping with existing subnets in an authorized network. + # instance. If not provided, the service will choose an unused /29 block, for + # example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non- + # overlapping with existing subnets in an authorized network. # Corresponds to the JSON property `reservedIpRange` # @return [String] attr_accessor :reserved_ip_range @@ -785,8 +756,8 @@ module Google # @return [String] attr_accessor :state - # Output only. Additional information about the current status of this - # instance, if available. + # Output only. Additional information about the current status of this instance, + # if available. # Corresponds to the JSON property `statusMessage` # @return [String] attr_accessor :status_message @@ -828,15 +799,14 @@ module Google class ListInstancesResponse include Google::Apis::Core::Hashable - # A list of Redis instances in the project in the specified location, - # or across all locations. - # If the `location_id` in the parent field of the request is "-", all regions - # available to the project are queried, and the results aggregated. - # If in such an aggregated query a location is unavailable, a dummy Redis - # entry is included in the response with the `name` field set to a value of - # the form `projects/`project_id`/locations/`location_id`/instances/`- and - # the `status` field set to ERROR and `status_message` field set to "location - # not available for ListInstances". + # A list of Redis instances in the project in the specified location, or across + # all locations. If the `location_id` in the parent field of the request is "-", + # all regions available to the project are queried, and the results aggregated. + # If in such an aggregated query a location is unavailable, a dummy Redis entry + # is included in the response with the `name` field set to a value of the form ` + # projects/`project_id`/locations/`location_id`/instances/`- and the `status` + # field set to ERROR and `status_message` field set to "location not available + # for ListInstances". # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -918,14 +888,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -968,55 +938,49 @@ module Google 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. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::RedisV1::Status] attr_accessor :error - # ` - # `createTime`: The time the operation was created. - # `endTime`: The time the operation finished running. - # `target`: Server-defined resource path for the target of the operation. - # `verb`: Name of the verb executed by the operation. - # `statusDetail`: Human-readable status of the operation, if any. - # `cancelRequested`: Identifies whether the user has requested cancellation of + # ` `createTime`: The time the operation was created. `endTime`: The time the + # operation finished running. `target`: Server-defined resource path for the + # target of the operation. `verb`: Name of the verb executed by the operation. ` + # statusDetail`: Human-readable status of the operation, if any. ` + # cancelRequested`: Identifies whether the user has requested cancellation of # the operation. Operations that have successfully been cancelled have Operation. # error value with a google.rpc.Status.code of 1, corresponding to `Code. - # CANCELLED`. - # `apiVersion`: API version used to start the operation. - # ` + # CANCELLED`. `apiVersion`: API version used to start the operation. ` # 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 be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # 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`. + # 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 @@ -1054,12 +1018,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -1068,15 +1032,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 diff --git a/generated/google/apis/redis_v1/service.rb b/generated/google/apis/redis_v1/service.rb index 6d4632138..57a702314 100644 --- a/generated/google/apis/redis_v1/service.rb +++ b/generated/google/apis/redis_v1/service.rb @@ -116,28 +116,25 @@ module Google execute_or_queue_command(command, &block) end - # Creates a Redis instance based on the specified tier and memory size. - # By default, the instance is accessible from the project's - # [default network](https://cloud.google.com/vpc/docs/vpc). - # The creation is executed asynchronously and callers may check the returned - # operation to track its progress. Once the operation is completed the Redis - # instance will be fully functional. Completed longrunning.Operation will - # contain the new instance object in the response field. - # The returned operation is automatically deleted after a few hours, so there - # is no need to call DeleteOperation. + # Creates a Redis instance based on the specified tier and memory size. By + # default, the instance is accessible from the project's [default network](https: + # //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and + # callers may check the returned operation to track its progress. Once the + # operation is completed the Redis instance will be fully functional. Completed + # longrunning.Operation will contain the new instance object in the response + # field. The returned operation is automatically deleted after a few hours, so + # there is no need to call DeleteOperation. # @param [String] parent - # Required. The resource name of the instance location using the form: - # `projects/`project_id`/locations/`location_id`` - # where `location_id` refers to a GCP region. + # Required. The resource name of the instance location using the form: `projects/ + # `project_id`/locations/`location_id`` where `location_id` refers to a GCP + # region. # @param [Google::Apis::RedisV1::Instance] instance_object # @param [String] instance_id - # Required. The logical name of the Redis instance in the customer project - # with the following restrictions: - # * Must contain only lowercase letters, numbers, and hyphens. - # * Must start with a letter. - # * Must be between 1-40 characters. - # * Must end with a number or a letter. - # * Must be unique within the customer project / location + # Required. The logical name of the Redis instance in the customer project with + # the following restrictions: * Must contain only lowercase letters, numbers, + # and hyphens. * Must start with a letter. * Must be between 1-40 characters. * + # Must end with a number or a letter. * Must be unique within the customer + # project / location # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -168,12 +165,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a specific Redis instance. Instance stops serving and data is - # deleted. + # Deletes a specific Redis instance. Instance stops serving and data is deleted. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -202,13 +198,13 @@ module Google end # Export Redis instance data into a Redis RDB format file in Cloud Storage. - # Redis will continue serving during this operation. - # The returned operation is automatically deleted after a few hours, so - # there is no need to call DeleteOperation. + # Redis will continue serving during this operation. The returned operation is + # automatically deleted after a few hours, so there is no need to call + # DeleteOperation. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1::ExportInstanceRequest] export_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -239,12 +235,12 @@ module Google execute_or_queue_command(command, &block) end - # Initiates a failover of the master node to current replica node for a - # specific STANDARD tier Cloud Memorystore for Redis instance. + # Initiates a failover of the master node to current replica node for a specific + # STANDARD tier Cloud Memorystore for Redis instance. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1::FailoverInstanceRequest] failover_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -277,9 +273,9 @@ module Google # Gets the details of a specific Redis instance. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -308,15 +304,14 @@ module Google end # Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. - # Redis may stop serving during this operation. Instance state will be - # IMPORTING for entire operation. When complete, the instance will contain - # only data from the imported file. - # The returned operation is automatically deleted after a few hours, so - # there is no need to call DeleteOperation. + # Redis may stop serving during this operation. Instance state will be IMPORTING + # for entire operation. When complete, the instance will contain only data from + # the imported file. The returned operation is automatically deleted after a few + # hours, so there is no need to call DeleteOperation. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1::ImportInstanceRequest] import_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -347,26 +342,24 @@ module Google execute_or_queue_command(command, &block) end - # Lists all Redis instances owned by a project in either the specified - # location (region) or all locations. - # The location should have the following format: - # * `projects/`project_id`/locations/`location_id`` - # If `location_id` is specified as `-` (wildcard), then all regions - # available to the project are queried, and the results are aggregated. + # Lists all Redis instances owned by a project in either the specified location ( + # region) or all locations. The location should have the following format: * ` + # projects/`project_id`/locations/`location_id`` If `location_id` is specified + # as `-` (wildcard), then all regions available to the project are queried, and + # the results are aggregated. # @param [String] parent - # Required. The resource name of the instance location using the form: - # `projects/`project_id`/locations/`location_id`` - # where `location_id` refers to a GCP region. + # Required. The resource name of the instance location using the form: `projects/ + # `project_id`/locations/`location_id`` where `location_id` refers to a GCP + # region. # @param [Fixnum] page_size - # The maximum number of items to return. - # If not specified, a default value of 1000 will be used by the service. - # Regardless of the page_size value, the response may include a partial list - # and a caller should only rely on response's - # `next_page_token` - # to determine if there are more instances left to be queried. + # The maximum number of items to return. If not specified, a default value of + # 1000 will be used by the service. Regardless of the page_size value, the + # response may include a partial list and a caller should only rely on response' + # s `next_page_token` to determine if there are more instances left to be + # queried. # @param [String] page_token - # The `next_page_token` value returned from a previous - # ListInstances request, if any. + # The `next_page_token` value returned from a previous ListInstances request, if + # any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -396,28 +389,23 @@ module Google execute_or_queue_command(command, &block) end - # Updates the metadata and configuration of a specific Redis instance. - # Completed longrunning.Operation will contain the new instance object - # in the response field. The returned operation is automatically deleted - # after a few hours, so there is no need to call DeleteOperation. + # Updates the metadata and configuration of a specific Redis instance. Completed + # longrunning.Operation will contain the new instance object in the response + # field. The returned operation is automatically deleted after a few hours, so + # there is no need to call DeleteOperation. # @param [String] name # Required. Unique name of the resource in this scope including project and - # location using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # Note: Redis instances are managed and addressed at regional level so - # location_id here refers to a GCP region; however, users may choose which - # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to location_id and + # location using the form: `projects/`project_id`/locations/`location_id`/ + # instances/`instance_id`` Note: Redis instances are managed and addressed at + # regional level so location_id here refers to a GCP region; however, users may + # choose which specific zone (or collection of zones for cross-zone instances) + # an instance should be provisioned in. Refer to location_id and # alternative_location_id fields for more details. # @param [Google::Apis::RedisV1::Instance] instance_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. The elements of the repeated paths field may only include these - # fields from Instance: - # * `displayName` - # * `labels` - # * `memorySizeGb` - # * `redisConfig` + # Required. Mask of fields to update. At least one path must be supplied in this + # field. The elements of the repeated paths field may only include these fields + # from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -448,12 +436,11 @@ module Google execute_or_queue_command(command, &block) end - # Upgrades Redis instance to the newer Redis version specified in the - # request. + # Upgrades Redis instance to the newer Redis version specified in the request. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1::UpgradeInstanceRequest] upgrade_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -484,15 +471,13 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -523,10 +508,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -556,9 +541,8 @@ module Google execute_or_queue_command(command, &block) 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. + # 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 @@ -588,15 +572,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. # @param [String] name # The name of the operation's parent resource. # @param [String] filter diff --git a/generated/google/apis/redis_v1beta1.rb b/generated/google/apis/redis_v1beta1.rb index ec9a38c31..0dbdf70f6 100644 --- a/generated/google/apis/redis_v1beta1.rb +++ b/generated/google/apis/redis_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/memorystore/docs/redis/ module RedisV1beta1 VERSION = 'V1beta1' - REVISION = '20200722' + REVISION = '20200810' # 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/redis_v1beta1/classes.rb b/generated/google/apis/redis_v1beta1/classes.rb index 006c03be0..8f8f1dc2d 100644 --- a/generated/google/apis/redis_v1beta1/classes.rb +++ b/generated/google/apis/redis_v1beta1/classes.rb @@ -22,13 +22,11 @@ module Google module Apis module RedisV1beta1 - # 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 ````. + # 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 @@ -84,8 +82,8 @@ module Google class GcsDestination include Google::Apis::Core::Hashable - # Required. Data destination URI (e.g. - # 'gs://my_bucket/my_object'). Existing files will be overwritten. + # Required. Data destination URI (e.g. 'gs://my_bucket/my_object'). Existing + # files will be overwritten. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri @@ -128,10 +126,10 @@ module Google # @return [String] attr_accessor :api_version - # [Output only] Identifies whether the user has requested cancellation - # of the operation. Operations that have successfully been cancelled - # have Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. + # [Output only] Identifies whether the user has requested cancellation of the + # operation. Operations that have successfully been cancelled have Operation. + # error value with a google.rpc.Status.code of 1, corresponding to `Code. + # CANCELLED`. # Corresponds to the JSON property `cancelRequested` # @return [Boolean] attr_accessor :cancel_requested @@ -178,17 +176,16 @@ module Google end end - # This location metadata represents additional configuration options for a - # given location where a Redis instance may be created. All fields are output - # only. It is returned as content of the - # `google.cloud.location.Location.metadata` field. + # This location metadata represents additional configuration options for a given + # location where a Redis instance may be created. All fields are output only. It + # is returned as content of the `google.cloud.location.Location.metadata` field. class GoogleCloudRedisV1beta1LocationMetadata include Google::Apis::Core::Hashable - # Output only. The set of available zones in the location. The map is keyed - # by the lowercase ID of each zone, as defined by GCE. These keys can be - # specified in `location_id` or `alternative_location_id` fields when - # creating a Redis instance. + # Output only. The set of available zones in the location. The map is keyed by + # the lowercase ID of each zone, as defined by GCE. These keys can be specified + # in `location_id` or `alternative_location_id` fields when creating a Redis + # instance. # Corresponds to the JSON property `availableZones` # @return [Hash] attr_accessor :available_zones @@ -222,10 +219,9 @@ module Google include Google::Apis::Core::Hashable # consumer_defined_name is the name that is set by the consumer. On the other - # hand Name field represents system-assigned id of an instance so consumers - # are not necessarily aware of it. - # consumer_defined_name is used for notification/UI purposes for consumer to - # recognize their instances. + # hand Name field represents system-assigned id of an instance so consumers are + # not necessarily aware of it. consumer_defined_name is used for notification/UI + # purposes for consumer to recognize their instances. # Corresponds to the JSON property `consumerDefinedName` # @return [String] attr_accessor :consumer_defined_name @@ -235,18 +231,17 @@ module Google # @return [String] attr_accessor :create_time - # Optional. Resource labels to represent user provided metadata. Each label - # is a key-value pair, where both the key and the value are arbitrary strings + # Optional. Resource labels to represent user provided metadata. Each label is a + # key-value pair, where both the key and the value are arbitrary strings # provided by the user. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The MaintenancePolicies that have been attached to the instance. - # The key must be of the type name of the oneof policy name defined in - # MaintenancePolicy, and the referenced policy must define the same policy - # type. For complete details of MaintenancePolicy, please refer to - # go/cloud-saas-mw-ug. + # The MaintenancePolicies that have been attached to the instance. The key must + # be of the type name of the oneof policy name defined in MaintenancePolicy, and + # the referenced policy must define the same policy type. For complete details + # of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. # Corresponds to the JSON property `maintenancePolicyNames` # @return [Hash] attr_accessor :maintenance_policy_names @@ -263,29 +258,28 @@ module Google # @return [Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings] attr_accessor :maintenance_settings - # Unique name of the resource. It uses the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` + # Unique name of the resource. It uses the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output only. Custom string attributes used primarily to expose - # producer-specific information in monitoring dashboards. - # See go/get-instance-metadata. + # Output only. Custom string attributes used primarily to expose producer- + # specific information in monitoring dashboards. See go/get-instance-metadata. # Corresponds to the JSON property `producerMetadata` # @return [Hash] attr_accessor :producer_metadata - # Output only. The list of data plane resources provisioned for this - # instance, e.g. compute VMs. See go/get-instance-metadata. + # Output only. The list of data plane resources provisioned for this instance, e. + # g. compute VMs. See go/get-instance-metadata. # Corresponds to the JSON property `provisionedResources` # @return [Array] attr_accessor :provisioned_resources - # Link to the SLM instance template. Only populated when updating SLM - # instances via SSA's Actuation service adaptor. - # Service producers with custom control plane (e.g. Cloud SQL) doesn't - # need to populate this field. Instead they should use software_versions. + # Link to the SLM instance template. Only populated when updating SLM instances + # via SSA's Actuation service adaptor. Service producers with custom control + # plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they + # should use software_versions. # Corresponds to the JSON property `slmInstanceTemplate` # @return [String] attr_accessor :slm_instance_template @@ -296,8 +290,8 @@ module Google # @return [Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata] attr_accessor :slo_metadata - # Software versions that are used to deploy this instance. This can be - # mutated by rollout services. + # Software versions that are used to deploy this instance. This can be mutated + # by rollout services. # Corresponds to the JSON property `softwareVersions` # @return [Hash] attr_accessor :software_versions @@ -308,8 +302,8 @@ module Google # @return [String] attr_accessor :state - # Output only. ID of the associated GCP tenant project. - # See go/get-instance-metadata. + # Output only. ID of the associated GCP tenant project. See go/get-instance- + # metadata. # Corresponds to the JSON property `tenantProjectId` # @return [String] attr_accessor :tenant_project_id @@ -348,9 +342,9 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule include Google::Apis::Core::Hashable - # Can this scheduled update be rescheduled? - # By default, it's true and API needs to do explicitly check whether it's - # set, if it's set as false explicitly, it's false + # Can this scheduled update be rescheduled? By default, it's true and API needs + # to do explicitly check whether it's set, if it's set as false explicitly, it's + # false # Corresponds to the JSON property `canReschedule` # @return [Boolean] attr_accessor :can_reschedule @@ -361,9 +355,9 @@ module Google # @return [String] attr_accessor :end_time - # The rollout management policy this maintenance schedule is associated - # with. When doing reschedule update request, the reschedule should be - # against this given policy. + # The rollout management policy this maintenance schedule is associated with. + # When doing reschedule update request, the reschedule should be against this + # given policy. # Corresponds to the JSON property `rolloutManagementPolicy` # @return [String] attr_accessor :rollout_management_policy @@ -392,8 +386,7 @@ module Google include Google::Apis::Core::Hashable # Optional. Exclude instance from maintenance. When true, rollout service will - # not - # attempt maintenance on the instance. Rollout service will include the + # not attempt maintenance on the instance. Rollout service will include the # instance in reported rollout progress as not attempted. # Corresponds to the JSON property `exclude` # @return [Boolean] @@ -410,18 +403,17 @@ module Google end end - # Node information for custom per-node SLO implementations. - # SSA does not support per-node SLO, but producers can populate per-node - # information in SloMetadata for custom precomputations. - # SSA Eligibility Exporter will emit per-node metric based on this information. + # Node information for custom per-node SLO implementations. SSA does not support + # per-node SLO, but producers can populate per-node information in SloMetadata + # for custom precomputations. SSA Eligibility Exporter will emit per-node metric + # based on this information. class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata include Google::Apis::Core::Hashable - # By default node is eligible if instance is eligible. - # But individual node might be excluded from SLO by adding entry here. - # For semantic see SloMetadata.exclusions. - # If both instance and node level exclusions are present for time period, - # the node level's reason will be reported by Eligibility Exporter. + # By default node is eligible if instance is eligible. But individual node might + # be excluded from SLO by adding entry here. For semantic see SloMetadata. + # exclusions. If both instance and node level exclusions are present for time + # period, the node level's reason will be reported by Eligibility Exporter. # Corresponds to the JSON property `exclusions` # @return [Array] attr_accessor :exclusions @@ -431,8 +423,7 @@ module Google # @return [String] attr_accessor :location - # The id of the node. - # This should be equal to SaasInstanceNode.node_id. + # The id of the node. This should be equal to SaasInstanceNode.node_id. # Corresponds to the JSON property `nodeId` # @return [String] attr_accessor :node_id @@ -453,18 +444,17 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource include Google::Apis::Core::Hashable - # Type of the resource. This can be either a GCP resource or a custom one - # (e.g. another cloud provider's VM). For GCP compute resources use singular - # form of the names listed in GCP compute API documentation - # (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with - # 'compute-', for example: 'compute-instance', 'compute-disk', - # 'compute-autoscaler'. + # Type of the resource. This can be either a GCP resource or a custom one (e.g. + # another cloud provider's VM). For GCP compute resources use singular form of + # the names listed in GCP compute API documentation (https://cloud.google.com/ + # compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: ' + # compute-instance', 'compute-disk', 'compute-autoscaler'. # Corresponds to the JSON property `resourceType` # @return [String] attr_accessor :resource_type - # URL identifying the resource, e.g. - # "https://www.googleapis.com/compute/v1/projects/...)". + # URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/ + # projects/...)". # Corresponds to the JSON property `resourceUrl` # @return [String] attr_accessor :resource_url @@ -480,9 +470,9 @@ module Google end end - # SloEligibility is a tuple containing eligibility value: true if an instance - # is eligible for SLO calculation or false if it should be excluded from all - # SLO-related calculations along with a user-defined reason. + # SloEligibility is a tuple containing eligibility value: true if an instance is + # eligible for SLO calculation or false if it should be excluded from all SLO- + # related calculations along with a user-defined reason. class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility include Google::Apis::Core::Hashable @@ -493,8 +483,7 @@ module Google alias_method :eligible?, :eligible # User-defined reason for the current value of instance eligibility. Usually, - # this can be directly mapped to the internal state. An empty reason is - # allowed. + # this can be directly mapped to the internal state. An empty reason is allowed. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -514,28 +503,27 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion include Google::Apis::Core::Hashable - # Exclusion duration. No restrictions on the possible values. - # When an ongoing operation is taking longer than initially expected, - # an existing entry in the exclusion list can be updated by extending the - # duration. This is supported by the subsystem exporting eligibility data - # as long as such extension is committed at least 10 minutes before the - # original exclusion expiration - otherwise it is possible that there will - # be "gaps" in the exclusion application in the exported timeseries. + # Exclusion duration. No restrictions on the possible values. When an ongoing + # operation is taking longer than initially expected, an existing entry in the + # exclusion list can be updated by extending the duration. This is supported by + # the subsystem exporting eligibility data as long as such extension is + # committed at least 10 minutes before the original exclusion expiration - + # otherwise it is possible that there will be "gaps" in the exclusion + # application in the exported timeseries. # Corresponds to the JSON property `duration` # @return [String] attr_accessor :duration - # Human-readable reason for the exclusion. - # This should be a static string (e.g. "Disruptive update in progress") - # and should not contain dynamically generated data (e.g. instance name). - # Can be left empty. + # Human-readable reason for the exclusion. This should be a static string (e.g. " + # Disruptive update in progress") and should not contain dynamically generated + # data (e.g. instance name). Can be left empty. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason - # Name of an SLI that this exclusion applies to. Can be left empty, - # signaling that the instance should be excluded from all SLIs defined - # in the service SLO configuration. + # Name of an SLI that this exclusion applies to. Can be left empty, signaling + # that the instance should be excluded from all SLIs defined in the service SLO + # configuration. # Corresponds to the JSON property `sliName` # @return [String] attr_accessor :sli_name @@ -563,40 +551,38 @@ module Google class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata include Google::Apis::Core::Hashable - # SloEligibility is a tuple containing eligibility value: true if an instance - # is eligible for SLO calculation or false if it should be excluded from all - # SLO-related calculations along with a user-defined reason. + # SloEligibility is a tuple containing eligibility value: true if an instance is + # eligible for SLO calculation or false if it should be excluded from all SLO- + # related calculations along with a user-defined reason. # Corresponds to the JSON property `eligibility` # @return [Google::Apis::RedisV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility] attr_accessor :eligibility - # List of SLO exclusion windows. When multiple entries in the list match - # (matching the exclusion time-window against current time point) - # the exclusion reason used in the first matching entry will be published. - # It is not needed to include expired exclusion in this list, as only the - # currently applicable exclusions are taken into account by the eligibility - # exporting subsystem (the historical state of exclusions will be reflected - # in the historically produced timeseries regardless of the current state). - # This field can be used to mark the instance as temporary ineligible - # for the purpose of SLO calculation. For permanent instance SLO exclusion, - # use of custom instance eligibility is recommended. See 'eligibility' field - # below. + # List of SLO exclusion windows. When multiple entries in the list match ( + # matching the exclusion time-window against current time point) the exclusion + # reason used in the first matching entry will be published. It is not needed to + # include expired exclusion in this list, as only the currently applicable + # exclusions are taken into account by the eligibility exporting subsystem (the + # historical state of exclusions will be reflected in the historically produced + # timeseries regardless of the current state). This field can be used to mark + # the instance as temporary ineligible for the purpose of SLO calculation. For + # permanent instance SLO exclusion, use of custom instance eligibility is + # recommended. See 'eligibility' field below. # Corresponds to the JSON property `exclusions` # @return [Array] attr_accessor :exclusions - # Optional. List of nodes. - # Some producers need to use per-node metadata to calculate SLO. - # This field allows such producers to publish per-node SLO meta data, - # which will be consumed by SSA Eligibility Exporter and published in the + # Optional. List of nodes. Some producers need to use per-node metadata to + # calculate SLO. This field allows such producers to publish per-node SLO meta + # data, which will be consumed by SSA Eligibility Exporter and published in the # form of per node metric to Monarch. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes # Name of the SLO tier the Instance belongs to. This name will be expected to - # match the tiers specified in the service SLO configuration. - # Field is mandatory and must not be empty. + # match the tiers specified in the service SLO configuration. Field is mandatory + # and must not be empty. # Corresponds to the JSON property `tier` # @return [String] attr_accessor :tier @@ -663,16 +649,15 @@ module Google # @return [String] attr_accessor :alternative_location_id - # Optional. The full name of the Google Compute Engine - # [network](https://cloud.google.com/vpc/docs/vpc) to which the - # instance is connected. If left unspecified, the `default` network - # will be used. + # Optional. The full name of the Google Compute Engine [network](https://cloud. + # google.com/vpc/docs/vpc) to which the instance is connected. If left + # unspecified, the `default` network will be used. # Corresponds to the JSON property `authorizedNetwork` # @return [String] attr_accessor :authorized_network - # Optional. The network connect mode of the Redis instance. - # If not provided, the connect mode defaults to DIRECT_PEERING. + # Optional. The network connect mode of the Redis instance. If not provided, the + # connect mode defaults to DIRECT_PEERING. # Corresponds to the JSON property `connectMode` # @return [String] attr_accessor :connect_mode @@ -683,10 +668,9 @@ module Google attr_accessor :create_time # Output only. The current zone where the Redis endpoint is placed. For Basic - # Tier instances, this will always be the same as the location_id - # provided by the user at creation time. For Standard Tier instances, - # this can be either location_id or alternative_location_id and can - # change after a failover event. + # Tier instances, this will always be the same as the location_id provided by + # the user at creation time. For Standard Tier instances, this can be either + # location_id or alternative_location_id and can change after a failover event. # Corresponds to the JSON property `currentLocationId` # @return [String] attr_accessor :current_location_id @@ -710,8 +694,8 @@ module Google # Optional. The zone where the instance will be provisioned. If not provided, # the service will choose a zone for the instance. For STANDARD_HA tier, # instances will be created across two zones for protection against zonal - # failures. If alternative_location_id is also provided, it must be - # different from location_id. + # failures. If alternative_location_id is also provided, it must be different + # from location_id. # Corresponds to the JSON property `locationId` # @return [String] attr_accessor :location_id @@ -722,21 +706,19 @@ module Google attr_accessor :memory_size_gb # Required. Unique name of the resource in this scope including project and - # location using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # Note: Redis instances are managed and addressed at regional level so - # location_id here refers to a GCP region; however, users may choose which - # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to location_id and + # location using the form: `projects/`project_id`/locations/`location_id`/ + # instances/`instance_id`` Note: Redis instances are managed and addressed at + # regional level so location_id here refers to a GCP region; however, users may + # choose which specific zone (or collection of zones for cross-zone instances) + # an instance should be provisioned in. Refer to location_id and # alternative_location_id fields for more details. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Output only. Cloud IAM identity used by import / export operations to - # transfer data to/from Cloud Storage. Format is - # "serviceAccount:". The value may change over time - # for a given instance so should be checked before each import/export + # Output only. Cloud IAM identity used by import / export operations to transfer + # data to/from Cloud Storage. Format is "serviceAccount:". The value may change + # over time for a given instance so should be checked before each import/export # operation. # Corresponds to the JSON property `persistenceIamIdentity` # @return [String] @@ -747,38 +729,27 @@ module Google # @return [Fixnum] attr_accessor :port - # Optional. Redis configuration parameters, according to - # http://redis.io/topics/config. Currently, the only supported parameters - # are: - # Redis version 3.2 and newer: - # * maxmemory-policy - # * notify-keyspace-events - # Redis version 4.0 and newer: - # * activedefrag - # * lfu-decay-time - # * lfu-log-factor - # * maxmemory-gb - # Redis version 5.0 and newer: - # * stream-node-max-bytes - # * stream-node-max-entries + # Optional. Redis configuration parameters, according to http://redis.io/topics/ + # config. Currently, the only supported parameters are: Redis version 3.2 and + # newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: + # * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version + # 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries # Corresponds to the JSON property `redisConfigs` # @return [Hash] attr_accessor :redis_configs - # Optional. The version of Redis software. - # If not provided, latest supported version will be used. Currently, the - # supported values are: - # * `REDIS_3_2` for Redis 3.2 compatibility - # * `REDIS_4_0` for Redis 4.0 compatibility (default) - # * `REDIS_5_0` for Redis 5.0 compatibility + # Optional. The version of Redis software. If not provided, latest supported + # version will be used. Currently, the supported values are: * `REDIS_3_2` for + # Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * ` + # REDIS_5_0` for Redis 5.0 compatibility # Corresponds to the JSON property `redisVersion` # @return [String] attr_accessor :redis_version # Optional. The CIDR range of internal addresses that are reserved for this - # instance. If not provided, the service will choose an unused /29 block, - # for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique - # and non-overlapping with existing subnets in an authorized network. + # instance. If not provided, the service will choose an unused /29 block, for + # example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non- + # overlapping with existing subnets in an authorized network. # Corresponds to the JSON property `reservedIpRange` # @return [String] attr_accessor :reserved_ip_range @@ -788,8 +759,8 @@ module Google # @return [String] attr_accessor :state - # Output only. Additional information about the current status of this - # instance, if available. + # Output only. Additional information about the current status of this instance, + # if available. # Corresponds to the JSON property `statusMessage` # @return [String] attr_accessor :status_message @@ -831,15 +802,14 @@ module Google class ListInstancesResponse include Google::Apis::Core::Hashable - # A list of Redis instances in the project in the specified location, - # or across all locations. - # If the `location_id` in the parent field of the request is "-", all regions - # available to the project are queried, and the results aggregated. - # If in such an aggregated query a location is unavailable, a dummy Redis - # entry is included in the response with the `name` field set to a value of - # the form `projects/`project_id`/locations/`location_id`/instances/`- and - # the `status` field set to ERROR and `status_message` field set to "location - # not available for ListInstances". + # A list of Redis instances in the project in the specified location, or across + # all locations. If the `location_id` in the parent field of the request is "-", + # all regions available to the project are queried, and the results aggregated. + # If in such an aggregated query a location is unavailable, a dummy Redis entry + # is included in the response with the `name` field set to a value of the form ` + # projects/`project_id`/locations/`location_id`/instances/`- and the `status` + # field set to ERROR and `status_message` field set to "location not available + # for ListInstances". # Corresponds to the JSON property `instances` # @return [Array] attr_accessor :instances @@ -921,14 +891,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -971,55 +941,49 @@ module Google 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. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::RedisV1beta1::Status] attr_accessor :error - # ` - # `createTime`: The time the operation was created. - # `endTime`: The time the operation finished running. - # `target`: Server-defined resource path for the target of the operation. - # `verb`: Name of the verb executed by the operation. - # `statusDetail`: Human-readable status of the operation, if any. - # `cancelRequested`: Identifies whether the user has requested cancellation of + # ` `createTime`: The time the operation was created. `endTime`: The time the + # operation finished running. `target`: Server-defined resource path for the + # target of the operation. `verb`: Name of the verb executed by the operation. ` + # statusDetail`: Human-readable status of the operation, if any. ` + # cancelRequested`: Identifies whether the user has requested cancellation of # the operation. Operations that have successfully been cancelled have Operation. # error value with a google.rpc.Status.code of 1, corresponding to `Code. - # CANCELLED`. - # `apiVersion`: API version used to start the operation. - # ` + # CANCELLED`. `apiVersion`: API version used to start the operation. ` # 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 be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # 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`. + # 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 @@ -1057,12 +1021,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -1071,15 +1035,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 diff --git a/generated/google/apis/redis_v1beta1/service.rb b/generated/google/apis/redis_v1beta1/service.rb index f1c1372c2..0b22cac82 100644 --- a/generated/google/apis/redis_v1beta1/service.rb +++ b/generated/google/apis/redis_v1beta1/service.rb @@ -116,28 +116,25 @@ module Google execute_or_queue_command(command, &block) end - # Creates a Redis instance based on the specified tier and memory size. - # By default, the instance is accessible from the project's - # [default network](https://cloud.google.com/vpc/docs/vpc). - # The creation is executed asynchronously and callers may check the returned - # operation to track its progress. Once the operation is completed the Redis - # instance will be fully functional. Completed longrunning.Operation will - # contain the new instance object in the response field. - # The returned operation is automatically deleted after a few hours, so there - # is no need to call DeleteOperation. + # Creates a Redis instance based on the specified tier and memory size. By + # default, the instance is accessible from the project's [default network](https: + # //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and + # callers may check the returned operation to track its progress. Once the + # operation is completed the Redis instance will be fully functional. Completed + # longrunning.Operation will contain the new instance object in the response + # field. The returned operation is automatically deleted after a few hours, so + # there is no need to call DeleteOperation. # @param [String] parent - # Required. The resource name of the instance location using the form: - # `projects/`project_id`/locations/`location_id`` - # where `location_id` refers to a GCP region. + # Required. The resource name of the instance location using the form: `projects/ + # `project_id`/locations/`location_id`` where `location_id` refers to a GCP + # region. # @param [Google::Apis::RedisV1beta1::Instance] instance_object # @param [String] instance_id - # Required. The logical name of the Redis instance in the customer project - # with the following restrictions: - # * Must contain only lowercase letters, numbers, and hyphens. - # * Must start with a letter. - # * Must be between 1-40 characters. - # * Must end with a number or a letter. - # * Must be unique within the customer project / location + # Required. The logical name of the Redis instance in the customer project with + # the following restrictions: * Must contain only lowercase letters, numbers, + # and hyphens. * Must start with a letter. * Must be between 1-40 characters. * + # Must end with a number or a letter. * Must be unique within the customer + # project / location # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -168,12 +165,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a specific Redis instance. Instance stops serving and data is - # deleted. + # Deletes a specific Redis instance. Instance stops serving and data is deleted. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -202,13 +198,13 @@ module Google end # Export Redis instance data into a Redis RDB format file in Cloud Storage. - # Redis will continue serving during this operation. - # The returned operation is automatically deleted after a few hours, so - # there is no need to call DeleteOperation. + # Redis will continue serving during this operation. The returned operation is + # automatically deleted after a few hours, so there is no need to call + # DeleteOperation. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1beta1::ExportInstanceRequest] export_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -239,12 +235,12 @@ module Google execute_or_queue_command(command, &block) end - # Initiates a failover of the master node to current replica node for a - # specific STANDARD tier Cloud Memorystore for Redis instance. + # Initiates a failover of the master node to current replica node for a specific + # STANDARD tier Cloud Memorystore for Redis instance. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1beta1::FailoverInstanceRequest] failover_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -277,9 +273,9 @@ module Google # Gets the details of a specific Redis instance. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -308,15 +304,14 @@ module Google end # Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. - # Redis may stop serving during this operation. Instance state will be - # IMPORTING for entire operation. When complete, the instance will contain - # only data from the imported file. - # The returned operation is automatically deleted after a few hours, so - # there is no need to call DeleteOperation. + # Redis may stop serving during this operation. Instance state will be IMPORTING + # for entire operation. When complete, the instance will contain only data from + # the imported file. The returned operation is automatically deleted after a few + # hours, so there is no need to call DeleteOperation. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1beta1::ImportInstanceRequest] import_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -347,26 +342,24 @@ module Google execute_or_queue_command(command, &block) end - # Lists all Redis instances owned by a project in either the specified - # location (region) or all locations. - # The location should have the following format: - # * `projects/`project_id`/locations/`location_id`` - # If `location_id` is specified as `-` (wildcard), then all regions - # available to the project are queried, and the results are aggregated. + # Lists all Redis instances owned by a project in either the specified location ( + # region) or all locations. The location should have the following format: * ` + # projects/`project_id`/locations/`location_id`` If `location_id` is specified + # as `-` (wildcard), then all regions available to the project are queried, and + # the results are aggregated. # @param [String] parent - # Required. The resource name of the instance location using the form: - # `projects/`project_id`/locations/`location_id`` - # where `location_id` refers to a GCP region. + # Required. The resource name of the instance location using the form: `projects/ + # `project_id`/locations/`location_id`` where `location_id` refers to a GCP + # region. # @param [Fixnum] page_size - # The maximum number of items to return. - # If not specified, a default value of 1000 will be used by the service. - # Regardless of the page_size value, the response may include a partial list - # and a caller should only rely on response's - # `next_page_token` - # to determine if there are more instances left to be queried. + # The maximum number of items to return. If not specified, a default value of + # 1000 will be used by the service. Regardless of the page_size value, the + # response may include a partial list and a caller should only rely on response' + # s `next_page_token` to determine if there are more instances left to be + # queried. # @param [String] page_token - # The `next_page_token` value returned from a previous - # ListInstances request, if any. + # The `next_page_token` value returned from a previous ListInstances request, if + # any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -396,28 +389,23 @@ module Google execute_or_queue_command(command, &block) end - # Updates the metadata and configuration of a specific Redis instance. - # Completed longrunning.Operation will contain the new instance object - # in the response field. The returned operation is automatically deleted - # after a few hours, so there is no need to call DeleteOperation. + # Updates the metadata and configuration of a specific Redis instance. Completed + # longrunning.Operation will contain the new instance object in the response + # field. The returned operation is automatically deleted after a few hours, so + # there is no need to call DeleteOperation. # @param [String] name # Required. Unique name of the resource in this scope including project and - # location using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # Note: Redis instances are managed and addressed at regional level so - # location_id here refers to a GCP region; however, users may choose which - # specific zone (or collection of zones for cross-zone instances) an instance - # should be provisioned in. Refer to location_id and + # location using the form: `projects/`project_id`/locations/`location_id`/ + # instances/`instance_id`` Note: Redis instances are managed and addressed at + # regional level so location_id here refers to a GCP region; however, users may + # choose which specific zone (or collection of zones for cross-zone instances) + # an instance should be provisioned in. Refer to location_id and # alternative_location_id fields for more details. # @param [Google::Apis::RedisV1beta1::Instance] instance_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. The elements of the repeated paths field may only include these - # fields from Instance: - # * `displayName` - # * `labels` - # * `memorySizeGb` - # * `redisConfig` + # Required. Mask of fields to update. At least one path must be supplied in this + # field. The elements of the repeated paths field may only include these fields + # from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -448,12 +436,11 @@ module Google execute_or_queue_command(command, &block) end - # Upgrades Redis instance to the newer Redis version specified in the - # request. + # Upgrades Redis instance to the newer Redis version specified in the request. # @param [String] name - # Required. Redis instance resource name using the form: - # `projects/`project_id`/locations/`location_id`/instances/`instance_id`` - # where `location_id` refers to a GCP region. + # Required. Redis instance resource name using the form: `projects/`project_id`/ + # locations/`location_id`/instances/`instance_id`` where `location_id` refers to + # a GCP region. # @param [Google::Apis::RedisV1beta1::UpgradeInstanceRequest] upgrade_instance_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -484,15 +471,13 @@ module Google execute_or_queue_command(command, &block) end - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # Starts asynchronous cancellation on a long-running operation. The server makes + # a best effort to cancel the operation, but success is not guaranteed. If the + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -523,10 +508,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -556,9 +541,8 @@ module Google execute_or_queue_command(command, &block) 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. + # 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 @@ -588,15 +572,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. # @param [String] name # The name of the operation's parent resource. # @param [String] filter diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index a581bd985..374dbdb3f 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/api/ module ScriptV1 VERSION = 'V1' - REVISION = '20200411' + REVISION = '20200811' # Read, compose, send, and permanently delete all your email from Gmail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index e18a00928..eedcce575 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -26,10 +26,9 @@ module Google class Content include Google::Apis::Core::Hashable - # The list of script project files. - # One of the files is a script manifest; it must be named "appsscript", - # must have type of JSON, and include the manifest configurations for the - # project. + # The list of script project files. One of the files is a script manifest; it + # must be named "appsscript", must have type of JSON, and include the manifest + # configurations for the project. # Corresponds to the JSON property `files` # @return [Array] attr_accessor :files @@ -55,8 +54,8 @@ module Google include Google::Apis::Core::Hashable # The Drive ID of a parent file that the created script project is bound to. - # This is usually the ID of a Google Doc, Google Sheet, Google Form, or - # Google Slides file. If not set, a standalone script project is created. + # This is usually the ID of a Google Doc, Google Sheet, Google Form, or Google + # Slides file. If not set, a standalone script project is created. # Corresponds to the JSON property `parentId` # @return [String] attr_accessor :parent_id @@ -151,13 +150,11 @@ module Google 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 ````. + # 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 @@ -227,13 +224,11 @@ module Google end # An object that provides information about the nature of an error resulting - # from an attempted execution of a script function using the Apps Script API. - # If a run call - # succeeds but the script function (or Apps Script itself) throws an exception, - # the response body's error field - # contains a - # Status object. The `Status` object's `details` field - # contains an array with a single one of these `ExecutionError` objects. + # from an attempted execution of a script function using the Apps Script API. If + # a run call succeeds but the script function (or Apps Script itself) throws an + # exception, the response body's error field contains a Status object. The ` + # Status` object's `details` field contains an array with a single one of these ` + # ExecutionError` objects. class ExecutionError include Google::Apis::Core::Hashable @@ -243,8 +238,8 @@ module Google # @return [String] attr_accessor :error_message - # The error type, for example `TypeError` or `ReferenceError`. If the error - # type is unavailable, this field is not included. + # The error type, for example `TypeError` or `ReferenceError`. If the error type + # is unavailable, this field is not included. # Corresponds to the JSON property `errorType` # @return [String] attr_accessor :error_type @@ -268,47 +263,44 @@ module Google end # A request to run the function in a script. The script is identified by the - # specified `script_id`. Executing a function on a script returns results - # based on the implementation of the script. + # specified `script_id`. Executing a function on a script returns results based + # on the implementation of the script. class ExecutionRequest include Google::Apis::Core::Hashable - # If `true` and the user is an owner of the script, the script runs at the - # most recently saved version rather than the version deployed for use with - # the Apps Script API. Optional; default is `false`. + # If `true` and the user is an owner of the script, the script runs at the most + # recently saved version rather than the version deployed for use with the Apps + # Script API. Optional; default is `false`. # Corresponds to the JSON property `devMode` # @return [Boolean] attr_accessor :dev_mode alias_method :dev_mode?, :dev_mode # The name of the function to execute in the given script. The name does not - # include parentheses or parameters. It can reference a function in an - # included library such as `Library.libFunction1`. + # include parentheses or parameters. It can reference a function in an included + # library such as `Library.libFunction1`. # Corresponds to the JSON property `function` # @return [String] attr_accessor :function # The parameters to be passed to the function being executed. The object type - # for each parameter should match the expected type in Apps Script. - # Parameters cannot be Apps Script-specific object types (such as a - # `Document` or a `Calendar`); they can only be primitive types such as - # `string`, `number`, `array`, `object`, or `boolean`. Optional. + # for each parameter should match the expected type in Apps Script. Parameters + # cannot be Apps Script-specific object types (such as a `Document` or a ` + # Calendar`); they can only be primitive types such as `string`, `number`, ` + # array`, `object`, or `boolean`. Optional. # Corresponds to the JSON property `parameters` # @return [Array] attr_accessor :parameters - # Deprecated. For use with Android add-ons only. An ID that represents - # the user's current session in the Android app for Google Docs or Sheets, - # included as extra data in the - # [Intent](https://developer.android.com/guide/components/intents-filters.html) - # that launches the add-on. When an Android add-on is run with a session - # state, it gains the privileges of a - # [bound](https://developers.google.com/apps-script/guides/bound) - # script—that is, it can access information like the user's current - # cursor position (in Docs) or selected cell (in Sheets). To retrieve the - # state, call - # `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`. - # Optional. + # *Deprecated*. For use with Android add-ons only. An ID that represents the + # user's current session in the Android app for Google Docs or Sheets, included + # as extra data in the [Intent](https://developer.android.com/guide/components/ + # intents-filters.html) that launches the add-on. When an Android add-on is run + # with a session state, it gains the privileges of a [bound](https://developers. + # google.com/apps-script/guides/bound) script—that is, it can access information + # like the user's current cursor position (in Docs) or selected cell (in Sheets). + # To retrieve the state, call `Intent.getStringExtra("com.google.android.apps. + # docs.addons.SessionState")`. Optional. # Corresponds to the JSON property `sessionState` # @return [String] attr_accessor :session_state @@ -326,18 +318,17 @@ module Google end end - # An object that provides the return value of a function executed using the - # Apps Script API. If the script function returns successfully, the response - # body's response field contains this - # `ExecutionResponse` object. + # An object that provides the return value of a function executed using the Apps + # Script API. If the script function returns successfully, the response body's + # response field contains this `ExecutionResponse` object. class ExecutionResponse include Google::Apis::Core::Hashable # The return value of the script function. The type matches the object type # returned in Apps Script. Functions called using the Apps Script API cannot # return Apps Script-specific objects (such as a `Document` or a `Calendar`); - # they can only return primitive types such as a `string`, `number`, `array`, - # `object`, or `boolean`. + # they can only return primitive types such as a `string`, `number`, `array`, ` + # object`, or `boolean`. # Corresponds to the JSON property `result` # @return [Object] attr_accessor :result @@ -352,16 +343,14 @@ module Google end end - # An individual file within a script project. - # A file is a third-party source code created by one or more - # developers. It can be a server-side JS code, HTML, or a - # configuration file. Each script project can contain multiple files. + # An individual file within a script project. A file is a third-party source + # code created by one or more developers. It can be a server-side JS code, HTML, + # or a configuration file. Each script project can contain multiple files. class File include Google::Apis::Core::Hashable - # Creation date timestamp. - # This read-only field is only visible to users who have WRITER - # permission for the script project. + # Creation date timestamp. This read-only field is only visible to users who + # have WRITER permission for the script project. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time @@ -376,8 +365,8 @@ module Google # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser] attr_accessor :last_modify_user - # The name of the file. The file extension is not part of the file - # name, which can be identified from the type field. + # The name of the file. The file extension is not part of the file name, which + # can be identified from the type field. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -392,9 +381,8 @@ module Google # @return [String] attr_accessor :type - # Last modified date timestamp. - # This read-only field is only visible to users who have WRITER - # permission for the script project. + # Last modified date timestamp. This read-only field is only visible to users + # who have WRITER permission for the script project. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -540,10 +528,10 @@ module Google end end - # Representation of a single script process execution that was started from - # the script editor, a trigger, an application, or using the Apps Script API. - # This is distinct from the `Operation` - # resource, which only represents executions started via the Apps Script API. + # Representation of a single script process execution that was started from the + # script editor, a trigger, an application, or using the Apps Script API. This + # is distinct from the `Operation` resource, which only represents executions + # started via the Apps Script API. class GoogleAppsScriptTypeProcess include Google::Apis::Core::Hashable @@ -694,8 +682,7 @@ module Google # @return [Array] attr_accessor :deployments - # The token that can be used in the next call to get the next page of - # results. + # The token that can be used in the next call to get the next page of results. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -711,8 +698,7 @@ module Google end end - # Response with the list of - # Process resources. + # Response with the list of Process resources. class ListScriptProcessesResponse include Google::Apis::Core::Hashable @@ -738,8 +724,7 @@ module Google end end - # Response with the list of - # Process resources. + # Response with the list of Process resources. class ListUserProcessesResponse include Google::Apis::Core::Hashable @@ -788,8 +773,8 @@ module Google class ListVersionsResponse include Google::Apis::Core::Hashable - # The token use to fetch the next page of records. if not exist in the - # response, that means no more versions to list. + # The token use to fetch the next page of records. if not exist in the response, + # that means no more versions to list. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -876,27 +861,19 @@ module Google # A representation of an execution of an Apps Script function started with run. # The execution response does not arrive until the function finishes executing. # The maximum execution runtime is listed in the [Apps Script quotas guide](/ - # apps-script/guides/services/quotas#current_limitations).

                                          After execution - # has started, it can have one of four outcomes:

                                          • If the script - # function returns successfully, the - # response field contains an - # ExecutionResponse object - # with the function's return value in the object's `result` field.
                                          • - #
                                          • If the script function (or Apps Script itself) throws an exception, the - # error field contains a - # Status object. The `Status` object's `details` - # field contains an array with a single - # ExecutionError object that - # provides information about the nature of the error.
                                          • - #
                                          • If the execution has not yet completed, - # the done field is `false` and - # the neither the `response` nor `error` fields are present.
                                          • - #
                                          • If the `run` call itself fails (for example, because of a - # malformed request or an authorization error), the method returns an HTTP - # response code in the 4XX range with a different format for the response - # body. Client libraries automatically convert a 4XX response into an - # exception class.
                                          • - #
                                          + # apps-script/guides/services/quotas#current_limitations). After execution has + # started, it can have one of four outcomes: - If the script function returns + # successfully, the response field contains an ExecutionResponse object with the + # function's return value in the object's `result` field. - If the script + # function (or Apps Script itself) throws an exception, the error field contains + # a Status object. The `Status` object's `details` field contains an array with + # a single ExecutionError object that provides information about the nature of + # the error. - If the execution has not yet completed, the done field is `false` + # and the neither the `response` nor `error` fields are present. - If the `run` + # call itself fails (for example, because of a malformed request or an + # authorization error), the method returns an HTTP response code in the 4XX + # range with a different format for the response body. Client libraries + # automatically convert a 4XX response into an exception class. class Operation include Google::Apis::Core::Hashable @@ -952,9 +929,9 @@ module Google # @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser] attr_accessor :last_modify_user - # The parent's Drive ID that the script will be attached to. This is usually - # the ID of a Google Document or Google Sheet. This filed is optional, and - # if not set, a stand-alone script will be created. + # The parent's Drive ID that the script will be attached to. This is usually the + # ID of a Google Document or Google Sheet. This filed is optional, and if not + # set, a stand-alone script will be created. # Corresponds to the JSON property `parentId` # @return [String] attr_accessor :parent_id @@ -1041,9 +1018,9 @@ module Google class Status include Google::Apis::Core::Hashable - # The status code. For this API, this value either:
                                          • 10, indicating a ` - # SCRIPT_TIMEOUT` error,
                                          • 3, indicating an `INVALID_ARGUMENT` error, or< - # /li>
                                          • 1, indicating a `CANCELLED` execution.
                                          + # The status code. For this API, this value either: - 10, indicating a ` + # SCRIPT_TIMEOUT` error, - 3, indicating an `INVALID_ARGUMENT` error, or - 1, + # indicating a `CANCELLED` execution. # Corresponds to the JSON property `code` # @return [Fixnum] attr_accessor :code @@ -1072,8 +1049,8 @@ module Google end end - # `Struct` represents a structured data value, consisting of fields which map - # to dynamically typed values. + # `Struct` represents a structured data value, consisting of fields which map to + # dynamically typed values. class Struct include Google::Apis::Core::Hashable @@ -1158,8 +1135,8 @@ module Google # @return [String] attr_accessor :string_value - # `Struct` represents a structured data value, consisting of fields which map - # to dynamically typed values. + # `Struct` represents a structured data value, consisting of fields which map to + # dynamically typed values. # Corresponds to the JSON property `structValue` # @return [Google::Apis::ScriptV1::Struct] attr_accessor :struct_value @@ -1182,9 +1159,9 @@ module Google end end - # A resource representing a script project version. A version is a "snapshot" - # of a script project and is similar to a read-only branched release. When - # creating deployments, the version to use must be specified. + # A resource representing a script project version. A version is a "snapshot" of + # a script project and is similar to a read-only branched release. When creating + # deployments, the version to use must be specified. class Version include Google::Apis::Core::Hashable @@ -1203,8 +1180,8 @@ module Google # @return [String] attr_accessor :script_id - # The incremental ID that is created by Apps Script when a version is - # created. This is system assigned number and is immutable once created. + # The incremental ID that is created by Apps Script when a version is created. + # This is system assigned number and is immutable once created. # Corresponds to the JSON property `versionNumber` # @return [Fixnum] attr_accessor :version_number diff --git a/generated/google/apis/script_v1/service.rb b/generated/google/apis/script_v1/service.rb index 2d9931b5d..6e4840f9d 100644 --- a/generated/google/apis/script_v1/service.rb +++ b/generated/google/apis/script_v1/service.rb @@ -47,23 +47,22 @@ module Google @batch_path = 'batch' end - # List information about processes made by or on behalf of a user, - # such as process type and current status. + # List information about processes made by or on behalf of a user, such as + # process type and current status. # @param [Fixnum] page_size - # The maximum number of returned processes per page of results. Defaults to - # 50. + # The maximum number of returned processes per page of results. Defaults to 50. # @param [String] page_token - # The token for continuing a previous list request on the next page. This - # should be set to the value of `nextPageToken` from a previous response. + # The token for continuing a previous list request on the next page. This should + # be set to the value of `nextPageToken` from a previous response. # @param [String] user_process_filter_deployment_id # Optional field used to limit returned processes to those originating from # projects with a specific deployment ID. # @param [String] user_process_filter_end_time - # Optional field used to limit returned processes to those that completed - # on or before the given timestamp. + # Optional field used to limit returned processes to those that completed on or + # before the given timestamp. # @param [String] user_process_filter_function_name - # Optional field used to limit returned processes to those originating from - # a script function with the given function name. + # Optional field used to limit returned processes to those originating from a + # script function with the given function name. # @param [String] user_process_filter_project_name # Optional field used to limit returned processes to those originating from # projects with project names containing a specific string. @@ -71,17 +70,17 @@ module Google # Optional field used to limit returned processes to those originating from # projects with a specific script ID. # @param [String] user_process_filter_start_time - # Optional field used to limit returned processes to those that were - # started on or after the given timestamp. + # Optional field used to limit returned processes to those that were started on + # or after the given timestamp. # @param [Array, String] user_process_filter_statuses - # Optional field used to limit returned processes to those having one of - # the specified process statuses. + # Optional field used to limit returned processes to those having one of the + # specified process statuses. # @param [Array, String] user_process_filter_types - # Optional field used to limit returned processes to those having one of - # the specified process types. + # Optional field used to limit returned processes to those having one of the + # specified process types. # @param [Array, String] user_process_filter_user_access_levels - # Optional field used to limit returned processes to those having one of - # the specified user access levels. + # Optional field used to limit returned processes to those having one of the + # specified user access levels. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -119,37 +118,36 @@ module Google execute_or_queue_command(command, &block) end - # List information about a script's executed processes, such as process type - # and current status. + # List information about a script's executed processes, such as process type and + # current status. # @param [Fixnum] page_size - # The maximum number of returned processes per page of results. Defaults to - # 50. + # The maximum number of returned processes per page of results. Defaults to 50. # @param [String] page_token - # The token for continuing a previous list request on the next page. This - # should be set to the value of `nextPageToken` from a previous response. + # The token for continuing a previous list request on the next page. This should + # be set to the value of `nextPageToken` from a previous response. # @param [String] script_id # The script ID of the project whose processes are listed. # @param [String] script_process_filter_deployment_id # Optional field used to limit returned processes to those originating from # projects with a specific deployment ID. # @param [String] script_process_filter_end_time - # Optional field used to limit returned processes to those that completed - # on or before the given timestamp. + # Optional field used to limit returned processes to those that completed on or + # before the given timestamp. # @param [String] script_process_filter_function_name - # Optional field used to limit returned processes to those originating from - # a script function with the given function name. + # Optional field used to limit returned processes to those originating from a + # script function with the given function name. # @param [String] script_process_filter_start_time - # Optional field used to limit returned processes to those that were - # started on or after the given timestamp. + # Optional field used to limit returned processes to those that were started on + # or after the given timestamp. # @param [Array, String] script_process_filter_statuses - # Optional field used to limit returned processes to those having one of - # the specified process statuses. + # Optional field used to limit returned processes to those having one of the + # specified process statuses. # @param [Array, String] script_process_filter_types - # Optional field used to limit returned processes to those having one of - # the specified process types. + # Optional field used to limit returned processes to those having one of the + # specified process types. # @param [Array, String] script_process_filter_user_access_levels - # Optional field used to limit returned processes to those having one of - # the specified user access levels. + # Optional field used to limit returned processes to those having one of the + # specified user access levels. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -186,8 +184,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new, empty script project with no script files and a base - # manifest file. + # Creates a new, empty script project with no script files and a base manifest + # file. # @param [Google::Apis::ScriptV1::CreateProjectRequest] create_project_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -247,13 +245,13 @@ module Google execute_or_queue_command(command, &block) end - # Gets the content of the script project, including the code source and - # metadata for each script file. + # Gets the content of the script project, including the code source and metadata + # for each script file. # @param [String] script_id # The script project's Drive ID. # @param [Fixnum] version_number - # The version number of the project to retrieve. If not provided, the - # project's HEAD version is returned. + # The version number of the project to retrieve. If not provided, the project's + # HEAD version is returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -282,8 +280,7 @@ module Google execute_or_queue_command(command, &block) end - # Get metrics data for scripts, such as number of executions and - # active users. + # Get metrics data for scripts, such as number of executions and active users. # @param [String] script_id # Required field indicating the script to get metrics for. # @param [String] metrics_filter_deployment_id @@ -319,11 +316,10 @@ module Google execute_or_queue_command(command, &block) end - # Updates the content of the specified script project. - # This content is stored as the HEAD version, and is used when the script is - # executed as a trigger, in the script editor, in add-on preview mode, or as - # a web app or Apps Script API in development mode. This clears all the - # existing files in the project. + # Updates the content of the specified script project. This content is stored as + # the HEAD version, and is used when the script is executed as a trigger, in the + # script editor, in add-on preview mode, or as a web app or Apps Script API in + # development mode. This clears all the existing files in the project. # @param [String] script_id # The script project's Drive ID. # @param [Google::Apis::ScriptV1::Content] content_object @@ -461,8 +457,8 @@ module Google # @param [Fixnum] page_size # The maximum number of deployments on each returned page. Defaults to 50. # @param [String] page_token - # The token for continuing a previous list request on the next page. This - # should be set to the value of `nextPageToken` from a previous response. + # The token for continuing a previous list request on the next page. This should + # be set to the value of `nextPageToken` from a previous response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -528,8 +524,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new immutable version using the current code, with a unique - # version number. + # Creates a new immutable version using the current code, with a unique version + # number. # @param [String] script_id # The script project's Drive ID. # @param [Google::Apis::ScriptV1::Version] version_object @@ -601,8 +597,8 @@ module Google # @param [Fixnum] page_size # The maximum number of versions on each returned page. Defaults to 50. # @param [String] page_token - # The token for continuing a previous list request on the next page. This - # should be set to the value of `nextPageToken` from a previous response. + # The token for continuing a previous list request on the next page. This should + # be set to the value of `nextPageToken` from a previous response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -632,22 +628,20 @@ module Google execute_or_queue_command(command, &block) end - # Runs a function in an Apps Script project. The script project must be - # deployed for use with the Apps Script API and the calling application must - # share the same Cloud Platform project. - # This method requires authorization with an OAuth 2.0 token that includes at - # least one of the scopes listed in the - # [Authorization](#authorization-scopes) section; script projects that do not - # require authorization cannot be executed through this API. To find the - # correct scopes to include in the authentication token, open the project in - # the script editor, then select **File > Project properties** and click the - # **Scopes** tab. + # Runs a function in an Apps Script project. The script project must be deployed + # for use with the Apps Script API and the calling application must share the + # same Cloud Platform project. This method requires authorization with an OAuth + # 2.0 token that includes at least one of the scopes listed in the [ + # Authorization](#authorization-scopes) section; script projects that do not + # require authorization cannot be executed through this API. To find the correct + # scopes to include in the authentication token, open the project in the script + # editor, then select **File > Project properties** and click the **Scopes** tab. # The error `403, PERMISSION_DENIED: The caller does not have permission` - # indicates that the Cloud Platform project used to authorize the request is - # not the same as the one used by the script. + # indicates that the Cloud Platform project used to authorize the request is not + # the same as the one used by the script. # @param [String] script_id - # The script ID of the script to be executed. To find the script ID, open - # the project in the script editor and select **File > Project properties**. + # The script ID of the script to be executed. To find the script ID, open the + # project in the script editor and select **File > Project properties**. # @param [Google::Apis::ScriptV1::ExecutionRequest] execution_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index a95ca009a..44b41d6f2 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20200715' + REVISION = '20200808' # 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/servicecontrol_v1/classes.rb b/generated/google/apis/servicecontrol_v1/classes.rb index eca2515c5..b207ea000 100644 --- a/generated/google/apis/servicecontrol_v1/classes.rb +++ b/generated/google/apis/servicecontrol_v1/classes.rb @@ -26,11 +26,11 @@ module Google class AllocateInfo include Google::Apis::Core::Hashable - # A list of label keys that were unused by the server in processing the - # request. Thus, for similar requests repeated in a certain future time - # window, the caller can choose to ignore these labels in the requests - # to achieve better client-side cache hits and quota aggregation for rate - # quota. This field is not populated for allocation quota checks. + # A list of label keys that were unused by the server in processing the request. + # Thus, for similar requests repeated in a certain future time window, the + # caller can choose to ignore these labels in the requests to achieve better + # client-side cache hits and quota aggregation for rate quota. This field is not + # populated for allocation quota checks. # Corresponds to the JSON property `unusedArguments` # @return [Array] attr_accessor :unused_arguments @@ -54,9 +54,9 @@ module Google # @return [Google::Apis::ServicecontrolV1::QuotaOperation] attr_accessor :allocate_operation - # Specifies which version of service configuration should be used to process - # the request. If unspecified or no matching version can be found, the latest - # one will be used. + # Specifies which version of service configuration should be used to process the + # request. If unspecified or no matching version can be found, the latest one + # will be used. # Corresponds to the JSON property `serviceConfigId` # @return [String] attr_accessor :service_config_id @@ -86,20 +86,18 @@ module Google # @return [Google::Apis::ServicecontrolV1::AllocateInfo] attr_accessor :allocate_info - # The same operation_id value used in the AllocateQuotaRequest. Used for - # logging and diagnostics purposes. + # The same operation_id value used in the AllocateQuotaRequest. Used for logging + # and diagnostics purposes. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id - # Quota metrics to indicate the result of allocation. Depending on the - # request, one or more of the following metrics will be included: - # 1. Per quota group or per quota metric incremental usage will be specified - # using the following delta metric : - # "serviceruntime.googleapis.com/api/consumer/quota_used_count" - # 2. The quota limit reached condition will be specified using the following - # boolean metric : - # "serviceruntime.googleapis.com/quota/exceeded" + # Quota metrics to indicate the result of allocation. Depending on the request, + # one or more of the following metrics will be included: 1. Per quota group or + # per quota metric incremental usage will be specified using the following delta + # metric : "serviceruntime.googleapis.com/api/consumer/quota_used_count" 2. The + # quota limit reached condition will be specified using the following boolean + # metric : "serviceruntime.googleapis.com/quota/exceeded" # Corresponds to the JSON property `quotaMetrics` # @return [Array] attr_accessor :quota_metrics @@ -159,20 +157,17 @@ module Google class Attributes include Google::Apis::Core::Hashable - # The set of attributes. Each attribute's key can be up to 128 bytes - # long. The value can be a string up to 256 bytes, a signed 64-bit integer, - # or the Boolean values `true` and `false`. For example: - # "/instance_id": "my-instance" - # "/http/user_agent": "" - # "/http/request_bytes": 300 - # "abc.com/myattribute": true + # The set of attributes. Each attribute's key can be up to 128 bytes long. The + # value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean + # values `true` and `false`. For example: "/instance_id": "my-instance" "/http/ + # user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true # Corresponds to the JSON property `attributeMap` # @return [Hash] attr_accessor :attribute_map # The number of attributes that were discarded. Attributes can be discarded - # because their keys are too long or because there are too many attributes. - # If this value is 0 then all attributes are valid. + # because their keys are too long or because there are too many attributes. If + # this value is 0 then all attributes are valid. # Corresponds to the JSON property `droppedAttributesCount` # @return [Fixnum] attr_accessor :dropped_attributes_count @@ -197,40 +192,36 @@ module Google # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo] attr_accessor :authentication_info - # Authorization information. If there are multiple - # resources or permissions involved, then there is - # one AuthorizationInfo element for each `resource, permission` tuple. + # Authorization information. If there are multiple resources or permissions + # involved, then there is one AuthorizationInfo element for each `resource, + # permission` tuple. # Corresponds to the JSON property `authorizationInfo` # @return [Array] attr_accessor :authorization_info - # Other service-specific data about the request, response, and other - # information associated with the current audited event. + # Other service-specific data about the request, response, and other information + # associated with the current audited event. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata - # The name of the service method or operation. - # For API calls, this should be the name of the API method. - # For example, - # "google.cloud.bigquery.v2.TableService.InsertTable" - # "google.logging.v2.ConfigServiceV2.CreateSink" + # The name of the service method or operation. For API calls, this should be the + # name of the API method. For example, "google.cloud.bigquery.v2.TableService. + # InsertTable" "google.logging.v2.ConfigServiceV2.CreateSink" # Corresponds to the JSON property `methodName` # @return [String] attr_accessor :method_name - # The number of items returned from a List or Query API method, - # if applicable. + # The number of items returned from a List or Query API method, if applicable. # Corresponds to the JSON property `numResponseItems` # @return [Fixnum] attr_accessor :num_response_items - # The operation request. This may not include all request parameters, - # such as those that are too large, privacy-sensitive, or duplicated - # elsewhere in the log record. - # It should never include user-generated data, such as file contents. - # When the JSON object represented here has a proto equivalent, the proto - # name will be indicated in the `@type` property. + # The operation request. This may not include all request parameters, such as + # those that are too large, privacy-sensitive, or duplicated elsewhere in the + # log record. It should never include user-generated data, such as file contents. + # When the JSON object represented here has a proto equivalent, the proto name + # will be indicated in the `@type` property. # Corresponds to the JSON property `request` # @return [Hash] attr_accessor :request @@ -245,55 +236,51 @@ module Google # @return [Google::Apis::ServicecontrolV1::ResourceLocation] attr_accessor :resource_location - # The resource or collection that is the target of the operation. - # The name is a scheme-less URI, not including the API service name. - # For example: - # "projects/PROJECT_ID/zones/us-central1-a/instances" - # "projects/PROJECT_ID/datasets/DATASET_ID" + # The resource or collection that is the target of the operation. The name is a + # scheme-less URI, not including the API service name. For example: "projects/ + # PROJECT_ID/zones/us-central1-a/instances" "projects/PROJECT_ID/datasets/ + # DATASET_ID" # Corresponds to the JSON property `resourceName` # @return [String] attr_accessor :resource_name - # The resource's original state before mutation. Present only for - # operations which have successfully modified the targeted resource(s). - # In general, this field should contain all changed fields, except those - # that are already been included in `request`, `response`, `metadata` or - # `service_data` fields. - # When the JSON object represented here has a proto equivalent, - # the proto name will be indicated in the `@type` property. + # The resource's original state before mutation. Present only for operations + # which have successfully modified the targeted resource(s). In general, this + # field should contain all changed fields, except those that are already been + # included in `request`, `response`, `metadata` or `service_data` fields. When + # the JSON object represented here has a proto equivalent, the proto name will + # be indicated in the `@type` property. # Corresponds to the JSON property `resourceOriginalState` # @return [Hash] attr_accessor :resource_original_state - # The operation response. This may not include all response elements, - # such as those that are too large, privacy-sensitive, or duplicated - # elsewhere in the log record. - # It should never include user-generated data, such as file contents. - # When the JSON object represented here has a proto equivalent, the proto - # name will be indicated in the `@type` property. + # The operation response. This may not include all response elements, such as + # those that are too large, privacy-sensitive, or duplicated elsewhere in the + # log record. It should never include user-generated data, such as file contents. + # When the JSON object represented here has a proto equivalent, the proto name + # will be indicated in the `@type` property. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response - # Deprecated. Use the `metadata` field instead. - # Other service-specific data about the request, response, and other - # activities. + # Deprecated. Use the `metadata` field instead. Other service-specific data + # about the request, response, and other activities. # Corresponds to the JSON property `serviceData` # @return [Hash] attr_accessor :service_data - # The name of the API service performing the operation. For example, - # `"compute.googleapis.com"`. + # The name of the API service performing the operation. For example, `"compute. + # googleapis.com"`. # Corresponds to the JSON property `serviceName` # @return [String] attr_accessor :service_name - # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::ServicecontrolV1::Status] attr_accessor :status @@ -321,69 +308,59 @@ module Google end end - # This message defines request authentication attributes. Terminology is - # based on the JSON Web Token (JWT) standard, but the terms also - # correlate to concepts in other standards. + # This message defines request authentication attributes. Terminology is based + # on the JSON Web Token (JWT) standard, but the terms also correlate to concepts + # in other standards. class Auth include Google::Apis::Core::Hashable - # A list of access level resource names that allow resources to be - # accessed by authenticated requester. It is part of Secure GCP processing - # for the incoming request. An access level string has the format: - # "//`api_service_name`/accessPolicies/`policy_id`/accessLevels/`short_name`" - # Example: - # "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/ - # accessLevels/MY_LEVEL" + # A list of access level resource names that allow resources to be accessed by + # authenticated requester. It is part of Secure GCP processing for the incoming + # request. An access level string has the format: "//`api_service_name`/ + # accessPolicies/`policy_id`/accessLevels/`short_name`" Example: "// + # accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/ + # MY_LEVEL" # Corresponds to the JSON property `accessLevels` # @return [Array] attr_accessor :access_levels - # The intended audience(s) for this authentication information. Reflects - # the audience (`aud`) claim within a JWT. The audience - # value(s) depends on the `issuer`, but typically include one or more of - # the following pieces of information: - # * The services intended to receive the credential. For example, - # ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. - # * A set of service-based scopes. For example, - # ["https://www.googleapis.com/auth/cloud-platform"]. - # * The client id of an app, such as the Firebase project id for JWTs - # from Firebase Auth. - # Consult the documentation for the credential issuer to determine the - # information provided. + # The intended audience(s) for this authentication information. Reflects the + # audience (`aud`) claim within a JWT. The audience value(s) depends on the ` + # issuer`, but typically include one or more of the following pieces of + # information: * The services intended to receive the credential. For example, [" + # https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * A set + # of service-based scopes. For example, ["https://www.googleapis.com/auth/cloud- + # platform"]. * The client id of an app, such as the Firebase project id for + # JWTs from Firebase Auth. Consult the documentation for the credential issuer + # to determine the information provided. # Corresponds to the JSON property `audiences` # @return [Array] attr_accessor :audiences - # Structured claims presented with the credential. JWTs include - # ``key: value`` pairs for standard and private claims. The following - # is a subset of the standard required and optional claims that would - # typically be presented for a Google-based JWT: - # `'iss': 'accounts.google.com', - # 'sub': '113289723416554971153', - # 'aud': ['123456789012', 'pubsub.googleapis.com'], - # 'azp': '123456789012.apps.googleusercontent.com', - # 'email': 'jsmith@example.com', - # 'iat': 1353601026, - # 'exp': 1353604926` - # SAML assertions are similarly specified, but with an identity provider - # dependent structure. + # Structured claims presented with the credential. JWTs include ``key: value`` + # pairs for standard and private claims. The following is a subset of the + # standard required and optional claims that would typically be presented for a + # Google-based JWT: `'iss': 'accounts.google.com', 'sub': '113289723416554971153' + # , 'aud': ['123456789012', 'pubsub.googleapis.com'], 'azp': '123456789012.apps. + # googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp' + # : 1353604926` SAML assertions are similarly specified, but with an identity + # provider dependent structure. # Corresponds to the JSON property `claims` # @return [Hash] attr_accessor :claims - # The authorized presenter of the credential. Reflects the optional - # Authorized Presenter (`azp`) claim within a JWT or the - # OAuth client id. For example, a Google Cloud Platform client id looks - # as follows: "123456789012.apps.googleusercontent.com". + # The authorized presenter of the credential. Reflects the optional Authorized + # Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a + # Google Cloud Platform client id looks as follows: "123456789012.apps. + # googleusercontent.com". # Corresponds to the JSON property `presenter` # @return [String] attr_accessor :presenter - # The authenticated principal. Reflects the issuer (`iss`) and subject - # (`sub`) claims within a JWT. The issuer and subject should be `/` - # delimited, with `/` percent-encoded within the subject fragment. For - # Google accounts, the principal format is: - # "https://accounts.google.com/`id`" + # The authenticated principal. Reflects the issuer (`iss`) and subject (`sub`) + # claims within a JWT. The issuer and subject should be `/` delimited, with `/` + # percent-encoded within the subject fragment. For Google accounts, the + # principal format is: "https://accounts.google.com/`id`" # Corresponds to the JSON property `principal` # @return [String] attr_accessor :principal @@ -406,48 +383,46 @@ module Google class AuthenticationInfo include Google::Apis::Core::Hashable - # The authority selector specified by the requestor, if any. - # It is not guaranteed that the principal was allowed to use this authority. + # The authority selector specified by the requestor, if any. It is not + # guaranteed that the principal was allowed to use this authority. # Corresponds to the JSON property `authoritySelector` # @return [String] attr_accessor :authority_selector - # The email address of the authenticated user (or service account on behalf - # of third party principal) making the request. For privacy reasons, the - # principal email address is redacted for all read-only operations that fail - # with a "permission denied" error. + # The email address of the authenticated user (or service account on behalf of + # third party principal) making the request. For privacy reasons, the principal + # email address is redacted for all read-only operations that fail with a " + # permission denied" error. # Corresponds to the JSON property `principalEmail` # @return [String] attr_accessor :principal_email - # String representation of identity of requesting party. - # Populated for both first and third party identities. + # String representation of identity of requesting party. Populated for both + # first and third party identities. # Corresponds to the JSON property `principalSubject` # @return [String] attr_accessor :principal_subject - # Identity delegation history of an authenticated service account that makes - # the request. It contains information on the real authorities that try to - # access GCP resources by delegating on a service account. When multiple - # authorities present, they are guaranteed to be sorted based on the original - # ordering of the identity delegation events. + # Identity delegation history of an authenticated service account that makes the + # request. It contains information on the real authorities that try to access + # GCP resources by delegating on a service account. When multiple authorities + # present, they are guaranteed to be sorted based on the original ordering of + # the identity delegation events. # Corresponds to the JSON property `serviceAccountDelegationInfo` # @return [Array] attr_accessor :service_account_delegation_info - # The name of the service account key used to create or exchange - # credentials for authenticating the service account making the request. - # This is a scheme-less URI full resource name. For example: - # "//iam.googleapis.com/projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/` - # key`" + # The name of the service account key used to create or exchange credentials for + # authenticating the service account making the request. This is a scheme-less + # URI full resource name. For example: "//iam.googleapis.com/projects/` + # PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key`" # Corresponds to the JSON property `serviceAccountKeyName` # @return [String] attr_accessor :service_account_key_name - # The third party identification (if any) of the authenticated user making - # the request. - # When the JSON object represented here has a proto equivalent, the proto - # name will be indicated in the `@type` property. + # The third party identification (if any) of the authenticated user making the + # request. When the JSON object represented here has a proto equivalent, the + # proto name will be indicated in the `@type` property. # Corresponds to the JSON property `thirdPartyPrincipal` # @return [Hash] attr_accessor :third_party_principal @@ -471,8 +446,7 @@ module Google class AuthorizationInfo include Google::Apis::Core::Hashable - # Whether or not authorization for `resource` and `permission` - # was granted. + # Whether or not authorization for `resource` and `permission` was granted. # Corresponds to the JSON property `granted` # @return [Boolean] attr_accessor :granted @@ -483,15 +457,15 @@ module Google # @return [String] attr_accessor :permission - # The resource being accessed, as a REST-style string. For example: - # bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID + # The resource being accessed, as a REST-style string. For example: bigquery. + # googleapis.com/projects/PROJECTID/datasets/DATASETID # Corresponds to the JSON property `resource` # @return [String] attr_accessor :resource # This message defines core attributes for a resource. A resource is an - # addressable (named) entity provided by the destination service. For - # example, a file stored on a network storage service. + # addressable (named) entity provided by the destination service. For example, a + # file stored on a network storage service. # Corresponds to the JSON property `resourceAttributes` # @return [Google::Apis::ServicecontrolV1::Resource] attr_accessor :resource_attributes @@ -509,8 +483,8 @@ module Google end end - # Defines the errors to be returned in - # google.api.servicecontrol.v1.CheckResponse.check_errors. + # Defines the errors to be returned in google.api.servicecontrol.v1. + # CheckResponse.check_errors. class CheckError include Google::Apis::Core::Hashable @@ -524,21 +498,18 @@ module Google # @return [String] attr_accessor :detail - # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::ServicecontrolV1::Status] attr_accessor :status # Subject to whom this error applies. See the specific code enum for more - # details on this field. For example: - # - "project:" - # - "folder:" - # - "organization:" + # details on this field. For example: - "project:" - "folder:" - "organization:" # Corresponds to the JSON property `subject` # @return [String] attr_accessor :subject @@ -565,9 +536,9 @@ module Google # @return [Google::Apis::ServicecontrolV1::ConsumerInfo] attr_accessor :consumer_info - # A list of fields and label keys that are ignored by the server. - # The client doesn't need to send them for following requests to improve - # performance and allow better aggregation. + # A list of fields and label keys that are ignored by the server. The client + # doesn't need to send them for following requests to improve performance and + # allow better aggregation. # Corresponds to the JSON property `unusedArguments` # @return [Array] attr_accessor :unused_arguments @@ -598,17 +569,16 @@ module Google attr_accessor :request_project_settings alias_method :request_project_settings?, :request_project_settings - # Specifies which version of service configuration should be used to process - # the request. - # If unspecified or no matching version can be found, the - # latest one will be used. + # Specifies which version of service configuration should be used to process the + # request. If unspecified or no matching version can be found, the latest one + # will be used. # Corresponds to the JSON property `serviceConfigId` # @return [String] attr_accessor :service_config_id # Indicates if service activation check should be skipped for this request. - # Default behavior is to perform the check and apply relevant quota. - # WARNING: Setting this flag to "true" will disable quota enforcement. + # Default behavior is to perform the check and apply relevant quota. WARNING: + # Setting this flag to "true" will disable quota enforcement. # Corresponds to the JSON property `skipActivationCheck` # @return [Boolean] attr_accessor :skip_activation_check @@ -631,10 +601,9 @@ module Google class CheckResponse include Google::Apis::Core::Hashable - # Indicate the decision of the check. - # If no check errors are present, the service should process the operation. - # Otherwise the service should use the list of errors to determine the - # appropriate action. + # Indicate the decision of the check. If no check errors are present, the + # service should process the operation. Otherwise the service should use the + # list of errors to determine the appropriate action. # Corresponds to the JSON property `checkErrors` # @return [Array] attr_accessor :check_errors @@ -644,8 +613,8 @@ module Google # @return [Google::Apis::ServicecontrolV1::CheckInfo] attr_accessor :check_info - # The same operation_id value used in the CheckRequest. - # Used for logging and diagnostics purposes. + # The same operation_id value used in the CheckRequest. Used for logging and + # diagnostics purposes. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id @@ -691,16 +660,15 @@ module Google # @return [Fixnum] attr_accessor :consumer_number - # The Google cloud project number, e.g. 1234567890. A value of 0 indicates - # no project number is found. - # NOTE: This field is deprecated after Chemist support flexible consumer - # id. New code should not depend on this field anymore. + # The Google cloud project number, e.g. 1234567890. A value of 0 indicates no + # project number is found. NOTE: This field is deprecated after Chemist support + # flexible consumer id. New code should not depend on this field anymore. # Corresponds to the JSON property `projectNumber` # @return [Fixnum] attr_accessor :project_number - # The type of the consumer which should have been defined in - # [Google Resource Manager](https://cloud.google.com/resource-manager/). + # The type of the consumer which should have been defined in [Google Resource + # Manager](https://cloud.google.com/resource-manager/). # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -719,23 +687,20 @@ module Google # Distribution represents a frequency distribution of double-valued sample # points. It contains the size of the population of sample points plus - # additional optional information: - # - the arithmetic mean of the samples - # - the minimum and maximum of the samples - # - the sum-squared-deviation of the samples, used to compute variance - # - a histogram of the values of the sample points + # additional optional information: - the arithmetic mean of the samples - the + # minimum and maximum of the samples - the sum-squared-deviation of the samples, + # used to compute variance - a histogram of the values of the sample points class Distribution include Google::Apis::Core::Hashable - # The number of samples in each histogram bucket. `bucket_counts` are - # optional. If present, they must sum to the `count` value. - # The buckets are defined below in `bucket_option`. There are N buckets. - # `bucket_counts[0]` is the number of samples in the underflow bucket. - # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples - # in each of the finite buckets. And `bucket_counts[N] is the number - # of samples in the overflow bucket. See the comments of `bucket_option` - # below for more details. - # Any suffix of trailing zeros may be omitted. + # The number of samples in each histogram bucket. `bucket_counts` are optional. + # If present, they must sum to the `count` value. The buckets are defined below + # in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of + # samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` + # are the numbers of samples in each of the finite buckets. And `bucket_counts[N] + # is the number of samples in the overflow bucket. See the comments of ` + # bucket_option` below for more details. Any suffix of trailing zeros may be + # omitted. # Corresponds to the JSON property `bucketCounts` # @return [Array] attr_accessor :bucket_counts @@ -770,8 +735,8 @@ module Google # @return [Float] attr_accessor :maximum - # The arithmetic mean of the samples in the distribution. If `count` is - # zero then this field must be zero. + # The arithmetic mean of the samples in the distribution. If `count` is zero + # then this field must be zero. # Corresponds to the JSON property `mean` # @return [Float] attr_accessor :mean @@ -781,10 +746,9 @@ module Google # @return [Float] attr_accessor :minimum - # The sum of squared deviations from the mean: - # Sum[i=1..count]((x_i - mean)^2) - # where each x_i is a sample values. If `count` is zero then this field - # must be zero, otherwise validation of the request fails. + # The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) + # where each x_i is a sample values. If `count` is zero then this field must be + # zero, otherwise validation of the request fails. # Corresponds to the JSON property `sumOfSquaredDeviation` # @return [Float] attr_accessor :sum_of_squared_deviation @@ -810,19 +774,18 @@ module Google # Exemplars are example points that may be used to annotate aggregated # distribution values. They are metadata that gives information about a - # particular value added to a Distribution bucket, such as a trace ID that - # was active when a value was added. They may contain further information, - # such as a example values and timestamps, origin, etc. + # particular value added to a Distribution bucket, such as a trace ID that was + # active when a value was added. They may contain further information, such as a + # example values and timestamps, origin, etc. class Exemplar include Google::Apis::Core::Hashable - # Contextual information about the example value. Examples are: - # Trace: type.googleapis.com/google.monitoring.v3.SpanContext - # Literal string: type.googleapis.com/google.protobuf.StringValue - # Labels dropped during aggregation: - # type.googleapis.com/google.monitoring.v3.DroppedLabels - # There may be only a single attachment of any given message type in a - # single exemplar, and this is enforced by the system. + # Contextual information about the example value. Examples are: Trace: type. + # googleapis.com/google.monitoring.v3.SpanContext Literal string: type. + # googleapis.com/google.protobuf.StringValue Labels dropped during aggregation: + # type.googleapis.com/google.monitoring.v3.DroppedLabels There may be only a + # single attachment of any given message type in a single exemplar, and this is + # enforced by the system. # Corresponds to the JSON property `attachments` # @return [Array>] attr_accessor :attachments @@ -854,19 +817,15 @@ module Google class ExplicitBuckets include Google::Apis::Core::Hashable - # 'bound' is a list of strictly increasing boundaries between - # buckets. Note that a list of length N-1 defines N buckets because - # of fenceposting. See comments on `bucket_options` for details. - # The i'th finite bucket covers the interval - # [bound[i-1], bound[i]) - # where i ranges from 1 to bound_size() - 1. Note that there are no - # finite buckets at all if 'bound' only contains a single element; in - # that special case the single bound defines the boundary between the - # underflow and overflow buckets. - # bucket number lower bound upper bound - # i == 0 (underflow) -inf bound[i] - # 0 < i < bound_size() bound[i-1] bound[i] - # i == bound_size() (overflow) bound[i-1] +inf + # 'bound' is a list of strictly increasing boundaries between buckets. Note that + # a list of length N-1 defines N buckets because of fenceposting. See comments + # on `bucket_options` for details. The i'th finite bucket covers the interval [ + # bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that + # there are no finite buckets at all if 'bound' only contains a single element; + # in that special case the single bound defines the boundary between the + # underflow and overflow buckets. bucket number lower bound upper bound i == 0 ( + # underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == + # bound_size() (overflow) bound[i-1] +inf # Corresponds to the JSON property `bounds` # @return [Array] attr_accessor :bounds @@ -885,24 +844,22 @@ module Google class ExponentialBuckets include Google::Apis::Core::Hashable - # The i'th exponential bucket covers the interval - # [scale * growth_factor^(i-1), scale * growth_factor^i) - # where i ranges from 1 to num_finite_buckets inclusive. + # The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), + # scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. # Must be larger than 1.0. # Corresponds to the JSON property `growthFactor` # @return [Float] attr_accessor :growth_factor - # The number of finite buckets. With the underflow and overflow buckets, - # the total number of buckets is `num_finite_buckets` + 2. - # See comments on `bucket_options` for details. + # The number of finite buckets. With the underflow and overflow buckets, the + # total number of buckets is `num_finite_buckets` + 2. See comments on ` + # bucket_options` for details. # Corresponds to the JSON property `numFiniteBuckets` # @return [Fixnum] attr_accessor :num_finite_buckets - # The i'th exponential bucket covers the interval - # [scale * growth_factor^(i-1), scale * growth_factor^i) - # where i ranges from 1 to num_finite_buckets inclusive. + # The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), + # scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. # Must be > 0. # Corresponds to the JSON property `scale` # @return [Float] @@ -924,14 +881,12 @@ module Google class FirstPartyPrincipal include Google::Apis::Core::Hashable - # The email address of a Google account. - # . + # The email address of a Google account. . # Corresponds to the JSON property `principalEmail` # @return [String] attr_accessor :principal_email - # Metadata about the service that uses the service account. - # . + # Metadata about the service that uses the service account. . # Corresponds to the JSON property `serviceMetadata` # @return [Hash] attr_accessor :service_metadata @@ -947,20 +902,19 @@ module Google end end - # A common proto for logging HTTP requests. Only contains semantics - # defined by the HTTP specification. Product-specific logging - # information MUST be defined in a separate message. + # A common proto for logging HTTP requests. Only contains semantics defined by + # the HTTP specification. Product-specific logging information MUST be defined + # in a separate message. class HttpRequest include Google::Apis::Core::Hashable - # The number of HTTP response bytes inserted into cache. Set only when a - # cache fill was attempted. + # The number of HTTP response bytes inserted into cache. Set only when a cache + # fill was attempted. # Corresponds to the JSON property `cacheFillBytes` # @return [Fixnum] attr_accessor :cache_fill_bytes - # Whether or not an entity was served from cache - # (with or without validation). + # Whether or not an entity was served from cache (with or without validation). # Corresponds to the JSON property `cacheHit` # @return [Boolean] attr_accessor :cache_hit @@ -972,9 +926,8 @@ module Google attr_accessor :cache_lookup alias_method :cache_lookup?, :cache_lookup - # Whether or not the response was validated with the origin server before - # being served from cache. This field is only meaningful if `cache_hit` is - # True. + # Whether or not the response was validated with the origin server before being + # served from cache. This field is only meaningful if `cache_hit` is True. # Corresponds to the JSON property `cacheValidatedWithOriginServer` # @return [Boolean] attr_accessor :cache_validated_with_origin_server @@ -991,15 +944,14 @@ module Google # @return [String] attr_accessor :protocol - # The referer URL of the request, as defined in - # [HTTP/1.1 Header Field + # The referer URL of the request, as defined in [HTTP/1.1 Header Field # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). # Corresponds to the JSON property `referer` # @return [String] attr_accessor :referer - # The IP address (IPv4 or IPv6) of the client that issued the HTTP - # request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. + # The IP address (IPv4 or IPv6) of the client that issued the HTTP request. + # Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. # Corresponds to the JSON property `remoteIp` # @return [String] attr_accessor :remote_ip @@ -1009,15 +961,15 @@ module Google # @return [String] attr_accessor :request_method - # The size of the HTTP request message in bytes, including the request - # headers and the request body. + # The size of the HTTP request message in bytes, including the request headers + # and the request body. # Corresponds to the JSON property `requestSize` # @return [Fixnum] attr_accessor :request_size - # The scheme (http, https), the host name, the path, and the query - # portion of the URL that was requested. - # Example: `"http://example.com/some/info?color=red"`. + # The scheme (http, https), the host name, the path, and the query portion of + # the URL that was requested. Example: `"http://example.com/some/info?color=red"` + # . # Corresponds to the JSON property `requestUrl` # @return [String] attr_accessor :request_url @@ -1028,21 +980,19 @@ module Google # @return [Fixnum] attr_accessor :response_size - # The IP address (IPv4 or IPv6) of the origin server that the request was - # sent to. + # The IP address (IPv4 or IPv6) of the origin server that the request was sent + # to. # Corresponds to the JSON property `serverIp` # @return [String] attr_accessor :server_ip - # The response code indicating the status of the response. - # Examples: 200, 404. + # The response code indicating the status of the response. Examples: 200, 404. # Corresponds to the JSON property `status` # @return [Fixnum] attr_accessor :status - # The user agent sent by the client. Example: - # `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET - # CLR 1.0.3705)"`. + # The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6. + # 0; Windows 98; Q312461; .NET CLR 1.0.3705)"`. # Corresponds to the JSON property `userAgent` # @return [String] attr_accessor :user_agent @@ -1075,24 +1025,22 @@ module Google class LinearBuckets include Google::Apis::Core::Hashable - # The number of finite buckets. With the underflow and overflow buckets, - # the total number of buckets is `num_finite_buckets` + 2. - # See comments on `bucket_options` for details. + # The number of finite buckets. With the underflow and overflow buckets, the + # total number of buckets is `num_finite_buckets` + 2. See comments on ` + # bucket_options` for details. # Corresponds to the JSON property `numFiniteBuckets` # @return [Fixnum] attr_accessor :num_finite_buckets - # The i'th linear bucket covers the interval - # [offset + (i-1) * width, offset + i * width) - # where i ranges from 1 to num_finite_buckets, inclusive. + # The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i + # * width) where i ranges from 1 to num_finite_buckets, inclusive. # Corresponds to the JSON property `offset` # @return [Float] attr_accessor :offset - # The i'th linear bucket covers the interval - # [offset + (i-1) * width, offset + i * width) - # where i ranges from 1 to num_finite_buckets, inclusive. - # Must be strictly positive. + # The i'th linear bucket covers the interval [offset + (i-1) * width, offset + i + # * width) where i ranges from 1 to num_finite_buckets, inclusive. Must be + # strictly positive. # Corresponds to the JSON property `width` # @return [Float] attr_accessor :width @@ -1113,46 +1061,44 @@ module Google class LogEntry include Google::Apis::Core::Hashable - # A common proto for logging HTTP requests. Only contains semantics - # defined by the HTTP specification. Product-specific logging - # information MUST be defined in a separate message. + # A common proto for logging HTTP requests. Only contains semantics defined by + # the HTTP specification. Product-specific logging information MUST be defined + # in a separate message. # Corresponds to the JSON property `httpRequest` # @return [Google::Apis::ServicecontrolV1::HttpRequest] attr_accessor :http_request - # A unique ID for the log entry used for deduplication. If omitted, - # the implementation will generate one based on operation_id. + # A unique ID for the log entry used for deduplication. If omitted, the + # implementation will generate one based on operation_id. # Corresponds to the JSON property `insertId` # @return [String] attr_accessor :insert_id - # A set of user-defined (key, value) data that provides additional - # information about the log entry. + # A set of user-defined (key, value) data that provides additional information + # about the log entry. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Required. The log to which this log entry belongs. Examples: `"syslog"`, - # `"book_log"`. + # Required. The log to which this log entry belongs. Examples: `"syslog"`, `" + # book_log"`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Additional information about a potentially long-running operation with which - # a log entry is associated. + # Additional information about a potentially long-running operation with which a + # log entry is associated. # Corresponds to the JSON property `operation` # @return [Google::Apis::ServicecontrolV1::LogEntryOperation] attr_accessor :operation - # The log entry payload, represented as a protocol buffer that is - # expressed as a JSON object. The only accepted type currently is - # AuditLog. + # The log entry payload, represented as a protocol buffer that is expressed as a + # JSON object. The only accepted type currently is AuditLog. # Corresponds to the JSON property `protoPayload` # @return [Hash] attr_accessor :proto_payload - # The severity of the log entry. The default value is - # `LogSeverity.DEFAULT`. + # The severity of the log entry. The default value is `LogSeverity.DEFAULT`. # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity @@ -1163,8 +1109,8 @@ module Google # @return [Google::Apis::ServicecontrolV1::LogEntrySourceLocation] attr_accessor :source_location - # The log entry payload, represented as a structure that - # is expressed as a JSON object. + # The log entry payload, represented as a structure that is expressed as a JSON + # object. # Corresponds to the JSON property `structPayload` # @return [Hash] attr_accessor :struct_payload @@ -1174,16 +1120,16 @@ module Google # @return [String] attr_accessor :text_payload - # The time the event described by the log entry occurred. If - # omitted, defaults to operation start time. + # The time the event described by the log entry occurred. If omitted, defaults + # to operation start time. # Corresponds to the JSON property `timestamp` # @return [String] attr_accessor :timestamp - # Optional. Resource name of the trace associated with the log entry, if any. - # If this field contains a relative resource name, you can assume the name is - # relative to `//tracing.googleapis.com`. Example: - # `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824` + # Optional. Resource name of the trace associated with the log entry, if any. If + # this field contains a relative resource name, you can assume the name is + # relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/ + # 06796866738c859f2f19b7cfb3214824` # Corresponds to the JSON property `trace` # @return [String] attr_accessor :trace @@ -1209,8 +1155,8 @@ module Google end end - # Additional information about a potentially long-running operation with which - # a log entry is associated. + # Additional information about a potentially long-running operation with which a + # log entry is associated. class LogEntryOperation include Google::Apis::Core::Hashable @@ -1220,8 +1166,8 @@ module Google attr_accessor :first alias_method :first?, :first - # Optional. An arbitrary operation identifier. Log entries with the - # same identifier are assumed to be part of the same operation. + # Optional. An arbitrary operation identifier. Log entries with the same + # identifier are assumed to be part of the same operation. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1232,9 +1178,9 @@ module Google attr_accessor :last alias_method :last?, :last - # Optional. An arbitrary producer identifier. The combination of - # `id` and `producer` must be globally unique. Examples for `producer`: - # `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. + # Optional. An arbitrary producer identifier. The combination of `id` and ` + # producer` must be globally unique. Examples for `producer`: `"MyDivision. + # MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. # Corresponds to the JSON property `producer` # @return [String] attr_accessor :producer @@ -1257,8 +1203,8 @@ module Google class LogEntrySourceLocation include Google::Apis::Core::Hashable - # Optional. Source file name. Depending on the runtime environment, this - # might be a simple name or a fully-qualified name. + # Optional. Source file name. Depending on the runtime environment, this might + # be a simple name or a fully-qualified name. # Corresponds to the JSON property `file` # @return [String] attr_accessor :file @@ -1266,9 +1212,8 @@ module Google # Optional. Human-readable name of the function or method being invoked, with # optional context such as the class or package name. This information may be # used in contexts such as the logs viewer, where a file and line number are - # less meaningful. The format can vary by language. For example: - # `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` - # (Python). + # less meaningful. The format can vary by language. For example: `qual.if.ied. + # Class.method` (Java), `dir/package.func` (Go), `function` (Python). # Corresponds to the JSON property `function` # @return [String] attr_accessor :function @@ -1303,11 +1248,9 @@ module Google # Distribution represents a frequency distribution of double-valued sample # points. It contains the size of the population of sample points plus - # additional optional information: - # - the arithmetic mean of the samples - # - the minimum and maximum of the samples - # - the sum-squared-deviation of the samples, used to compute variance - # - a histogram of the values of the sample points + # additional optional information: - the arithmetic mean of the samples - the + # minimum and maximum of the samples - the sum-squared-deviation of the samples, + # used to compute variance - a histogram of the values of the sample points # Corresponds to the JSON property `distributionValue` # @return [Google::Apis::ServicecontrolV1::Distribution] attr_accessor :distribution_value @@ -1317,8 +1260,7 @@ module Google # @return [Float] attr_accessor :double_value - # The end of the time period over which this metric value's measurement - # applies. + # The end of the time period over which this metric value's measurement applies. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time @@ -1328,10 +1270,9 @@ module Google # @return [Fixnum] attr_accessor :int64_value - # The labels describing the metric value. - # See comments on google.api.servicecontrol.v1.Operation.labels for - # the overriding relationship. - # Note that this map must not contain monitored resource labels. + # The labels describing the metric value. See comments on google.api. + # servicecontrol.v1.Operation.labels for the overriding relationship. Note that + # this map must not contain monitored resource labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1342,9 +1283,9 @@ module Google attr_accessor :money_value # The start of the time period over which this metric value's measurement - # applies. The time period has different semantics for different metric - # types (cumulative, delta, and gauge). See the metric definition - # documentation in the service configuration for details. + # applies. The time period has different semantics for different metric types ( + # cumulative, delta, and gauge). See the metric definition documentation in the + # service configuration for details. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time @@ -1372,9 +1313,8 @@ module Google end end - # Represents a set of metric values in the same metric. - # Each metric value in the set should have a unique combination of start time, - # end time, and label values. + # Represents a set of metric values in the same metric. Each metric value in the + # set should have a unique combination of start time, end time, and label values. class MetricValueSet include Google::Apis::Core::Hashable @@ -1408,18 +1348,17 @@ module Google # @return [String] attr_accessor :currency_code - # Number of nano (10^-9) units of the amount. - # The value must be between -999,999,999 and +999,999,999 inclusive. - # If `units` is positive, `nanos` must be positive or zero. - # If `units` is zero, `nanos` can be positive, zero, or negative. - # If `units` is negative, `nanos` must be negative or zero. - # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. # Corresponds to the JSON property `nanos` # @return [Fixnum] attr_accessor :nanos - # The whole units of the amount. - # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. # Corresponds to the JSON property `units` # @return [Fixnum] attr_accessor :units @@ -1440,24 +1379,19 @@ module Google class Operation include Google::Apis::Core::Hashable - # Identity of the consumer who is using the service. - # This field should be filled in for the operations initiated by a - # consumer, but not for service-initiated operations that are - # not related to a specific consumer. - # - This can be in one of the following formats: - # - project:PROJECT_ID, - # - project`_`number:PROJECT_NUMBER, - # - projects/PROJECT_ID or PROJECT_NUMBER, - # - folders/FOLDER_NUMBER, - # - organizations/ORGANIZATION_NUMBER, - # - api`_`key:API_KEY. + # Identity of the consumer who is using the service. This field should be filled + # in for the operations initiated by a consumer, but not for service-initiated + # operations that are not related to a specific consumer. - This can be in one + # of the following formats: - project:PROJECT_ID, - project`_`number: + # PROJECT_NUMBER, - projects/PROJECT_ID or PROJECT_NUMBER, - folders/ + # FOLDER_NUMBER, - organizations/ORGANIZATION_NUMBER, - api`_`key:API_KEY. # Corresponds to the JSON property `consumerId` # @return [String] attr_accessor :consumer_id - # End time of the operation. - # Required when the operation is used in ServiceController.Report, - # but optional when the operation is used in ServiceController.Check. + # End time of the operation. Required when the operation is used in + # ServiceController.Report, but optional when the operation is used in + # ServiceController.Check. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time @@ -1472,21 +1406,16 @@ module Google # @return [String] attr_accessor :importance - # Labels describing the operation. Only the following labels are allowed: - # - Labels describing monitored resources as defined in - # the service configuration. + # Labels describing the operation. Only the following labels are allowed: - + # Labels describing monitored resources as defined in the service configuration. # - Default labels of metric values. When specified, labels defined in the - # metric value override these default. - # - The following labels defined by Google Cloud Platform: - # - `cloud.googleapis.com/location` describing the location where the - # operation happened, - # - `servicecontrol.googleapis.com/user_agent` describing the user agent - # of the API request, - # - `servicecontrol.googleapis.com/service_agent` describing the service - # used to handle the API request (e.g. ESP), - # - `servicecontrol.googleapis.com/platform` describing the platform - # where the API is served, such as App Engine, Compute Engine, or - # Kubernetes Engine. + # metric value override these default. - The following labels defined by Google + # Cloud Platform: - `cloud.googleapis.com/location` describing the location + # where the operation happened, - `servicecontrol.googleapis.com/user_agent` + # describing the user agent of the API request, - `servicecontrol.googleapis.com/ + # service_agent` describing the service used to handle the API request (e.g. ESP) + # , - `servicecontrol.googleapis.com/platform` describing the platform where the + # API is served, such as App Engine, Compute Engine, or Kubernetes Engine. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1496,27 +1425,23 @@ module Google # @return [Array] attr_accessor :log_entries - # Represents information about this operation. Each MetricValueSet - # corresponds to a metric defined in the service configuration. - # The data type used in the MetricValueSet must agree with - # the data type specified in the metric definition. - # Within a single operation, it is not allowed to have more than one - # MetricValue instances that have the same metric names and identical - # label value combinations. If a request has such duplicated MetricValue - # instances, the entire request is rejected with - # an invalid argument error. + # Represents information about this operation. Each MetricValueSet corresponds + # to a metric defined in the service configuration. The data type used in the + # MetricValueSet must agree with the data type specified in the metric + # definition. Within a single operation, it is not allowed to have more than one + # MetricValue instances that have the same metric names and identical label + # value combinations. If a request has such duplicated MetricValue instances, + # the entire request is rejected with an invalid argument error. # Corresponds to the JSON property `metricValueSets` # @return [Array] attr_accessor :metric_value_sets - # Identity of the operation. This must be unique within the scope of the - # service that generated the operation. If the service calls - # Check() and Report() on the same operation, the two calls should carry - # the same id. - # UUID version 4 is recommended, though not required. - # In scenarios where an operation is computed from existing information - # and an idempotent id is desirable for deduplication purpose, UUID version 5 - # is recommended. See RFC 4122 for details. + # Identity of the operation. This must be unique within the scope of the service + # that generated the operation. If the service calls Check() and Report() on the + # same operation, the two calls should carry the same id. UUID version 4 is + # recommended, though not required. In scenarios where an operation is computed + # from existing information and an idempotent id is desirable for deduplication + # purpose, UUID version 5 is recommended. See RFC 4122 for details. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id @@ -1531,8 +1456,8 @@ module Google # @return [Google::Apis::ServicecontrolV1::QuotaProperties] attr_accessor :quota_properties - # The resources that are involved in the operation. - # The maximum supported number of entries in this field is 100. + # The resources that are involved in the operation. The maximum supported number + # of entries in this field is 100. # Corresponds to the JSON property `resources` # @return [Array] attr_accessor :resources @@ -1542,16 +1467,15 @@ module Google # @return [String] attr_accessor :start_time - # Unimplemented. A list of Cloud Trace spans. The span names shall contain - # the id of the destination project which can be either the produce or the - # consumer project. + # Unimplemented. A list of Cloud Trace spans. The span names shall contain the + # id of the destination project which can be either the produce or the consumer + # project. # Corresponds to the JSON property `traceSpans` # @return [Array] attr_accessor :trace_spans - # User defined labels for the resource that this operation is associated - # with. Only a combination of 1000 user labels per consumer project are - # allowed. + # User defined labels for the resource that this operation is associated with. + # Only a combination of 1000 user labels per consumer project are allowed. # Corresponds to the JSON property `userLabels` # @return [Hash] attr_accessor :user_labels @@ -1579,10 +1503,10 @@ module Google end end - # This message defines attributes for a node that handles a network request. - # The node can be either a service or an application that sends, forwards, - # or receives the request. Service peers should fill in - # `principal` and `labels` as appropriate. + # This message defines attributes for a node that handles a network request. The + # node can be either a service or an application that sends, forwards, or + # receives the request. Service peers should fill in `principal` and `labels` as + # appropriate. class Peer include Google::Apis::Core::Hashable @@ -1601,16 +1525,16 @@ module Google # @return [Fixnum] attr_accessor :port - # The identity of this peer. Similar to `Request.auth.principal`, but - # relative to the peer instead of the request. For example, the - # idenity associated with a load balancer that forwared the request. + # The identity of this peer. Similar to `Request.auth.principal`, but relative + # to the peer instead of the request. For example, the idenity associated with a + # load balancer that forwared the request. # Corresponds to the JSON property `principal` # @return [String] attr_accessor :principal - # The CLDR country/region code associated with the above IP address. - # If the IP address is private, the `region_code` should reflect the - # physical location where this peer is running. + # The CLDR country/region code associated with the above IP address. If the IP + # address is private, the `region_code` should reflect the physical location + # where this peer is running. # Corresponds to the JSON property `regionCode` # @return [String] attr_accessor :region_code @@ -1643,9 +1567,8 @@ module Google # @return [String] attr_accessor :description - # Subject to whom this error applies. See the specific enum for more details - # on this field. For example, "clientip:" or - # "project:". + # Subject to whom this error applies. See the specific enum for more details on + # this field. For example, "clientip:" or "project:". # Corresponds to the JSON property `subject` # @return [String] attr_accessor :subject @@ -1666,37 +1589,33 @@ module Google class QuotaInfo include Google::Apis::Core::Hashable - # Quota Metrics that have exceeded quota limits. - # For QuotaGroup-based quota, this is QuotaGroup.name - # For QuotaLimit-based quota, this is QuotaLimit.name - # See: google.api.Quota - # Deprecated: Use quota_metrics to get per quota group limit exceeded status. + # Quota Metrics that have exceeded quota limits. For QuotaGroup-based quota, + # this is QuotaGroup.name For QuotaLimit-based quota, this is QuotaLimit.name + # See: google.api.Quota Deprecated: Use quota_metrics to get per quota group + # limit exceeded status. # Corresponds to the JSON property `limitExceeded` # @return [Array] attr_accessor :limit_exceeded - # Map of quota group name to the actual number of tokens consumed. If the - # quota check was not successful, then this will not be populated due to no - # quota consumption. - # We are not merging this field with 'quota_metrics' field because of the - # complexity of scaling in Chemist client code base. For simplicity, we will - # keep this field for Castor (that scales quota usage) and 'quota_metrics' + # Map of quota group name to the actual number of tokens consumed. If the quota + # check was not successful, then this will not be populated due to no quota + # consumption. We are not merging this field with 'quota_metrics' field because + # of the complexity of scaling in Chemist client code base. For simplicity, we + # will keep this field for Castor (that scales quota usage) and 'quota_metrics' # for SuperQuota (that doesn't scale quota usage). # Corresponds to the JSON property `quotaConsumed` # @return [Hash] attr_accessor :quota_consumed # Quota metrics to indicate the usage. Depending on the check request, one or - # more of the following metrics will be included: - # 1. For rate quota, per quota group or per quota metric incremental usage - # will be specified using the following delta metric: - # "serviceruntime.googleapis.com/api/consumer/quota_used_count" - # 2. For allocation quota, per quota metric total usage will be specified - # using the following gauge metric: - # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count" - # 3. For both rate quota and allocation quota, the quota limit reached - # condition will be specified using the following boolean metric: - # "serviceruntime.googleapis.com/quota/exceeded" + # more of the following metrics will be included: 1. For rate quota, per quota + # group or per quota metric incremental usage will be specified using the + # following delta metric: "serviceruntime.googleapis.com/api/consumer/ + # quota_used_count" 2. For allocation quota, per quota metric total usage will + # be specified using the following gauge metric: "serviceruntime.googleapis.com/ + # allocation/consumer/quota_used_count" 3. For both rate quota and allocation + # quota, the quota limit reached condition will be specified using the following + # boolean metric: "serviceruntime.googleapis.com/quota/exceeded" # Corresponds to the JSON property `quotaMetrics` # @return [Array] attr_accessor :quota_metrics @@ -1718,10 +1637,8 @@ module Google include Google::Apis::Core::Hashable # Identity of the consumer for whom this quota operation is being performed. - # This can be in one of the following formats: - # project:, - # project_number:, - # api_key:. + # This can be in one of the following formats: project:, project_number:, + # api_key:. # Corresponds to the JSON property `consumerId` # @return [String] attr_accessor :consumer_id @@ -1733,38 +1650,34 @@ module Google # Fully qualified name of the API method for which this quota operation is # requested. This name is used for matching quota rules or metric rules and - # billing status rules defined in service configuration. - # This field should not be set if any of the following is true: - # (1) the quota operation is performed on non-API resources. - # (2) quota_metrics is set because the caller is doing quota override. - # Example of an RPC method name: - # google.example.library.v1.LibraryService.CreateShelf + # billing status rules defined in service configuration. This field should not + # be set if any of the following is true: (1) the quota operation is performed + # on non-API resources. (2) quota_metrics is set because the caller is doing + # quota override. Example of an RPC method name: google.example.library.v1. + # LibraryService.CreateShelf # Corresponds to the JSON property `methodName` # @return [String] attr_accessor :method_name - # Identity of the operation. This is expected to be unique within the scope - # of the service that generated the operation, and guarantees idempotency in - # case of retries. - # In order to ensure best performance and latency in the Quota backends, - # operation_ids are optimally associated with time, so that related - # operations can be accessed fast in storage. For this reason, the - # recommended token for services that intend to operate at a high QPS is - # Unix time in nanos + UUID + # Identity of the operation. This is expected to be unique within the scope of + # the service that generated the operation, and guarantees idempotency in case + # of retries. In order to ensure best performance and latency in the Quota + # backends, operation_ids are optimally associated with time, so that related + # operations can be accessed fast in storage. For this reason, the recommended + # token for services that intend to operate at a high QPS is Unix time in nanos + + # UUID # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id - # Represents information about this operation. Each MetricValueSet - # corresponds to a metric defined in the service configuration. - # The data type used in the MetricValueSet must agree with - # the data type specified in the metric definition. - # Within a single operation, it is not allowed to have more than one - # MetricValue instances that have the same metric names and identical - # label value combinations. If a request has such duplicated MetricValue - # instances, the entire request is rejected with - # an invalid argument error. - # This field is mutually exclusive with method_name. + # Represents information about this operation. Each MetricValueSet corresponds + # to a metric defined in the service configuration. The data type used in the + # MetricValueSet must agree with the data type specified in the metric + # definition. Within a single operation, it is not allowed to have more than one + # MetricValue instances that have the same metric names and identical label + # value combinations. If a request has such duplicated MetricValue instances, + # the entire request is rejected with an invalid argument error. This field is + # mutually exclusive with method_name. # Corresponds to the JSON property `quotaMetrics` # @return [Array] attr_accessor :quota_metrics @@ -1817,12 +1730,12 @@ module Google # @return [String] attr_accessor :operation_id - # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::ServicecontrolV1::Status] attr_accessor :status @@ -1867,22 +1780,19 @@ module Google class ReportRequest include Google::Apis::Core::Hashable - # Operations to be reported. - # Typically the service should report one operation per request. - # Putting multiple operations into a single request is allowed, but should - # be used only when multiple operations are natually available at the time - # of the report. - # There is no limit on the number of operations in the same ReportRequest, - # however the ReportRequest size should be no larger than 1MB. See - # ReportResponse.report_errors for partial failure behavior. + # Operations to be reported. Typically the service should report one operation + # per request. Putting multiple operations into a single request is allowed, but + # should be used only when multiple operations are natually available at the + # time of the report. There is no limit on the number of operations in the same + # ReportRequest, however the ReportRequest size should be no larger than 1MB. + # See ReportResponse.report_errors for partial failure behavior. # Corresponds to the JSON property `operations` # @return [Array] attr_accessor :operations # Specifies which version of service config should be used to process the - # request. - # If unspecified or no matching version can be found, the - # latest one will be used. + # request. If unspecified or no matching version can be found, the latest one + # will be used. # Corresponds to the JSON property `serviceConfigId` # @return [String] attr_accessor :service_config_id @@ -1903,28 +1813,25 @@ module Google include Google::Apis::Core::Hashable # Partial failures, one for each `Operation` in the request that failed - # processing. There are three possible combinations of the RPC status: - # 1. The combination of a successful RPC status and an empty `report_errors` - # list indicates a complete success where all `Operations` in the - # request are processed successfully. - # 2. The combination of a successful RPC status and a non-empty - # `report_errors` list indicates a partial success where some - # `Operations` in the request succeeded. Each - # `Operation` that failed processing has a corresponding item - # in this list. - # 3. A failed RPC status indicates a general non-deterministic failure. - # When this happens, it's impossible to know which of the - # 'Operations' in the request succeeded or failed. + # processing. There are three possible combinations of the RPC status: 1. The + # combination of a successful RPC status and an empty `report_errors` list + # indicates a complete success where all `Operations` in the request are + # processed successfully. 2. The combination of a successful RPC status and a + # non-empty `report_errors` list indicates a partial success where some ` + # Operations` in the request succeeded. Each `Operation` that failed processing + # has a corresponding item in this list. 3. A failed RPC status indicates a + # general non-deterministic failure. When this happens, it's impossible to know + # which of the 'Operations' in the request succeeded or failed. # Corresponds to the JSON property `reportErrors` # @return [Array] attr_accessor :report_errors - # Quota usage for each quota release `Operation` request. - # Fully or partially failed quota release request may or may not be present - # in `report_quota_info`. For example, a failed quota release request will - # have the current quota usage info when precise quota library returns the - # info. A deadline exceeded quota request will not have quota usage info. - # If there is no quota release request, report_quota_info will be empty. + # Quota usage for each quota release `Operation` request. Fully or partially + # failed quota release request may or may not be present in `report_quota_info`. + # For example, a failed quota release request will have the current quota usage + # info when precise quota library returns the info. A deadline exceeded quota + # request will not have quota usage info. If there is no quota release request, + # report_quota_info will be empty. # Corresponds to the JSON property `reportInfos` # @return [Array] attr_accessor :report_infos @@ -1952,22 +1859,22 @@ module Google end end - # This message defines attributes for an HTTP request. If the actual - # request is not an HTTP request, the runtime system should try to map - # the actual request to an equivalent HTTP request. + # This message defines attributes for an HTTP request. If the actual request is + # not an HTTP request, the runtime system should try to map the actual request + # to an equivalent HTTP request. class Request include Google::Apis::Core::Hashable - # This message defines request authentication attributes. Terminology is - # based on the JSON Web Token (JWT) standard, but the terms also - # correlate to concepts in other standards. + # This message defines request authentication attributes. Terminology is based + # on the JSON Web Token (JWT) standard, but the terms also correlate to concepts + # in other standards. # Corresponds to the JSON property `auth` # @return [Google::Apis::ServicecontrolV1::Auth] attr_accessor :auth - # The HTTP request headers. If multiple headers share the same key, they - # must be merged according to the HTTP spec. All header keys must be - # lowercased, because HTTP header keys are case-insensitive. + # The HTTP request headers. If multiple headers share the same key, they must be + # merged according to the HTTP spec. All header keys must be lowercased, because + # HTTP header keys are case-insensitive. # Corresponds to the JSON property `headers` # @return [Hash] attr_accessor :headers @@ -1977,9 +1884,9 @@ module Google # @return [String] attr_accessor :host - # The unique ID for a request, which can be propagated to downstream - # systems. The ID should have low probability of collision - # within a single day for a specific service. + # The unique ID for a request, which can be propagated to downstream systems. + # The ID should have low probability of collision within a single day for a + # specific service. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1994,23 +1901,22 @@ module Google # @return [String] attr_accessor :path - # The network protocol used with the request, such as "http/1.1", - # "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See - # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype- - # values.xhtml#alpn-protocol-ids - # for details. + # The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", + # "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/ + # tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for + # details. # Corresponds to the JSON property `protocol` # @return [String] attr_accessor :protocol - # The HTTP URL query in the format of `name1=value1&name2=value2`, as it - # appears in the first line of the HTTP request. No decoding is performed. + # The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears + # in the first line of the HTTP request. No decoding is performed. # Corresponds to the JSON property `query` # @return [String] attr_accessor :query - # A special parameter for request reason. It is used by security systems - # to associate auditing information with a request. + # A special parameter for request reason. It is used by security systems to + # associate auditing information with a request. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason @@ -2025,8 +1931,8 @@ module Google # @return [Fixnum] attr_accessor :size - # The timestamp when the `destination` service receives the first byte of - # the request. + # The timestamp when the `destination` service receives the first byte of the + # request. # Corresponds to the JSON property `time` # @return [String] attr_accessor :time @@ -2056,55 +1962,48 @@ module Google class RequestMetadata include Google::Apis::Core::Hashable - # The IP address of the caller. - # For caller from internet, this will be public IPv4 or IPv6 address. - # For caller from a Compute Engine VM with external IP address, this - # will be the VM's external IP address. For caller from a Compute - # Engine VM without external IP address, if the VM is in the same - # organization (or project) as the accessed resource, `caller_ip` will - # be the VM's internal IPv4 address, otherwise the `caller_ip` will be - # redacted to "gce-internal-ip". + # The IP address of the caller. For caller from internet, this will be public + # IPv4 or IPv6 address. For caller from a Compute Engine VM with external IP + # address, this will be the VM's external IP address. For caller from a Compute + # Engine VM without external IP address, if the VM is in the same organization ( + # or project) as the accessed resource, `caller_ip` will be the VM's internal + # IPv4 address, otherwise the `caller_ip` will be redacted to "gce-internal-ip". # See https://cloud.google.com/compute/docs/vpc/ for more information. # Corresponds to the JSON property `callerIp` # @return [String] attr_accessor :caller_ip - # The network of the caller. - # Set only if the network host project is part of the same GCP organization - # (or project) as the accessed resource. - # See https://cloud.google.com/compute/docs/vpc/ for more information. - # This is a scheme-less URI full resource name. For example: - # "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" + # The network of the caller. Set only if the network host project is part of the + # same GCP organization (or project) as the accessed resource. See https://cloud. + # google.com/compute/docs/vpc/ for more information. This is a scheme-less URI + # full resource name. For example: "//compute.googleapis.com/projects/PROJECT_ID/ + # global/networks/NETWORK_ID" # Corresponds to the JSON property `callerNetwork` # @return [String] attr_accessor :caller_network - # The user agent of the caller. - # This information is not authenticated and should be treated accordingly. - # For example: - # + `google-api-python-client/1.4.0`: - # The request was made by the Google API client for Python. - # + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: - # The request was made by the Google Cloud SDK CLI (gcloud). - # + `AppEngine-Google; (+http://code.google.com/appengine; appid: - # s~my-project`: - # The request was made from the `my-project` App Engine app. - # NOLINT + # The user agent of the caller. This information is not authenticated and should + # be treated accordingly. For example: + `google-api-python-client/1.4.0`: The + # request was made by the Google API client for Python. + `Cloud SDK Command + # Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the + # Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/ + # appengine; appid: s~my-project`: The request was made from the `my-project` + # App Engine app. NOLINT # Corresponds to the JSON property `callerSuppliedUserAgent` # @return [String] attr_accessor :caller_supplied_user_agent - # This message defines attributes for a node that handles a network request. - # The node can be either a service or an application that sends, forwards, - # or receives the request. Service peers should fill in - # `principal` and `labels` as appropriate. + # This message defines attributes for a node that handles a network request. The + # node can be either a service or an application that sends, forwards, or + # receives the request. Service peers should fill in `principal` and `labels` as + # appropriate. # Corresponds to the JSON property `destinationAttributes` # @return [Google::Apis::ServicecontrolV1::Peer] attr_accessor :destination_attributes - # This message defines attributes for an HTTP request. If the actual - # request is not an HTTP request, the runtime system should try to map - # the actual request to an equivalent HTTP request. + # This message defines attributes for an HTTP request. If the actual request is + # not an HTTP request, the runtime system should try to map the actual request + # to an equivalent HTTP request. # Corresponds to the JSON property `requestAttributes` # @return [Google::Apis::ServicecontrolV1::Request] attr_accessor :request_attributes @@ -2124,41 +2023,40 @@ module Google end # This message defines core attributes for a resource. A resource is an - # addressable (named) entity provided by the destination service. For - # example, a file stored on a network storage service. + # addressable (named) entity provided by the destination service. For example, a + # file stored on a network storage service. class Resource include Google::Apis::Core::Hashable - # The labels or tags on the resource, such as AWS resource tags and - # Kubernetes resource labels. + # The labels or tags on the resource, such as AWS resource tags and Kubernetes + # resource labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The stable identifier (name) of a resource on the `service`. A resource - # can be logically identified as "//`resource.service`/`resource.name`". - # The differences between a resource name and a URI are: - # * Resource name is a logical identifier, independent of network - # protocol and API version. For example, - # `//pubsub.googleapis.com/projects/123/topics/news-feed`. - # * URI often includes protocol and version information, so it can - # be used directly by applications. For example, - # `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. - # See https://cloud.google.com/apis/design/resource_names for details. + # The stable identifier (name) of a resource on the `service`. A resource can be + # logically identified as "//`resource.service`/`resource.name`". The + # differences between a resource name and a URI are: * Resource name is a + # logical identifier, independent of network protocol and API version. For + # example, `//pubsub.googleapis.com/projects/123/topics/news-feed`. * URI often + # includes protocol and version information, so it can be used directly by + # applications. For example, `https://pubsub.googleapis.com/v1/projects/123/ + # topics/news-feed`. See https://cloud.google.com/apis/design/resource_names for + # details. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The name of the service that this resource belongs to, such as - # `pubsub.googleapis.com`. The service may be different from the DNS - # hostname that actually serves the request. + # The name of the service that this resource belongs to, such as `pubsub. + # googleapis.com`. The service may be different from the DNS hostname that + # actually serves the request. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service - # The type of the resource. The syntax is platform-specific because - # different platforms define their resources differently. - # For Google APIs, the type format must be "`service`/`kind`". + # The type of the resource. The syntax is platform-specific because different + # platforms define their resources differently. For Google APIs, the type format + # must be "`service`/`kind`". # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2180,18 +2078,15 @@ module Google class ResourceInfo include Google::Apis::Core::Hashable - # The identifier of the parent of this resource instance. - # Must be in one of the following formats: - # - “projects/” - # - “folders/” - # - “organizations/” + # The identifier of the parent of this resource instance. Must be in one of the + # following formats: - “projects/” - “folders/” - “organizations/” # Corresponds to the JSON property `resourceContainer` # @return [String] attr_accessor :resource_container # The location of the resource. If not empty, the resource will be checked - # against location policy. The value must be a valid zone, region or - # multiregion. For example: "europe-west4" or "northamerica-northeast1-a" + # against location policy. The value must be a valid zone, region or multiregion. + # For example: "europe-west4" or "northamerica-northeast1-a" # Corresponds to the JSON property `resourceLocation` # @return [String] attr_accessor :resource_location @@ -2217,24 +2112,18 @@ module Google class ResourceLocation include Google::Apis::Core::Hashable - # The locations of a resource after the execution of the operation. - # Requests to create or delete a location based resource must populate - # the 'current_locations' field and not the 'original_locations' field. - # For example: - # "europe-west1-a" - # "us-east1" - # "nam3" + # The locations of a resource after the execution of the operation. Requests to + # create or delete a location based resource must populate the ' + # current_locations' field and not the 'original_locations' field. For example: " + # europe-west1-a" "us-east1" "nam3" # Corresponds to the JSON property `currentLocations` # @return [Array] attr_accessor :current_locations - # The locations of a resource prior to the execution of the operation. - # Requests that mutate the resource's location must populate both the - # 'original_locations' as well as the 'current_locations' fields. - # For example: - # "europe-west1-a" - # "us-east1" - # "nam3" + # The locations of a resource prior to the execution of the operation. Requests + # that mutate the resource's location must populate both the 'original_locations' + # as well as the 'current_locations' fields. For example: "europe-west1-a" "us- + # east1" "nam3" # Corresponds to the JSON property `originalLocations` # @return [Array] attr_accessor :original_locations @@ -2275,20 +2164,17 @@ module Google end end - # The context of a span, attached to - # Exemplars - # in Distribution values during aggregation. - # It contains the name of a span with format: - # projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] + # The context of a span, attached to Exemplars in Distribution values during + # aggregation. It contains the name of a span with format: projects/[ + # PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] class SpanContext include Google::Apis::Core::Hashable - # The resource name of the span. The format is: - # projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID] - # `[TRACE_ID]` is a unique identifier for a trace within a project; - # it is a 32-character hexadecimal encoding of a 16-byte array. - # `[SPAN_ID]` is a unique identifier for a span within a trace; it - # is a 16-character hexadecimal encoding of an 8-byte array. + # The resource name of the span. The format is: projects/[PROJECT_ID_OR_NUMBER]/ + # traces/[TRACE_ID]/spans/[SPAN_ID] `[TRACE_ID]` is a unique identifier for a + # trace within a project; it is a 32-character hexadecimal encoding of a 16-byte + # array. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a + # 16-character hexadecimal encoding of an 8-byte array. # Corresponds to the JSON property `spanName` # @return [String] attr_accessor :span_name @@ -2303,12 +2189,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -2317,15 +2203,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -2361,12 +2247,11 @@ module Google end end - # A span represents a single operation within a trace. Spans can be - # nested to form a trace tree. Often, a trace contains a root span - # that describes the end-to-end latency, and one or more subspans for - # its sub-operations. A trace can also contain multiple root spans, - # or none at all. Spans do not need to be contiguous—there may be - # gaps or overlaps between spans in a trace. + # A span represents a single operation within a trace. Spans can be nested to + # form a trace tree. Often, a trace contains a root span that describes the end- + # to-end latency, and one or more subspans for its sub-operations. A trace can + # also contain multiple root spans, or none at all. Spans do not need to be + # contiguous—there may be gaps or overlaps between spans in a trace. class TraceSpan include Google::Apis::Core::Hashable @@ -2375,8 +2260,8 @@ module Google # @return [Google::Apis::ServicecontrolV1::Attributes] attr_accessor :attributes - # An optional number of child spans that were generated while this span - # was active. If set, allows implementation to detect missing child spans. + # An optional number of child spans that were generated while this span was + # active. If set, allows implementation to detect missing child spans. # Corresponds to the JSON property `childSpanCount` # @return [Fixnum] attr_accessor :child_span_count @@ -2386,33 +2271,31 @@ module Google # @return [Google::Apis::ServicecontrolV1::TruncatableString] attr_accessor :display_name - # The end time of the span. On the client side, this is the time kept by - # the local machine where the span execution ends. On the server side, this - # is the time when the server application handler stops running. + # The end time of the span. On the client side, this is the time kept by the + # local machine where the span execution ends. On the server side, this is the + # time when the server application handler stops running. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time - # The resource name of the span in the following format: - # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique - # identifier for a trace within a project; - # it is a 32-character hexadecimal encoding of a 16-byte array. - # [SPAN_ID] is a unique identifier for a span within a trace; it - # is a 16-character hexadecimal encoding of an 8-byte array. + # The resource name of the span in the following format: projects/[PROJECT_ID]/ + # traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a + # project; it is a 32-character hexadecimal encoding of a 16-byte array. [ + # SPAN_ID] is a unique identifier for a span within a trace; it is a 16- + # character hexadecimal encoding of an 8-byte array. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The [SPAN_ID] of this span's parent span. If this is a root span, - # then this field must be empty. + # The [SPAN_ID] of this span's parent span. If this is a root span, then this + # field must be empty. # Corresponds to the JSON property `parentSpanId` # @return [String] attr_accessor :parent_span_id - # (Optional) Set this parameter to indicate whether this span is in - # the same process as its parent. If you do not set this parameter, - # Stackdriver Trace is unable to take advantage of this helpful - # information. + # (Optional) Set this parameter to indicate whether this span is in the same + # process as its parent. If you do not set this parameter, Stackdriver Trace is + # unable to take advantage of this helpful information. # Corresponds to the JSON property `sameProcessAsParentSpan` # @return [Boolean] attr_accessor :same_process_as_parent_span @@ -2424,25 +2307,25 @@ module Google attr_accessor :span_id # Distinguishes between spans generated in a particular context. For example, - # two spans with the same name may be distinguished using `CLIENT` (caller) - # and `SERVER` (callee) to identify an RPC call. + # two spans with the same name may be distinguished using `CLIENT` (caller) and ` + # SERVER` (callee) to identify an RPC call. # Corresponds to the JSON property `spanKind` # @return [String] attr_accessor :span_kind - # The start time of the span. On the client side, this is the time kept by - # the local machine where the span execution starts. On the server side, this - # is the time when the server's application handler starts running. + # The start time of the span. On the client side, this is the time kept by the + # local machine where the span execution starts. On the server side, this is the + # time when the server's application handler starts running. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::ServicecontrolV1::Status] attr_accessor :status @@ -2471,18 +2354,17 @@ module Google class TruncatableString include Google::Apis::Core::Hashable - # The number of bytes removed from the original string. If this - # value is 0, then the string was not shortened. + # The number of bytes removed from the original string. If this value is 0, then + # the string was not shortened. # Corresponds to the JSON property `truncatedByteCount` # @return [Fixnum] attr_accessor :truncated_byte_count - # The shortened string. For example, if the original string is 500 - # bytes long and the limit of the string is 128 bytes, then - # `value` contains the first 128 bytes of the 500-byte string. - # Truncation always happens on a UTF8 character boundary. If there - # are multi-byte characters in the string, then the length of the - # shortened string might be less than the size limit. + # The shortened string. For example, if the original string is 500 bytes long + # and the limit of the string is 128 bytes, then `value` contains the first 128 + # bytes of the 500-byte string. Truncation always happens on a UTF8 character + # boundary. If there are multi-byte characters in the string, then the length of + # the shortened string might be less than the size limit. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value diff --git a/generated/google/apis/servicecontrol_v1/service.rb b/generated/google/apis/servicecontrol_v1/service.rb index cea985543..400f180c5 100644 --- a/generated/google/apis/servicecontrol_v1/service.rb +++ b/generated/google/apis/servicecontrol_v1/service.rb @@ -49,18 +49,16 @@ module Google end # Attempts to allocate quota for the specified consumer. It should be called - # before the operation is executed. - # This method requires the `servicemanagement.services.quota` - # permission on the specified service. For more information, see - # [Cloud IAM](https://cloud.google.com/iam). - # **NOTE:** The client **must** fail-open on server errors `INTERNAL`, - # `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system - # reliability, the server may inject these errors to prohibit any hard - # dependency on the quota functionality. + # before the operation is executed. This method requires the `servicemanagement. + # services.quota` permission on the specified service. For more information, see + # [Cloud IAM](https://cloud.google.com/iam). **NOTE:** The client **must** fail- + # open on server errors `INTERNAL`, `UNKNOWN`, `DEADLINE_EXCEEDED`, and ` + # UNAVAILABLE`. To ensure system reliability, the server may inject these errors + # to prohibit any hard dependency on the quota functionality. # @param [String] service_name - # Name of the service as specified in the service configuration. For example, - # `"pubsub.googleapis.com"`. - # See google.api.Service for the definition of a service name. + # Name of the service as specified in the service configuration. For example, `" + # pubsub.googleapis.com"`. See google.api.Service for the definition of a + # service name. # @param [Google::Apis::ServicecontrolV1::AllocateQuotaRequest] allocate_quota_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -91,26 +89,22 @@ module Google execute_or_queue_command(command, &block) end - # Checks whether an operation on a service should be allowed to proceed - # based on the configuration of the service and related policies. It must be - # called before the operation is executed. - # If feasible, the client should cache the check results and reuse them for - # 60 seconds. In case of any server errors, the client should rely on the - # cached results for much longer time to avoid outage. + # Checks whether an operation on a service should be allowed to proceed based on + # the configuration of the service and related policies. It must be called + # before the operation is executed. If feasible, the client should cache the + # check results and reuse them for 60 seconds. In case of any server errors, the + # client should rely on the cached results for much longer time to avoid outage. # WARNING: There is general 60s delay for the configuration and policy # propagation, therefore callers MUST NOT depend on the `Check` method having - # the latest policy information. - # NOTE: the CheckRequest has the size limit of 64KB. - # This method requires the `servicemanagement.services.check` permission - # on the specified service. For more information, see - # [Cloud IAM](https://cloud.google.com/iam). + # the latest policy information. NOTE: the CheckRequest has the size limit of + # 64KB. This method requires the `servicemanagement.services.check` permission + # on the specified service. For more information, see [Cloud IAM](https://cloud. + # google.com/iam). # @param [String] service_name - # The service name as specified in its service configuration. For example, - # `"pubsub.googleapis.com"`. - # See - # [google.api.Service](https://cloud.google.com/service-management/reference/rpc/ - # google.api#google.api.Service) - # for the definition of a service name. + # The service name as specified in its service configuration. For example, `" + # pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/ + # service-management/reference/rpc/google.api#google.api.Service) for the + # definition of a service name. # @param [Google::Apis::ServicecontrolV1::CheckRequest] check_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -141,25 +135,21 @@ module Google execute_or_queue_command(command, &block) end - # Reports operation results to Google Service Control, such as logs and - # metrics. It should be called after an operation is completed. - # If feasible, the client should aggregate reporting data for up to 5 - # seconds to reduce API traffic. Limiting aggregation to 5 seconds is to - # reduce data loss during client crashes. Clients should carefully choose - # the aggregation time window to avoid data loss risk more than 0.01% - # for business and compliance reasons. - # NOTE: the ReportRequest has the size limit (wire-format byte size) of - # 1MB. - # This method requires the `servicemanagement.services.report` permission - # on the specified service. For more information, see - # [Google Cloud IAM](https://cloud.google.com/iam). + # Reports operation results to Google Service Control, such as logs and metrics. + # It should be called after an operation is completed. If feasible, the client + # should aggregate reporting data for up to 5 seconds to reduce API traffic. + # Limiting aggregation to 5 seconds is to reduce data loss during client crashes. + # Clients should carefully choose the aggregation time window to avoid data + # loss risk more than 0.01% for business and compliance reasons. NOTE: the + # ReportRequest has the size limit (wire-format byte size) of 1MB. This method + # requires the `servicemanagement.services.report` permission on the specified + # service. For more information, see [Google Cloud IAM](https://cloud.google.com/ + # iam). # @param [String] service_name - # The service name as specified in its service configuration. For example, - # `"pubsub.googleapis.com"`. - # See - # [google.api.Service](https://cloud.google.com/service-management/reference/rpc/ - # google.api#google.api.Service) - # for the definition of a service name. + # The service name as specified in its service configuration. For example, `" + # pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/ + # service-management/reference/rpc/google.api#google.api.Service) for the + # definition of a service name. # @param [Google::Apis::ServicecontrolV1::ReportRequest] report_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index c86298b5e..f6416cfe6 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 = '20200727' + REVISION = '20200807' # 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/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index f22d3b001..be7eedaea 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -22,13 +22,13 @@ module Google module Apis module ServicemanagementV1 - # Generated advice about this change, used for providing more - # information about how a change will affect the existing service. + # Generated advice about this change, used for providing more information about + # how a change will affect the existing service. class Advice include Google::Apis::Core::Hashable - # Useful description for why this advice was applied and what actions should - # be taken to mitigate any implied risks. + # Useful description for why this advice was applied and what actions should be + # taken to mitigate any implied risks. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -43,14 +43,13 @@ module Google end end - # Api is a light-weight descriptor for an API Interface. - # Interfaces are also described as "protocol buffer services" in some contexts, - # such as by the "service" keyword in a .proto file, but they are different - # from API Services, which represent a concrete implementation of an interface - # as opposed to simply a description of methods and bindings. They are also - # sometimes simply referred to as "APIs" in other contexts, such as the name of - # this message itself. See https://cloud.google.com/apis/design/glossary for - # detailed terminology. + # Api is a light-weight descriptor for an API Interface. Interfaces are also + # described as "protocol buffer services" in some contexts, such as by the " + # service" keyword in a .proto file, but they are different from API Services, + # which represent a concrete implementation of an interface as opposed to simply + # a description of methods and bindings. They are also sometimes simply referred + # to as "APIs" in other contexts, such as the name of this message itself. See + # https://cloud.google.com/apis/design/glossary for detailed terminology. class Api include Google::Apis::Core::Hashable @@ -64,8 +63,8 @@ module Google # @return [Array] attr_accessor :mixins - # The fully qualified name of this interface, including package name - # followed by the interface's simple name. + # The fully qualified name of this interface, including package name followed by + # the interface's simple name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -75,8 +74,8 @@ module Google # @return [Array] attr_accessor :options - # `SourceContext` represents information about the source of a - # protobuf element, like the file in which it is defined. + # `SourceContext` represents information about the source of a protobuf element, + # like the file in which it is defined. # Corresponds to the JSON property `sourceContext` # @return [Google::Apis::ServicemanagementV1::SourceContext] attr_accessor :source_context @@ -86,23 +85,19 @@ module Google # @return [String] attr_accessor :syntax - # A version string for this interface. If specified, must have the form - # `major-version.minor-version`, as in `1.10`. If the minor version is - # omitted, it defaults to zero. If the entire version field is empty, the - # major version is derived from the package name, as outlined below. If the - # field is not empty, the version in the package name will be verified to be - # consistent with what is provided here. - # The versioning schema uses [semantic - # versioning](http://semver.org) where the major version number - # indicates a breaking change and the minor version an additive, - # non-breaking change. Both version numbers are signals to users - # what to expect from different versions, and should be carefully - # chosen based on the product plan. - # The major version is also reflected in the package name of the - # interface, which must end in `v`, as in - # `google.feature.v1`. For major versions 0 and 1, the suffix can - # be omitted. Zero major versions must only be used for - # experimental, non-GA interfaces. + # A version string for this interface. If specified, must have the form `major- + # version.minor-version`, as in `1.10`. If the minor version is omitted, it + # defaults to zero. If the entire version field is empty, the major version is + # derived from the package name, as outlined below. If the field is not empty, + # the version in the package name will be verified to be consistent with what is + # provided here. The versioning schema uses [semantic versioning](http://semver. + # org) where the major version number indicates a breaking change and the minor + # version an additive, non-breaking change. Both version numbers are signals to + # users what to expect from different versions, and should be carefully chosen + # based on the product plan. The major version is also reflected in the package + # name of the interface, which must end in `v`, as in `google.feature.v1`. For + # major versions 0 and 1, the suffix can be omitted. Zero major versions must + # only be used for experimental, non-GA interfaces. # Corresponds to the JSON property `version` # @return [String] attr_accessor :version @@ -123,53 +118,21 @@ module Google 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:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # 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:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -178,9 +141,9 @@ module Google # @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. + # 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 @@ -196,28 +159,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.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. + # 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] @@ -239,85 +189,63 @@ module Google end end - # Configuration for an authentication provider, including support for - # [JSON Web Token - # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). + # Configuration for an authentication provider, including support for [JSON Web + # Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). class AuthProvider include Google::Apis::Core::Hashable - # The list of JWT - # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32# - # section-4.1.3). - # that are allowed to access. A JWT containing any of these audiences will - # be accepted. When this setting is absent, JWTs with audiences: - # - "https://[service.name]/[google.protobuf.Api.name]" - # - "https://[service.name]/" - # will be accepted. - # For example, if no audiences are in the setting, LibraryService API will - # accept JWTs with the following audiences: - # - + # The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json- + # web-token-32#section-4.1.3). that are allowed to access. A JWT containing any + # of these audiences will be accepted. When this setting is absent, JWTs with + # audiences: - "https://[service.name]/[google.protobuf.Api.name]" - "https://[ + # service.name]/" will be accepted. For example, if no audiences are in the + # setting, LibraryService API will accept JWTs with the following audiences: - # https://library-example.googleapis.com/google.example.library.v1. - # LibraryService - # - https://library-example.googleapis.com/ - # Example: - # audiences: bookstore_android.apps.googleusercontent.com, - # bookstore_web.apps.googleusercontent.com + # LibraryService - https://library-example.googleapis.com/ Example: audiences: + # bookstore_android.apps.googleusercontent.com, bookstore_web.apps. + # googleusercontent.com # Corresponds to the JSON property `audiences` # @return [String] attr_accessor :audiences - # Redirect URL if JWT token is required but not present or is expired. - # Implement authorizationUrl of securityDefinitions in OpenAPI spec. + # Redirect URL if JWT token is required but not present or is expired. Implement + # authorizationUrl of securityDefinitions in OpenAPI spec. # Corresponds to the JSON property `authorizationUrl` # @return [String] attr_accessor :authorization_url - # The unique identifier of the auth provider. It will be referred to by - # `AuthRequirement.provider_id`. - # Example: "bookstore_auth". + # The unique identifier of the auth provider. It will be referred to by ` + # AuthRequirement.provider_id`. Example: "bookstore_auth". # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Identifies the principal that issued the JWT. See - # https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - # Usually a URL or an email address. - # Example: https://securetoken.google.com - # Example: 1234567-compute@developer.gserviceaccount.com + # Identifies the principal that issued the JWT. See https://tools.ietf.org/html/ + # draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email + # address. Example: https://securetoken.google.com Example: 1234567-compute@ + # developer.gserviceaccount.com # Corresponds to the JSON property `issuer` # @return [String] attr_accessor :issuer - # URL of the provider's public key set to validate signature of the JWT. See - # [OpenID - # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# - # ProviderMetadata). - # Optional if the key set document: - # - can be retrieved from - # [OpenID - # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - # the issuer. - # - can be inferred from the email domain of the issuer (e.g. a Google - # service account). - # Example: https://www.googleapis.com/oauth2/v1/certs + # URL of the provider's public key set to validate signature of the JWT. See [ + # OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html# + # ProviderMetadata). Optional if the key set document: - can be retrieved from [ + # OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html + # of the issuer. - can be inferred from the email domain of the issuer (e.g. a + # Google service account). Example: https://www.googleapis.com/oauth2/v1/certs # Corresponds to the JSON property `jwksUri` # @return [String] attr_accessor :jwks_uri - # Defines the locations to extract the JWT. - # JWT locations can be either from HTTP headers or URL query parameters. - # The rule is that the first match wins. The checking order is: checking - # all headers first, then URL query parameters. - # If not specified, default to use following 3 locations: - # 1) Authorization: Bearer - # 2) x-goog-iap-jwt-assertion - # 3) access_token query parameter - # Default locations can be specified as followings: - # jwt_locations: - # - header: Authorization - # value_prefix: "Bearer " - # - header: x-goog-iap-jwt-assertion - # - query: access_token + # Defines the locations to extract the JWT. JWT locations can be either from + # HTTP headers or URL query parameters. The rule is that the first match wins. + # The checking order is: checking all headers first, then URL query parameters. + # If not specified, default to use following 3 locations: 1) Authorization: + # Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default + # locations can be specified as followings: jwt_locations: - header: + # Authorization value_prefix: "Bearer " - header: x-goog-iap-jwt-assertion - + # query: access_token # Corresponds to the JSON property `jwtLocations` # @return [Array] attr_accessor :jwt_locations @@ -337,34 +265,26 @@ module Google end end - # User-defined authentication requirements, including support for - # [JSON Web Token - # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). + # User-defined authentication requirements, including support for [JSON Web + # Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). class AuthRequirement include Google::Apis::Core::Hashable - # NOTE: This will be deprecated soon, once AuthProvider.audiences is - # implemented and accepted in all the runtime components. - # The list of JWT - # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32# - # section-4.1.3). - # that are allowed to access. A JWT containing any of these audiences will - # be accepted. When this setting is absent, only JWTs with audience - # "https://Service_name/API_name" - # will be accepted. For example, if no audiences are in the setting, - # LibraryService API will only accept JWTs with the following audience - # "https://library-example.googleapis.com/google.example.library.v1. - # LibraryService". - # Example: - # audiences: bookstore_android.apps.googleusercontent.com, - # bookstore_web.apps.googleusercontent.com + # NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented + # and accepted in all the runtime components. The list of JWT [audiences](https:/ + # /tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that + # are allowed to access. A JWT containing any of these audiences will be + # accepted. When this setting is absent, only JWTs with audience "https:// + # Service_name/API_name" will be accepted. For example, if no audiences are in + # the setting, LibraryService API will only accept JWTs with the following + # audience "https://library-example.googleapis.com/google.example.library.v1. + # LibraryService". Example: audiences: bookstore_android.apps.googleusercontent. + # com, bookstore_web.apps.googleusercontent.com # Corresponds to the JSON property `audiences` # @return [String] attr_accessor :audiences - # id from authentication provider. - # Example: - # provider_id: bookstore_auth + # id from authentication provider. Example: provider_id: bookstore_auth # Corresponds to the JSON property `providerId` # @return [String] attr_accessor :provider_id @@ -380,18 +300,11 @@ module Google end end - # `Authentication` defines the authentication configuration for an API. - # Example for an API targeted for external use: - # name: calendar.googleapis.com - # authentication: - # providers: - # - id: google_calendar_auth - # jwks_uri: https://www.googleapis.com/oauth2/v1/certs - # issuer: https://securetoken.google.com - # rules: - # - selector: "*" - # requirements: - # provider_id: google_calendar_auth + # `Authentication` defines the authentication configuration for an API. Example + # for an API targeted for external use: name: calendar.googleapis.com + # authentication: providers: - id: google_calendar_auth jwks_uri: https://www. + # googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - + # selector: "*" requirements: provider_id: google_calendar_auth class Authentication include Google::Apis::Core::Hashable @@ -400,8 +313,8 @@ module Google # @return [Array] attr_accessor :providers - # A list of authentication rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. + # A list of authentication rules that apply to individual API methods. **NOTE:** + # All service configuration rules follow "last one wins" order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules @@ -417,13 +330,11 @@ module Google end end - # Authentication rules for the service. - # By default, if a method has any authentication requirements, every request - # must include a valid credential matching one of the requirements. - # It's an error to include more than one kind of credential in a single - # request. - # If a method doesn't have any auth requirements, request credentials will be - # ignored. + # Authentication rules for the service. By default, if a method has any + # authentication requirements, every request must include a valid credential + # matching one of the requirements. It's an error to include more than one kind + # of credential in a single request. If a method doesn't have any auth + # requirements, request credentials will be ignored. class AuthenticationRule include Google::Apis::Core::Hashable @@ -434,19 +345,18 @@ module Google alias_method :allow_without_credential?, :allow_without_credential # OAuth scopes are a way to define data and permissions on data. For example, - # there are scopes defined for "Read-only access to Google Calendar" and - # "Access to Cloud Platform". Users can consent to a scope for an application, - # giving it permission to access that data on their behalf. - # OAuth scope specifications should be fairly coarse grained; a user will need - # to see and understand the text description of what your scope means. - # In most cases: use one or at most two OAuth scopes for an entire family of - # products. If your product has multiple APIs, you should probably be sharing - # the OAuth scope across all of those APIs. - # When you need finer grained OAuth consent screens: talk with your product - # management about how developers will use them in practice. - # Please note that even though each of the canonical scopes is enough for a - # request to be accepted and passed to the backend, a request can still fail - # due to the backend requiring additional scopes or permissions. + # there are scopes defined for "Read-only access to Google Calendar" and "Access + # to Cloud Platform". Users can consent to a scope for an application, giving it + # permission to access that data on their behalf. OAuth scope specifications + # should be fairly coarse grained; a user will need to see and understand the + # text description of what your scope means. In most cases: use one or at most + # two OAuth scopes for an entire family of products. If your product has + # multiple APIs, you should probably be sharing the OAuth scope across all of + # those APIs. When you need finer grained OAuth consent screens: talk with your + # product management about how developers will use them in practice. Please note + # that even though each of the canonical scopes is enough for a request to be + # accepted and passed to the backend, a request can still fail due to the + # backend requiring additional scopes or permissions. # Corresponds to the JSON property `oauth` # @return [Google::Apis::ServicemanagementV1::OAuthRequirements] attr_accessor :oauth @@ -456,8 +366,8 @@ module Google # @return [Array] attr_accessor :requirements - # Selects the methods to which this rule applies. - # Refer to selector for syntax details. + # Selects the methods to which this rule applies. Refer to selector for syntax + # details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -479,8 +389,8 @@ module Google class Backend include Google::Apis::Core::Hashable - # A list of API backend rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. + # A list of API backend rules that apply to individual API methods. **NOTE:** + # All service configuration rules follow "last one wins" order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules @@ -499,21 +409,13 @@ module Google class BackendRule include Google::Apis::Core::Hashable - # The address of the API backend. - # The scheme is used to determine the backend protocol and security. - # The following schemes are accepted: - # SCHEME PROTOCOL SECURITY - # http:// HTTP None - # https:// HTTP TLS - # grpc:// gRPC None - # grpcs:// gRPC TLS - # It is recommended to explicitly include a scheme. Leaving out the scheme - # may cause constrasting behaviors across platforms. - # If the port is unspecified, the default is: - # - 80 for schemes without TLS - # - 443 for schemes with TLS - # For HTTP backends, use protocol - # to specify the protocol version. + # The address of the API backend. The scheme is used to determine the backend + # protocol and security. The following schemes are accepted: SCHEME PROTOCOL + # SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC + # TLS It is recommended to explicitly include a scheme. Leaving out the scheme + # may cause constrasting behaviors across platforms. If the port is unspecified, + # the default is: - 80 for schemes without TLS - 443 for schemes with TLS For + # HTTP backends, use protocol to specify the protocol version. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -524,18 +426,18 @@ module Google # @return [Float] attr_accessor :deadline - # When disable_auth is true, a JWT ID token won't be generated and the - # original "Authorization" HTTP header will be preserved. If the header is - # used to carry the original token and is expected by the backend, this - # field must be set to true to preserve the header. + # When disable_auth is true, a JWT ID token won't be generated and the original " + # Authorization" HTTP header will be preserved. If the header is used to carry + # the original token and is expected by the backend, this field must be set to + # true to preserve the header. # Corresponds to the JSON property `disableAuth` # @return [Boolean] attr_accessor :disable_auth alias_method :disable_auth?, :disable_auth - # The JWT audience is used when generating a JWT ID token for the backend. - # This ID token will be added in the HTTP "authorization" header, and sent - # to the backend. + # The JWT audience is used when generating a JWT ID token for the backend. This + # ID token will be added in the HTTP "authorization" header, and sent to the + # backend. # Corresponds to the JSON property `jwtAudience` # @return [String] attr_accessor :jwt_audience @@ -546,8 +448,8 @@ module Google # @return [Float] attr_accessor :min_deadline - # The number of seconds to wait for the completion of a long running - # operation. The default is no deadline. + # The number of seconds to wait for the completion of a long running operation. + # The default is no deadline. # Corresponds to the JSON property `operationDeadline` # @return [Float] attr_accessor :operation_deadline @@ -557,29 +459,21 @@ module Google # @return [String] attr_accessor :path_translation - # The protocol used for sending a request to the backend. - # The supported values are "http/1.1" and "h2". - # The default value is inferred from the scheme in the - # address field: - # SCHEME PROTOCOL - # http:// http/1.1 - # https:// http/1.1 - # grpc:// h2 - # grpcs:// h2 - # For secure HTTP backends (https://) that support HTTP/2, set this field - # to "h2" for improved performance. - # Configuring this field to non-default values is only supported for secure - # HTTP backends. This field will be ignored for all other backends. - # See - # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype- - # values.xhtml#alpn-protocol-ids - # for more details on the supported values. + # The protocol used for sending a request to the backend. The supported values + # are "http/1.1" and "h2". The default value is inferred from the scheme in the + # address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 + # grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this + # field to "h2" for improved performance. Configuring this field to non-default + # values is only supported for secure HTTP backends. This field will be ignored + # for all other backends. See https://www.iana.org/assignments/tls-extensiontype- + # values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on + # the supported values. # Corresponds to the JSON property `protocol` # @return [String] attr_accessor :protocol - # Selects the methods to which this rule applies. - # Refer to selector for syntax details. + # Selects the methods to which this rule applies. Refer to selector for syntax + # details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -602,42 +496,28 @@ module Google end end - # Billing related configuration of the service. - # The following example shows how to configure monitored resources and metrics - # for billing, `consumer_destinations` is the only supported destination and - # the monitored resources need at least one label key - # `cloud.googleapis.com/location` to indicate the location of the billing - # usage, using different monitored resources between monitoring and billing is - # recommended so they can be evolved independently: - # monitored_resources: - # - type: library.googleapis.com/billing_branch - # labels: - # - key: cloud.googleapis.com/location - # description: | - # Predefined label to support billing location restriction. - # - key: city - # description: | - # Custom label to define the city where the library branch is located - # in. - # - key: name - # description: Custom label to define the name of the library branch. - # metrics: - # - name: library.googleapis.com/book/borrowed_count - # metric_kind: DELTA - # value_type: INT64 - # unit: "1" - # billing: - # consumer_destinations: - # - monitored_resource: library.googleapis.com/billing_branch - # metrics: - # - library.googleapis.com/book/borrowed_count + # Billing related configuration of the service. The following example shows how + # to configure monitored resources and metrics for billing, ` + # consumer_destinations` is the only supported destination and the monitored + # resources need at least one label key `cloud.googleapis.com/location` to + # indicate the location of the billing usage, using different monitored + # resources between monitoring and billing is recommended so they can be evolved + # independently: monitored_resources: - type: library.googleapis.com/ + # billing_branch labels: - key: cloud.googleapis.com/location description: | + # Predefined label to support billing location restriction. - key: city + # description: | Custom label to define the city where the library branch is + # located in. - key: name description: Custom label to define the name of the + # library branch. metrics: - name: library.googleapis.com/book/borrowed_count + # metric_kind: DELTA value_type: INT64 unit: "1" billing: consumer_destinations: + # - monitored_resource: library.googleapis.com/billing_branch metrics: - library. + # googleapis.com/book/borrowed_count class Billing include Google::Apis::Core::Hashable - # Billing configurations for sending metrics to the consumer project. - # There can be multiple consumer destinations per service, each one must have - # a different monitored resource type. A metric can be used in at most - # one consumer destination. + # Billing configurations for sending metrics to the consumer project. There can + # be multiple consumer destinations per service, each one must have a different + # monitored resource type. A metric can be used in at most one consumer + # destination. # Corresponds to the JSON property `consumerDestinations` # @return [Array] attr_accessor :consumer_destinations @@ -652,19 +532,19 @@ module Google end end - # Configuration of a specific billing destination (Currently only support - # bill against consumer project). + # Configuration of a specific billing destination (Currently only support bill + # against consumer project). class BillingDestination include Google::Apis::Core::Hashable - # Names of the metrics to report to this billing destination. - # Each name must be defined in Service.metrics section. + # Names of the metrics to report to this billing destination. Each name must be + # defined in Service.metrics section. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics - # The monitored resource type. The type must be defined in - # Service.monitored_resources section. + # The monitored resource type. The type must be defined in Service. + # monitored_resources section. # Corresponds to the JSON property `monitoredResource` # @return [String] attr_accessor :monitored_resource @@ -684,69 +564,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::ServicemanagementV1::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@example.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`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # 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@example.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`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `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`. + # 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 @@ -763,17 +631,16 @@ module Google end end - # Change report associated with a particular service configuration. - # It contains a list of ConfigChanges based on the comparison between - # two service configurations. + # Change report associated with a particular service configuration. It contains + # a list of ConfigChanges based on the comparison between two service + # configurations. class ChangeReport include Google::Apis::Core::Hashable - # List of changes between two service configurations. - # The changes will be alphabetically sorted based on the identifier - # of each change. - # A ConfigChange identifier is a dot separated path to the configuration. - # Example: visibility.rules[selector='LibraryService.CreateBook'].restriction + # List of changes between two service configurations. The changes will be + # alphabetically sorted based on the identifier of each change. A ConfigChange + # identifier is a dot separated path to the configuration. Example: visibility. + # rules[selector='LibraryService.CreateBook'].restriction # Corresponds to the JSON property `configChanges` # @return [Array] attr_accessor :config_changes @@ -789,9 +656,8 @@ module Google end # Output generated from semantically comparing two versions of a service - # configuration. - # Includes detailed information about a field that have changed with - # applicable advice about potential consequences for the change, such as + # configuration. Includes detailed information about a field that have changed + # with applicable advice about potential consequences for the change, such as # backwards-incompatibility. class ConfigChange include Google::Apis::Core::Hashable @@ -807,27 +673,25 @@ module Google # @return [String] attr_accessor :change_type - # Object hierarchy path to the change, with levels separated by a '.' - # character. For repeated fields, an applicable unique identifier field is - # used for the index (usually selector, name, or id). For maps, the term - # 'key' is used. If the field has no unique identifier, the numeric index - # is used. - # Examples: - # - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - # - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - # - logging.producer_destinations[0] + # Object hierarchy path to the change, with levels separated by a '.' character. + # For repeated fields, an applicable unique identifier field is used for the + # index (usually selector, name, or id). For maps, the term 'key' is used. If + # the field has no unique identifier, the numeric index is used. Examples: - + # visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - + # quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - + # logging.producer_destinations[0] # Corresponds to the JSON property `element` # @return [String] attr_accessor :element - # Value of the changed object in the new Service configuration, - # in JSON format. This field will not be populated if ChangeType == REMOVED. + # Value of the changed object in the new Service configuration, in JSON format. + # This field will not be populated if ChangeType == REMOVED. # Corresponds to the JSON property `newValue` # @return [String] attr_accessor :new_value - # Value of the changed object in the old Service configuration, - # in JSON format. This field will not be populated if ChangeType == ADDED. + # Value of the changed object in the old Service configuration, in JSON format. + # This field will not be populated if ChangeType == ADDED. # Corresponds to the JSON property `oldValue` # @return [String] attr_accessor :old_value @@ -882,8 +746,8 @@ module Google class ConfigRef include Google::Apis::Core::Hashable - # Resource name of a service config. It must have the following - # format: "services/`service name`/configs/`config id`". + # Resource name of a service config. It must have the following format: " + # services/`service name`/configs/`config id`". # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -909,9 +773,9 @@ module Google # @return [Array] attr_accessor :files - # A unique ID for a specific instance of this message, typically assigned - # by the client for tracking purpose. If empty, the server may choose to - # generate one instead. + # A unique ID for a specific instance of this message, typically assigned by the + # client for tracking purpose. If empty, the server may choose to generate one + # instead. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -927,39 +791,24 @@ module Google end end - # `Context` defines which contexts an API requests. - # Example: - # context: - # rules: - # - selector: "*" - # requested: - # - google.rpc.context.ProjectContext - # - google.rpc.context.OriginContext - # The above specifies that all methods in the API request - # `google.rpc.context.ProjectContext` and - # `google.rpc.context.OriginContext`. - # Available context types are defined in package - # `google.rpc.context`. - # This also provides mechanism to whitelist any protobuf message extension that - # can be sent in grpc metadata using “x-goog-ext--bin” and - # “x-goog-ext--jspb” format. For example, list any service - # specific protobuf types that can appear in grpc metadata as follows in your - # yaml file: - # Example: - # context: - # rules: - # - selector: "google.example.library.v1.LibraryService.CreateBook" - # allowed_request_extensions: - # - google.foo.v1.NewExtension - # allowed_response_extensions: - # - google.foo.v1.NewExtension - # You can also specify extension ID instead of fully qualified extension name - # here. + # `Context` defines which contexts an API requests. Example: context: rules: - + # selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc. + # context.OriginContext The above specifies that all methods in the API request ` + # google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`. + # Available context types are defined in package `google.rpc.context`. This also + # provides mechanism to whitelist any protobuf message extension that can be + # sent in grpc metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format. + # For example, list any service specific protobuf types that can appear in grpc + # metadata as follows in your yaml file: Example: context: rules: - selector: " + # google.example.library.v1.LibraryService.CreateBook" + # allowed_request_extensions: - google.foo.v1.NewExtension + # allowed_response_extensions: - google.foo.v1.NewExtension You can also specify + # extension ID instead of fully qualified extension name here. class Context include Google::Apis::Core::Hashable - # A list of RPC context rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. + # A list of RPC context rules that apply to individual API methods. **NOTE:** + # All service configuration rules follow "last one wins" order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules @@ -979,14 +828,14 @@ module Google class ContextRule include Google::Apis::Core::Hashable - # A list of full type names or extension IDs of extensions allowed in grpc - # side channel from client to backend. + # A list of full type names or extension IDs of extensions allowed in grpc side + # channel from client to backend. # Corresponds to the JSON property `allowedRequestExtensions` # @return [Array] attr_accessor :allowed_request_extensions - # A list of full type names or extension IDs of extensions allowed in grpc - # side channel from backend to client. + # A list of full type names or extension IDs of extensions allowed in grpc side + # channel from backend to client. # Corresponds to the JSON property `allowedResponseExtensions` # @return [Array] attr_accessor :allowed_response_extensions @@ -1001,8 +850,8 @@ module Google # @return [Array] attr_accessor :requested - # Selects the methods to which this rule applies. - # Refer to selector for syntax details. + # Selects the methods to which this rule applies. Refer to selector for syntax + # details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -1021,14 +870,14 @@ module Google end end - # Selects and configures the service controller used by the service. The - # service controller handles features like abuse, quota, billing, logging, - # monitoring, etc. + # Selects and configures the service controller used by the service. The service + # controller handles features like abuse, quota, billing, logging, monitoring, + # etc. class Control include Google::Apis::Core::Hashable - # The service control environment to use. If empty, no control plane - # feature (like quota and billing) will be enabled. + # The service control environment to use. If empty, no control plane feature ( + # like quota and billing) will be enabled. # Corresponds to the JSON property `environment` # @return [String] attr_accessor :environment @@ -1043,19 +892,15 @@ module Google end end - # Customize service error responses. For example, list any service - # specific protobuf types that can appear in error detail lists of - # error responses. - # Example: - # custom_error: - # types: - # - google.foo.v1.CustomError - # - google.foo.v1.AnotherError + # Customize service error responses. For example, list any service specific + # protobuf types that can appear in error detail lists of error responses. + # Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1. + # AnotherError class CustomError include Google::Apis::Core::Hashable - # The list of custom error rules that apply to individual API messages. - # **NOTE:** All service configuration rules follow "last one wins" order. + # The list of custom error rules that apply to individual API messages. **NOTE:** + # All service configuration rules follow "last one wins" order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules @@ -1080,15 +925,15 @@ module Google class CustomErrorRule include Google::Apis::Core::Hashable - # Mark this message as possible payload in error response. Otherwise, - # objects of this type will be filtered when they appear in error payload. + # Mark this message as possible payload in error response. Otherwise, objects of + # this type will be filtered when they appear in error payload. # Corresponds to the JSON property `isErrorType` # @return [Boolean] attr_accessor :is_error_type alias_method :is_error_type?, :is_error_type - # Selects messages to which this rule applies. - # Refer to selector for syntax details. + # Selects messages to which this rule applies. Refer to selector for syntax + # details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -1129,8 +974,8 @@ module Google end end - # Strategy used to delete a service. This strategy is a placeholder only - # used by the system generated rollout to delete a service. + # Strategy used to delete a service. This strategy is a placeholder only used by + # the system generated rollout to delete a service. class DeleteServiceStrategy include Google::Apis::Core::Hashable @@ -1179,12 +1024,9 @@ module Google include Google::Apis::Core::Hashable # Required. The identity of consumer resource which service disablement will be - # applied to. - # The Google Service Management implementation accepts the following - # forms: - # - "project:" - # Note: this is made compatible with - # google.api.servicecontrol.v1.Operation.consumer_id. + # applied to. The Google Service Management implementation accepts the following + # forms: - "project:" Note: this is made compatible with google.api. + # servicecontrol.v1.Operation.consumer_id. # Corresponds to the JSON property `consumerId` # @return [String] attr_accessor :consumer_id @@ -1212,56 +1054,32 @@ module Google end end - # `Documentation` provides the information for describing a service. - # Example: - #
                                          documentation:
                                          -      # summary: >
                                          -      # The Google Calendar API gives access
                                          -      # to most calendar features.
                                          -      # pages:
                                          -      # - name: Overview
                                          -      # content: (== include google/foo/overview.md ==)
                                          -      # - name: Tutorial
                                          -      # content: (== include google/foo/tutorial.md ==)
                                          -      # subpages;
                                          -      # - name: Java
                                          -      # content: (== include google/foo/tutorial_java.md ==)
                                          -      # rules:
                                          -      # - selector: google.calendar.Calendar.Get
                                          -      # description: >
                                          -      # ...
                                          -      # - selector: google.calendar.Calendar.Put
                                          -      # description: >
                                          -      # ...
                                          -      # 
                                          - # Documentation is provided in markdown syntax. In addition to - # standard markdown features, definition lists, tables and fenced - # code blocks are supported. Section headers can be provided and are - # interpreted relative to the section nesting of the context where - # a documentation fragment is embedded. - # Documentation from the IDL is merged with documentation defined - # via the config at normalization time, where documentation provided - # by config rules overrides IDL provided. - # A number of constructs specific to the API platform are supported - # in documentation text. - # In order to reference a proto element, the following - # notation can be used: - #
                                          [fully.qualified.proto.name][]
                                          - # To override the display text used for the link, this can be used: - #
                                          [display text][fully.qualified.proto.name]
                                          - # Text can be excluded from doc using the following notation: - #
                                          (-- internal comment --)
                                          - # A few directives are available in documentation. Note that - # directives must appear on a single line to be properly - # identified. The `include` directive includes a markdown file from - # an external source: - #
                                          (== include path/to/file ==)
                                          - # The `resource_for` directive marks a message to be the resource of - # a collection in REST view. If it is not specified, tools attempt - # to infer the resource from the operations in a collection: - #
                                          (== resource_for v1.shelves.books ==)
                                          - # The directive `suppress_warning` does not directly affect documentation - # and is documented together with service config validation. + # `Documentation` provides the information for describing a service. Example: + # documentation: summary: > The Google Calendar API gives access to most + # calendar features. pages: - name: Overview content: (== include google/foo/ + # overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md == + # ) subpages; - name: Java content: (== include google/foo/tutorial_java.md ==) + # rules: - selector: google.calendar.Calendar.Get description: > ... - selector: + # google.calendar.Calendar.Put description: > ... Documentation is provided in + # markdown syntax. In addition to standard markdown features, definition lists, + # tables and fenced code blocks are supported. Section headers can be provided + # and are interpreted relative to the section nesting of the context where a + # documentation fragment is embedded. Documentation from the IDL is merged with + # documentation defined via the config at normalization time, where + # documentation provided by config rules overrides IDL provided. A number of + # constructs specific to the API platform are supported in documentation text. + # In order to reference a proto element, the following notation can be used: [ + # fully.qualified.proto.name][] To override the display text used for the link, + # this can be used: [display text][fully.qualified.proto.name] Text can be + # excluded from doc using the following notation: (-- internal comment --) A few + # directives are available in documentation. Note that directives must appear on + # a single line to be properly identified. The `include` directive includes a + # markdown file from an external source: (== include path/to/file ==) The ` + # resource_for` directive marks a message to be the resource of a collection in + # REST view. If it is not specified, tools attempt to infer the resource from + # the operations in a collection: (== resource_for v1.shelves.books ==) The + # directive `suppress_warning` does not directly affect documentation and is + # documented together with service config validation. class Documentation include Google::Apis::Core::Hashable @@ -1270,19 +1088,11 @@ module Google # @return [String] attr_accessor :documentation_root_url - # Declares a single overview page. For example: - #
                                          documentation:
                                          -        # summary: ...
                                          -        # overview: (== include overview.md ==)
                                          -        # 
                                          - # This is a shortcut for the following declaration (using pages style): - #
                                          documentation:
                                          -        # summary: ...
                                          -        # pages:
                                          -        # - name: Overview
                                          -        # content: (== include overview.md ==)
                                          -        # 
                                          - # Note: you cannot specify both `overview` field and `pages` field. + # Declares a single overview page. For example: documentation: summary: ... + # overview: (== include overview.md ==) This is a shortcut for the following + # declaration (using pages style): documentation: summary: ... pages: - name: + # Overview content: (== include overview.md ==) Note: you cannot specify both ` + # overview` field and `pages` field. # Corresponds to the JSON property `overview` # @return [String] attr_accessor :overview @@ -1292,22 +1102,20 @@ module Google # @return [Array] attr_accessor :pages - # A list of documentation rules that apply to individual API elements. - # **NOTE:** All service configuration rules follow "last one wins" order. + # A list of documentation rules that apply to individual API elements. **NOTE:** + # All service configuration rules follow "last one wins" order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules - # Specifies the service root url if the default one (the service name - # from the yaml file) is not suitable. This can be seen in any fully - # specified service urls as well as sections that show a base that other - # urls are relative to. + # Specifies the service root url if the default one (the service name from the + # yaml file) is not suitable. This can be seen in any fully specified service + # urls as well as sections that show a base that other urls are relative to. # Corresponds to the JSON property `serviceRootUrl` # @return [String] attr_accessor :service_root_url - # A short summary of what the service does. Can only be provided by - # plain text. + # A short summary of what the service does. Can only be provided by plain text. # Corresponds to the JSON property `summary` # @return [String] attr_accessor :summary @@ -1331,8 +1139,8 @@ module Google class DocumentationRule include Google::Apis::Core::Hashable - # Deprecation description of the selected element(s). It can be provided if - # an element is marked as `deprecated`. + # Deprecation description of the selected element(s). It can be provided if an + # element is marked as `deprecated`. # Corresponds to the JSON property `deprecationDescription` # @return [String] attr_accessor :deprecation_description @@ -1369,12 +1177,9 @@ module Google include Google::Apis::Core::Hashable # Required. The identity of consumer resource which service enablement will be - # applied to. - # The Google Service Management implementation accepts the following - # forms: - # - "project:" - # Note: this is made compatible with - # google.api.servicecontrol.v1.Operation.consumer_id. + # applied to. The Google Service Management implementation accepts the following + # forms: - "project:" Note: this is made compatible with google.api. + # servicecontrol.v1.Operation.consumer_id. # Corresponds to the JSON property `consumerId` # @return [String] attr_accessor :consumer_id @@ -1402,35 +1207,28 @@ module Google end end - # `Endpoint` describes a network endpoint that serves a set of APIs. - # A service may expose any number of endpoints, and all endpoints share the - # same service configuration, such as quota configuration and monitoring - # configuration. - # Example service configuration: - # name: library-example.googleapis.com - # endpoints: - # # Below entry makes 'google.example.library.v1.Library' - # # API be served from endpoint address library-example.googleapis.com. - # # It also allows HTTP OPTIONS calls to be passed to the backend, for - # # it to decide whether the subsequent cross-origin request is - # # allowed to proceed. - # - name: library-example.googleapis.com - # allow_cors: true + # `Endpoint` describes a network endpoint that serves a set of APIs. A service + # may expose any number of endpoints, and all endpoints share the same service + # configuration, such as quota configuration and monitoring configuration. + # Example service configuration: name: library-example.googleapis.com endpoints: + # # Below entry makes 'google.example.library.v1.Library' # API be served from + # endpoint address library-example.googleapis.com. # It also allows HTTP OPTIONS + # calls to be passed to the backend, for # it to decide whether the subsequent + # cross-origin request is # allowed to proceed. - name: library-example. + # googleapis.com allow_cors: true class Endpoint include Google::Apis::Core::Hashable # DEPRECATED: This field is no longer supported. Instead of using aliases, - # please specify multiple google.api.Endpoint for each of the intended - # aliases. + # please specify multiple google.api.Endpoint for each of the intended aliases. # Additional names that this endpoint will be hosted on. # Corresponds to the JSON property `aliases` # @return [Array] attr_accessor :aliases - # Allowing - # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - # cross-domain traffic, would allow the backends served from this endpoint to - # receive and respond to HTTP OPTIONS requests. The response will be used by + # Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), + # aka cross-domain traffic, would allow the backends served from this endpoint + # to receive and respond to HTTP OPTIONS requests. The response will be used by # the browser to determine whether the subsequent cross-origin request is # allowed to proceed. # Corresponds to the JSON property `allowCors` @@ -1444,10 +1242,9 @@ module Google attr_accessor :name # The specification of an Internet routable address of API frontend that will - # handle requests to this [API - # Endpoint](https://cloud.google.com/apis/design/glossary). It should be - # either a valid IPv4 address or a fully-qualified domain name. For example, - # "8.8.8.8" or "myservice.appspot.com". + # handle requests to this [API Endpoint](https://cloud.google.com/apis/design/ + # glossary). It should be either a valid IPv4 address or a fully-qualified + # domain name. For example, "8.8.8.8" or "myservice.appspot.com". # Corresponds to the JSON property `target` # @return [String] attr_accessor :target @@ -1484,8 +1281,8 @@ module Google # @return [Array] attr_accessor :options - # `SourceContext` represents information about the source of a - # protobuf element, like the file in which it is defined. + # `SourceContext` represents information about the source of a protobuf element, + # like the file in which it is defined. # Corresponds to the JSON property `sourceContext` # @return [Google::Apis::ServicemanagementV1::SourceContext] attr_accessor :source_context @@ -1540,52 +1337,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # 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. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # 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 - # 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. + # 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 @@ -1637,8 +1425,8 @@ module Google # @return [Fixnum] attr_accessor :number - # The index of the field type in `Type.oneofs`, for message or enumeration - # types. The first type has index 1; zero means the type is not in the list. + # The index of the field type in `Type.oneofs`, for message or enumeration types. + # The first type has index 1; zero means the type is not in the list. # Corresponds to the JSON property `oneofIndex` # @return [Fixnum] attr_accessor :oneof_index @@ -1654,8 +1442,8 @@ module Google attr_accessor :packed alias_method :packed?, :packed - # The field type URL, without the scheme, for message or enumeration - # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. + # The field type URL, without the scheme, for message or enumeration types. + # Example: `"type.googleapis.com/google.protobuf.Timestamp"`. # Corresponds to the JSON property `typeUrl` # @return [String] attr_accessor :type_url @@ -1679,8 +1467,8 @@ module Google end end - # Encapsulation of flow-specific error details for debugging. - # Used as a details field on an error Status, not intended for external use. + # Encapsulation of flow-specific error details for debugging. Used as a details + # field on an error Status, not intended for external use. class FlowErrorDetails include Google::Apis::Core::Hashable @@ -1709,20 +1497,18 @@ module Google class GenerateConfigReportRequest include Google::Apis::Core::Hashable - # Required. Service configuration for which we want to generate the report. - # For this version of API, the supported types are - # google.api.servicemanagement.v1.ConfigRef, - # google.api.servicemanagement.v1.ConfigSource, - # and google.api.Service + # Required. Service configuration for which we want to generate the report. For + # this version of API, the supported types are google.api.servicemanagement.v1. + # ConfigRef, google.api.servicemanagement.v1.ConfigSource, and google.api. + # Service # Corresponds to the JSON property `newConfig` # @return [Hash] attr_accessor :new_config - # Optional. Service configuration against which the comparison will be done. - # For this version of API, the supported types are - # google.api.servicemanagement.v1.ConfigRef, - # google.api.servicemanagement.v1.ConfigSource, - # and google.api.Service + # Optional. Service configuration against which the comparison will be done. For + # this version of API, the supported types are google.api.servicemanagement.v1. + # ConfigRef, google.api.servicemanagement.v1.ConfigSource, and google.api. + # Service # Corresponds to the JSON property `oldConfig` # @return [Hash] attr_accessor :old_config @@ -1742,14 +1528,13 @@ module Google class GenerateConfigReportResponse include Google::Apis::Core::Hashable - # list of ChangeReport, each corresponding to comparison between two - # service configurations. + # list of ChangeReport, each corresponding to comparison between two service + # configurations. # Corresponds to the JSON property `changeReports` # @return [Array] attr_accessor :change_reports - # Errors / Linter warnings associated with the service definition this - # report + # Errors / Linter warnings associated with the service definition this report # belongs to. # Corresponds to the JSON property `diagnostics` # @return [Array] @@ -1801,15 +1586,13 @@ module Google class GetPolicyOptions include Google::Apis::Core::Hashable - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # Corresponds to the JSON property `requestedPolicyVersion` # @return [Fixnum] attr_accessor :requested_policy_version @@ -1825,23 +1608,22 @@ module Google end # Defines the HTTP configuration for an API service. It contains a list of - # HttpRule, each specifying the mapping of an RPC method - # to one or more HTTP REST API methods. + # HttpRule, each specifying the mapping of an RPC method to one or more HTTP + # REST API methods. class Http include Google::Apis::Core::Hashable # When set to true, URL path parameters will be fully URI-decoded except in # cases of single segment matches in reserved expansion, where "%2F" will be - # left encoded. - # The default behavior is to not decode RFC 6570 reserved characters in multi - # segment matches. + # left encoded. The default behavior is to not decode RFC 6570 reserved + # characters in multi segment matches. # Corresponds to the JSON property `fullyDecodeReservedExpansion` # @return [Boolean] attr_accessor :fully_decode_reserved_expansion alias_method :fully_decode_reserved_expansion?, :fully_decode_reserved_expansion - # A list of HTTP configuration rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. + # A list of HTTP configuration rules that apply to individual API methods. ** + # NOTE:** All service configuration rules follow "last one wins" order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules @@ -1857,251 +1639,156 @@ module Google end end - # # gRPC Transcoding - # gRPC Transcoding is a feature for mapping between a gRPC method and one or - # more HTTP REST endpoints. It allows developers to build a single API service - # that supports both gRPC APIs and REST APIs. Many systems, including [Google - # APIs](https://github.com/googleapis/googleapis), - # [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC - # Gateway](https://github.com/grpc-ecosystem/grpc-gateway), - # and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature - # and use it for large scale production services. - # `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies - # how different portions of the gRPC request message are mapped to the URL - # path, URL query parameters, and HTTP request body. It also controls how the - # gRPC response message is mapped to the HTTP response body. `HttpRule` is + # # gRPC Transcoding gRPC Transcoding is a feature for mapping between a gRPC + # method and one or more HTTP REST endpoints. It allows developers to build a + # single API service that supports both gRPC APIs and REST APIs. Many systems, + # including [Google APIs](https://github.com/googleapis/googleapis), [Cloud + # Endpoints](https://cloud.google.com/endpoints), [gRPC Gateway](https://github. + # com/grpc-ecosystem/grpc-gateway), and [Envoy](https://github.com/envoyproxy/ + # envoy) proxy support this feature and use it for large scale production + # services. `HttpRule` defines the schema of the gRPC/REST mapping. The mapping + # specifies how different portions of the gRPC request message are mapped to the + # URL path, URL query parameters, and HTTP request body. It also controls how + # the gRPC response message is mapped to the HTTP response body. `HttpRule` is # typically specified as an `google.api.http` annotation on the gRPC method. # Each mapping specifies a URL path template and an HTTP method. The path # template may refer to one or more fields in the gRPC request message, as long - # as each field is a non-repeated field with a primitive (non-message) type. - # The path template controls how fields of the request message are mapped to - # the URL path. - # Example: - # service Messaging ` - # rpc GetMessage(GetMessageRequest) returns (Message) ` - # option (google.api.http) = ` - # get: "/v1/`name=messages/*`" - # `; - # ` - # ` - # message GetMessageRequest ` - # string name = 1; // Mapped to URL path. - # ` - # message Message ` - # string text = 1; // The resource content. - # ` - # This enables an HTTP REST to gRPC mapping as below: - # HTTP | gRPC - # -----|----- - # `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")` - # Any fields in the request message which are not bound by the path template - # automatically become HTTP query parameters if there is no HTTP request body. - # For example: - # service Messaging ` - # rpc GetMessage(GetMessageRequest) returns (Message) ` - # option (google.api.http) = ` - # get:"/v1/messages/`message_id`" - # `; - # ` - # ` - # message GetMessageRequest ` - # message SubMessage ` - # string subfield = 1; - # ` - # string message_id = 1; // Mapped to URL path. - # int64 revision = 2; // Mapped to URL query parameter `revision`. - # SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. - # ` - # This enables a HTTP JSON to RPC mapping as below: - # HTTP | gRPC - # -----|----- - # `GET /v1/messages/123456?revision=2&sub.subfield=foo` | - # `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: - # "foo"))` - # Note that fields which are mapped to URL query parameters must have a - # primitive type or a repeated primitive type or a non-repeated message type. - # In the case of a repeated type, the parameter can be repeated in the URL - # as `...?param=A¶m=B`. In the case of a message type, each field of the - # message is mapped to a separate parameter, such as - # `...?foo.a=A&foo.b=B&foo.c=C`. - # For HTTP methods that allow a request body, the `body` field - # specifies the mapping. Consider a REST update method on the - # message resource collection: - # service Messaging ` - # rpc UpdateMessage(UpdateMessageRequest) returns (Message) ` - # option (google.api.http) = ` - # patch: "/v1/messages/`message_id`" - # body: "message" - # `; - # ` - # ` - # message UpdateMessageRequest ` - # string message_id = 1; // mapped to the URL - # Message message = 2; // mapped to the body - # ` - # The following HTTP JSON to RPC mapping is enabled, where the - # representation of the JSON in the request body is determined by - # protos JSON encoding: - # HTTP | gRPC - # -----|----- - # `PATCH /v1/messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: - # "123456" message ` text: "Hi!" `)` - # The special name `*` can be used in the body mapping to define that - # every field not bound by the path template should be mapped to the - # request body. This enables the following alternative definition of - # the update method: - # service Messaging ` - # rpc UpdateMessage(Message) returns (Message) ` - # option (google.api.http) = ` - # patch: "/v1/messages/`message_id`" - # body: "*" - # `; - # ` - # ` - # message Message ` - # string message_id = 1; - # string text = 2; - # ` - # The following HTTP JSON to RPC mapping is enabled: - # HTTP | gRPC - # -----|----- - # `PATCH /v1/messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: - # "123456" text: "Hi!")` - # Note that when using `*` in the body mapping, it is not possible to - # have HTTP parameters, as all fields not bound by the path end in - # the body. This makes this option more rarely used in practice when - # defining REST APIs. The common usage of `*` is in custom methods - # which don't use the URL at all for transferring data. - # It is possible to define multiple HTTP methods for one RPC by using - # the `additional_bindings` option. Example: - # service Messaging ` - # rpc GetMessage(GetMessageRequest) returns (Message) ` - # option (google.api.http) = ` - # get: "/v1/messages/`message_id`" - # additional_bindings ` - # get: "/v1/users/`user_id`/messages/`message_id`" - # ` - # `; - # ` - # ` - # message GetMessageRequest ` - # string message_id = 1; - # string user_id = 2; - # ` - # This enables the following two alternative HTTP JSON to RPC mappings: - # HTTP | gRPC - # -----|----- - # `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` - # `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: - # "123456")` - # ## Rules for HTTP mapping - # 1. Leaf request fields (recursive expansion nested messages in the request - # message) are classified into three categories: - # - Fields referred by the path template. They are passed via the URL path. - # - Fields referred by the HttpRule.body. They are passed via the HTTP - # request body. - # - All other fields are passed via the URL query parameters, and the - # parameter name is the field path in the request message. A repeated - # field can be represented as multiple query parameters under the same - # name. - # 2. If HttpRule.body is "*", there is no URL query parameter, all fields - # are passed via URL path and HTTP request body. - # 3. If HttpRule.body is omitted, there is no HTTP request body, all - # fields are passed via URL path and URL query parameters. - # ### Path template syntax - # Template = "/" Segments [ Verb ] ; - # Segments = Segment ` "/" Segment ` ; - # Segment = "*" | "**" | LITERAL | Variable ; - # Variable = "`" FieldPath [ "=" Segments ] "`" ; - # FieldPath = IDENT ` "." IDENT ` ; - # Verb = ":" LITERAL ; - # The syntax `*` matches a single URL path segment. The syntax `**` matches - # zero or more URL path segments, which must be the last part of the URL path - # except the `Verb`. - # The syntax `Variable` matches part of the URL path as specified by its - # template. A variable template must not contain other variables. If a variable - # matches a single path segment, its template may be omitted, e.g. ``var`` - # is equivalent to ``var=*``. - # The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` - # contains any reserved character, such characters should be percent-encoded - # before the matching. - # If a variable contains exactly one path segment, such as `"`var`"` or - # `"`var=*`"`, when such a variable is expanded into a URL path on the client - # side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The - # server side does the reverse decoding. Such variables show up in the - # [Discovery - # Document](https://developers.google.com/discovery/v1/reference/apis) as - # ``var``. - # If a variable contains multiple path segments, such as `"`var=foo/*`"` - # or `"`var=**`"`, when such a variable is expanded into a URL path on the - # client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. - # The server side does the reverse decoding, except "%2F" and "%2f" are left - # unchanged. Such variables show up in the - # [Discovery - # Document](https://developers.google.com/discovery/v1/reference/apis) as - # ``+var``. - # ## Using gRPC API Service Configuration - # gRPC API Service Configuration (service config) is a configuration language - # for configuring a gRPC service to become a user-facing product. The - # service config is simply the YAML representation of the `google.api.Service` - # proto message. + # as each field is a non-repeated field with a primitive (non-message) type. The + # path template controls how fields of the request message are mapped to the URL + # path. Example: service Messaging ` rpc GetMessage(GetMessageRequest) returns ( + # Message) ` option (google.api.http) = ` get: "/v1/`name=messages/*`" `; ` ` + # message GetMessageRequest ` string name = 1; // Mapped to URL path. ` message + # Message ` string text = 1; // The resource content. ` This enables an HTTP + # REST to gRPC mapping as below: HTTP | gRPC -----|----- `GET /v1/messages/ + # 123456` | `GetMessage(name: "messages/123456")` Any fields in the request + # message which are not bound by the path template automatically become HTTP + # query parameters if there is no HTTP request body. For example: service + # Messaging ` rpc GetMessage(GetMessageRequest) returns (Message) ` option ( + # google.api.http) = ` get:"/v1/messages/`message_id`" `; ` ` message + # GetMessageRequest ` message SubMessage ` string subfield = 1; ` string + # message_id = 1; // Mapped to URL path. int64 revision = 2; // Mapped to URL + # query parameter `revision`. SubMessage sub = 3; // Mapped to URL query + # parameter `sub.subfield`. ` This enables a HTTP JSON to RPC mapping as below: + # HTTP | gRPC -----|----- `GET /v1/messages/123456?revision=2&sub.subfield=foo` | + # `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo")) + # ` Note that fields which are mapped to URL query parameters must have a + # primitive type or a repeated primitive type or a non-repeated message type. In + # the case of a repeated type, the parameter can be repeated in the URL as `...? + # param=A¶m=B`. In the case of a message type, each field of the message is + # mapped to a separate parameter, such as `...?foo.a=A&foo.b=B&foo.c=C`. For + # HTTP methods that allow a request body, the `body` field specifies the mapping. + # Consider a REST update method on the message resource collection: service + # Messaging ` rpc UpdateMessage(UpdateMessageRequest) returns (Message) ` option + # (google.api.http) = ` patch: "/v1/messages/`message_id`" body: "message" `; ` ` + # message UpdateMessageRequest ` string message_id = 1; // mapped to the URL + # Message message = 2; // mapped to the body ` The following HTTP JSON to RPC + # mapping is enabled, where the representation of the JSON in the request body + # is determined by protos JSON encoding: HTTP | gRPC -----|----- `PATCH /v1/ + # messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: "123456" + # message ` text: "Hi!" `)` The special name `*` can be used in the body mapping + # to define that every field not bound by the path template should be mapped to + # the request body. This enables the following alternative definition of the + # update method: service Messaging ` rpc UpdateMessage(Message) returns (Message) + # ` option (google.api.http) = ` patch: "/v1/messages/`message_id`" body: "*" `; + # ` ` message Message ` string message_id = 1; string text = 2; ` The following + # HTTP JSON to RPC mapping is enabled: HTTP | gRPC -----|----- `PATCH /v1/ + # messages/123456 ` "text": "Hi!" `` | `UpdateMessage(message_id: "123456" text: + # "Hi!")` Note that when using `*` in the body mapping, it is not possible to + # have HTTP parameters, as all fields not bound by the path end in the body. + # This makes this option more rarely used in practice when defining REST APIs. + # The common usage of `*` is in custom methods which don't use the URL at all + # for transferring data. It is possible to define multiple HTTP methods for one + # RPC by using the `additional_bindings` option. Example: service Messaging ` + # rpc GetMessage(GetMessageRequest) returns (Message) ` option (google.api.http) + # = ` get: "/v1/messages/`message_id`" additional_bindings ` get: "/v1/users/` + # user_id`/messages/`message_id`" ` `; ` ` message GetMessageRequest ` string + # message_id = 1; string user_id = 2; ` This enables the following two + # alternative HTTP JSON to RPC mappings: HTTP | gRPC -----|----- `GET /v1/ + # messages/123456` | `GetMessage(message_id: "123456")` `GET /v1/users/me/ + # messages/123456` | `GetMessage(user_id: "me" message_id: "123456")` ## Rules + # for HTTP mapping 1. Leaf request fields (recursive expansion nested messages + # in the request message) are classified into three categories: - Fields + # referred by the path template. They are passed via the URL path. - Fields + # referred by the HttpRule.body. They are passed via the HTTP request body. - + # All other fields are passed via the URL query parameters, and the parameter + # name is the field path in the request message. A repeated field can be + # represented as multiple query parameters under the same name. 2. If HttpRule. + # body is "*", there is no URL query parameter, all fields are passed via URL + # path and HTTP request body. 3. If HttpRule.body is omitted, there is no HTTP + # request body, all fields are passed via URL path and URL query parameters. ### + # Path template syntax Template = "/" Segments [ Verb ] ; Segments = Segment ` "/ + # " Segment ` ; Segment = "*" | "**" | LITERAL | Variable ; Variable = "`" + # FieldPath [ "=" Segments ] "`" ; FieldPath = IDENT ` "." IDENT ` ; Verb = ":" + # LITERAL ; The syntax `*` matches a single URL path segment. The syntax `**` + # matches zero or more URL path segments, which must be the last part of the URL + # path except the `Verb`. The syntax `Variable` matches part of the URL path as + # specified by its template. A variable template must not contain other + # variables. If a variable matches a single path segment, its template may be + # omitted, e.g. ``var`` is equivalent to ``var=*``. The syntax `LITERAL` matches + # literal text in the URL path. If the `LITERAL` contains any reserved character, + # such characters should be percent-encoded before the matching. If a variable + # contains exactly one path segment, such as `"`var`"` or `"`var=*`"`, when such + # a variable is expanded into a URL path on the client side, all characters + # except `[-_.~0-9a-zA-Z]` are percent-encoded. The server side does the reverse + # decoding. Such variables show up in the [Discovery Document](https:// + # developers.google.com/discovery/v1/reference/apis) as ``var``. If a variable + # contains multiple path segments, such as `"`var=foo/*`"` or `"`var=**`"`, when + # such a variable is expanded into a URL path on the client side, all characters + # except `[-_.~/0-9a-zA-Z]` are percent-encoded. The server side does the + # reverse decoding, except "%2F" and "%2f" are left unchanged. Such variables + # show up in the [Discovery Document](https://developers.google.com/discovery/v1/ + # reference/apis) as ``+var``. ## Using gRPC API Service Configuration gRPC API + # Service Configuration (service config) is a configuration language for + # configuring a gRPC service to become a user-facing product. The service config + # is simply the YAML representation of the `google.api.Service` proto message. # As an alternative to annotating your proto file, you can configure gRPC - # transcoding in your service config YAML files. You do this by specifying a - # `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same - # effect as the proto annotation. This can be particularly useful if you - # have a proto that is reused in multiple services. Note that any transcoding - # specified in the service config will override any matching transcoding - # configuration in the proto. - # Example: - # http: - # rules: - # # Selects a gRPC method and applies HttpRule to it. - # - selector: example.v1.Messaging.GetMessage - # get: /v1/messages/`message_id`/`sub.subfield` - # ## Special notes - # When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the - # proto to JSON conversion must follow the [proto3 - # specification](https://developers.google.com/protocol-buffers/docs/proto3#json) - # . - # While the single segment variable follows the semantics of - # [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String - # Expansion, the multi segment variable **does not** follow RFC 6570 Section - # 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion - # does not expand special characters like `?` and `#`, which would lead - # to invalid URLs. As the result, gRPC Transcoding uses a custom encoding - # for multi segment variables. - # The path variables **must not** refer to any repeated or mapped field, - # because client libraries are not capable of handling such variable expansion. - # The path variables **must not** capture the leading "/" character. The reason - # is that the most common use case "`var`" does not capture the leading "/" - # character. For consistency, all path variables must share the same behavior. - # Repeated message fields must not be mapped to URL query parameters, because - # no client library can support such complicated mapping. - # If an API needs to use a JSON array for request or response body, it can map - # the request or response body to a repeated field. However, some gRPC - # Transcoding implementations may not support this feature. + # transcoding in your service config YAML files. You do this by specifying a ` + # HttpRule` that maps the gRPC method to a REST endpoint, achieving the same + # effect as the proto annotation. This can be particularly useful if you have a + # proto that is reused in multiple services. Note that any transcoding specified + # in the service config will override any matching transcoding configuration in + # the proto. Example: http: rules: # Selects a gRPC method and applies HttpRule + # to it. - selector: example.v1.Messaging.GetMessage get: /v1/messages/` + # message_id`/`sub.subfield` ## Special notes When gRPC Transcoding is used to + # map a gRPC to JSON REST endpoints, the proto to JSON conversion must follow + # the [proto3 specification](https://developers.google.com/protocol-buffers/docs/ + # proto3#json). While the single segment variable follows the semantics of [RFC + # 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String + # Expansion, the multi segment variable **does not** follow RFC 6570 Section 3.2. + # 3 Reserved Expansion. The reason is that the Reserved Expansion does not + # expand special characters like `?` and `#`, which would lead to invalid URLs. + # As the result, gRPC Transcoding uses a custom encoding for multi segment + # variables. The path variables **must not** refer to any repeated or mapped + # field, because client libraries are not capable of handling such variable + # expansion. The path variables **must not** capture the leading "/" character. + # The reason is that the most common use case "`var`" does not capture the + # leading "/" character. For consistency, all path variables must share the same + # behavior. Repeated message fields must not be mapped to URL query parameters, + # because no client library can support such complicated mapping. If an API + # needs to use a JSON array for request or response body, it can map the request + # or response body to a repeated field. However, some gRPC Transcoding + # implementations may not support this feature. class HttpRule include Google::Apis::Core::Hashable - # Additional HTTP bindings for the selector. Nested bindings must - # not contain an `additional_bindings` field themselves (that is, - # the nesting may only be one level deep). + # Additional HTTP bindings for the selector. Nested bindings must not contain an + # `additional_bindings` field themselves (that is, the nesting may only be one + # level deep). # Corresponds to the JSON property `additionalBindings` # @return [Array] attr_accessor :additional_bindings - # When this flag is set to true, HTTP requests will be allowed to invoke a - # half-duplex streaming method. + # When this flag is set to true, HTTP requests will be allowed to invoke a half- + # duplex streaming method. # Corresponds to the JSON property `allowHalfDuplex` # @return [Boolean] attr_accessor :allow_half_duplex alias_method :allow_half_duplex?, :allow_half_duplex - # The name of the request field whose value is mapped to the HTTP request - # body, or `*` for mapping all request fields not captured by the path - # pattern to the HTTP body, or omitted for not having any HTTP request body. - # NOTE: the referred field must be present at the top-level of the request - # message type. + # The name of the request field whose value is mapped to the HTTP request body, + # or `*` for mapping all request fields not captured by the path pattern to the + # HTTP body, or omitted for not having any HTTP request body. NOTE: the referred + # field must be present at the top-level of the request message type. # Corresponds to the JSON property `body` # @return [String] attr_accessor :body @@ -2116,8 +1803,7 @@ module Google # @return [String] attr_accessor :delete - # Maps to HTTP GET. Used for listing and getting information about - # resources. + # Maps to HTTP GET. Used for listing and getting information about resources. # Corresponds to the JSON property `get` # @return [String] attr_accessor :get @@ -2138,16 +1824,15 @@ module Google attr_accessor :put # Optional. The name of the response field whose value is mapped to the HTTP - # response body. When omitted, the entire response message will be used - # as the HTTP response body. - # NOTE: The referred field must be present at the top-level of the response - # message type. + # response body. When omitted, the entire response message will be used as the + # HTTP response body. NOTE: The referred field must be present at the top-level + # of the response message type. # Corresponds to the JSON property `responseBody` # @return [String] attr_accessor :response_body - # Selects a method to which this rule applies. - # Refer to selector for syntax details. + # Selects a method to which this rule applies. Refer to selector for syntax + # details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -2186,13 +1871,12 @@ module Google # @return [String] attr_accessor :query - # The value prefix. The value format is "value_prefix`token`" - # Only applies to "in" header type. Must be empty for "in" query type. - # If not empty, the header value has to match (case sensitive) this prefix. - # If not matched, JWT will not be extracted. If matched, JWT will be - # extracted after the prefix is removed. - # For example, for "Authorization: Bearer `JWT`", - # value_prefix="Bearer " with a space at the end. + # The value prefix. The value format is "value_prefix`token`" Only applies to " + # in" header type. Must be empty for "in" query type. If not empty, the header + # value has to match (case sensitive) this prefix. If not matched, JWT will not + # be extracted. If matched, JWT will be extracted after the prefix is removed. + # For example, for "Authorization: Bearer `JWT`", value_prefix="Bearer " with a + # space at the end. # Corresponds to the JSON property `valuePrefix` # @return [String] attr_accessor :value_prefix @@ -2340,39 +2024,35 @@ module Google end end - # A description of a log type. Example in YAML format: - # - name: library.googleapis.com/activity_history - # description: The history of borrowing and returning library items. - # display_name: Activity - # labels: - # - key: /customer_id + # A description of a log type. Example in YAML format: - name: library. + # googleapis.com/activity_history description: The history of borrowing and + # returning library items. display_name: Activity labels: - key: /customer_id # description: Identifier of a library customer class LogDescriptor include Google::Apis::Core::Hashable - # A human-readable description of this log. This information appears in - # the documentation and can contain details. + # A human-readable description of this log. This information appears in the + # documentation and can contain details. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The human-readable name for this log. This information appears on - # the user interface and should be concise. + # The human-readable name for this log. This information appears on the user + # interface and should be concise. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # The set of labels that are available to describe a specific log entry. - # Runtime requests that contain labels not specified here are - # considered invalid. + # The set of labels that are available to describe a specific log entry. Runtime + # requests that contain labels not specified here are considered invalid. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels - # The name of the log. It must be less than 512 characters long and can - # include the following characters: upper- and lower-case alphanumeric - # characters [A-Za-z0-9], and punctuation characters including - # slash, underscore, hyphen, period [/_-.]. + # The name of the log. It must be less than 512 characters long and can include + # the following characters: upper- and lower-case alphanumeric characters [A-Za- + # z0-9], and punctuation characters including slash, underscore, hyphen, period [ + # /_-.]. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2390,48 +2070,30 @@ module Google end end - # Logging configuration of the service. - # The following example shows how to configure logs to be sent to the - # producer and consumer projects. In the example, the `activity_history` - # log is sent to both the producer and consumer projects, whereas the - # `purchase_history` log is only sent to the producer project. - # monitored_resources: - # - type: library.googleapis.com/branch - # labels: - # - key: /city - # description: The city where the library branch is located in. - # - key: /name - # description: The name of the branch. - # logs: - # - name: activity_history - # labels: - # - key: /customer_id - # - name: purchase_history - # logging: - # producer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history - # - purchase_history - # consumer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history + # Logging configuration of the service. The following example shows how to + # configure logs to be sent to the producer and consumer projects. In the + # example, the `activity_history` log is sent to both the producer and consumer + # projects, whereas the `purchase_history` log is only sent to the producer + # project. monitored_resources: - type: library.googleapis.com/branch labels: - + # key: /city description: The city where the library branch is located in. - key: + # /name description: The name of the branch. logs: - name: activity_history + # labels: - key: /customer_id - name: purchase_history logging: + # producer_destinations: - monitored_resource: library.googleapis.com/branch + # logs: - activity_history - purchase_history consumer_destinations: - + # monitored_resource: library.googleapis.com/branch logs: - activity_history class Logging include Google::Apis::Core::Hashable - # Logging configurations for sending logs to the consumer project. - # There can be multiple consumer destinations, each one must have a - # different monitored resource type. A log can be used in at most - # one consumer destination. + # Logging configurations for sending logs to the consumer project. There can be + # multiple consumer destinations, each one must have a different monitored + # resource type. A log can be used in at most one consumer destination. # Corresponds to the JSON property `consumerDestinations` # @return [Array] attr_accessor :consumer_destinations - # Logging configurations for sending logs to the producer project. - # There can be multiple producer destinations, each one must have a - # different monitored resource type. A log can be used in at most - # one producer destination. + # Logging configurations for sending logs to the producer project. There can be + # multiple producer destinations, each one must have a different monitored + # resource type. A log can be used in at most one producer destination. # Corresponds to the JSON property `producerDestinations` # @return [Array] attr_accessor :producer_destinations @@ -2447,21 +2109,20 @@ module Google end end - # Configuration of a specific logging destination (the producer project - # or the consumer project). + # Configuration of a specific logging destination (the producer project or the + # consumer project). class LoggingDestination include Google::Apis::Core::Hashable - # Names of the logs to be sent to this destination. Each name must - # be defined in the Service.logs section. If the log name is - # not a domain scoped name, it will be automatically prefixed with - # the service name followed by "/". + # Names of the logs to be sent to this destination. Each name must be defined in + # the Service.logs section. If the log name is not a domain scoped name, it will + # be automatically prefixed with the service name followed by "/". # Corresponds to the JSON property `logs` # @return [Array] attr_accessor :logs - # The monitored resource type. The type must be defined in the - # Service.monitored_resources section. + # The monitored resource type. The type must be defined in the Service. + # monitored_resources section. # Corresponds to the JSON property `monitoredResource` # @return [String] attr_accessor :monitored_resource @@ -2477,8 +2138,8 @@ module Google end end - # The full representation of a Service that is managed by - # Google Service Management. + # The full representation of a Service that is managed by Google Service + # Management. class ManagedService include Google::Apis::Core::Hashable @@ -2487,8 +2148,8 @@ module Google # @return [String] attr_accessor :producer_project_id - # The name of the service. See the [overview](/service-management/overview) - # for naming requirements. + # The name of the service. See the [overview](/service-management/overview) for + # naming requirements. # Corresponds to the JSON property `serviceName` # @return [String] attr_accessor :service_name @@ -2564,15 +2225,6 @@ module Google # Defines a metric type and its schema. Once a metric descriptor is created, # deleting or altering it stops data collection and makes the metric type's # existing data unusable. - # The following are specific rules for service defined Monitoring metric - # descriptors: - # * `type`, `metric_kind`, `value_type` and `description` - # fields are all required. The `unit` field must be specified - # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION. - # * Maximum of default 500 metric descriptors per service is allowed. - # * Maximum of default 10 labels per metric descriptor is allowed. - # The default maximum limit can be overridden. Please follow - # https://cloud.google.com/monitoring/quotas class MetricDescriptor include Google::Apis::Core::Hashable @@ -2581,25 +2233,18 @@ module Google # @return [String] attr_accessor :description - # A concise name for the metric, which can be displayed in user interfaces. - # Use sentence case without an ending period, for example "Request count". - # This field is optional but it is recommended to be set for any metrics - # associated with user-visible concepts, such as Quota. + # A concise name for the metric, which can be displayed in user interfaces. Use + # sentence case without an ending period, for example "Request count". This + # field is optional but it is recommended to be set for any metrics associated + # with user-visible concepts, such as Quota. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # The set of labels that can be used to describe a specific - # instance of this metric type. - # The label key name must follow: - # * Only upper and lower-case letters, digits and underscores (_) are - # allowed. - # * Label name must start with a letter or digit. - # * The maximum length of a label name is 100 characters. - # For example, the - # `appengine.googleapis.com/http/server/response_latencies` metric - # type has a label for the HTTP response code, `response_code`, so - # you can look at latencies for successful responses or just + # The set of labels that can be used to describe a specific instance of this + # metric type. For example, the `appengine.googleapis.com/http/server/ + # response_latencies` metric type has a label for the HTTP response code, ` + # response_code`, so you can look at latencies for successful responses or just # for responses that failed. # Corresponds to the JSON property `labels` # @return [Array] @@ -2615,17 +2260,16 @@ module Google # @return [Google::Apis::ServicemanagementV1::MetricDescriptorMetadata] attr_accessor :metadata - # Whether the metric records instantaneous values, changes to a value, etc. - # Some combinations of `metric_kind` and `value_type` might not be supported. + # Whether the metric records instantaneous values, changes to a value, etc. Some + # combinations of `metric_kind` and `value_type` might not be supported. # Corresponds to the JSON property `metricKind` # @return [String] attr_accessor :metric_kind - # Read-only. If present, then a time - # series, which is identified partially by - # a metric type and a MonitoredResourceDescriptor, that is associated - # with this metric type can only be associated with one of the monitored - # resource types listed here. + # Read-only. If present, then a time series, which is identified partially by a + # metric type and a MonitoredResourceDescriptor, that is associated with this + # metric type can only be associated with one of the monitored resource types + # listed here. # Corresponds to the JSON property `monitoredResourceTypes` # @return [Array] attr_accessor :monitored_resource_types @@ -2635,116 +2279,68 @@ module Google # @return [String] attr_accessor :name - # The metric type, including its DNS name prefix. The type is not - # URL-encoded. - # All service defined metrics must be prefixed with the service name, in the - # format of ``service name`/`relative metric name``, such as - # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric - # name must follow: - # * Only upper and lower-case letters, digits, '/' and underscores '_' are - # allowed. - # * The maximum number of characters allowed for the relative_metric_name is - # 100. - # All user-defined metric types have the DNS name - # `custom.googleapis.com`, `external.googleapis.com`, or - # `logging.googleapis.com/user/`. - # Metric types should use a natural hierarchical grouping. For example: - # "custom.googleapis.com/invoice/paid/amount" - # "external.googleapis.com/prometheus/up" - # "appengine.googleapis.com/http/server/response_latencies" + # The metric type, including its DNS name prefix. The type is not URL-encoded. + # All user-defined metric types have the DNS name `custom.googleapis.com` or ` + # external.googleapis.com`. Metric types should use a natural hierarchical + # grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external. + # googleapis.com/prometheus/up" "appengine.googleapis.com/http/server/ + # response_latencies" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type - # The units in which the metric value is reported. It is only applicable - # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` - # defines the representation of the stored metric values. - # Different systems may scale the values to be more easily displayed (so a - # value of `0.02KBy` _might_ be displayed as `20By`, and a value of - # `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - # `KBy`, then the value of the metric is always in thousands of bytes, no - # matter how it may be displayed.. - # If you want a custom metric to record the exact number of CPU-seconds used - # by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is - # `s`CPU`` (or equivalently `1s`CPU`` or just `s`). If the job uses 12,005 - # CPU-seconds, then the value is written as `12005`. - # Alternatively, if you want a custom metric to record data in a more - # granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is - # `ks`CPU``, and then write the value `12.005` (which is `12005/1000`), - # or use `Kis`CPU`` and write `11.723` (which is `12005/1024`). - # The supported units are a subset of [The Unified Code for Units of - # Measure](http://unitsofmeasure.org/ucum.html) standard: - # **Basic units (UNIT)** - # * `bit` bit - # * `By` byte - # * `s` second - # * `min` minute - # * `h` hour - # * `d` day - # * `1` dimensionless - # **Prefixes (PREFIX)** - # * `k` kilo (10^3) - # * `M` mega (10^6) - # * `G` giga (10^9) - # * `T` tera (10^12) - # * `P` peta (10^15) - # * `E` exa (10^18) - # * `Z` zetta (10^21) - # * `Y` yotta (10^24) - # * `m` milli (10^-3) - # * `u` micro (10^-6) - # * `n` nano (10^-9) - # * `p` pico (10^-12) - # * `f` femto (10^-15) - # * `a` atto (10^-18) - # * `z` zepto (10^-21) - # * `y` yocto (10^-24) - # * `Ki` kibi (2^10) - # * `Mi` mebi (2^20) - # * `Gi` gibi (2^30) - # * `Ti` tebi (2^40) - # * `Pi` pebi (2^50) - # **Grammar** - # The grammar also includes these connectors: - # * `/` division or ratio (as an infix operator). For examples, - # `kBy/`email`` or `MiBy/10ms` (although you should almost never - # have `/s` in a metric `unit`; rates should always be computed at - # query time from the underlying cumulative or delta value). - # * `.` multiplication or composition (as an infix operator). For - # examples, `GBy.d` or `k`watt`.h`. - # The grammar for a unit is as follows: - # Expression = Component ` "." Component ` ` "/" Component ` ; - # Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] - # | Annotation - # | "1" - # ; - # Annotation = "`" NAME "`" ; - # Notes: - # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation - # is used alone, then the unit is equivalent to `1`. For examples, - # ``request`/s == 1/s`, `By`transmitted`/s == By/s`. - # * `NAME` is a sequence of non-blank printable ASCII characters not - # containing ``` or ```. - # * `1` represents a unitary [dimensionless - # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such - # as in `1/s`. It is typically used when none of the basic units are - # appropriate. For example, "new users per day" can be represented as - # `1/d` or ``new-users`/d` (and a metric value `5` would mean "5 new - # users). Alternatively, "thousands of page views per day" would be - # represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric - # value of `5.3` would mean "5300 page views per day"). - # * `%` represents dimensionless value of 1/100, and annotates values giving - # a percentage (so the metric values are typically in the range of 0..100, - # and a metric value `3` means "3 percent"). - # * `10^2.%` indicates a metric contains a ratio, typically in the range - # 0..1, that will be multiplied by 100 and displayed as a percentage - # (so a metric value `0.03` means "3 percent"). + # The units in which the metric value is reported. It is only applicable if the ` + # value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the + # representation of the stored metric values. Different systems may scale the + # values to be more easily displayed (so a value of `0.02KBy` _might_ be + # displayed as `20By`, and a value of `3523KBy` _might_ be displayed as `3.5MBy`) + # . However, if the `unit` is `KBy`, then the value of the metric is always in + # thousands of bytes, no matter how it may be displayed.. If you want a custom + # metric to record the exact number of CPU-seconds used by a job, you can create + # an `INT64 CUMULATIVE` metric whose `unit` is `s`CPU`` (or equivalently `1s`CPU` + # ` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written + # as `12005`. Alternatively, if you want a custom metric to record data in a + # more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is + # `ks`CPU``, and then write the value `12.005` (which is `12005/1000`), or use ` + # Kis`CPU`` and write `11.723` (which is `12005/1024`). The supported units are + # a subset of [The Unified Code for Units of Measure](http://unitsofmeasure.org/ + # ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` + # second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes ( + # PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^ + # 12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^ + # 24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^- + # 12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto ( + # 10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi ( + # 2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these + # connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/ + # `email`` or `MiBy/10ms` (although you should almost never have `/s` in a + # metric `unit`; rates should always be computed at query time from the + # underlying cumulative or delta value). * `.` multiplication or composition (as + # an infix operator). For examples, `GBy.d` or `k`watt`.h`. The grammar for a + # unit is as follows: Expression = Component ` "." Component ` ` "/" Component ` + # ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | "1" ; + # Annotation = "`" NAME "`" ; Notes: * `Annotation` is just a comment if it + # follows a `UNIT`. If the annotation is used alone, then the unit is equivalent + # to `1`. For examples, ``request`/s == 1/s`, `By`transmitted`/s == By/s`. * ` + # NAME` is a sequence of non-blank printable ASCII characters not containing ``` + # or ```. * `1` represents a unitary [dimensionless unit](https://en.wikipedia. + # org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used + # when none of the basic units are appropriate. For example, "new users per day" + # can be represented as `1/d` or ``new-users`/d` (and a metric value `5` would + # mean "5 new users). Alternatively, "thousands of page views per day" would be + # represented as `1000/d` or `k1/d` or `k`page_views`/d` (and a metric value of ` + # 5.3` would mean "5300 page views per day"). * `%` represents dimensionless + # value of 1/100, and annotates values giving a percentage (so the metric values + # are typically in the range of 0..100, and a metric value `3` means "3 percent") + # . * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, + # that will be multiplied by 100 and displayed as a percentage (so a metric + # value `0.03` means "3 percent"). # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit - # Whether the measurement is an integer, a floating-point number, etc. - # Some combinations of `metric_kind` and `value_type` might not be supported. + # Whether the measurement is an integer, a floating-point number, etc. Some + # combinations of `metric_kind` and `value_type` might not be supported. # Corresponds to the JSON property `valueType` # @return [String] attr_accessor :value_type @@ -2773,9 +2369,9 @@ module Google class MetricDescriptorMetadata include Google::Apis::Core::Hashable - # The delay of data points caused by ingestion. Data points older than this - # age are guaranteed to be ingested and available to be read, excluding - # data loss due to errors. + # The delay of data points caused by ingestion. Data points older than this age + # are guaranteed to be ingested and available to be read, excluding data loss + # due to errors. # Corresponds to the JSON property `ingestDelay` # @return [String] attr_accessor :ingest_delay @@ -2787,8 +2383,8 @@ module Google # The sampling period of metric data points. For metrics which are written # periodically, consecutive data points are stored at this time interval, - # excluding data loss due to errors. Metrics with a higher granularity have - # a smaller sampling period. + # excluding data loss due to errors. Metrics with a higher granularity have a + # smaller sampling period. # Corresponds to the JSON property `samplePeriod` # @return [String] attr_accessor :sample_period @@ -2805,22 +2401,21 @@ module Google end end - # Bind API methods to metrics. Binding a method to a metric causes that - # metric's configured quota behaviors to apply to the method call. + # Bind API methods to metrics. Binding a method to a metric causes that metric's + # configured quota behaviors to apply to the method call. class MetricRule include Google::Apis::Core::Hashable # Metrics to update when the selected methods are called, and the associated - # cost applied to each metric. - # The key of the map is the metric name, and the values are the amount - # increased for the metric against which the quota limits are defined. - # The value must not be negative. + # cost applied to each metric. The key of the map is the metric name, and the + # values are the amount increased for the metric against which the quota limits + # are defined. The value must not be negative. # Corresponds to the JSON property `metricCosts` # @return [Hash] attr_accessor :metric_costs - # Selects the methods to which this rule applies. - # Refer to selector for syntax details. + # Selects the methods to which this rule applies. Refer to selector for syntax + # details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -2838,66 +2433,33 @@ module Google # Declares an API Interface to be included in this interface. The including # interface must redeclare all the methods from the included interface, but - # documentation and options are inherited as follows: - # - If after comment and whitespace stripping, the documentation - # string of the redeclared method is empty, it will be inherited - # from the original method. - # - Each annotation belonging to the service config (http, - # visibility) which is not set in the redeclared method will be - # inherited. - # - If an http annotation is inherited, the path pattern will be - # modified as follows. Any version prefix will be replaced by the - # version of the including interface plus the root path if - # specified. - # Example of a simple mixin: - # package google.acl.v1; - # service AccessControl ` - # // Get the underlying ACL object. - # rpc GetAcl(GetAclRequest) returns (Acl) ` - # option (google.api.http).get = "/v1/`resource=**`:getAcl"; - # ` - # ` - # package google.storage.v2; - # service Storage ` - # // rpc GetAcl(GetAclRequest) returns (Acl); - # // Get a data record. - # rpc GetData(GetDataRequest) returns (Data) ` - # option (google.api.http).get = "/v2/`resource=**`"; - # ` - # ` - # Example of a mixin configuration: - # apis: - # - name: google.storage.v2.Storage - # mixins: - # - name: google.acl.v1.AccessControl - # The mixin construct implies that all methods in `AccessControl` are - # also declared with same name and request/response types in - # `Storage`. A documentation generator or annotation processor will - # see the effective `Storage.GetAcl` method after inherting - # documentation and annotations as follows: - # service Storage ` - # // Get the underlying ACL object. - # rpc GetAcl(GetAclRequest) returns (Acl) ` - # option (google.api.http).get = "/v2/`resource=**`:getAcl"; - # ` - # ... - # ` - # Note how the version in the path pattern changed from `v1` to `v2`. - # If the `root` field in the mixin is specified, it should be a - # relative path under which inherited HTTP paths are placed. Example: - # apis: - # - name: google.storage.v2.Storage - # mixins: - # - name: google.acl.v1.AccessControl - # root: acls - # This implies the following inherited HTTP annotation: - # service Storage ` - # // Get the underlying ACL object. - # rpc GetAcl(GetAclRequest) returns (Acl) ` - # option (google.api.http).get = "/v2/acls/`resource=**`:getAcl"; - # ` - # ... - # ` + # documentation and options are inherited as follows: - If after comment and + # whitespace stripping, the documentation string of the redeclared method is + # empty, it will be inherited from the original method. - Each annotation + # belonging to the service config (http, visibility) which is not set in the + # redeclared method will be inherited. - If an http annotation is inherited, the + # path pattern will be modified as follows. Any version prefix will be replaced + # by the version of the including interface plus the root path if specified. + # Example of a simple mixin: package google.acl.v1; service AccessControl ` // + # Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) ` + # option (google.api.http).get = "/v1/`resource=**`:getAcl"; ` ` package google. + # storage.v2; service Storage ` // rpc GetAcl(GetAclRequest) returns (Acl); // + # Get a data record. rpc GetData(GetDataRequest) returns (Data) ` option (google. + # api.http).get = "/v2/`resource=**`"; ` ` Example of a mixin configuration: + # apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1. + # AccessControl The mixin construct implies that all methods in `AccessControl` + # are also declared with same name and request/response types in `Storage`. A + # documentation generator or annotation processor will see the effective ` + # Storage.GetAcl` method after inherting documentation and annotations as + # follows: service Storage ` // Get the underlying ACL object. rpc GetAcl( + # GetAclRequest) returns (Acl) ` option (google.api.http).get = "/v2/`resource=** + # `:getAcl"; ` ... ` Note how the version in the path pattern changed from `v1` + # to `v2`. If the `root` field in the mixin is specified, it should be a + # relative path under which inherited HTTP paths are placed. Example: apis: - + # name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl + # root: acls This implies the following inherited HTTP annotation: service + # Storage ` // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns ( + # Acl) ` option (google.api.http).get = "/v2/acls/`resource=**`:getAcl"; ` ... ` class Mixin include Google::Apis::Core::Hashable @@ -2906,8 +2468,7 @@ module Google # @return [String] attr_accessor :name - # If non-empty specifies a path under which inherited HTTP paths - # are rooted. + # If non-empty specifies a path under which inherited HTTP paths are rooted. # Corresponds to the JSON property `root` # @return [String] attr_accessor :root @@ -2923,51 +2484,32 @@ module Google end end - # An object that describes the schema of a MonitoredResource object using a - # type name and a set of labels. For example, the monitored resource - # descriptor for Google Compute Engine VM instances has a type of - # `"gce_instance"` and specifies the use of the labels `"instance_id"` and - # `"zone"` to identify particular VM instances. - # Different services can support different monitored resource types. - # The following are specific rules to service defined monitored resources for - # Monitoring and Logging: - # * The `type`, `display_name`, `description`, `labels` and `launch_stage` - # fields are all required. - # * The first label of the monitored resource descriptor must be - # `resource_container`. There are legacy monitored resource descritptors - # start with `project_id`. - # * It must include a `location` label. - # * Maximum of default 5 service defined monitored resource descriptors - # is allowed per service. - # * Maximum of default 10 labels per monitored resource is allowed. - # The default maximum limit can be overridden. Please follow - # https://cloud.google.com/monitoring/quotas + # An object that describes the schema of a MonitoredResource object using a type + # name and a set of labels. For example, the monitored resource descriptor for + # Google Compute Engine VM instances has a type of `"gce_instance"` and + # specifies the use of the labels `"instance_id"` and `"zone"` to identify + # particular VM instances. Different APIs can support different monitored + # resource types. APIs generally provide a `list` method that returns the + # monitored resource descriptors used by the API. class MonitoredResourceDescriptor include Google::Apis::Core::Hashable - # Optional. A detailed description of the monitored resource type that might - # be used in documentation. + # Optional. A detailed description of the monitored resource type that might be + # used in documentation. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Optional. A concise name for the monitored resource type that might be - # displayed in user interfaces. It should be a Title Cased Noun Phrase, - # without any article or other determiners. For example, - # `"Google Cloud SQL Database"`. + # displayed in user interfaces. It should be a Title Cased Noun Phrase, without + # any article or other determiners. For example, `"Google Cloud SQL Database"`. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name # Required. A set of labels used to describe instances of this monitored - # resource type. - # The label key name must follow: - # * Only upper and lower-case letters, digits and underscores (_) are - # allowed. - # * Label name must start with a letter or digit. - # * The maximum length of a label name is 100 characters. - # For example, an individual Google Cloud SQL database is - # identified by values for the labels `database_id` and `location`. + # resource type. For example, an individual Google Cloud SQL database is + # identified by values for the labels `"database_id"` and `"zone"`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2977,27 +2519,18 @@ module Google # @return [String] attr_accessor :launch_stage - # Optional. The resource name of the monitored resource descriptor: - # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where - # `type` is the value of the `type` field in this object and - # `project_id` is a project ID that provides API-specific context for - # accessing the type. APIs that do not use project information can use the - # resource name format `"monitoredResourceDescriptors/`type`"`. + # Optional. The resource name of the monitored resource descriptor: `"projects/` + # project_id`/monitoredResourceDescriptors/`type`"` where `type` is the value of + # the `type` field in this object and `project_id` is a project ID that provides + # API-specific context for accessing the type. APIs that do not use project + # information can use the resource name format `"monitoredResourceDescriptors/` + # type`"`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Required. The monitored resource type. For example, the type - # `cloudsql_database` represents databases in Google Cloud SQL. - # All service defined monitored resource types must be prefixed with the - # service name, in the format of ``service name`/`relative resource name``. - # The relative resource name must follow: - # * Only upper and lower-case letters and digits are allowed. - # * It must start with upper case character and is recommended to use Upper - # Camel Case style. - # * The maximum number of characters allowed for the relative_resource_name - # is 100. - # Note there are legacy service monitored resources not following this rule. + # Required. The monitored resource type. For example, the type `" + # cloudsql_database"` represents databases in Google Cloud SQL. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -3017,75 +2550,47 @@ module Google end end - # Monitoring configuration of the service. - # The example below shows how to configure monitored resources and metrics - # for monitoring. In the example, a monitored resource and two metrics are - # defined. The `library.googleapis.com/book/returned_count` metric is sent - # to both producer and consumer projects, whereas the - # `library.googleapis.com/book/num_overdue` metric is only sent to the - # consumer project. - # monitored_resources: - # - type: library.googleapis.com/Branch - # display_name: "Library Branch" - # description: "A branch of a library." - # launch_stage: GA - # labels: - # - key: resource_container - # description: "The Cloud container (ie. project id) for the Branch." - # - key: location - # description: "The location of the library branch." - # - key: branch_id - # description: "The id of the branch." - # metrics: - # - name: library.googleapis.com/book/returned_count - # display_name: "Books Returned" - # description: "The count of books that have been returned." - # launch_stage: GA - # metric_kind: DELTA - # value_type: INT64 - # unit: "1" - # labels: - # - key: customer_id - # description: "The id of the customer." - # - name: library.googleapis.com/book/num_overdue - # display_name: "Books Overdue" - # description: "The current number of overdue books." - # launch_stage: GA - # metric_kind: GAUGE - # value_type: INT64 - # unit: "1" - # labels: - # - key: customer_id - # description: "The id of the customer." - # monitoring: - # producer_destinations: - # - monitored_resource: library.googleapis.com/Branch - # metrics: - # - library.googleapis.com/book/returned_count - # consumer_destinations: - # - monitored_resource: library.googleapis.com/Branch - # metrics: - # - library.googleapis.com/book/returned_count - # - library.googleapis.com/book/num_overdue + # Monitoring configuration of the service. The example below shows how to + # configure monitored resources and metrics for monitoring. In the example, a + # monitored resource and two metrics are defined. The `library.googleapis.com/ + # book/returned_count` metric is sent to both producer and consumer projects, + # whereas the `library.googleapis.com/book/num_overdue` metric is only sent to + # the consumer project. monitored_resources: - type: library.googleapis.com/ + # Branch display_name: "Library Branch" description: "A branch of a library." + # launch_stage: GA labels: - key: resource_container description: "The Cloud + # container (ie. project id) for the Branch." - key: location description: "The + # location of the library branch." - key: branch_id description: "The id of the + # branch." metrics: - name: library.googleapis.com/book/returned_count + # display_name: "Books Returned" description: "The count of books that have been + # returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1" + # labels: - key: customer_id description: "The id of the customer." - name: + # library.googleapis.com/book/num_overdue display_name: "Books Overdue" + # description: "The current number of overdue books." launch_stage: GA + # metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id + # description: "The id of the customer." monitoring: producer_destinations: - + # monitored_resource: library.googleapis.com/Branch metrics: - library. + # googleapis.com/book/returned_count consumer_destinations: - monitored_resource: + # library.googleapis.com/Branch metrics: - library.googleapis.com/book/ + # returned_count - library.googleapis.com/book/num_overdue class Monitoring include Google::Apis::Core::Hashable - # Monitoring configurations for sending metrics to the consumer project. - # There can be multiple consumer destinations. A monitored resource type may - # appear in multiple monitoring destinations if different aggregations are - # needed for different sets of metrics associated with that monitored - # resource type. A monitored resource and metric pair may only be used once - # in the Monitoring configuration. + # Monitoring configurations for sending metrics to the consumer project. There + # can be multiple consumer destinations. A monitored resource type may appear in + # multiple monitoring destinations if different aggregations are needed for + # different sets of metrics associated with that monitored resource type. A + # monitored resource and metric pair may only be used once in the Monitoring + # configuration. # Corresponds to the JSON property `consumerDestinations` # @return [Array] attr_accessor :consumer_destinations - # Monitoring configurations for sending metrics to the producer project. - # There can be multiple producer destinations. A monitored resource type may - # appear in multiple monitoring destinations if different aggregations are - # needed for different sets of metrics associated with that monitored - # resource type. A monitored resource and metric pair may only be used once - # in the Monitoring configuration. + # Monitoring configurations for sending metrics to the producer project. There + # can be multiple producer destinations. A monitored resource type may appear in + # multiple monitoring destinations if different aggregations are needed for + # different sets of metrics associated with that monitored resource type. A + # monitored resource and metric pair may only be used once in the Monitoring + # configuration. # Corresponds to the JSON property `producerDestinations` # @return [Array] attr_accessor :producer_destinations @@ -3101,19 +2606,19 @@ module Google end end - # Configuration of a specific monitoring destination (the producer project - # or the consumer project). + # Configuration of a specific monitoring destination (the producer project or + # the consumer project). class MonitoringDestination include Google::Apis::Core::Hashable - # Types of the metrics to report to this monitoring destination. - # Each type must be defined in Service.metrics section. + # Types of the metrics to report to this monitoring destination. Each type must + # be defined in Service.metrics section. # Corresponds to the JSON property `metrics` # @return [Array] attr_accessor :metrics - # The monitored resource type. The type must be defined in - # Service.monitored_resources section. + # The monitored resource type. The type must be defined in Service. + # monitored_resources section. # Corresponds to the JSON property `monitoredResource` # @return [String] attr_accessor :monitored_resource @@ -3130,27 +2635,25 @@ module Google end # OAuth scopes are a way to define data and permissions on data. For example, - # there are scopes defined for "Read-only access to Google Calendar" and - # "Access to Cloud Platform". Users can consent to a scope for an application, - # giving it permission to access that data on their behalf. - # OAuth scope specifications should be fairly coarse grained; a user will need - # to see and understand the text description of what your scope means. - # In most cases: use one or at most two OAuth scopes for an entire family of - # products. If your product has multiple APIs, you should probably be sharing - # the OAuth scope across all of those APIs. - # When you need finer grained OAuth consent screens: talk with your product - # management about how developers will use them in practice. - # Please note that even though each of the canonical scopes is enough for a - # request to be accepted and passed to the backend, a request can still fail - # due to the backend requiring additional scopes or permissions. + # there are scopes defined for "Read-only access to Google Calendar" and "Access + # to Cloud Platform". Users can consent to a scope for an application, giving it + # permission to access that data on their behalf. OAuth scope specifications + # should be fairly coarse grained; a user will need to see and understand the + # text description of what your scope means. In most cases: use one or at most + # two OAuth scopes for an entire family of products. If your product has + # multiple APIs, you should probably be sharing the OAuth scope across all of + # those APIs. When you need finer grained OAuth consent screens: talk with your + # product management about how developers will use them in practice. Please note + # that even though each of the canonical scopes is enough for a request to be + # accepted and passed to the backend, a request can still fail due to the + # backend requiring additional scopes or permissions. class OAuthRequirements include Google::Apis::Core::Hashable - # The list of publicly documented OAuth scopes that are allowed access. An - # OAuth token containing any of these scopes will be accepted. - # Example: - # canonical_scopes: https://www.googleapis.com/auth/calendar, - # https://www.googleapis.com/auth/calendar.read + # The list of publicly documented OAuth scopes that are allowed access. An OAuth + # token containing any of these scopes will be accepted. Example: + # canonical_scopes: https://www.googleapis.com/auth/calendar, https://www. + # googleapis.com/auth/calendar.read # Corresponds to the JSON property `canonicalScopes` # @return [String] attr_accessor :canonical_scopes @@ -3170,47 +2673,45 @@ module Google 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. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::ServicemanagementV1::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. + # 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 be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # 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`. + # 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 @@ -3238,8 +2739,7 @@ module Google # @return [Fixnum] attr_accessor :progress_percentage - # The full name of the resources that this operation is directly - # associated with. + # The full name of the resources that this operation is directly associated with. # Corresponds to the JSON property `resourceNames` # @return [Array] attr_accessor :resource_names @@ -3273,17 +2773,17 @@ module Google include Google::Apis::Core::Hashable # The option's name. For protobuf built-in options (options defined in - # descriptor.proto), this is the short name. For example, `"map_entry"`. - # For custom options, it should be the fully-qualified name. For example, - # `"google.api.http"`. + # descriptor.proto), this is the short name. For example, `"map_entry"`. For + # custom options, it should be the fully-qualified name. For example, `"google. + # api.http"`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The option's value packed in an Any message. If the value is a primitive, - # the corresponding wrapper type defined in google/protobuf/wrappers.proto - # should be used. If the value is an enum, it should be stored as an int32 - # value using the google.protobuf.Int32Value type. + # The option's value packed in an Any message. If the value is a primitive, the + # corresponding wrapper type defined in google/protobuf/wrappers.proto should be + # used. If the value is an enum, it should be stored as an int32 value using the + # google.protobuf.Int32Value type. # Corresponds to the JSON property `value` # @return [Hash] attr_accessor :value @@ -3304,32 +2804,25 @@ module Google class Page include Google::Apis::Core::Hashable - # The Markdown content of the page. You can use (== include `path` - # ==) to include content from a Markdown file. + # The Markdown content of the page. You can use (== include `path` ==) to + # include content from a Markdown file. # Corresponds to the JSON property `content` # @return [String] attr_accessor :content - # The name of the page. It will be used as an identity of the page to - # generate URI of the page, text of the link to this page in navigation, - # etc. The full page name (start from the root page name to this page - # concatenated with `.`) can be used as reference to the page in your - # documentation. For example: - #
                                          pages:
                                          -        # - name: Tutorial
                                          -        # content: (== include tutorial.md ==)
                                          -        # subpages:
                                          -        # - name: Java
                                          -        # content: (== include tutorial_java.md ==)
                                          -        # 
                                          - # You can reference `Java` page using Markdown reference link syntax: - # `Java`. + # The name of the page. It will be used as an identity of the page to generate + # URI of the page, text of the link to this page in navigation, etc. The full + # page name (start from the root page name to this page concatenated with `.`) + # can be used as reference to the page in your documentation. For example: pages: + # - name: Tutorial content: (== include tutorial.md ==) subpages: - name: Java + # content: (== include tutorial_java.md ==) You can reference `Java` page using + # Markdown reference link syntax: `Java`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Subpages of this page. The order of subpages specified here will be - # honored in the generated docset. + # Subpages of this page. The order of subpages specified here will be honored in + # the generated docset. # Corresponds to the JSON property `subpages` # @return [Array] attr_accessor :subpages @@ -3347,66 +2840,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -3415,48 +2874,44 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # 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. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `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. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -3474,46 +2929,25 @@ module Google end end - # Quota configuration helps to achieve fairness and budgeting in service - # usage. - # The metric based quota configuration works this way: - # - The service configuration defines a set of metrics. - # - For API calls, the quota.metric_rules maps methods to metrics with - # corresponding costs. - # - The quota.limits defines limits on the metrics, which will be used for - # quota checks at runtime. - # An example quota configuration in yaml format: - # quota: - # limits: - # - name: apiWriteQpsPerProject - # metric: library.googleapis.com/write_calls - # unit: "1/min/`project`" # rate limit for consumer projects - # values: - # STANDARD: 10000 - # # The metric rules bind all methods to the read_calls metric, - # # except for the UpdateBook and DeleteBook methods. These two methods - # # are mapped to the write_calls metric, with the UpdateBook method - # # consuming at twice rate as the DeleteBook method. - # metric_rules: - # - selector: "*" - # metric_costs: - # library.googleapis.com/read_calls: 1 - # - selector: google.example.library.v1.LibraryService.UpdateBook - # metric_costs: - # library.googleapis.com/write_calls: 2 - # - selector: google.example.library.v1.LibraryService.DeleteBook - # metric_costs: - # library.googleapis.com/write_calls: 1 - # Corresponding Metric definition: - # metrics: - # - name: library.googleapis.com/read_calls - # display_name: Read requests - # metric_kind: DELTA - # value_type: INT64 - # - name: library.googleapis.com/write_calls - # display_name: Write requests - # metric_kind: DELTA - # value_type: INT64 + # Quota configuration helps to achieve fairness and budgeting in service usage. + # The metric based quota configuration works this way: - The service + # configuration defines a set of metrics. - For API calls, the quota. + # metric_rules maps methods to metrics with corresponding costs. - The quota. + # limits defines limits on the metrics, which will be used for quota checks at + # runtime. An example quota configuration in yaml format: quota: limits: - name: + # apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/` + # project`" # rate limit for consumer projects values: STANDARD: 10000 # The + # metric rules bind all methods to the read_calls metric, # except for the + # UpdateBook and DeleteBook methods. These two methods # are mapped to the + # write_calls metric, with the UpdateBook method # consuming at twice rate as + # the DeleteBook method. metric_rules: - selector: "*" metric_costs: library. + # googleapis.com/read_calls: 1 - selector: google.example.library.v1. + # LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - + # selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: + # library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: + # - name: library.googleapis.com/read_calls display_name: Read requests + # metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/ + # write_calls display_name: Write requests metric_kind: DELTA value_type: INT64 class Quota include Google::Apis::Core::Hashable @@ -3522,8 +2956,8 @@ module Google # @return [Array] attr_accessor :limits - # List of `MetricRule` definitions, each one mapping a selected method to one - # or more metrics. + # List of `MetricRule` definitions, each one mapping a selected method to one or + # more metrics. # Corresponds to the JSON property `metricRules` # @return [Array] attr_accessor :metric_rules @@ -3540,95 +2974,89 @@ module Google end # `QuotaLimit` defines a specific limit that applies over a specified duration - # for a limit type. There can be at most one limit for a duration and limit - # type combination defined within a `QuotaGroup`. + # for a limit type. There can be at most one limit for a duration and limit type + # combination defined within a `QuotaGroup`. class QuotaLimit include Google::Apis::Core::Hashable - # Default number of tokens that can be consumed during the specified - # duration. This is the number of tokens assigned when a client - # application developer activates the service for his/her project. - # Specifying a value of 0 will block all requests. This can be used if you - # are provisioning quota to selected consumers and blocking others. - # Similarly, a value of -1 will indicate an unlimited quota. No other - # negative values are allowed. - # Used by group-based quotas only. + # Default number of tokens that can be consumed during the specified duration. + # This is the number of tokens assigned when a client application developer + # activates the service for his/her project. Specifying a value of 0 will block + # all requests. This can be used if you are provisioning quota to selected + # consumers and blocking others. Similarly, a value of -1 will indicate an + # unlimited quota. No other negative values are allowed. Used by group-based + # quotas only. # Corresponds to the JSON property `defaultLimit` # @return [Fixnum] attr_accessor :default_limit - # Optional. User-visible, extended description for this quota limit. - # Should be used only when more context is needed to understand this limit - # than provided by the limit's display name (see: `display_name`). + # Optional. User-visible, extended description for this quota limit. Should be + # used only when more context is needed to understand this limit than provided + # by the limit's display name (see: `display_name`). # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # User-visible display name for this limit. - # Optional. If not set, the UI will provide a default display name based on - # the quota configuration. This field can be used to override the default - # display name generated from the configuration. + # User-visible display name for this limit. Optional. If not set, the UI will + # provide a default display name based on the quota configuration. This field + # can be used to override the default display name generated from the + # configuration. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Duration of this limit in textual notation. Must be "100s" or "1d". - # Used by group-based quotas only. + # Duration of this limit in textual notation. Must be "100s" or "1d". Used by + # group-based quotas only. # Corresponds to the JSON property `duration` # @return [String] attr_accessor :duration - # Free tier value displayed in the Developers Console for this limit. - # The free tier is the number of tokens that will be subtracted from the - # billed amount when billing is enabled. - # This field can only be set on a limit with duration "1d", in a billable - # group; it is invalid on any other limit. If this field is not set, it - # defaults to 0, indicating that there is no free tier for this service. - # Used by group-based quotas only. + # Free tier value displayed in the Developers Console for this limit. The free + # tier is the number of tokens that will be subtracted from the billed amount + # when billing is enabled. This field can only be set on a limit with duration " + # 1d", in a billable group; it is invalid on any other limit. If this field is + # not set, it defaults to 0, indicating that there is no free tier for this + # service. Used by group-based quotas only. # Corresponds to the JSON property `freeTier` # @return [Fixnum] attr_accessor :free_tier - # Maximum number of tokens that can be consumed during the specified - # duration. Client application developers can override the default limit up - # to this maximum. If specified, this value cannot be set to a value less - # than the default limit. If not specified, it is set to the default limit. - # To allow clients to apply overrides with no upper bound, set this to -1, - # indicating unlimited maximum quota. - # Used by group-based quotas only. + # Maximum number of tokens that can be consumed during the specified duration. + # Client application developers can override the default limit up to this + # maximum. If specified, this value cannot be set to a value less than the + # default limit. If not specified, it is set to the default limit. To allow + # clients to apply overrides with no upper bound, set this to -1, indicating + # unlimited maximum quota. Used by group-based quotas only. # Corresponds to the JSON property `maxLimit` # @return [Fixnum] attr_accessor :max_limit - # The name of the metric this quota limit applies to. The quota limits with - # the same metric will be checked together during runtime. The metric must be + # The name of the metric this quota limit applies to. The quota limits with the + # same metric will be checked together during runtime. The metric must be # defined within the service config. # Corresponds to the JSON property `metric` # @return [String] attr_accessor :metric - # Name of the quota limit. - # The name must be provided, and it must be unique within the service. The - # name can only include alphanumeric characters as well as '-'. - # The maximum length of the limit name is 64 characters. + # Name of the quota limit. The name must be provided, and it must be unique + # within the service. The name can only include alphanumeric characters as well + # as '-'. The maximum length of the limit name is 64 characters. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Specify the unit of the quota limit. It uses the same syntax as - # Metric.unit. The supported unit kinds are determined by the quota - # backend system. - # Here are some examples: - # * "1/min/`project`" for quota per minute per project. - # Note: the order of unit components is insignificant. - # The "1" at the beginning is required to follow the metric unit syntax. + # Specify the unit of the quota limit. It uses the same syntax as Metric.unit. + # The supported unit kinds are determined by the quota backend system. Here are + # some examples: * "1/min/`project`" for quota per minute per project. Note: the + # order of unit components is insignificant. The "1" at the beginning is + # required to follow the metric unit syntax. # Corresponds to the JSON property `unit` # @return [String] attr_accessor :unit # Tiered limit values. You must specify this as a key:value pair, with an - # integer value that is the maximum number of requests allowed for the - # specified unit. Currently only STANDARD is supported. + # integer value that is the maximum number of requests allowed for the specified + # unit. Currently only STANDARD is supported. # Corresponds to the JSON property `values` # @return [Hash] attr_accessor :values @@ -3652,39 +3080,26 @@ module Google end end - # Defines a proto annotation that describes a string field that refers to - # an API resource. + # Defines a proto annotation that describes a string field that refers to an API + # resource. class ResourceReference include Google::Apis::Core::Hashable - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # Example: - # message ListLogEntriesRequest ` - # string parent = 1 [(google.api.resource_reference) = ` - # child_type: "logging.googleapis.com/LogEntry" - # `; - # ` + # The resource type of a child collection that the annotated field references. + # This is useful for annotating the `parent` field that doesn't have a fixed + # resource type. Example: message ListLogEntriesRequest ` string parent = 1 [( + # google.api.resource_reference) = ` child_type: "logging.googleapis.com/ + # LogEntry" `; ` # Corresponds to the JSON property `childType` # @return [String] attr_accessor :child_type - # The resource type that the annotated field references. - # Example: - # message Subscription ` - # string topic = 2 [(google.api.resource_reference) = ` - # type: "pubsub.googleapis.com/Topic" - # `]; - # ` - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # Example: - # message GetIamPolicyRequest ` - # string resource = 2 [(google.api.resource_reference) = ` - # type: "*" - # `]; - # ` + # The resource type that the annotated field references. Example: message + # Subscription ` string topic = 2 [(google.api.resource_reference) = ` type: " + # pubsub.googleapis.com/Topic" `]; ` Occasionally, a field may reference an + # arbitrary resource. In this case, APIs use the special value * in their + # resource reference. Example: message GetIamPolicyRequest ` string resource = 2 + # [(google.api.resource_reference) = ` type: "*" `]; ` # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -3701,8 +3116,8 @@ module Google end # A rollout resource that defines how service configuration versions are pushed - # to control plane systems. Typically, you create a new version of the - # service config, and then create a Rollout to push the service config. + # to control plane systems. Typically, you create a new version of the service + # config, and then create a Rollout to push the service config. class Rollout include Google::Apis::Core::Hashable @@ -3711,26 +3126,25 @@ module Google # @return [String] attr_accessor :create_time - # This field is deprecated and will be deleted. Please remove usage of - # this field. + # This field is deprecated and will be deleted. Please remove usage of this + # field. # Corresponds to the JSON property `createdBy` # @return [String] attr_accessor :created_by - # Strategy used to delete a service. This strategy is a placeholder only - # used by the system generated rollout to delete a service. + # Strategy used to delete a service. This strategy is a placeholder only used by + # the system generated rollout to delete a service. # Corresponds to the JSON property `deleteServiceStrategy` # @return [Google::Apis::ServicemanagementV1::DeleteServiceStrategy] attr_accessor :delete_service_strategy # Optional. Unique identifier of this Rollout. Must be no longer than 63 - # characters - # and only lower case letters, digits, '.', '_' and '-' are allowed. + # characters and only lower case letters, digits, '.', '_' and '-' are allowed. # If not specified by client, the server will generate one. The generated id - # will have the form of , where "date" is the create - # date in ISO 8601 format. "revision number" is a monotonically increasing - # positive number that is reset every day for each service. - # An example of the generated rollout_id is '2016-02-16r1' + # will have the form of , where "date" is the create date in ISO 8601 format. " + # revision number" is a monotonically increasing positive number that is reset + # every day for each service. An example of the generated rollout_id is '2016-02- + # 16r1' # Corresponds to the JSON property `rolloutId` # @return [String] attr_accessor :rollout_id @@ -3740,39 +3154,21 @@ module Google # @return [String] attr_accessor :service_name - # The status of this rollout. Readonly. In case of a failed rollout, - # the system will automatically rollback to the current Rollout - # version. Readonly. + # The status of this rollout. Readonly. In case of a failed rollout, the system + # will automatically rollback to the current Rollout version. Readonly. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Strategy that specifies how clients of Google Service Controller want to - # send traffic to use different config versions. This is generally - # used by API proxy to split traffic based on your configured percentage for - # each config version. - # One example of how to gradually rollout a new service configuration using - # this - # strategy: - # Day 1 - # Rollout ` - # id: "example.googleapis.com/rollout_20160206" - # traffic_percent_strategy ` - # percentages: ` - # "example.googleapis.com/20160201": 70.00 - # "example.googleapis.com/20160206": 30.00 - # ` - # ` - # ` - # Day 2 - # Rollout ` - # id: "example.googleapis.com/rollout_20160207" - # traffic_percent_strategy: ` - # percentages: ` - # "example.googleapis.com/20160206": 100.00 - # ` - # ` - # ` + # Strategy that specifies how clients of Google Service Controller want to send + # traffic to use different config versions. This is generally used by API proxy + # to split traffic based on your configured percentage for each config version. + # One example of how to gradually rollout a new service configuration using this + # strategy: Day 1 Rollout ` id: "example.googleapis.com/rollout_20160206" + # traffic_percent_strategy ` percentages: ` "example.googleapis.com/20160201": + # 70.00 "example.googleapis.com/20160206": 30.00 ` ` ` Day 2 Rollout ` id: " + # example.googleapis.com/rollout_20160207" traffic_percent_strategy: ` + # percentages: ` "example.googleapis.com/20160206": 100.00 ` ` ` # Corresponds to the JSON property `trafficPercentStrategy` # @return [Google::Apis::ServicemanagementV1::TrafficPercentStrategy] attr_accessor :traffic_percent_strategy @@ -3794,50 +3190,32 @@ module Google end # `Service` is the root object of Google service configuration schema. It - # describes basic information about a service, such as the name and the - # title, and delegates other aspects to sub-sections. Each sub-section is - # either a proto message or a repeated proto message that configures a - # specific aspect, such as auth. See each proto message definition for details. - # Example: - # type: google.api.Service - # config_version: 3 - # name: calendar.googleapis.com - # title: Google Calendar API - # apis: - # - name: google.calendar.v3.Calendar - # authentication: - # providers: - # - id: google_calendar_auth - # jwks_uri: https://www.googleapis.com/oauth2/v1/certs - # issuer: https://securetoken.google.com - # rules: - # - selector: "*" - # requirements: - # provider_id: google_calendar_auth + # describes basic information about a service, such as the name and the title, + # and delegates other aspects to sub-sections. Each sub-section is either a + # proto message or a repeated proto message that configures a specific aspect, + # such as auth. See each proto message definition for details. Example: type: + # google.api.Service config_version: 3 name: calendar.googleapis.com title: + # Google Calendar API apis: - name: google.calendar.v3.Calendar authentication: + # providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/ + # oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: "*" + # requirements: provider_id: google_calendar_auth class Service include Google::Apis::Core::Hashable - # A list of API interfaces exported by this service. Only the `name` field - # of the google.protobuf.Api needs to be provided by the configuration - # author, as the remaining fields will be derived from the IDL during the - # normalization process. It is an error to specify an API interface here - # which cannot be resolved against the associated IDL files. + # A list of API interfaces exported by this service. Only the `name` field of + # the google.protobuf.Api needs to be provided by the configuration author, as + # the remaining fields will be derived from the IDL during the normalization + # process. It is an error to specify an API interface here which cannot be + # resolved against the associated IDL files. # Corresponds to the JSON property `apis` # @return [Array] attr_accessor :apis - # `Authentication` defines the authentication configuration for an API. - # Example for an API targeted for external use: - # name: calendar.googleapis.com - # authentication: - # providers: - # - id: google_calendar_auth - # jwks_uri: https://www.googleapis.com/oauth2/v1/certs - # issuer: https://securetoken.google.com - # rules: - # - selector: "*" - # requirements: - # provider_id: google_calendar_auth + # `Authentication` defines the authentication configuration for an API. Example + # for an API targeted for external use: name: calendar.googleapis.com + # authentication: providers: - id: google_calendar_auth jwks_uri: https://www. + # googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - + # selector: "*" requirements: provider_id: google_calendar_auth # Corresponds to the JSON property `authentication` # @return [Google::Apis::ServicemanagementV1::Authentication] attr_accessor :authentication @@ -3847,211 +3225,136 @@ module Google # @return [Google::Apis::ServicemanagementV1::Backend] attr_accessor :backend - # Billing related configuration of the service. - # The following example shows how to configure monitored resources and metrics - # for billing, `consumer_destinations` is the only supported destination and - # the monitored resources need at least one label key - # `cloud.googleapis.com/location` to indicate the location of the billing - # usage, using different monitored resources between monitoring and billing is - # recommended so they can be evolved independently: - # monitored_resources: - # - type: library.googleapis.com/billing_branch - # labels: - # - key: cloud.googleapis.com/location - # description: | - # Predefined label to support billing location restriction. - # - key: city - # description: | - # Custom label to define the city where the library branch is located - # in. - # - key: name - # description: Custom label to define the name of the library branch. - # metrics: - # - name: library.googleapis.com/book/borrowed_count - # metric_kind: DELTA - # value_type: INT64 - # unit: "1" - # billing: - # consumer_destinations: - # - monitored_resource: library.googleapis.com/billing_branch - # metrics: - # - library.googleapis.com/book/borrowed_count + # Billing related configuration of the service. The following example shows how + # to configure monitored resources and metrics for billing, ` + # consumer_destinations` is the only supported destination and the monitored + # resources need at least one label key `cloud.googleapis.com/location` to + # indicate the location of the billing usage, using different monitored + # resources between monitoring and billing is recommended so they can be evolved + # independently: monitored_resources: - type: library.googleapis.com/ + # billing_branch labels: - key: cloud.googleapis.com/location description: | + # Predefined label to support billing location restriction. - key: city + # description: | Custom label to define the city where the library branch is + # located in. - key: name description: Custom label to define the name of the + # library branch. metrics: - name: library.googleapis.com/book/borrowed_count + # metric_kind: DELTA value_type: INT64 unit: "1" billing: consumer_destinations: + # - monitored_resource: library.googleapis.com/billing_branch metrics: - library. + # googleapis.com/book/borrowed_count # Corresponds to the JSON property `billing` # @return [Google::Apis::ServicemanagementV1::Billing] attr_accessor :billing - # The semantic version of the service configuration. The config version - # affects the interpretation of the service configuration. For example, - # certain features are enabled by default for certain config versions. - # The latest config version is `3`. + # The semantic version of the service configuration. The config version affects + # the interpretation of the service configuration. For example, certain features + # are enabled by default for certain config versions. The latest config version + # is `3`. # Corresponds to the JSON property `configVersion` # @return [Fixnum] attr_accessor :config_version - # `Context` defines which contexts an API requests. - # Example: - # context: - # rules: - # - selector: "*" - # requested: - # - google.rpc.context.ProjectContext - # - google.rpc.context.OriginContext - # The above specifies that all methods in the API request - # `google.rpc.context.ProjectContext` and - # `google.rpc.context.OriginContext`. - # Available context types are defined in package - # `google.rpc.context`. - # This also provides mechanism to whitelist any protobuf message extension that - # can be sent in grpc metadata using “x-goog-ext--bin” and - # “x-goog-ext--jspb” format. For example, list any service - # specific protobuf types that can appear in grpc metadata as follows in your - # yaml file: - # Example: - # context: - # rules: - # - selector: "google.example.library.v1.LibraryService.CreateBook" - # allowed_request_extensions: - # - google.foo.v1.NewExtension - # allowed_response_extensions: - # - google.foo.v1.NewExtension - # You can also specify extension ID instead of fully qualified extension name - # here. + # `Context` defines which contexts an API requests. Example: context: rules: - + # selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc. + # context.OriginContext The above specifies that all methods in the API request ` + # google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`. + # Available context types are defined in package `google.rpc.context`. This also + # provides mechanism to whitelist any protobuf message extension that can be + # sent in grpc metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format. + # For example, list any service specific protobuf types that can appear in grpc + # metadata as follows in your yaml file: Example: context: rules: - selector: " + # google.example.library.v1.LibraryService.CreateBook" + # allowed_request_extensions: - google.foo.v1.NewExtension + # allowed_response_extensions: - google.foo.v1.NewExtension You can also specify + # extension ID instead of fully qualified extension name here. # Corresponds to the JSON property `context` # @return [Google::Apis::ServicemanagementV1::Context] attr_accessor :context - # Selects and configures the service controller used by the service. The - # service controller handles features like abuse, quota, billing, logging, - # monitoring, etc. + # Selects and configures the service controller used by the service. The service + # controller handles features like abuse, quota, billing, logging, monitoring, + # etc. # Corresponds to the JSON property `control` # @return [Google::Apis::ServicemanagementV1::Control] attr_accessor :control - # Customize service error responses. For example, list any service - # specific protobuf types that can appear in error detail lists of - # error responses. - # Example: - # custom_error: - # types: - # - google.foo.v1.CustomError - # - google.foo.v1.AnotherError + # Customize service error responses. For example, list any service specific + # protobuf types that can appear in error detail lists of error responses. + # Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1. + # AnotherError # Corresponds to the JSON property `customError` # @return [Google::Apis::ServicemanagementV1::CustomError] attr_accessor :custom_error - # `Documentation` provides the information for describing a service. - # Example: - #
                                          documentation:
                                          -        # summary: >
                                          -        # The Google Calendar API gives access
                                          -        # to most calendar features.
                                          -        # pages:
                                          -        # - name: Overview
                                          -        # content: (== include google/foo/overview.md ==)
                                          -        # - name: Tutorial
                                          -        # content: (== include google/foo/tutorial.md ==)
                                          -        # subpages;
                                          -        # - name: Java
                                          -        # content: (== include google/foo/tutorial_java.md ==)
                                          -        # rules:
                                          -        # - selector: google.calendar.Calendar.Get
                                          -        # description: >
                                          -        # ...
                                          -        # - selector: google.calendar.Calendar.Put
                                          -        # description: >
                                          -        # ...
                                          -        # 
                                          - # Documentation is provided in markdown syntax. In addition to - # standard markdown features, definition lists, tables and fenced - # code blocks are supported. Section headers can be provided and are - # interpreted relative to the section nesting of the context where - # a documentation fragment is embedded. - # Documentation from the IDL is merged with documentation defined - # via the config at normalization time, where documentation provided - # by config rules overrides IDL provided. - # A number of constructs specific to the API platform are supported - # in documentation text. - # In order to reference a proto element, the following - # notation can be used: - #
                                          [fully.qualified.proto.name][]
                                          - # To override the display text used for the link, this can be used: - #
                                          [display text][fully.qualified.proto.name]
                                          - # Text can be excluded from doc using the following notation: - #
                                          (-- internal comment --)
                                          - # A few directives are available in documentation. Note that - # directives must appear on a single line to be properly - # identified. The `include` directive includes a markdown file from - # an external source: - #
                                          (== include path/to/file ==)
                                          - # The `resource_for` directive marks a message to be the resource of - # a collection in REST view. If it is not specified, tools attempt - # to infer the resource from the operations in a collection: - #
                                          (== resource_for v1.shelves.books ==)
                                          - # The directive `suppress_warning` does not directly affect documentation - # and is documented together with service config validation. + # `Documentation` provides the information for describing a service. Example: + # documentation: summary: > The Google Calendar API gives access to most + # calendar features. pages: - name: Overview content: (== include google/foo/ + # overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md == + # ) subpages; - name: Java content: (== include google/foo/tutorial_java.md ==) + # rules: - selector: google.calendar.Calendar.Get description: > ... - selector: + # google.calendar.Calendar.Put description: > ... Documentation is provided in + # markdown syntax. In addition to standard markdown features, definition lists, + # tables and fenced code blocks are supported. Section headers can be provided + # and are interpreted relative to the section nesting of the context where a + # documentation fragment is embedded. Documentation from the IDL is merged with + # documentation defined via the config at normalization time, where + # documentation provided by config rules overrides IDL provided. A number of + # constructs specific to the API platform are supported in documentation text. + # In order to reference a proto element, the following notation can be used: [ + # fully.qualified.proto.name][] To override the display text used for the link, + # this can be used: [display text][fully.qualified.proto.name] Text can be + # excluded from doc using the following notation: (-- internal comment --) A few + # directives are available in documentation. Note that directives must appear on + # a single line to be properly identified. The `include` directive includes a + # markdown file from an external source: (== include path/to/file ==) The ` + # resource_for` directive marks a message to be the resource of a collection in + # REST view. If it is not specified, tools attempt to infer the resource from + # the operations in a collection: (== resource_for v1.shelves.books ==) The + # directive `suppress_warning` does not directly affect documentation and is + # documented together with service config validation. # Corresponds to the JSON property `documentation` # @return [Google::Apis::ServicemanagementV1::Documentation] attr_accessor :documentation - # Configuration for network endpoints. If this is empty, then an endpoint - # with the same name as the service is automatically generated to service all - # defined APIs. + # Configuration for network endpoints. If this is empty, then an endpoint with + # the same name as the service is automatically generated to service all defined + # APIs. # Corresponds to the JSON property `endpoints` # @return [Array] attr_accessor :endpoints - # A list of all enum types included in this API service. Enums - # referenced directly or indirectly by the `apis` are automatically - # included. Enums which are not referenced but shall be included - # should be listed here by name. Example: - # enums: - # - name: google.someapi.v1.SomeEnum + # A list of all enum types included in this API service. Enums referenced + # directly or indirectly by the `apis` are automatically included. Enums which + # are not referenced but shall be included should be listed here by name. + # Example: enums: - name: google.someapi.v1.SomeEnum # Corresponds to the JSON property `enums` # @return [Array] attr_accessor :enums # Defines the HTTP configuration for an API service. It contains a list of - # HttpRule, each specifying the mapping of an RPC method - # to one or more HTTP REST API methods. + # HttpRule, each specifying the mapping of an RPC method to one or more HTTP + # REST API methods. # Corresponds to the JSON property `http` # @return [Google::Apis::ServicemanagementV1::Http] attr_accessor :http - # A unique ID for a specific instance of this message, typically assigned - # by the client for tracking purpose. Must be no longer than 63 characters - # and only lower case letters, digits, '.', '_' and '-' are allowed. If - # empty, the server may choose to generate one instead. + # A unique ID for a specific instance of this message, typically assigned by the + # client for tracking purpose. Must be no longer than 63 characters and only + # lower case letters, digits, '.', '_' and '-' are allowed. If empty, the server + # may choose to generate one instead. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Logging configuration of the service. - # The following example shows how to configure logs to be sent to the - # producer and consumer projects. In the example, the `activity_history` - # log is sent to both the producer and consumer projects, whereas the - # `purchase_history` log is only sent to the producer project. - # monitored_resources: - # - type: library.googleapis.com/branch - # labels: - # - key: /city - # description: The city where the library branch is located in. - # - key: /name - # description: The name of the branch. - # logs: - # - name: activity_history - # labels: - # - key: /customer_id - # - name: purchase_history - # logging: - # producer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history - # - purchase_history - # consumer_destinations: - # - monitored_resource: library.googleapis.com/branch - # logs: - # - activity_history + # Logging configuration of the service. The following example shows how to + # configure logs to be sent to the producer and consumer projects. In the + # example, the `activity_history` log is sent to both the producer and consumer + # projects, whereas the `purchase_history` log is only sent to the producer + # project. monitored_resources: - type: library.googleapis.com/branch labels: - + # key: /city description: The city where the library branch is located in. - key: + # /name description: The name of the branch. logs: - name: activity_history + # labels: - key: /customer_id - name: purchase_history logging: + # producer_destinations: - monitored_resource: library.googleapis.com/branch + # logs: - activity_history - purchase_history consumer_destinations: - + # monitored_resource: library.googleapis.com/branch logs: - activity_history # Corresponds to the JSON property `logging` # @return [Google::Apis::ServicemanagementV1::Logging] attr_accessor :logging @@ -4066,70 +3369,41 @@ module Google # @return [Array] attr_accessor :metrics - # Defines the monitored resources used by this service. This is required - # by the Service.monitoring and Service.logging configurations. + # Defines the monitored resources used by this service. This is required by the + # Service.monitoring and Service.logging configurations. # Corresponds to the JSON property `monitoredResources` # @return [Array] attr_accessor :monitored_resources - # Monitoring configuration of the service. - # The example below shows how to configure monitored resources and metrics - # for monitoring. In the example, a monitored resource and two metrics are - # defined. The `library.googleapis.com/book/returned_count` metric is sent - # to both producer and consumer projects, whereas the - # `library.googleapis.com/book/num_overdue` metric is only sent to the - # consumer project. - # monitored_resources: - # - type: library.googleapis.com/Branch - # display_name: "Library Branch" - # description: "A branch of a library." - # launch_stage: GA - # labels: - # - key: resource_container - # description: "The Cloud container (ie. project id) for the Branch." - # - key: location - # description: "The location of the library branch." - # - key: branch_id - # description: "The id of the branch." - # metrics: - # - name: library.googleapis.com/book/returned_count - # display_name: "Books Returned" - # description: "The count of books that have been returned." - # launch_stage: GA - # metric_kind: DELTA - # value_type: INT64 - # unit: "1" - # labels: - # - key: customer_id - # description: "The id of the customer." - # - name: library.googleapis.com/book/num_overdue - # display_name: "Books Overdue" - # description: "The current number of overdue books." - # launch_stage: GA - # metric_kind: GAUGE - # value_type: INT64 - # unit: "1" - # labels: - # - key: customer_id - # description: "The id of the customer." - # monitoring: - # producer_destinations: - # - monitored_resource: library.googleapis.com/Branch - # metrics: - # - library.googleapis.com/book/returned_count - # consumer_destinations: - # - monitored_resource: library.googleapis.com/Branch - # metrics: - # - library.googleapis.com/book/returned_count - # - library.googleapis.com/book/num_overdue + # Monitoring configuration of the service. The example below shows how to + # configure monitored resources and metrics for monitoring. In the example, a + # monitored resource and two metrics are defined. The `library.googleapis.com/ + # book/returned_count` metric is sent to both producer and consumer projects, + # whereas the `library.googleapis.com/book/num_overdue` metric is only sent to + # the consumer project. monitored_resources: - type: library.googleapis.com/ + # Branch display_name: "Library Branch" description: "A branch of a library." + # launch_stage: GA labels: - key: resource_container description: "The Cloud + # container (ie. project id) for the Branch." - key: location description: "The + # location of the library branch." - key: branch_id description: "The id of the + # branch." metrics: - name: library.googleapis.com/book/returned_count + # display_name: "Books Returned" description: "The count of books that have been + # returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1" + # labels: - key: customer_id description: "The id of the customer." - name: + # library.googleapis.com/book/num_overdue display_name: "Books Overdue" + # description: "The current number of overdue books." launch_stage: GA + # metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id + # description: "The id of the customer." monitoring: producer_destinations: - + # monitored_resource: library.googleapis.com/Branch metrics: - library. + # googleapis.com/book/returned_count consumer_destinations: - monitored_resource: + # library.googleapis.com/Branch metrics: - library.googleapis.com/book/ + # returned_count - library.googleapis.com/book/num_overdue # Corresponds to the JSON property `monitoring` # @return [Google::Apis::ServicemanagementV1::Monitoring] attr_accessor :monitoring - # The service name, which is a DNS-like logical identifier for the - # service, such as `calendar.googleapis.com`. The service name - # typically goes through DNS verification to make sure the owner - # of the service also owns the DNS name. + # The service name, which is a DNS-like logical identifier for the service, such + # as `calendar.googleapis.com`. The service name typically goes through DNS + # verification to make sure the owner of the service also owns the DNS name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -4139,46 +3413,25 @@ module Google # @return [String] attr_accessor :producer_project_id - # Quota configuration helps to achieve fairness and budgeting in service - # usage. - # The metric based quota configuration works this way: - # - The service configuration defines a set of metrics. - # - For API calls, the quota.metric_rules maps methods to metrics with - # corresponding costs. - # - The quota.limits defines limits on the metrics, which will be used for - # quota checks at runtime. - # An example quota configuration in yaml format: - # quota: - # limits: - # - name: apiWriteQpsPerProject - # metric: library.googleapis.com/write_calls - # unit: "1/min/`project`" # rate limit for consumer projects - # values: - # STANDARD: 10000 - # # The metric rules bind all methods to the read_calls metric, - # # except for the UpdateBook and DeleteBook methods. These two methods - # # are mapped to the write_calls metric, with the UpdateBook method - # # consuming at twice rate as the DeleteBook method. - # metric_rules: - # - selector: "*" - # metric_costs: - # library.googleapis.com/read_calls: 1 - # - selector: google.example.library.v1.LibraryService.UpdateBook - # metric_costs: - # library.googleapis.com/write_calls: 2 - # - selector: google.example.library.v1.LibraryService.DeleteBook - # metric_costs: - # library.googleapis.com/write_calls: 1 - # Corresponding Metric definition: - # metrics: - # - name: library.googleapis.com/read_calls - # display_name: Read requests - # metric_kind: DELTA - # value_type: INT64 - # - name: library.googleapis.com/write_calls - # display_name: Write requests - # metric_kind: DELTA - # value_type: INT64 + # Quota configuration helps to achieve fairness and budgeting in service usage. + # The metric based quota configuration works this way: - The service + # configuration defines a set of metrics. - For API calls, the quota. + # metric_rules maps methods to metrics with corresponding costs. - The quota. + # limits defines limits on the metrics, which will be used for quota checks at + # runtime. An example quota configuration in yaml format: quota: limits: - name: + # apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/` + # project`" # rate limit for consumer projects values: STANDARD: 10000 # The + # metric rules bind all methods to the read_calls metric, # except for the + # UpdateBook and DeleteBook methods. These two methods # are mapped to the + # write_calls metric, with the UpdateBook method # consuming at twice rate as + # the DeleteBook method. metric_rules: - selector: "*" metric_costs: library. + # googleapis.com/read_calls: 1 - selector: google.example.library.v1. + # LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - + # selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: + # library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: + # - name: library.googleapis.com/read_calls display_name: Read requests + # metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/ + # write_calls display_name: Write requests metric_kind: DELTA value_type: INT64 # Corresponds to the JSON property `quota` # @return [Google::Apis::ServicemanagementV1::Quota] attr_accessor :quota @@ -4188,20 +3441,18 @@ module Google # @return [Google::Apis::ServicemanagementV1::SourceInfo] attr_accessor :source_info - # ### System parameter configuration - # A system parameter is a special kind of parameter defined by the API - # system, not by an individual API. It is typically mapped to an HTTP header - # and/or a URL query parameter. This configuration specifies which methods - # change the names of the system parameters. + # ### System parameter configuration A system parameter is a special kind of + # parameter defined by the API system, not by an individual API. It is typically + # mapped to an HTTP header and/or a URL query parameter. This configuration + # specifies which methods change the names of the system parameters. # Corresponds to the JSON property `systemParameters` # @return [Google::Apis::ServicemanagementV1::SystemParameters] attr_accessor :system_parameters - # A list of all proto message types included in this API service. - # It serves similar purpose as [google.api.Service.types], except that - # these types are not needed by user-defined APIs. Therefore, they will not - # show up in the generated discovery doc. This field should only be used - # to define system APIs in ESF. + # A list of all proto message types included in this API service. It serves + # similar purpose as [google.api.Service.types], except that these types are not + # needed by user-defined APIs. Therefore, they will not show up in the generated + # discovery doc. This field should only be used to define system APIs in ESF. # Corresponds to the JSON property `systemTypes` # @return [Array] attr_accessor :system_types @@ -4211,12 +3462,10 @@ module Google # @return [String] attr_accessor :title - # A list of all proto message types included in this API service. - # Types referenced directly or indirectly by the `apis` are - # automatically included. Messages which are not referenced but - # shall be included, such as types used by the `google.protobuf.Any` type, - # should be listed here by name. Example: - # types: + # A list of all proto message types included in this API service. Types + # referenced directly or indirectly by the `apis` are automatically included. + # Messages which are not referenced but shall be included, such as types used by + # the `google.protobuf.Any` type, should be listed here by name. Example: types: # - name: google.protobuf.Int32 # Corresponds to the JSON property `types` # @return [Array] @@ -4263,32 +3512,28 @@ module Google end end - # The per-product per-project service identity for a service. - # Use this field to configure per-product per-project service identity. - # Example of a service identity configuration. - # usage: - # service_identity: - # - service_account_parent: "projects/123456789" - # display_name: "Cloud XXX Service Agent" - # description: "Used as the identity of Cloud XXX to access resources" + # The per-product per-project service identity for a service. Use this field to + # configure per-product per-project service identity. Example of a service + # identity configuration. usage: service_identity: - service_account_parent: " + # projects/123456789" display_name: "Cloud XXX Service Agent" description: "Used + # as the identity of Cloud XXX to access resources" class ServiceIdentity include Google::Apis::Core::Hashable - # Optional. A user-specified opaque description of the service account. - # Must be less than or equal to 256 UTF-8 bytes. + # Optional. A user-specified opaque description of the service account. Must be + # less than or equal to 256 UTF-8 bytes. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Optional. A user-specified name for the service account. - # Must be less than or equal to 100 UTF-8 bytes. + # Optional. A user-specified name for the service account. Must be less than or + # equal to 100 UTF-8 bytes. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # A service account project that hosts the service accounts. - # An example name would be: - # `projects/123456789` + # A service account project that hosts the service accounts. An example name + # would be: `projects/123456789` # Corresponds to the JSON property `serviceAccountParent` # @return [String] attr_accessor :service_account_parent @@ -4310,74 +3555,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::ServicemanagementV1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -4393,13 +3603,13 @@ module Google end end - # `SourceContext` represents information about the source of a - # protobuf element, like the file in which it is defined. + # `SourceContext` represents information about the source of a protobuf element, + # like the file in which it is defined. class SourceContext include Google::Apis::Core::Hashable # The path-qualified name of the .proto file that contained the associated - # protobuf element. For example: `"google/protobuf/source_context.proto"`. + # protobuf element. For example: `"google/protobuf/source_context.proto"`. # Corresponds to the JSON property `fileName` # @return [String] attr_accessor :file_name @@ -4433,12 +3643,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -4447,15 +3657,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -4507,9 +3717,9 @@ module Google # @return [Google::Apis::ServicemanagementV1::ConfigSource] attr_accessor :config_source - # Optional. If set, this will result in the generation of a - # `google.api.Service` configuration based on the `ConfigSource` provided, - # but the generated config and the sources will NOT be persisted. + # Optional. If set, this will result in the generation of a `google.api.Service` + # configuration based on the `ConfigSource` provided, but the generated config + # and the sources will NOT be persisted. # Corresponds to the JSON property `validateOnly` # @return [Boolean] attr_accessor :validate_only @@ -4531,26 +3741,15 @@ module Google include Google::Apis::Core::Hashable # `Service` is the root object of Google service configuration schema. It - # describes basic information about a service, such as the name and the - # title, and delegates other aspects to sub-sections. Each sub-section is - # either a proto message or a repeated proto message that configures a - # specific aspect, such as auth. See each proto message definition for details. - # Example: - # type: google.api.Service - # config_version: 3 - # name: calendar.googleapis.com - # title: Google Calendar API - # apis: - # - name: google.calendar.v3.Calendar - # authentication: - # providers: - # - id: google_calendar_auth - # jwks_uri: https://www.googleapis.com/oauth2/v1/certs - # issuer: https://securetoken.google.com - # rules: - # - selector: "*" - # requirements: - # provider_id: google_calendar_auth + # describes basic information about a service, such as the name and the title, + # and delegates other aspects to sub-sections. Each sub-section is either a + # proto message or a repeated proto message that configures a specific aspect, + # such as auth. See each proto message definition for details. Example: type: + # google.api.Service config_version: 3 name: calendar.googleapis.com title: + # Google Calendar API apis: - name: google.calendar.v3.Calendar authentication: + # providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/ + # oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: "*" + # requirements: provider_id: google_calendar_auth # Corresponds to the JSON property `serviceConfig` # @return [Google::Apis::ServicemanagementV1::Service] attr_accessor :service_config @@ -4571,8 +3770,7 @@ module Google class SystemParameter include Google::Apis::Core::Hashable - # Define the HTTP header name to use for the parameter. It is case - # insensitive. + # Define the HTTP header name to use for the parameter. It is case insensitive. # Corresponds to the JSON property `httpHeader` # @return [String] attr_accessor :http_header @@ -4600,23 +3798,20 @@ module Google end end - # Define a system parameter rule mapping system parameter definitions to - # methods. + # Define a system parameter rule mapping system parameter definitions to methods. class SystemParameterRule include Google::Apis::Core::Hashable - # Define parameters. Multiple names may be defined for a parameter. - # For a given method call, only one of them should be used. If multiple - # names are used the behavior is implementation-dependent. - # If none of the specified names are present the behavior is - # parameter-dependent. + # Define parameters. Multiple names may be defined for a parameter. For a given + # method call, only one of them should be used. If multiple names are used the + # behavior is implementation-dependent. If none of the specified names are + # present the behavior is parameter-dependent. # Corresponds to the JSON property `parameters` # @return [Array] attr_accessor :parameters # Selects the methods to which this rule applies. Use '*' to indicate all - # methods in all APIs. - # Refer to selector for syntax details. + # methods in all APIs. Refer to selector for syntax details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector @@ -4632,36 +3827,23 @@ module Google end end - # ### System parameter configuration - # A system parameter is a special kind of parameter defined by the API - # system, not by an individual API. It is typically mapped to an HTTP header - # and/or a URL query parameter. This configuration specifies which methods - # change the names of the system parameters. + # ### System parameter configuration A system parameter is a special kind of + # parameter defined by the API system, not by an individual API. It is typically + # mapped to an HTTP header and/or a URL query parameter. This configuration + # specifies which methods change the names of the system parameters. class SystemParameters include Google::Apis::Core::Hashable - # Define system parameters. - # The parameters defined here will override the default parameters - # implemented by the system. If this field is missing from the service - # config, default system parameters will be used. Default system parameters - # and names is implementation-dependent. - # Example: define api key for all methods - # system_parameters - # rules: - # - selector: "*" - # parameters: - # - name: api_key - # url_query_parameter: api_key - # Example: define 2 api key names for a specific method. - # system_parameters - # rules: - # - selector: "/ListShelves" - # parameters: - # - name: api_key - # http_header: Api-Key1 - # - name: api_key - # http_header: Api-Key2 - # **NOTE:** All service configuration rules follow "last one wins" order. + # Define system parameters. The parameters defined here will override the + # default parameters implemented by the system. If this field is missing from + # the service config, default system parameters will be used. Default system + # parameters and names is implementation-dependent. Example: define api key for + # all methods system_parameters rules: - selector: "*" parameters: - name: + # api_key url_query_parameter: api_key Example: define 2 api key names for a + # specific method. system_parameters rules: - selector: "/ListShelves" + # parameters: - name: api_key http_header: Api-Key1 - name: api_key http_header: + # Api-Key2 **NOTE:** All service configuration rules follow "last one wins" + # order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules @@ -4680,10 +3862,9 @@ module Google 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). + # 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 @@ -4702,8 +3883,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -4718,38 +3898,21 @@ module Google end end - # Strategy that specifies how clients of Google Service Controller want to - # send traffic to use different config versions. This is generally - # used by API proxy to split traffic based on your configured percentage for - # each config version. - # One example of how to gradually rollout a new service configuration using - # this - # strategy: - # Day 1 - # Rollout ` - # id: "example.googleapis.com/rollout_20160206" - # traffic_percent_strategy ` - # percentages: ` - # "example.googleapis.com/20160201": 70.00 - # "example.googleapis.com/20160206": 30.00 - # ` - # ` - # ` - # Day 2 - # Rollout ` - # id: "example.googleapis.com/rollout_20160207" - # traffic_percent_strategy: ` - # percentages: ` - # "example.googleapis.com/20160206": 100.00 - # ` - # ` - # ` + # Strategy that specifies how clients of Google Service Controller want to send + # traffic to use different config versions. This is generally used by API proxy + # to split traffic based on your configured percentage for each config version. + # One example of how to gradually rollout a new service configuration using this + # strategy: Day 1 Rollout ` id: "example.googleapis.com/rollout_20160206" + # traffic_percent_strategy ` percentages: ` "example.googleapis.com/20160201": + # 70.00 "example.googleapis.com/20160206": 30.00 ` ` ` Day 2 Rollout ` id: " + # example.googleapis.com/rollout_20160207" traffic_percent_strategy: ` + # percentages: ` "example.googleapis.com/20160206": 100.00 ` ` ` class TrafficPercentStrategy include Google::Apis::Core::Hashable - # Maps service configuration IDs to their corresponding traffic percentage. - # Key is the service configuration ID, Value is the traffic percentage - # which must be greater than 0.0 and the sum must equal to 100.0. + # Maps service configuration IDs to their corresponding traffic percentage. Key + # is the service configuration ID, Value is the traffic percentage which must be + # greater than 0.0 and the sum must equal to 100.0. # Corresponds to the JSON property `percentages` # @return [Hash] attr_accessor :percentages @@ -4788,8 +3951,8 @@ module Google # @return [Array] attr_accessor :options - # `SourceContext` represents information about the source of a - # protobuf element, like the file in which it is defined. + # `SourceContext` represents information about the source of a protobuf element, + # like the file in which it is defined. # Corresponds to the JSON property `sourceContext` # @return [Google::Apis::ServicemanagementV1::SourceContext] attr_accessor :source_context @@ -4818,8 +3981,8 @@ module Google class UndeleteServiceResponse include Google::Apis::Core::Hashable - # The full representation of a Service that is managed by - # Google Service Management. + # The full representation of a Service that is managed by Google Service + # Management. # Corresponds to the JSON property `service` # @return [Google::Apis::ServicemanagementV1::ManagedService] attr_accessor :service @@ -4839,37 +4002,33 @@ module Google include Google::Apis::Core::Hashable # The full resource name of a channel used for sending notifications to the - # service producer. - # Google Service Management currently only supports - # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - # channel. To use Google Cloud Pub/Sub as the channel, this must be the name - # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - # documented in https://cloud.google.com/pubsub/docs/overview. + # service producer. Google Service Management currently only supports [Google + # Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification channel. To + # use Google Cloud Pub/Sub as the channel, this must be the name of a Cloud Pub/ + # Sub topic that uses the Cloud Pub/Sub topic name format documented in https:// + # cloud.google.com/pubsub/docs/overview. # Corresponds to the JSON property `producerNotificationChannel` # @return [String] attr_accessor :producer_notification_channel # Requirements that must be satisfied before a consumer project can use the - # service. Each requirement is of the form /; - # for example 'serviceusage.googleapis.com/billing-enabled'. + # service. Each requirement is of the form /; for example 'serviceusage. + # googleapis.com/billing-enabled'. # Corresponds to the JSON property `requirements` # @return [Array] attr_accessor :requirements - # A list of usage rules that apply to individual API methods. - # **NOTE:** All service configuration rules follow "last one wins" order. + # A list of usage rules that apply to individual API methods. **NOTE:** All + # service configuration rules follow "last one wins" order. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules - # The per-product per-project service identity for a service. - # Use this field to configure per-product per-project service identity. - # Example of a service identity configuration. - # usage: - # service_identity: - # - service_account_parent: "projects/123456789" - # display_name: "Cloud XXX Service Agent" - # description: "Used as the identity of Cloud XXX to access resources" + # The per-product per-project service identity for a service. Use this field to + # configure per-product per-project service identity. Example of a service + # identity configuration. usage: service_identity: - service_account_parent: " + # projects/123456789" display_name: "Cloud XXX Service Agent" description: "Used + # as the identity of Cloud XXX to access resources" # Corresponds to the JSON property `serviceIdentity` # @return [Google::Apis::ServicemanagementV1::ServiceIdentity] attr_accessor :service_identity @@ -4887,45 +4046,36 @@ module Google end end - # Usage configuration rules for the service. - # NOTE: Under development. - # Use this rule to configure unregistered calls for the service. Unregistered - # calls are calls that do not contain consumer project identity. - # (Example: calls that do not contain an API key). - # By default, API methods do not allow unregistered calls, and each method call - # must be identified by a consumer project identity. Use this rule to - # allow/disallow unregistered calls. - # Example of an API that wants to allow unregistered calls for entire service. - # usage: - # rules: - # - selector: "*" - # allow_unregistered_calls: true - # Example of a method that wants to allow unregistered calls. - # usage: - # rules: - # - selector: "google.example.library.v1.LibraryService.CreateBook" - # allow_unregistered_calls: true + # Usage configuration rules for the service. NOTE: Under development. Use this + # rule to configure unregistered calls for the service. Unregistered calls are + # calls that do not contain consumer project identity. (Example: calls that do + # not contain an API key). By default, API methods do not allow unregistered + # calls, and each method call must be identified by a consumer project identity. + # Use this rule to allow/disallow unregistered calls. Example of an API that + # wants to allow unregistered calls for entire service. usage: rules: - selector: + # "*" allow_unregistered_calls: true Example of a method that wants to allow + # unregistered calls. usage: rules: - selector: "google.example.library.v1. + # LibraryService.CreateBook" allow_unregistered_calls: true class UsageRule include Google::Apis::Core::Hashable - # If true, the selected method allows unregistered calls, e.g. calls - # that don't identify any user or application. + # If true, the selected method allows unregistered calls, e.g. calls that don't + # identify any user or application. # Corresponds to the JSON property `allowUnregisteredCalls` # @return [Boolean] attr_accessor :allow_unregistered_calls alias_method :allow_unregistered_calls?, :allow_unregistered_calls # Selects the methods to which this rule applies. Use '*' to indicate all - # methods in all APIs. - # Refer to selector for syntax details. + # methods in all APIs. Refer to selector for syntax details. # Corresponds to the JSON property `selector` # @return [String] attr_accessor :selector - # If true, the selected method should skip service control and the control - # plane features, such as quota and billing, will not be available. - # This flag is used by Google Cloud Endpoints to bypass checks for internal - # methods, such as service health check methods. + # If true, the selected method should skip service control and the control plane + # features, such as quota and billing, will not be available. This flag is used + # by Google Cloud Endpoints to bypass checks for internal methods, such as + # service health check methods. # Corresponds to the JSON property `skipServiceControl` # @return [Boolean] attr_accessor :skip_service_control diff --git a/generated/google/apis/servicemanagement_v1/service.rb b/generated/google/apis/servicemanagement_v1/service.rb index 3728278ce..588345b26 100644 --- a/generated/google/apis/servicemanagement_v1/service.rb +++ b/generated/google/apis/servicemanagement_v1/service.rb @@ -49,9 +49,8 @@ module Google @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. + # 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 @@ -83,28 +82,22 @@ module Google # Lists service operations that match the specified filter in the request. # @param [String] filter - # A string for filtering Operations. - # The following filter fields are supported: - # * serviceName: Required. Only `=` operator is allowed. - # * startTime: The time this job was started, in ISO 8601 format. - # Allowed operators are `>=`, `>`, `<=`, and `<`. - # * status: Can be `done`, `in_progress`, or `failed`. Allowed - # operators are `=`, and `!=`. - # Filter expression supports conjunction (AND) and disjunction (OR) - # logical operators. However, the serviceName restriction must be at the - # top-level and can only be combined with other restrictions via the AND - # logical operator. - # Examples: - # * `serviceName=`some-service`.googleapis.com` - # * `serviceName=`some-service`.googleapis.com AND startTime>="2017-02-01"` - # * `serviceName=`some-service`.googleapis.com AND status=done` - # * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>=" - # 2017-02-01")` + # A string for filtering Operations. The following filter fields are supported: * + # serviceName: Required. Only `=` operator is allowed. * startTime: The time + # this job was started, in ISO 8601 format. Allowed operators are `>=`, `>`, `<=` + # , and `<`. * status: Can be `done`, `in_progress`, or `failed`. Allowed + # operators are `=`, and `!=`. Filter expression supports conjunction (AND) and + # disjunction (OR) logical operators. However, the serviceName restriction must + # be at the top-level and can only be combined with other restrictions via the + # AND logical operator. Examples: * `serviceName=`some-service`.googleapis.com` * + # `serviceName=`some-service`.googleapis.com AND startTime>="2017-02-01"` * ` + # serviceName=`some-service`.googleapis.com AND status=done` * `serviceName=` + # some-service`.googleapis.com AND (status=done OR startTime>="2017-02-01")` # @param [String] name # Not used. # @param [Fixnum] page_size - # The maximum number of operations to return. If unspecified, defaults to - # 50. The maximum value is 100. + # The maximum number of operations to return. If unspecified, defaults to 50. + # The maximum value is 100. # @param [String] page_token # The standard list page token. # @param [String] fields @@ -137,14 +130,11 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new managed service. - # A managed service is immutable, and is subject to mandatory 30-day - # data retention. You cannot move a service or recreate it within 30 days - # after deletion. - # One producer project can own no more than 500 services. For security and - # reliability purposes, a production service should be hosted in a - # dedicated producer project. - # Operation + # Creates a new managed service. A managed service is immutable, and is subject + # to mandatory 30-day data retention. You cannot move a service or recreate it + # within 30 days after deletion. One producer project can own no more than 500 + # services. For security and reliability purposes, a production service should + # be hosted in a dedicated producer project. Operation # @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -174,15 +164,13 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a managed service. This method will change the service to the - # `Soft-Delete` state for 30 days. Within this period, service producers may - # call UndeleteService to restore the service. - # After 30 days, the service will be permanently deleted. - # Operation + # Deletes a managed service. This method will change the service to the `Soft- + # Delete` state for 30 days. Within this period, service producers may call + # UndeleteService to restore the service. After 30 days, the service will be + # permanently deleted. Operation # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -210,10 +198,9 @@ module Google execute_or_queue_command(command, &block) end - # Disables a service for a project, so it can no longer be - # be used for the project. It prevents accidental usage that may cause - # unexpected billing charges or security leaks. - # Operation + # Disables a service for a project, so it can no longer be be used for the + # project. It prevents accidental usage that may cause unexpected billing + # charges or security leaks. Operation # @param [String] service_name # Required. Name of the service to disable. Specifying an unknown service name # will cause the request to fail. @@ -247,15 +234,12 @@ module Google execute_or_queue_command(command, &block) end - # Enables a service for a project, so it can be used - # for the project. See - # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for - # more information. - # Operation + # Enables a service for a project, so it can be used for the project. See [Cloud + # Auth Guide](https://cloud.google.com/docs/authentication) for more information. + # Operation # @param [String] service_name # Required. Name of the service to enable. Specifying an unknown service name - # will - # cause the request to fail. + # will cause the request to fail. # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -286,16 +270,15 @@ module Google execute_or_queue_command(command, &block) end - # Generates and returns a report (errors, warnings and changes from - # existing configurations) associated with - # GenerateConfigReportRequest.new_value - # If GenerateConfigReportRequest.old_value is specified, + # Generates and returns a report (errors, warnings and changes from existing + # configurations) associated with GenerateConfigReportRequest.new_value If + # GenerateConfigReportRequest.old_value is specified, # GenerateConfigReportRequest will contain a single ChangeReport based on the # comparison between GenerateConfigReportRequest.new_value and - # GenerateConfigReportRequest.old_value. - # If GenerateConfigReportRequest.old_value is not specified, this method - # will compare GenerateConfigReportRequest.new_value with the last pushed - # service configuration. + # GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest. + # old_value is not specified, this method will compare + # GenerateConfigReportRequest.new_value with the last pushed service + # configuration. # @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -328,9 +311,8 @@ module Google # Gets a managed service. Authentication is required unless the service is # public. # @param [String] service_name - # Required. The name of the service. See the `ServiceManager` overview for - # naming - # requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the `ServiceManager` overview for + # naming requirements. For example: `example.googleapis.com`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -360,16 +342,13 @@ module Google # Gets a service configuration (version) for a managed service. # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [String] config_id - # Required. The id of the service configuration resource. - # This field must be specified for the server to return all fields, including - # `SourceInfo`. + # Required. The id of the service configuration resource. This field must be + # specified for the server to return all fields, including `SourceInfo`. # @param [String] view - # Specifies which parts of the Service Config should be returned in the - # response. + # Specifies which parts of the Service Config should be returned in the response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -399,12 +378,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -435,24 +413,19 @@ module Google execute_or_queue_command(command, &block) end - # Lists managed services. - # Returns all public services. For authenticated users, also returns all - # services the calling user has "servicemanagement.services.get" permission - # for. - # **BETA:** If the caller specifies the `consumer_id`, it returns only the - # services enabled on the consumer. The `consumer_id` must have the format - # of "project:`PROJECT-ID`". + # Lists managed services. Returns all public services. For authenticated users, + # also returns all services the calling user has "servicemanagement.services.get" + # permission for. **BETA:** If the caller specifies the `consumer_id`, it + # returns only the services enabled on the consumer. The `consumer_id` must have + # the format of "project:`PROJECT-ID`". # @param [String] consumer_id - # Include services consumed by the specified consumer. - # The Google Service Management implementation accepts the following - # forms: - # - project: + # Include services consumed by the specified consumer. The Google Service + # Management implementation accepts the following forms: - project: # @param [Fixnum] page_size - # The max number of items to include in the response list. Page size is 50 - # if not specified. Maximum value is 100. + # The max number of items to include in the response list. Page size is 50 if + # not specified. Maximum value is 100. # @param [String] page_token - # Token identifying which result to start with; returned by a previous list - # call. + # Token identifying which result to start with; returned by a previous list call. # @param [String] producer_project_id # Include services produced by the specified project. # @param [String] fields @@ -486,11 +459,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -521,15 +494,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -560,15 +532,13 @@ module Google execute_or_queue_command(command, &block) end - # Revives a previously deleted managed service. The method restores the - # service using the configuration at the time the service was deleted. - # The target service must exist and must have been deleted within the - # last 30 days. - # Operation + # Revives a previously deleted managed service. The method restores the service + # using the configuration at the time the service was deleted. The target + # service must exist and must have been deleted within the last 30 days. + # Operation # @param [String] service_name # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -596,17 +566,14 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new service configuration (version) for a managed service. - # This method only stores the service configuration. To roll out the service - # configuration to backend systems please call - # CreateServiceRollout. - # Only the 100 most recent service configurations and ones referenced by - # existing rollouts are kept for each service. The rest will be deleted - # eventually. + # Creates a new service configuration (version) for a managed service. This + # method only stores the service configuration. To roll out the service + # configuration to backend systems please call CreateServiceRollout. Only the + # 100 most recent service configurations and ones referenced by existing + # rollouts are kept for each service. The rest will be deleted eventually. # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [Google::Apis::ServicemanagementV1::Service] service_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -639,16 +606,13 @@ module Google # Gets a service configuration (version) for a managed service. # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [String] config_id - # Required. The id of the service configuration resource. - # This field must be specified for the server to return all fields, including - # `SourceInfo`. + # Required. The id of the service configuration resource. This field must be + # specified for the server to return all fields, including `SourceInfo`. # @param [String] view - # Specifies which parts of the Service Config should be returned in the - # response. + # Specifies which parts of the Service Config should be returned in the response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -678,15 +642,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists the history of the service configuration for a managed service, - # from the newest to the oldest. + # Lists the history of the service configuration for a managed service, from the + # newest to the oldest. # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [Fixnum] page_size - # The max number of items to include in the response list. Page size is 50 - # if not specified. Maximum value is 100. + # The max number of items to include in the response list. Page size is 50 if + # not specified. Maximum value is 100. # @param [String] page_token # The token of the page to retrieve. # @param [String] fields @@ -718,21 +681,16 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new service configuration (version) for a managed service based - # on - # user-supplied configuration source files (for example: OpenAPI - # Specification). This method stores the source configurations as well as the - # generated service configuration. To rollout the service configuration to - # other services, - # please call CreateServiceRollout. - # Only the 100 most recent configuration sources and ones referenced by - # existing service configurtions are kept for each service. The rest will be - # deleted eventually. - # Operation + # Creates a new service configuration (version) for a managed service based on + # user-supplied configuration source files (for example: OpenAPI Specification). + # This method stores the source configurations as well as the generated service + # configuration. To rollout the service configuration to other services, please + # call CreateServiceRollout. Only the 100 most recent configuration sources and + # ones referenced by existing service configurtions are kept for each service. + # The rest will be deleted eventually. Operation # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -763,12 +721,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -800,11 +757,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -835,15 +792,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # 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. + # Returns permissions that a caller has on the specified resource. 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. + # 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::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -874,21 +830,18 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new service configuration rollout. Based on rollout, the - # Google Service Management will roll out the service configurations to - # different backend services. For example, the logging configuration will be - # pushed to Google Cloud Logging. - # Please note that any previous pending and running Rollouts and associated - # Operations will be automatically cancelled so that the latest Rollout will - # not be blocked by previous Rollouts. - # Only the 100 most recent (in any state) and the last 10 successful (if not - # already part of the set of 100 most recent) rollouts are kept for each - # service. The rest will be deleted eventually. - # Operation + # Creates a new service configuration rollout. Based on rollout, the Google + # Service Management will roll out the service configurations to different + # backend services. For example, the logging configuration will be pushed to + # Google Cloud Logging. Please note that any previous pending and running + # Rollouts and associated Operations will be automatically cancelled so that the + # latest Rollout will not be blocked by previous Rollouts. Only the 100 most + # recent (in any state) and the last 10 successful (if not already part of the + # set of 100 most recent) rollouts are kept for each service. The rest will be + # deleted eventually. Operation # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -921,9 +874,8 @@ module Google # Gets a service configuration rollout. # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [String] rollout_id # Required. The id of the rollout resource. # @param [String] fields @@ -954,24 +906,21 @@ module Google execute_or_queue_command(command, &block) end - # Lists the history of the service configuration rollouts for a managed - # service, from the newest to the oldest. + # Lists the history of the service configuration rollouts for a managed service, + # from the newest to the oldest. # @param [String] service_name - # Required. The name of the service. See the [overview](/service-management/ - # overview) - # for naming requirements. For example: `example.googleapis.com`. + # Required. The name of the service. See the [overview](/service-management/ + # overview) for naming requirements. For example: `example.googleapis.com`. # @param [String] filter - # Required. Use `filter` to return subset of rollouts. - # The following filters are supported: - # -- To limit the results to only those in - # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', - # use filter='status=SUCCESS' - # -- To limit the results to those in - # [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' - # or 'FAILED', use filter='status=CANCELLED OR status=FAILED' + # Required. Use `filter` to return subset of rollouts. The following filters are + # supported: -- To limit the results to only those in [status](google.api. + # servicemanagement.v1.RolloutStatus) 'SUCCESS', use filter='status=SUCCESS' -- + # To limit the results to those in [status](google.api.servicemanagement.v1. + # RolloutStatus) 'CANCELLED' or 'FAILED', use filter='status=CANCELLED OR status= + # FAILED' # @param [Fixnum] page_size - # The max number of items to include in the response list. Page size is 50 - # if not specified. Maximum value is 100. + # The max number of items to include in the response list. Page size is 50 if + # not specified. Maximum value is 100. # @param [String] page_token # The token of the page to retrieve. # @param [String] fields diff --git a/generated/google/apis/storage_v1beta2.rb b/generated/google/apis/storage_v1beta2.rb deleted file mode 100644 index 3fe6673b5..000000000 --- a/generated/google/apis/storage_v1beta2.rb +++ /dev/null @@ -1,40 +0,0 @@ -# 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/storage_v1beta2/service.rb' -require 'google/apis/storage_v1beta2/classes.rb' -require 'google/apis/storage_v1beta2/representations.rb' - -module Google - module Apis - # Cloud Storage JSON API - # - # Lets you store and retrieve potentially-large, immutable data objects. - # - # @see https://developers.google.com/storage/docs/json_api/ - module StorageV1beta2 - VERSION = 'V1beta2' - REVISION = '20191127' - - # Manage your data and permissions in Google Cloud Storage - AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' - - # View your data in Google Cloud Storage - AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only' - - # Manage your data in Google Cloud Storage - AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write' - end - end -end diff --git a/generated/google/apis/storage_v1beta2/classes.rb b/generated/google/apis/storage_v1beta2/classes.rb deleted file mode 100644 index 1ee37f2b6..000000000 --- a/generated/google/apis/storage_v1beta2/classes.rb +++ /dev/null @@ -1,1047 +0,0 @@ -# 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 StorageV1beta2 - - # A bucket. - class Bucket - include Google::Apis::Core::Hashable - - # Access controls on the bucket. - # Corresponds to the JSON property `acl` - # @return [Array] - attr_accessor :acl - - # The bucket's Cross-Origin Resource Sharing (CORS) configuration. - # Corresponds to the JSON property `cors` - # @return [Array] - attr_accessor :cors - - # Default access controls to apply to new objects when no ACL is provided. - # Corresponds to the JSON property `defaultObjectAcl` - # @return [Array] - attr_accessor :default_object_acl - - # HTTP 1.1 Entity tag for the bucket. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ID of the bucket. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The kind of item this is. For buckets, this is always storage#bucket. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The bucket's lifecycle configuration. See object lifecycle management for more - # information. - # Corresponds to the JSON property `lifecycle` - # @return [Google::Apis::StorageV1beta2::Bucket::Lifecycle] - attr_accessor :lifecycle - - # The location of the bucket. Object data for objects in the bucket resides in - # physical storage within this region. Typical values are US and EU. Defaults to - # US. See the developer's guide for the authoritative list. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The bucket's logging configuration, which defines the destination bucket and - # optional name prefix for the current bucket's logs. - # Corresponds to the JSON property `logging` - # @return [Google::Apis::StorageV1beta2::Bucket::Logging] - attr_accessor :logging - - # The metadata generation of this bucket. - # Corresponds to the JSON property `metageneration` - # @return [Fixnum] - attr_accessor :metageneration - - # The name of the bucket. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The owner of the bucket. This is always the project team's owner group. - # Corresponds to the JSON property `owner` - # @return [Google::Apis::StorageV1beta2::Bucket::Owner] - attr_accessor :owner - - # The URI of this bucket. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # The bucket's storage class. This defines how objects in the bucket are stored - # and determines the SLA and the cost of storage. Typical values are STANDARD - # and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's - # guide for the authoritative list. - # Corresponds to the JSON property `storageClass` - # @return [String] - attr_accessor :storage_class - - # Creation time of the bucket in RFC 3339 format. - # Corresponds to the JSON property `timeCreated` - # @return [DateTime] - attr_accessor :time_created - - # The bucket's versioning configuration. - # Corresponds to the JSON property `versioning` - # @return [Google::Apis::StorageV1beta2::Bucket::Versioning] - attr_accessor :versioning - - # The bucket's website configuration. - # Corresponds to the JSON property `website` - # @return [Google::Apis::StorageV1beta2::Bucket::Website] - attr_accessor :website - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @acl = args[:acl] if args.key?(:acl) - @cors = args[:cors] if args.key?(:cors) - @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl) - @etag = args[:etag] if args.key?(:etag) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @lifecycle = args[:lifecycle] if args.key?(:lifecycle) - @location = args[:location] if args.key?(:location) - @logging = args[:logging] if args.key?(:logging) - @metageneration = args[:metageneration] if args.key?(:metageneration) - @name = args[:name] if args.key?(:name) - @owner = args[:owner] if args.key?(:owner) - @self_link = args[:self_link] if args.key?(:self_link) - @storage_class = args[:storage_class] if args.key?(:storage_class) - @time_created = args[:time_created] if args.key?(:time_created) - @versioning = args[:versioning] if args.key?(:versioning) - @website = args[:website] if args.key?(:website) - end - - # - class Cor - include Google::Apis::Core::Hashable - - # The value, in seconds, to return in the Access-Control-Max-Age header used in - # preflight responses. - # Corresponds to the JSON property `maxAgeSeconds` - # @return [Fixnum] - attr_accessor :max_age_seconds - - # The list of HTTP methods on which to include CORS response headers: GET, - # OPTIONS, POST, etc. Note, "*" is permitted in the list of methods, and means " - # any method". - # Corresponds to the JSON property `method` - # @return [Array] - attr_accessor :method_prop - - # The list of Origins eligible to receive CORS response headers. Note: "*" is - # permitted in the list of origins, and means "any Origin". - # Corresponds to the JSON property `origin` - # @return [Array] - attr_accessor :origin - - # The list of HTTP headers other than the simple response headers to give - # permission for the user-agent to share across domains. - # Corresponds to the JSON property `responseHeader` - # @return [Array] - attr_accessor :response_header - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @max_age_seconds = args[:max_age_seconds] if args.key?(:max_age_seconds) - @method_prop = args[:method_prop] if args.key?(:method_prop) - @origin = args[:origin] if args.key?(:origin) - @response_header = args[:response_header] if args.key?(:response_header) - end - end - - # The bucket's lifecycle configuration. See object lifecycle management for more - # information. - class Lifecycle - include Google::Apis::Core::Hashable - - # A lifecycle management rule, which is made of an action to take and the - # condition(s) under which the action will be taken. - # Corresponds to the JSON property `rule` - # @return [Array] - attr_accessor :rule - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @rule = args[:rule] if args.key?(:rule) - end - - # - class Rule - include Google::Apis::Core::Hashable - - # The action to take. - # Corresponds to the JSON property `action` - # @return [Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action] - attr_accessor :action - - # The condition(s) under which the action will be taken. - # Corresponds to the JSON property `condition` - # @return [Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Condition] - attr_accessor :condition - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @action = args[:action] if args.key?(:action) - @condition = args[:condition] if args.key?(:condition) - end - - # The action to take. - class Action - include Google::Apis::Core::Hashable - - # Type of the action. Currently only Delete is supported. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @type = args[:type] if args.key?(:type) - end - end - - # The condition(s) under which the action will be taken. - class Condition - include Google::Apis::Core::Hashable - - # Age of an object (in days). This condition is satisfied when an object reaches - # the specified age. - # Corresponds to the JSON property `age` - # @return [Fixnum] - attr_accessor :age - - # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This - # condition is satisfied when an object is created before midnight of the - # specified date in UTC. - # Corresponds to the JSON property `createdBefore` - # @return [Date] - attr_accessor :created_before - - # Relevant only for versioned objects. If the value is true, this condition - # matches live objects; if the value is false, it matches archived objects. - # Corresponds to the JSON property `isLive` - # @return [Boolean] - attr_accessor :is_live - alias_method :is_live?, :is_live - - # Relevant only for versioned objects. If the value is N, this condition is - # satisfied when there are at least N versions (including the live version) - # newer than this version of the object. - # Corresponds to the JSON property `numNewerVersions` - # @return [Fixnum] - attr_accessor :num_newer_versions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @age = args[:age] if args.key?(:age) - @created_before = args[:created_before] if args.key?(:created_before) - @is_live = args[:is_live] if args.key?(:is_live) - @num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions) - end - end - end - end - - # The bucket's logging configuration, which defines the destination bucket and - # optional name prefix for the current bucket's logs. - class Logging - include Google::Apis::Core::Hashable - - # The destination bucket where the current bucket's logs should be placed. - # Corresponds to the JSON property `logBucket` - # @return [String] - attr_accessor :log_bucket - - # A prefix for log object names. - # Corresponds to the JSON property `logObjectPrefix` - # @return [String] - attr_accessor :log_object_prefix - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_bucket = args[:log_bucket] if args.key?(:log_bucket) - @log_object_prefix = args[:log_object_prefix] if args.key?(:log_object_prefix) - end - end - - # The owner of the bucket. This is always the project team's owner group. - class Owner - include Google::Apis::Core::Hashable - - # The entity, in the form group-groupId. - # Corresponds to the JSON property `entity` - # @return [String] - attr_accessor :entity - - # The ID for the entity. - # Corresponds to the JSON property `entityId` - # @return [String] - attr_accessor :entity_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @entity = args[:entity] if args.key?(:entity) - @entity_id = args[:entity_id] if args.key?(:entity_id) - end - end - - # The bucket's versioning configuration. - class Versioning - include Google::Apis::Core::Hashable - - # While set to true, versioning is fully enabled for this bucket. - # Corresponds to the JSON property `enabled` - # @return [Boolean] - attr_accessor :enabled - alias_method :enabled?, :enabled - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @enabled = args[:enabled] if args.key?(:enabled) - end - end - - # The bucket's website configuration. - class Website - include Google::Apis::Core::Hashable - - # Behaves as the bucket's directory index where missing objects are treated as - # potential directories. - # Corresponds to the JSON property `mainPageSuffix` - # @return [String] - attr_accessor :main_page_suffix - - # The custom object to return when a requested resource is not found. - # Corresponds to the JSON property `notFoundPage` - # @return [String] - attr_accessor :not_found_page - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @main_page_suffix = args[:main_page_suffix] if args.key?(:main_page_suffix) - @not_found_page = args[:not_found_page] if args.key?(:not_found_page) - end - end - end - - # An access-control entry. - class BucketAccessControl - include Google::Apis::Core::Hashable - - # The name of the bucket. - # Corresponds to the JSON property `bucket` - # @return [String] - attr_accessor :bucket - - # The domain associated with the entity, if any. - # Corresponds to the JSON property `domain` - # @return [String] - attr_accessor :domain - - # The email address associated with the entity, if any. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # The entity holding the permission, in one of the following forms: - # - user-userId - # - user-email - # - group-groupId - # - group-email - # - domain-domain - # - allUsers - # - allAuthenticatedUsers Examples: - # - The user liz@example.com would be user-liz@example.com. - # - The group example@googlegroups.com would be group-example@googlegroups.com. - # - To refer to all members of the Google Apps for Business domain example.com, - # the entity would be domain-example.com. - # Corresponds to the JSON property `entity` - # @return [String] - attr_accessor :entity - - # The ID for the entity, if any. - # Corresponds to the JSON property `entityId` - # @return [String] - attr_accessor :entity_id - - # HTTP 1.1 Entity tag for the access-control entry. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ID of the access-control entry. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The kind of item this is. For bucket access control entries, this is always - # storage#bucketAccessControl. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The access permission for the entity. Can be READER, WRITER, or OWNER. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - # The link to this access-control entry. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bucket = args[:bucket] if args.key?(:bucket) - @domain = args[:domain] if args.key?(:domain) - @email = args[:email] if args.key?(:email) - @entity = args[:entity] if args.key?(:entity) - @entity_id = args[:entity_id] if args.key?(:entity_id) - @etag = args[:etag] if args.key?(:etag) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @role = args[:role] if args.key?(:role) - @self_link = args[:self_link] if args.key?(:self_link) - end - end - - # An access-control list. - class BucketAccessControls - include Google::Apis::Core::Hashable - - # The list of items. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of item this is. For lists of bucket access control entries, this is - # always storage#bucketAccessControls. - # 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) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # A list of buckets. - class Buckets - include Google::Apis::Core::Hashable - - # The list of items. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of item this is. For lists of buckets, this is always storage#buckets. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The continuation token, used to page through large result sets. Provide this - # value in a subsequent request to return the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - end - end - - # An notification channel used to watch for resource changes. - class Channel - include Google::Apis::Core::Hashable - - # The address where notifications are delivered for this channel. - # Corresponds to the JSON property `address` - # @return [String] - attr_accessor :address - - # Date and time of notification channel expiration, expressed as a Unix - # timestamp, in milliseconds. Optional. - # Corresponds to the JSON property `expiration` - # @return [Fixnum] - attr_accessor :expiration - - # A UUID or similar unique string that identifies this channel. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Identifies this as a notification channel used to watch for changes to a - # resource, which is "api#channel". - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Additional parameters controlling delivery channel behavior. Optional. - # Corresponds to the JSON property `params` - # @return [Hash] - attr_accessor :params - - # A Boolean value to indicate whether payload is wanted. Optional. - # Corresponds to the JSON property `payload` - # @return [Boolean] - attr_accessor :payload - alias_method :payload?, :payload - - # An opaque ID that identifies the resource being watched on this channel. - # Stable across different API versions. - # Corresponds to the JSON property `resourceId` - # @return [String] - attr_accessor :resource_id - - # A version-specific identifier for the watched resource. - # Corresponds to the JSON property `resourceUri` - # @return [String] - attr_accessor :resource_uri - - # An arbitrary string delivered to the target address with each notification - # delivered over this channel. Optional. - # Corresponds to the JSON property `token` - # @return [String] - attr_accessor :token - - # The type of delivery mechanism used for this channel. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @address = args[:address] if args.key?(:address) - @expiration = args[:expiration] if args.key?(:expiration) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @params = args[:params] if args.key?(:params) - @payload = args[:payload] if args.key?(:payload) - @resource_id = args[:resource_id] if args.key?(:resource_id) - @resource_uri = args[:resource_uri] if args.key?(:resource_uri) - @token = args[:token] if args.key?(:token) - @type = args[:type] if args.key?(:type) - end - end - - # A Compose request. - class ComposeRequest - include Google::Apis::Core::Hashable - - # An object. - # Corresponds to the JSON property `destination` - # @return [Google::Apis::StorageV1beta2::Object] - attr_accessor :destination - - # The kind of item this is. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The list of source objects that will be concatenated into a single object. - # Corresponds to the JSON property `sourceObjects` - # @return [Array] - attr_accessor :source_objects - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @destination = args[:destination] if args.key?(:destination) - @kind = args[:kind] if args.key?(:kind) - @source_objects = args[:source_objects] if args.key?(:source_objects) - end - - # - class SourceObject - include Google::Apis::Core::Hashable - - # The generation of this object to use as the source. - # Corresponds to the JSON property `generation` - # @return [Fixnum] - attr_accessor :generation - - # The source object's name. All source objects must reside in the same bucket. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Conditions that must be met for this operation to execute. - # Corresponds to the JSON property `objectPreconditions` - # @return [Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions] - attr_accessor :object_preconditions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @generation = args[:generation] if args.key?(:generation) - @name = args[:name] if args.key?(:name) - @object_preconditions = args[:object_preconditions] if args.key?(:object_preconditions) - end - - # Conditions that must be met for this operation to execute. - class ObjectPreconditions - include Google::Apis::Core::Hashable - - # Only perform the composition if the generation of the source object that would - # be used matches this value. If this value and a generation are both specified, - # they must be the same value or the call will fail. - # Corresponds to the JSON property `ifGenerationMatch` - # @return [Fixnum] - attr_accessor :if_generation_match - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @if_generation_match = args[:if_generation_match] if args.key?(:if_generation_match) - end - end - end - end - - # An object. - class Object - include Google::Apis::Core::Hashable - - # Access controls on the object. - # Corresponds to the JSON property `acl` - # @return [Array] - attr_accessor :acl - - # The bucket containing this object. - # Corresponds to the JSON property `bucket` - # @return [String] - attr_accessor :bucket - - # Cache-Control directive for the object data. - # Corresponds to the JSON property `cacheControl` - # @return [String] - attr_accessor :cache_control - - # Number of underlying components that make up this object. Components are - # accumulated by compose operations and are limited to a count of 32. - # Corresponds to the JSON property `componentCount` - # @return [Fixnum] - attr_accessor :component_count - - # Content-Disposition of the object data. - # Corresponds to the JSON property `contentDisposition` - # @return [String] - attr_accessor :content_disposition - - # Content-Encoding of the object data. - # Corresponds to the JSON property `contentEncoding` - # @return [String] - attr_accessor :content_encoding - - # Content-Language of the object data. - # Corresponds to the JSON property `contentLanguage` - # @return [String] - attr_accessor :content_language - - # Content-Type of the object data. - # Corresponds to the JSON property `contentType` - # @return [String] - attr_accessor :content_type - - # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64. - # Corresponds to the JSON property `crc32c` - # @return [String] - attr_accessor :crc32c - - # HTTP 1.1 Entity tag for the object. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The content generation of this object. Used for object versioning. - # Corresponds to the JSON property `generation` - # @return [Fixnum] - attr_accessor :generation - - # The ID of the object. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The kind of item this is. For objects, this is always storage#object. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # MD5 hash of the data; encoded using base64. - # Corresponds to the JSON property `md5Hash` - # @return [String] - attr_accessor :md5_hash - - # Media download link. - # Corresponds to the JSON property `mediaLink` - # @return [String] - attr_accessor :media_link - - # User-provided metadata, in key/value pairs. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The generation of the metadata for this object at this generation. Used for - # metadata versioning. Has no meaning outside of the context of this generation. - # Corresponds to the JSON property `metageneration` - # @return [Fixnum] - attr_accessor :metageneration - - # The name of this object. Required if not specified by URL parameter. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The owner of the object. This will always be the uploader of the object. - # Corresponds to the JSON property `owner` - # @return [Google::Apis::StorageV1beta2::Object::Owner] - attr_accessor :owner - - # The link to this object. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - # Content-Length of the data in bytes. - # Corresponds to the JSON property `size` - # @return [Fixnum] - attr_accessor :size - - # Storage class of the object. - # Corresponds to the JSON property `storageClass` - # @return [String] - attr_accessor :storage_class - - # Deletion time of the object in RFC 3339 format. Will be returned if and only - # if this version of the object has been deleted. - # Corresponds to the JSON property `timeDeleted` - # @return [DateTime] - attr_accessor :time_deleted - - # Modification time of the object metadata in RFC 3339 format. - # Corresponds to the JSON property `updated` - # @return [DateTime] - attr_accessor :updated - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @acl = args[:acl] if args.key?(:acl) - @bucket = args[:bucket] if args.key?(:bucket) - @cache_control = args[:cache_control] if args.key?(:cache_control) - @component_count = args[:component_count] if args.key?(:component_count) - @content_disposition = args[:content_disposition] if args.key?(:content_disposition) - @content_encoding = args[:content_encoding] if args.key?(:content_encoding) - @content_language = args[:content_language] if args.key?(:content_language) - @content_type = args[:content_type] if args.key?(:content_type) - @crc32c = args[:crc32c] if args.key?(:crc32c) - @etag = args[:etag] if args.key?(:etag) - @generation = args[:generation] if args.key?(:generation) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @md5_hash = args[:md5_hash] if args.key?(:md5_hash) - @media_link = args[:media_link] if args.key?(:media_link) - @metadata = args[:metadata] if args.key?(:metadata) - @metageneration = args[:metageneration] if args.key?(:metageneration) - @name = args[:name] if args.key?(:name) - @owner = args[:owner] if args.key?(:owner) - @self_link = args[:self_link] if args.key?(:self_link) - @size = args[:size] if args.key?(:size) - @storage_class = args[:storage_class] if args.key?(:storage_class) - @time_deleted = args[:time_deleted] if args.key?(:time_deleted) - @updated = args[:updated] if args.key?(:updated) - end - - # The owner of the object. This will always be the uploader of the object. - class Owner - include Google::Apis::Core::Hashable - - # The entity, in the form user-userId. - # Corresponds to the JSON property `entity` - # @return [String] - attr_accessor :entity - - # The ID for the entity. - # Corresponds to the JSON property `entityId` - # @return [String] - attr_accessor :entity_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @entity = args[:entity] if args.key?(:entity) - @entity_id = args[:entity_id] if args.key?(:entity_id) - end - end - end - - # An access-control entry. - class ObjectAccessControl - include Google::Apis::Core::Hashable - - # The name of the bucket. - # Corresponds to the JSON property `bucket` - # @return [String] - attr_accessor :bucket - - # The domain associated with the entity, if any. - # Corresponds to the JSON property `domain` - # @return [String] - attr_accessor :domain - - # The email address associated with the entity, if any. - # Corresponds to the JSON property `email` - # @return [String] - attr_accessor :email - - # The entity holding the permission, in one of the following forms: - # - user-userId - # - user-email - # - group-groupId - # - group-email - # - domain-domain - # - allUsers - # - allAuthenticatedUsers Examples: - # - The user liz@example.com would be user-liz@example.com. - # - The group example@googlegroups.com would be group-example@googlegroups.com. - # - To refer to all members of the Google Apps for Business domain example.com, - # the entity would be domain-example.com. - # Corresponds to the JSON property `entity` - # @return [String] - attr_accessor :entity - - # The ID for the entity, if any. - # Corresponds to the JSON property `entityId` - # @return [String] - attr_accessor :entity_id - - # HTTP 1.1 Entity tag for the access-control entry. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The content generation of the object. - # Corresponds to the JSON property `generation` - # @return [Fixnum] - attr_accessor :generation - - # The ID of the access-control entry. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The kind of item this is. For object access control entries, this is always - # storage#objectAccessControl. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The name of the object. - # Corresponds to the JSON property `object` - # @return [String] - attr_accessor :object - - # The access permission for the entity. Can be READER or OWNER. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - # The link to this access-control entry. - # Corresponds to the JSON property `selfLink` - # @return [String] - attr_accessor :self_link - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bucket = args[:bucket] if args.key?(:bucket) - @domain = args[:domain] if args.key?(:domain) - @email = args[:email] if args.key?(:email) - @entity = args[:entity] if args.key?(:entity) - @entity_id = args[:entity_id] if args.key?(:entity_id) - @etag = args[:etag] if args.key?(:etag) - @generation = args[:generation] if args.key?(:generation) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @object = args[:object] if args.key?(:object) - @role = args[:role] if args.key?(:role) - @self_link = args[:self_link] if args.key?(:self_link) - end - end - - # An access-control list. - class ObjectAccessControls - include Google::Apis::Core::Hashable - - # The list of items. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of item this is. For lists of object access control entries, this is - # always storage#objectAccessControls. - # 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) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # A list of objects. - class Objects - include Google::Apis::Core::Hashable - - # The list of items. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The kind of item this is. For lists of objects, this is always storage#objects. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The continuation token, used to page through large result sets. Provide this - # value in a subsequent request to return the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The list of prefixes of objects matching-but-not-listed up to and including - # the requested delimiter. - # Corresponds to the JSON property `prefixes` - # @return [Array] - attr_accessor :prefixes - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @prefixes = args[:prefixes] if args.key?(:prefixes) - end - end - end - end -end diff --git a/generated/google/apis/storage_v1beta2/representations.rb b/generated/google/apis/storage_v1beta2/representations.rb deleted file mode 100644 index e1464b0e9..000000000 --- a/generated/google/apis/storage_v1beta2/representations.rb +++ /dev/null @@ -1,425 +0,0 @@ -# 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 StorageV1beta2 - - class Bucket - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Cor - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Lifecycle - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Rule - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Action - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Condition - 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 Logging - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Owner - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Versioning - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Website - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class BucketAccessControl - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BucketAccessControls - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Buckets - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Channel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ComposeRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - class SourceObject - class Representation < Google::Apis::Core::JsonRepresentation; end - - class ObjectPreconditions - 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 Object - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Owner - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class ObjectAccessControl - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ObjectAccessControls - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Objects - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Bucket - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :acl, as: 'acl', class: Google::Apis::StorageV1beta2::BucketAccessControl, decorator: Google::Apis::StorageV1beta2::BucketAccessControl::Representation - - collection :cors, as: 'cors', class: Google::Apis::StorageV1beta2::Bucket::Cor, decorator: Google::Apis::StorageV1beta2::Bucket::Cor::Representation - - collection :default_object_acl, as: 'defaultObjectAcl', class: Google::Apis::StorageV1beta2::ObjectAccessControl, decorator: Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - - property :etag, as: 'etag' - property :id, as: 'id' - property :kind, as: 'kind' - property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Representation - - property :location, as: 'location' - property :logging, as: 'logging', class: Google::Apis::StorageV1beta2::Bucket::Logging, decorator: Google::Apis::StorageV1beta2::Bucket::Logging::Representation - - property :metageneration, :numeric_string => true, as: 'metageneration' - property :name, as: 'name' - property :owner, as: 'owner', class: Google::Apis::StorageV1beta2::Bucket::Owner, decorator: Google::Apis::StorageV1beta2::Bucket::Owner::Representation - - property :self_link, as: 'selfLink' - property :storage_class, as: 'storageClass' - property :time_created, as: 'timeCreated', type: DateTime - - property :versioning, as: 'versioning', class: Google::Apis::StorageV1beta2::Bucket::Versioning, decorator: Google::Apis::StorageV1beta2::Bucket::Versioning::Representation - - property :website, as: 'website', class: Google::Apis::StorageV1beta2::Bucket::Website, decorator: Google::Apis::StorageV1beta2::Bucket::Website::Representation - - end - - class Cor - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max_age_seconds, as: 'maxAgeSeconds' - collection :method_prop, as: 'method' - collection :origin, as: 'origin' - collection :response_header, as: 'responseHeader' - end - end - - class Lifecycle - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :rule, as: 'rule', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Representation - - end - - class Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :action, as: 'action', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Action::Representation - - property :condition, as: 'condition', class: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Condition, decorator: Google::Apis::StorageV1beta2::Bucket::Lifecycle::Rule::Condition::Representation - - end - - class Action - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :type, as: 'type' - end - end - - class Condition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :age, as: 'age' - property :created_before, as: 'createdBefore', type: Date - - property :is_live, as: 'isLive' - property :num_newer_versions, as: 'numNewerVersions' - end - end - end - end - - class Logging - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :log_bucket, as: 'logBucket' - property :log_object_prefix, as: 'logObjectPrefix' - end - end - - class Owner - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :entity, as: 'entity' - property :entity_id, as: 'entityId' - end - end - - class Versioning - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :enabled, as: 'enabled' - end - end - - class Website - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :main_page_suffix, as: 'mainPageSuffix' - property :not_found_page, as: 'notFoundPage' - end - end - end - - class BucketAccessControl - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bucket, as: 'bucket' - property :domain, as: 'domain' - property :email, as: 'email' - property :entity, as: 'entity' - property :entity_id, as: 'entityId' - property :etag, as: 'etag' - property :id, as: 'id' - property :kind, as: 'kind' - property :role, as: 'role' - property :self_link, as: 'selfLink' - end - end - - class BucketAccessControls - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::StorageV1beta2::BucketAccessControl, decorator: Google::Apis::StorageV1beta2::BucketAccessControl::Representation - - property :kind, as: 'kind' - end - end - - class Buckets - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::StorageV1beta2::Bucket, decorator: Google::Apis::StorageV1beta2::Bucket::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class Channel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :address, as: 'address' - property :expiration, :numeric_string => true, as: 'expiration' - property :id, as: 'id' - property :kind, as: 'kind' - hash :params, as: 'params' - property :payload, as: 'payload' - property :resource_id, as: 'resourceId' - property :resource_uri, as: 'resourceUri' - property :token, as: 'token' - property :type, as: 'type' - end - end - - class ComposeRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :destination, as: 'destination', class: Google::Apis::StorageV1beta2::Object, decorator: Google::Apis::StorageV1beta2::Object::Representation - - property :kind, as: 'kind' - collection :source_objects, as: 'sourceObjects', class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject, decorator: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::Representation - - end - - class SourceObject - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :generation, :numeric_string => true, as: 'generation' - property :name, as: 'name' - property :object_preconditions, as: 'objectPreconditions', class: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions, decorator: Google::Apis::StorageV1beta2::ComposeRequest::SourceObject::ObjectPreconditions::Representation - - end - - class ObjectPreconditions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :if_generation_match, :numeric_string => true, as: 'ifGenerationMatch' - end - end - end - end - - class Object - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :acl, as: 'acl', class: Google::Apis::StorageV1beta2::ObjectAccessControl, decorator: Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - - property :bucket, as: 'bucket' - property :cache_control, as: 'cacheControl' - property :component_count, as: 'componentCount' - property :content_disposition, as: 'contentDisposition' - property :content_encoding, as: 'contentEncoding' - property :content_language, as: 'contentLanguage' - property :content_type, as: 'contentType' - property :crc32c, as: 'crc32c' - property :etag, as: 'etag' - property :generation, :numeric_string => true, as: 'generation' - property :id, as: 'id' - property :kind, as: 'kind' - property :md5_hash, as: 'md5Hash' - property :media_link, as: 'mediaLink' - hash :metadata, as: 'metadata' - property :metageneration, :numeric_string => true, as: 'metageneration' - property :name, as: 'name' - property :owner, as: 'owner', class: Google::Apis::StorageV1beta2::Object::Owner, decorator: Google::Apis::StorageV1beta2::Object::Owner::Representation - - property :self_link, as: 'selfLink' - property :size, :numeric_string => true, as: 'size' - property :storage_class, as: 'storageClass' - property :time_deleted, as: 'timeDeleted', type: DateTime - - property :updated, as: 'updated', type: DateTime - - end - - class Owner - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :entity, as: 'entity' - property :entity_id, as: 'entityId' - end - end - end - - class ObjectAccessControl - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :bucket, as: 'bucket' - property :domain, as: 'domain' - property :email, as: 'email' - property :entity, as: 'entity' - property :entity_id, as: 'entityId' - property :etag, as: 'etag' - property :generation, :numeric_string => true, as: 'generation' - property :id, as: 'id' - property :kind, as: 'kind' - property :object, as: 'object' - property :role, as: 'role' - property :self_link, as: 'selfLink' - end - end - - class ObjectAccessControls - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items' - property :kind, as: 'kind' - end - end - - class Objects - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::StorageV1beta2::Object, decorator: Google::Apis::StorageV1beta2::Object::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - collection :prefixes, as: 'prefixes' - end - end - end - end -end diff --git a/generated/google/apis/storage_v1beta2/service.rb b/generated/google/apis/storage_v1beta2/service.rb deleted file mode 100644 index 3743c3b02..000000000 --- a/generated/google/apis/storage_v1beta2/service.rb +++ /dev/null @@ -1,1667 +0,0 @@ -# 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 StorageV1beta2 - # Cloud Storage JSON API - # - # Lets you store and retrieve potentially-large, immutable data objects. - # - # @example - # require 'google/apis/storage_v1beta2' - # - # Storage = Google::Apis::StorageV1beta2 # Alias the module - # service = Storage::StorageService.new - # - # @see https://developers.google.com/storage/docs/json_api/ - class StorageService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://storage.googleapis.com/', 'storage/v1beta2/') - @batch_path = 'batch/storage/v1beta2' - end - - # Permanently deletes the ACL entry for the specified entity on the specified - # bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}/acl/{entity}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns the ACL entry for the specified entity on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @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::StorageV1beta2::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::BucketAccessControl] - # - # @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_bucket_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/acl/{entity}', options) - command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.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 ACL entry on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_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::StorageV1beta2::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::BucketAccessControl] - # - # @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_bucket_access_control(bucket, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b/{bucket}/acl', options) - command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation - command.request_object = bucket_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl - command.params['bucket'] = bucket unless bucket.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 ACL entries on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @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::StorageV1beta2::BucketAccessControls] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::BucketAccessControls] - # - # @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_bucket_access_controls(bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/acl', options) - command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControls::Representation - command.response_class = Google::Apis::StorageV1beta2::BucketAccessControls - command.params['bucket'] = bucket unless bucket.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 - - # Updates an ACL entry on the specified bucket. This method supports patch - # semantics. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_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::StorageV1beta2::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::BucketAccessControl] - # - # @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_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation - command.request_object = bucket_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.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 - - # Updates an ACL entry on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta2::BucketAccessControl] bucket_access_control_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::StorageV1beta2::BucketAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::BucketAccessControl] - # - # @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_bucket_access_control(bucket, entity, bucket_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'b/{bucket}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation - command.request_object = bucket_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::BucketAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::BucketAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.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 - - # Permanently deletes an empty bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Fixnum] if_metageneration_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration does not match the given value. - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.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 metadata for the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Fixnum] if_metageneration_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration does not match the given value. - # @param [String] projection - # Set of properties to return. Defaults to noAcl. - # @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::StorageV1beta2::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Bucket] - # - # @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_bucket(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}', options) - command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta2::Bucket - command.params['bucket'] = bucket unless bucket.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['projection'] = projection unless projection.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 bucket. - # @param [String] project - # A valid API project identifier. - # @param [Google::Apis::StorageV1beta2::Bucket] bucket_object - # @param [String] projection - # Set of properties to return. Defaults to noAcl, unless the bucket resource - # specifies acl or defaultObjectAcl properties, when it defaults to full. - # @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::StorageV1beta2::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Bucket] - # - # @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_bucket(project, bucket_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b', options) - command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation - command.request_object = bucket_object - command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta2::Bucket - command.query['project'] = project unless project.nil? - command.query['projection'] = projection unless projection.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 a list of buckets for a given project. - # @param [String] project - # A valid API project identifier. - # @param [Fixnum] max_results - # Maximum number of buckets to return. - # @param [String] page_token - # A previously-returned page token representing part of the larger set of - # results to view. - # @param [String] projection - # Set of properties to return. Defaults to noAcl. - # @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::StorageV1beta2::Buckets] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Buckets] - # - # @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_buckets(project, max_results: nil, page_token: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b', options) - command.response_representation = Google::Apis::StorageV1beta2::Buckets::Representation - command.response_class = Google::Apis::StorageV1beta2::Buckets - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['project'] = project unless project.nil? - command.query['projection'] = projection unless projection.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 - - # Updates a bucket. This method supports patch semantics. - # @param [String] bucket - # Name of a bucket. - # @param [Google::Apis::StorageV1beta2::Bucket] bucket_object - # @param [Fixnum] if_metageneration_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration does not match the given value. - # @param [String] projection - # Set of properties to return. Defaults to full. - # @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::StorageV1beta2::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Bucket] - # - # @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_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}', options) - command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation - command.request_object = bucket_object - command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta2::Bucket - command.params['bucket'] = bucket unless bucket.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['projection'] = projection unless projection.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 - - # Updates a bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Google::Apis::StorageV1beta2::Bucket] bucket_object - # @param [Fixnum] if_metageneration_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the return of the bucket metadata conditional on whether the bucket's - # current metageneration does not match the given value. - # @param [String] projection - # Set of properties to return. Defaults to full. - # @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::StorageV1beta2::Bucket] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Bucket] - # - # @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_bucket(bucket, bucket_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'b/{bucket}', options) - command.request_representation = Google::Apis::StorageV1beta2::Bucket::Representation - command.request_object = bucket_object - command.response_representation = Google::Apis::StorageV1beta2::Bucket::Representation - command.response_class = Google::Apis::StorageV1beta2::Bucket - command.params['bucket'] = bucket unless bucket.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['projection'] = projection unless projection.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 - - # Stop watching resources through this channel - # @param [Google::Apis::StorageV1beta2::Channel] channel_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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'channels/stop', options) - command.request_representation = Google::Apis::StorageV1beta2::Channel::Representation - command.request_object = channel_object - 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 - - # Permanently deletes the default object ACL entry for the specified entity on - # the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}/defaultObjectAcl/{entity}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns the default object ACL entry for the specified entity on the specified - # bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_default_object_access_control(bucket, entity, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl/{entity}', options) - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.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 default object ACL entry on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_default_object_access_control(bucket, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b/{bucket}/defaultObjectAcl', options) - command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.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 default object ACL entries on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [Fixnum] if_metageneration_match - # If present, only return default ACL listing if the bucket's current - # metageneration matches this value. - # @param [Fixnum] if_metageneration_not_match - # If present, only return default ACL listing if the bucket's current - # metageneration does not match the given value. - # @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::StorageV1beta2::ObjectAccessControls] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControls] - # - # @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_default_object_access_controls(bucket, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/defaultObjectAcl', options) - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControls::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControls - command.params['bucket'] = bucket unless bucket.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.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 - - # Updates a default object ACL entry on the specified bucket. This method - # supports patch semantics. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}/defaultObjectAcl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.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 - - # Updates a default object ACL entry on the specified bucket. - # @param [String] bucket - # Name of a bucket. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_default_object_access_control(bucket, entity, object_access_control_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'b/{bucket}/defaultObjectAcl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['entity'] = entity unless entity.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 - - # Permanently deletes the ACL entry for the specified entity on the specified - # object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['generation'] = generation unless generation.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Returns the ACL entry for the specified entity on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_object_access_control(bucket, object, entity, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['generation'] = generation unless generation.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 ACL entry on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_object_access_control(bucket, object, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b/{bucket}/o/{object}/acl', options) - command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['generation'] = generation unless generation.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 ACL entries on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @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::StorageV1beta2::ObjectAccessControls] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControls] - # - # @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_object_access_controls(bucket, object, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/o/{object}/acl', options) - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControls::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControls - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['generation'] = generation unless generation.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 - - # Updates an ACL entry on the specified object. This method supports patch - # semantics. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['generation'] = generation unless generation.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 - - # Updates an ACL entry on the specified object. - # @param [String] bucket - # Name of a bucket. - # @param [String] object - # Name of the object. - # @param [String] entity - # The entity holding the permission. Can be user-userId, user-emailAddress, - # group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. - # @param [Google::Apis::StorageV1beta2::ObjectAccessControl] object_access_control_object - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @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::StorageV1beta2::ObjectAccessControl] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::ObjectAccessControl] - # - # @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_object_access_control(bucket, object, entity, object_access_control_object = nil, generation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'b/{bucket}/o/{object}/acl/{entity}', options) - command.request_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.request_object = object_access_control_object - command.response_representation = Google::Apis::StorageV1beta2::ObjectAccessControl::Representation - command.response_class = Google::Apis::StorageV1beta2::ObjectAccessControl - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.params['entity'] = entity unless entity.nil? - command.query['generation'] = generation unless generation.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 - - # Concatenates a list of existing objects into a new object in the same bucket. - # @param [String] destination_bucket - # Name of the bucket containing the source objects. The destination object is - # stored in this bucket. - # @param [String] destination_object - # Name of the new object. - # @param [Google::Apis::StorageV1beta2::ComposeRequest] compose_request_object - # @param [Fixnum] if_generation_match - # Makes the operation conditional on whether the object's current generation - # matches the given value. - # @param [Fixnum] if_metageneration_match - # Makes the operation conditional on whether the object's current metageneration - # matches the given value. - # @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 [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Object] - # - # @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 compose_object(destination_bucket, destination_object, compose_request_object = nil, if_generation_match: nil, if_metageneration_match: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options) - else - command = make_download_command(:post, 'b/{destinationBucket}/o/{destinationObject}/compose', options) - command.download_dest = download_dest - end - command.request_representation = Google::Apis::StorageV1beta2::ComposeRequest::Representation - command.request_object = compose_request_object - command.response_representation = Google::Apis::StorageV1beta2::Object::Representation - command.response_class = Google::Apis::StorageV1beta2::Object - command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil? - command.params['destinationObject'] = destination_object unless destination_object.nil? - command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Copies an object to a destination in the same location. Optionally overrides - # metadata. - # @param [String] source_bucket - # Name of the bucket in which to find the source object. - # @param [String] source_object - # Name of the source object. - # @param [String] destination_bucket - # Name of the bucket in which to store the new object. Overrides the provided - # object metadata's bucket value, if any. - # @param [String] destination_object - # Name of the new object. Required when the object metadata is not otherwise - # provided. Overrides the object metadata's name value, if any. - # @param [Google::Apis::StorageV1beta2::Object] object_object - # @param [Fixnum] if_generation_match - # Makes the operation conditional on whether the destination object's current - # generation matches the given value. - # @param [Fixnum] if_generation_not_match - # Makes the operation conditional on whether the destination object's current - # generation does not match the given value. - # @param [Fixnum] if_metageneration_match - # Makes the operation conditional on whether the destination object's current - # metageneration matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the operation conditional on whether the destination object's current - # metageneration does not match the given value. - # @param [Fixnum] if_source_generation_match - # Makes the operation conditional on whether the source object's generation - # matches the given value. - # @param [Fixnum] if_source_generation_not_match - # Makes the operation conditional on whether the source object's generation does - # not match the given value. - # @param [Fixnum] if_source_metageneration_match - # Makes the operation conditional on whether the source object's current - # metageneration matches the given value. - # @param [Fixnum] if_source_metageneration_not_match - # Makes the operation conditional on whether the source object's current - # metageneration does not match the given value. - # @param [String] projection - # Set of properties to return. Defaults to noAcl, unless the object resource - # specifies the acl property, when it defaults to full. - # @param [Fixnum] source_generation - # If present, selects a specific revision of the source object (as opposed to - # the latest version, the default). - # @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 [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Object] - # - # @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_object(source_bucket, source_object, destination_bucket, destination_object, object_object = nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, source_generation: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options) - else - command = make_download_command(:post, 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}', options) - command.download_dest = download_dest - end - command.request_representation = Google::Apis::StorageV1beta2::Object::Representation - command.request_object = object_object - command.response_representation = Google::Apis::StorageV1beta2::Object::Representation - command.response_class = Google::Apis::StorageV1beta2::Object - command.params['sourceBucket'] = source_bucket unless source_bucket.nil? - command.params['sourceObject'] = source_object unless source_object.nil? - command.params['destinationBucket'] = destination_bucket unless destination_bucket.nil? - command.params['destinationObject'] = destination_object unless destination_object.nil? - command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? - command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil? - command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil? - command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil? - command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil? - command.query['projection'] = projection unless projection.nil? - command.query['sourceGeneration'] = source_generation unless source_generation.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 data blobs and associated metadata. Deletions are permanent if - # versioning is not enabled for the bucket, or if the generation parameter is - # used. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [Fixnum] generation - # If present, permanently deletes a specific revision of this object (as opposed - # to the latest version, the default). - # @param [Fixnum] if_generation_match - # Makes the operation conditional on whether the object's current generation - # matches the given value. - # @param [Fixnum] if_generation_not_match - # Makes the operation conditional on whether the object's current generation - # does not match the given value. - # @param [Fixnum] if_metageneration_match - # Makes the operation conditional on whether the object's current metageneration - # matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the operation conditional on whether the object's current metageneration - # does not match the given value. - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'b/{bucket}/o/{object}', options) - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['generation'] = generation unless generation.nil? - command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? - command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.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 objects or their associated metadata. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @param [Fixnum] if_generation_match - # Makes the operation conditional on whether the object's generation matches the - # given value. - # @param [Fixnum] if_generation_not_match - # Makes the operation conditional on whether the object's generation does not - # match the given value. - # @param [Fixnum] if_metageneration_match - # Makes the operation conditional on whether the object's current metageneration - # matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the operation conditional on whether the object's current metageneration - # does not match the given value. - # @param [String] projection - # Set of properties to return. Defaults to noAcl. - # @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 [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Object] - # - # @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_object(bucket, object, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'b/{bucket}/o/{object}', options) - else - command = make_download_command(:get, 'b/{bucket}/o/{object}', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::StorageV1beta2::Object::Representation - command.response_class = Google::Apis::StorageV1beta2::Object - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['generation'] = generation unless generation.nil? - command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? - command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['projection'] = projection unless projection.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 - - # Stores new data blobs and associated metadata. - # @param [String] bucket - # Name of the bucket in which to store the new object. Overrides the provided - # object metadata's bucket value, if any. - # @param [Google::Apis::StorageV1beta2::Object] object_object - # @param [Fixnum] if_generation_match - # Makes the operation conditional on whether the object's current generation - # matches the given value. - # @param [Fixnum] if_generation_not_match - # Makes the operation conditional on whether the object's current generation - # does not match the given value. - # @param [Fixnum] if_metageneration_match - # Makes the operation conditional on whether the object's current metageneration - # matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the operation conditional on whether the object's current metageneration - # does not match the given value. - # @param [String] name - # Name of the object. Required when the object metadata is not otherwise - # provided. Overrides the object metadata's name value, if any. - # @param [String] projection - # Set of properties to return. Defaults to noAcl, unless the object resource - # specifies the acl property, when it defaults to full. - # @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 [IO, String] upload_source - # IO stream or filename containing content to upload - # @param [String] content_type - # Content type of the uploaded content. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Object] - # - # @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_object(bucket, object_object = nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, name: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) - if upload_source.nil? - command = make_simple_command(:post, 'b/{bucket}/o', options) - else - command = make_upload_command(:post, 'b/{bucket}/o', options) - command.upload_source = upload_source - command.upload_content_type = content_type - end - command.request_representation = Google::Apis::StorageV1beta2::Object::Representation - command.request_object = object_object - command.response_representation = Google::Apis::StorageV1beta2::Object::Representation - command.response_class = Google::Apis::StorageV1beta2::Object - command.params['bucket'] = bucket unless bucket.nil? - command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? - command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['name'] = name unless name.nil? - command.query['projection'] = projection unless projection.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 a list of objects matching the criteria. - # @param [String] bucket - # Name of the bucket in which to look for objects. - # @param [String] delimiter - # Returns results in a directory-like mode. items will contain only objects - # whose names, aside from the prefix, do not contain delimiter. Objects whose - # names, aside from the prefix, contain delimiter will have their name, - # truncated after the delimiter, returned in prefixes. Duplicate prefixes are - # omitted. - # @param [Fixnum] max_results - # Maximum number of items plus prefixes to return. As duplicate prefixes are - # omitted, fewer total results may be returned than requested. - # @param [String] page_token - # A previously-returned page token representing part of the larger set of - # results to view. - # @param [String] prefix - # Filter results to objects whose names begin with this prefix. - # @param [String] projection - # Set of properties to return. Defaults to noAcl. - # @param [Boolean] versions - # If true, lists all versions of a file as distinct 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::StorageV1beta2::Objects] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Objects] - # - # @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_objects(bucket, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'b/{bucket}/o', options) - command.response_representation = Google::Apis::StorageV1beta2::Objects::Representation - command.response_class = Google::Apis::StorageV1beta2::Objects - command.params['bucket'] = bucket unless bucket.nil? - command.query['delimiter'] = delimiter unless delimiter.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['prefix'] = prefix unless prefix.nil? - command.query['projection'] = projection unless projection.nil? - command.query['versions'] = versions unless versions.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 - - # Updates a data blob's associated metadata. This method supports patch - # semantics. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [Google::Apis::StorageV1beta2::Object] object_object - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @param [Fixnum] if_generation_match - # Makes the operation conditional on whether the object's current generation - # matches the given value. - # @param [Fixnum] if_generation_not_match - # Makes the operation conditional on whether the object's current generation - # does not match the given value. - # @param [Fixnum] if_metageneration_match - # Makes the operation conditional on whether the object's current metageneration - # matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the operation conditional on whether the object's current metageneration - # does not match the given value. - # @param [String] projection - # Set of properties to return. Defaults to full. - # @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::StorageV1beta2::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Object] - # - # @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_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'b/{bucket}/o/{object}', options) - command.request_representation = Google::Apis::StorageV1beta2::Object::Representation - command.request_object = object_object - command.response_representation = Google::Apis::StorageV1beta2::Object::Representation - command.response_class = Google::Apis::StorageV1beta2::Object - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['generation'] = generation unless generation.nil? - command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? - command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['projection'] = projection unless projection.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 - - # Updates a data blob's associated metadata. - # @param [String] bucket - # Name of the bucket in which the object resides. - # @param [String] object - # Name of the object. - # @param [Google::Apis::StorageV1beta2::Object] object_object - # @param [Fixnum] generation - # If present, selects a specific revision of this object (as opposed to the - # latest version, the default). - # @param [Fixnum] if_generation_match - # Makes the operation conditional on whether the object's current generation - # matches the given value. - # @param [Fixnum] if_generation_not_match - # Makes the operation conditional on whether the object's current generation - # does not match the given value. - # @param [Fixnum] if_metageneration_match - # Makes the operation conditional on whether the object's current metageneration - # matches the given value. - # @param [Fixnum] if_metageneration_not_match - # Makes the operation conditional on whether the object's current metageneration - # does not match the given value. - # @param [String] projection - # Set of properties to return. Defaults to full. - # @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 [IO, String] download_dest - # IO stream or filename to receive content download - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::StorageV1beta2::Object] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Object] - # - # @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_object(bucket, object, object_object = nil, generation: nil, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:put, 'b/{bucket}/o/{object}', options) - else - command = make_download_command(:put, 'b/{bucket}/o/{object}', options) - command.download_dest = download_dest - end - command.request_representation = Google::Apis::StorageV1beta2::Object::Representation - command.request_object = object_object - command.response_representation = Google::Apis::StorageV1beta2::Object::Representation - command.response_class = Google::Apis::StorageV1beta2::Object - command.params['bucket'] = bucket unless bucket.nil? - command.params['object'] = object unless object.nil? - command.query['generation'] = generation unless generation.nil? - command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? - command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.nil? - command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? - command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? - command.query['projection'] = projection unless projection.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 - - # Watch for changes on all objects in a bucket. - # @param [String] bucket - # Name of the bucket in which to look for objects. - # @param [Google::Apis::StorageV1beta2::Channel] channel_object - # @param [String] delimiter - # Returns results in a directory-like mode. items will contain only objects - # whose names, aside from the prefix, do not contain delimiter. Objects whose - # names, aside from the prefix, contain delimiter will have their name, - # truncated after the delimiter, returned in prefixes. Duplicate prefixes are - # omitted. - # @param [Fixnum] max_results - # Maximum number of items plus prefixes to return. As duplicate prefixes are - # omitted, fewer total results may be returned than requested. - # @param [String] page_token - # A previously-returned page token representing part of the larger set of - # results to view. - # @param [String] prefix - # Filter results to objects whose names begin with this prefix. - # @param [String] projection - # Set of properties to return. Defaults to noAcl. - # @param [Boolean] versions - # If true, lists all versions of a file as distinct 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::StorageV1beta2::Channel] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::StorageV1beta2::Channel] - # - # @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 watch_object_all(bucket, channel_object = nil, delimiter: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'b/{bucket}/o/watch', options) - command.request_representation = Google::Apis::StorageV1beta2::Channel::Representation - command.request_object = channel_object - command.response_representation = Google::Apis::StorageV1beta2::Channel::Representation - command.response_class = Google::Apis::StorageV1beta2::Channel - command.params['bucket'] = bucket unless bucket.nil? - command.query['delimiter'] = delimiter unless delimiter.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['prefix'] = prefix unless prefix.nil? - command.query['projection'] = projection unless projection.nil? - command.query['versions'] = versions unless versions.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 - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/storagetransfer_v1.rb b/generated/google/apis/storagetransfer_v1.rb index 43f0d0e3e..9a7558f3a 100644 --- a/generated/google/apis/storagetransfer_v1.rb +++ b/generated/google/apis/storagetransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/storage-transfer/docs module StoragetransferV1 VERSION = 'V1' - REVISION = '20200730' + REVISION = '20200807' # 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/storagetransfer_v1/classes.rb b/generated/google/apis/storagetransfer_v1/classes.rb index d2afbffd5..c53e7ac0c 100644 --- a/generated/google/apis/storagetransfer_v1/classes.rb +++ b/generated/google/apis/storagetransfer_v1/classes.rb @@ -22,10 +22,8 @@ module Google module Apis module StoragetransferV1 - # AWS access key (see - # [AWS Security - # Credentials](https://docs.aws.amazon.com/general/latest/gr/aws-security- - # credentials.html)). + # AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/ + # general/latest/gr/aws-security-credentials.html)). class AwsAccessKey include Google::Apis::Core::Hashable @@ -34,8 +32,7 @@ module Google # @return [String] attr_accessor :access_key_id - # Required. AWS secret access key. This field is not returned in RPC - # responses. + # Required. AWS secret access key. This field is not returned in RPC responses. # Corresponds to the JSON property `secretAccessKey` # @return [String] attr_accessor :secret_access_key @@ -51,23 +48,19 @@ module Google end end - # An AwsS3Data resource can be a data source, but not a data sink. - # In an AwsS3Data resource, an object's name is the S3 object's key name. + # An AwsS3Data resource can be a data source, but not a data sink. In an + # AwsS3Data resource, an object's name is the S3 object's key name. class AwsS3Data include Google::Apis::Core::Hashable - # AWS access key (see - # [AWS Security - # Credentials](https://docs.aws.amazon.com/general/latest/gr/aws-security- - # credentials.html)). + # AWS access key (see [AWS Security Credentials](https://docs.aws.amazon.com/ + # general/latest/gr/aws-security-credentials.html)). # Corresponds to the JSON property `awsAccessKey` # @return [Google::Apis::StoragetransferV1::AwsAccessKey] attr_accessor :aws_access_key - # Required. S3 Bucket name (see - # [Creating a - # bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get- - # location-example.html)). + # Required. S3 Bucket name (see [Creating a bucket](https://docs.aws.amazon.com/ + # AmazonS3/latest/dev/create-bucket-get-location-example.html)). # Corresponds to the JSON property `bucketName` # @return [String] attr_accessor :bucket_name @@ -83,15 +76,13 @@ module Google end end - # An AzureBlobStorageData resource can be a data source, but not a data sink. - # An AzureBlobStorageData resource represents one Azure container. The storage - # account determines the [Azure - # endpoint](https://docs.microsoft.com/en-us/azure/storage/common/storage-create- - # storage-account#storage-account-endpoints). - # In an AzureBlobStorageData resource, a blobs's name is the [Azure Blob - # Storage blob's key - # name](https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and- - # referencing-containers--blobs--and-metadata#blob-names). + # An AzureBlobStorageData resource can be a data source, but not a data sink. An + # AzureBlobStorageData resource represents one Azure container. The storage + # account determines the [Azure endpoint](https://docs.microsoft.com/en-us/azure/ + # storage/common/storage-create-storage-account#storage-account-endpoints). In + # an AzureBlobStorageData resource, a blobs's name is the [Azure Blob Storage + # blob's key name](https://docs.microsoft.com/en-us/rest/api/storageservices/ + # naming-and-referencing-containers--blobs--and-metadata#blob-names). class AzureBlobStorageData include Google::Apis::Core::Hashable @@ -126,11 +117,9 @@ module Google class AzureCredentials include Google::Apis::Core::Hashable - # Required. Azure shared access signature. (see - # [Grant limited access to Azure Storage resources using shared access - # signatures - # (SAS)](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas- - # overview)). + # Required. Azure shared access signature. (see [Grant limited access to Azure + # Storage resources using shared access signatures (SAS)](https://docs.microsoft. + # com/en-us/azure/storage/common/storage-sas-overview)). # Corresponds to the JSON property `sasToken` # @return [String] attr_accessor :sas_token @@ -147,30 +136,29 @@ module Google # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. class Date include Google::Apis::Core::Hashable - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - # if specifying a year by itself or a year and month where the day is not + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + # specifying a year by itself or a year and month where the day is not # significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12, or 0 if specifying a year without a - # month and day. + # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # and day. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without - # a year. + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. # Corresponds to the JSON property `year` # @return [Fixnum] attr_accessor :year @@ -187,13 +175,11 @@ module Google 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 ````. + # 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 @@ -215,8 +201,8 @@ module Google # @return [Array] attr_accessor :error_details - # Required. A URL that refers to the target (a data source, a data sink, - # or an object) with which the error is associated. + # Required. A URL that refers to the target (a data source, a data sink, or an + # object) with which the error is associated. # Corresponds to the JSON property `url` # @return [String] attr_accessor :url @@ -232,8 +218,7 @@ module Google end end - # A summary of errors by error code, plus a count and sample error log - # entries. + # A summary of errors by error code, plus a count and sample error log entries. class ErrorSummary include Google::Apis::Core::Hashable @@ -247,9 +232,8 @@ module Google # @return [Fixnum] attr_accessor :error_count - # Error samples. - # At most 5 error log entries will be recorded for a given - # error code for a single transfer operation. + # Error samples. At most 5 error log entries will be recorded for a given error + # code for a single transfer operation. # Corresponds to the JSON property `errorLogEntries` # @return [Array] attr_accessor :error_log_entries @@ -266,16 +250,15 @@ module Google end end - # In a GcsData resource, an object's name is the Cloud Storage object's - # name and its "last modification time" refers to the object's `updated` - # property of Cloud Storage objects, which changes when the content or the - # metadata of the object is updated. + # In a GcsData resource, an object's name is the Cloud Storage object's name and + # its "last modification time" refers to the object's `updated` property of + # Cloud Storage objects, which changes when the content or the metadata of the + # object is updated. class GcsData include Google::Apis::Core::Hashable - # Required. Cloud Storage bucket name (see - # [Bucket Name - # Requirements](https://cloud.google.com/storage/docs/naming#requirements)). + # Required. Cloud Storage bucket name (see [Bucket Name Requirements](https:// + # cloud.google.com/storage/docs/naming#requirements)). # Corresponds to the JSON property `bucketName` # @return [String] attr_accessor :bucket_name @@ -310,42 +293,34 @@ module Google end # An HttpData resource specifies a list of objects on the web to be transferred - # over HTTP. The information of the objects to be transferred is contained in - # a file referenced by a URL. The first line in the file must be - # `"TsvHttpData-1.0"`, which specifies the format of the file. Subsequent - # lines specify the information of the list of objects, one object per list - # entry. Each entry has the following tab-delimited fields: - # * **HTTP URL** — The location of the object. - # * **Length** — The size of the object in bytes. - # * **MD5** — The base64-encoded MD5 hash of the object. - # For an example of a valid TSV file, see - # [Transferring data from - # URLs](https://cloud.google.com/storage-transfer/docs/create-url-list). - # When transferring data based on a URL list, keep the following in mind: - # * When an object located at `http(s)://hostname:port/` is - # transferred to a data sink, the name of the object at the data sink is - # `/`. - # * If the specified size of an object does not match the actual size of the - # object fetched, the object will not be transferred. - # * If the specified MD5 does not match the MD5 computed from the transferred - # bytes, the object transfer will fail. For more information, see - # [Generating MD5 - # hashes](https://cloud.google.com/storage-transfer/docs/create-url-list#md5) - # * Ensure that each URL you specify is publicly accessible. For - # example, in Cloud Storage you can - # [share an object publicly] - # (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get - # a link to it. - # * Storage Transfer Service obeys `robots.txt` rules and requires the source - # HTTP server to support `Range` requests and to return a `Content-Length` - # header in each response. - # * ObjectConditions have no effect when filtering objects to transfer. + # over HTTP. The information of the objects to be transferred is contained in a + # file referenced by a URL. The first line in the file must be `"TsvHttpData-1.0" + # `, which specifies the format of the file. Subsequent lines specify the + # information of the list of objects, one object per list entry. Each entry has + # the following tab-delimited fields: * **HTTP URL** — The location of the + # object. * **Length** — The size of the object in bytes. * **MD5** — The base64- + # encoded MD5 hash of the object. For an example of a valid TSV file, see [ + # Transferring data from URLs](https://cloud.google.com/storage-transfer/docs/ + # create-url-list). When transferring data based on a URL list, keep the + # following in mind: * When an object located at `http(s)://hostname:port/` is + # transferred to a data sink, the name of the object at the data sink is `/`. * + # If the specified size of an object does not match the actual size of the + # object fetched, the object will not be transferred. * If the specified MD5 + # does not match the MD5 computed from the transferred bytes, the object + # transfer will fail. For more information, see [Generating MD5 hashes](https:// + # cloud.google.com/storage-transfer/docs/create-url-list#md5) * Ensure that each + # URL you specify is publicly accessible. For example, in Cloud Storage you can [ + # share an object publicly] (https://cloud.google.com/storage/docs/cloud-console# + # _sharingdata) and get a link to it. * Storage Transfer Service obeys `robots. + # txt` rules and requires the source HTTP server to support `Range` requests and + # to return a `Content-Length` header in each response. * ObjectConditions have + # no effect when filtering objects to transfer. class HttpData include Google::Apis::Core::Hashable - # Required. The URL that points to the file that stores the object list - # entries. This file must allow public access. Currently, only URLs with - # HTTP and HTTPS schemes are supported. + # Required. The URL that points to the file that stores the object list entries. + # This file must allow public access. Currently, only URLs with HTTP and HTTPS + # schemes are supported. # Corresponds to the JSON property `listUrl` # @return [String] attr_accessor :list_url @@ -412,23 +387,18 @@ module Google # Specification to configure notifications published to Cloud Pub/Sub. # Notifications will be published to the customer-provided topic using the - # following `PubsubMessage.attributes`: - # * `"eventType"`: one of the EventType values - # * `"payloadFormat"`: one of the PayloadFormat values - # * `"projectId"`: the project_id of the - # `TransferOperation` - # * `"transferJobName"`: the - # transfer_job_name of the - # `TransferOperation` - # * `"transferOperationName"`: the name of the - # `TransferOperation` - # The `PubsubMessage.data` will contain a TransferOperation resource - # formatted according to the specified `PayloadFormat`. + # following `PubsubMessage.attributes`: * `"eventType"`: one of the EventType + # values * `"payloadFormat"`: one of the PayloadFormat values * `"projectId"`: + # the project_id of the `TransferOperation` * `"transferJobName"`: the + # transfer_job_name of the `TransferOperation` * `"transferOperationName"`: the + # name of the `TransferOperation` The `PubsubMessage.data` will contain a + # TransferOperation resource formatted according to the specified `PayloadFormat` + # . class NotificationConfig include Google::Apis::Core::Hashable - # Event types for which a notification is desired. If empty, send - # notifications for all event types. + # Event types for which a notification is desired. If empty, send notifications + # for all event types. # Corresponds to the JSON property `eventTypes` # @return [Array] attr_accessor :event_types @@ -439,9 +409,8 @@ module Google attr_accessor :payload_format # Required. The `Topic.name` of the Cloud Pub/Sub topic to which to publish - # notifications. Must be of the format: `projects/`project`/topics/`topic``. - # Not matching this format will result in an - # INVALID_ARGUMENT error. + # notifications. Must be of the format: `projects/`project`/topics/`topic``. Not + # matching this format will result in an INVALID_ARGUMENT error. # Corresponds to the JSON property `pubsubTopic` # @return [String] attr_accessor :pubsub_topic @@ -458,48 +427,40 @@ module Google end end - # Conditions that determine which objects will be transferred. Applies only - # to Cloud Data Sources such as S3, Azure, and Cloud Storage. - # The "last modification time" refers to the time of the - # last change to the object's content or metadata — specifically, this is - # the `updated` property of Cloud Storage objects, the `LastModified` field of - # S3 objects, and the `Last-Modified` header of Azure blobs. + # Conditions that determine which objects will be transferred. Applies only to + # Cloud Data Sources such as S3, Azure, and Cloud Storage. The "last + # modification time" refers to the time of the last change to the object's + # content or metadata — specifically, this is the `updated` property of Cloud + # Storage objects, the `LastModified` field of S3 objects, and the `Last- + # Modified` header of Azure blobs. class ObjectConditions include Google::Apis::Core::Hashable - # `exclude_prefixes` must follow the requirements described for - # include_prefixes. + # `exclude_prefixes` must follow the requirements described for include_prefixes. # The max size of `exclude_prefixes` is 1000. # Corresponds to the JSON property `excludePrefixes` # @return [Array] attr_accessor :exclude_prefixes - # If `include_prefixes` is specified, objects that satisfy the object - # conditions must have names that start with one of the `include_prefixes` - # and that do not start with any of the exclude_prefixes. If - # `include_prefixes` is not specified, all objects except those that have - # names starting with one of the `exclude_prefixes` must satisfy the object - # conditions. - # Requirements: - # * Each include-prefix and exclude-prefix can contain any sequence of - # Unicode characters, to a max length of 1024 bytes when UTF8-encoded, - # and must not contain Carriage Return or Line Feed characters. Wildcard - # matching and regular expression matching are not supported. - # * Each include-prefix and exclude-prefix must omit the leading slash. - # For example, to include the `requests.gz` object in a transfer from - # `s3://my-aws-bucket/logs/y=2015/requests.gz`, specify the include - # prefix as `logs/y=2015/requests.gz`. - # * None of the include-prefix or the exclude-prefix values can be empty, - # if specified. - # * Each include-prefix must include a distinct portion of the object - # namespace. No include-prefix may be a prefix of another - # include-prefix. - # * Each exclude-prefix must exclude a distinct portion of the object - # namespace. No exclude-prefix may be a prefix of another - # exclude-prefix. - # * If `include_prefixes` is specified, then each exclude-prefix must start - # with the value of a path explicitly included by `include_prefixes`. - # The max size of `include_prefixes` is 1000. + # If `include_prefixes` is specified, objects that satisfy the object conditions + # must have names that start with one of the `include_prefixes` and that do not + # start with any of the exclude_prefixes. If `include_prefixes` is not specified, + # all objects except those that have names starting with one of the ` + # exclude_prefixes` must satisfy the object conditions. Requirements: * Each + # include-prefix and exclude-prefix can contain any sequence of Unicode + # characters, to a max length of 1024 bytes when UTF8-encoded, and must not + # contain Carriage Return or Line Feed characters. Wildcard matching and regular + # expression matching are not supported. * Each include-prefix and exclude- + # prefix must omit the leading slash. For example, to include the `requests.gz` + # object in a transfer from `s3://my-aws-bucket/logs/y=2015/requests.gz`, + # specify the include prefix as `logs/y=2015/requests.gz`. * None of the include- + # prefix or the exclude-prefix values can be empty, if specified. * Each include- + # prefix must include a distinct portion of the object namespace. No include- + # prefix may be a prefix of another include-prefix. * Each exclude-prefix must + # exclude a distinct portion of the object namespace. No exclude-prefix may be a + # prefix of another exclude-prefix. * If `include_prefixes` is specified, then + # each exclude-prefix must start with the value of a path explicitly included by + # `include_prefixes`. The max size of `include_prefixes` is 1000. # Corresponds to the JSON property `includePrefixes` # @return [Array] attr_accessor :include_prefixes @@ -511,35 +472,29 @@ module Google # @return [String] attr_accessor :last_modified_before - # If specified, only objects with a "last modification time" on or after - # this timestamp and objects that don't have a "last modification time" are - # transferred. - # The `last_modified_since` and `last_modified_before` fields can be used - # together for chunked data processing. For example, consider a script that - # processes each day's worth of data at a time. For that you'd set each - # of the fields as follows: - # * `last_modified_since` to the start of the day - # * `last_modified_before` to the end of the day + # If specified, only objects with a "last modification time" on or after this + # timestamp and objects that don't have a "last modification time" are + # transferred. The `last_modified_since` and `last_modified_before` fields can + # be used together for chunked data processing. For example, consider a script + # that processes each day's worth of data at a time. For that you'd set each of + # the fields as follows: * `last_modified_since` to the start of the day * ` + # last_modified_before` to the end of the day # Corresponds to the JSON property `lastModifiedSince` # @return [String] attr_accessor :last_modified_since - # If specified, only objects with a "last modification time" on or after - # `NOW` - `max_time_elapsed_since_last_modification` and objects that don't - # have a "last modification time" are transferred. - # For each TransferOperation started by this TransferJob, - # `NOW` refers to the start_time of the - # `TransferOperation`. + # If specified, only objects with a "last modification time" on or after `NOW` - + # `max_time_elapsed_since_last_modification` and objects that don't have a "last + # modification time" are transferred. For each TransferOperation started by this + # TransferJob, `NOW` refers to the start_time of the `TransferOperation`. # Corresponds to the JSON property `maxTimeElapsedSinceLastModification` # @return [String] attr_accessor :max_time_elapsed_since_last_modification - # If specified, only objects with a "last modification time" before - # `NOW` - `min_time_elapsed_since_last_modification` and objects that don't - # have a "last modification time" are transferred. - # For each TransferOperation started by this TransferJob, `NOW` - # refers to the start_time of the - # `TransferOperation`. + # If specified, only objects with a "last modification time" before `NOW` - ` + # min_time_elapsed_since_last_modification` and objects that don't have a "last + # modification time" are transferred. For each TransferOperation started by this + # TransferJob, `NOW` refers to the start_time of the `TransferOperation`. # Corresponds to the JSON property `minTimeElapsedSinceLastModification` # @return [String] attr_accessor :min_time_elapsed_since_last_modification @@ -564,20 +519,19 @@ module Google 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. + # 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::StoragetransferV1::Status] attr_accessor :error @@ -595,14 +549,13 @@ module Google # @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`. + # 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 @@ -653,30 +606,30 @@ module Google # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. # Corresponds to the JSON property `scheduleEndDate` # @return [Google::Apis::StoragetransferV1::Date] attr_accessor :schedule_end_date # Represents a whole or partial calendar date, e.g. a birthday. The time of day # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: - # * A full date, with non-zero year, month and day values - # * A month and day value, with a zero year, e.g. an anniversary - # * A year on its own, with zero month and day values - # * A year and month value, with a zero day, e.g. a credit card expiration date - # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. + # is relative to the Proleptic Gregorian Calendar. This can represent: * A full + # date, with non-zero year, month and day values * A month and day value, with a + # zero year, e.g. an anniversary * A year on its own, with zero month and day + # values * A year and month value, with a zero day, e.g. a credit card + # expiration date Related types are google.type.TimeOfDay and `google.protobuf. + # Timestamp`. # Corresponds to the JSON property `scheduleStartDate` # @return [Google::Apis::StoragetransferV1::Date] attr_accessor :schedule_start_date - # Represents a time of day. The date and time zone are either not significant - # or are specified elsewhere. An API may choose to allow leap seconds. Related + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may choose to allow leap seconds. Related # types are google.type.Date and `google.protobuf.Timestamp`. # Corresponds to the JSON property `startTimeOfDay` # @return [Google::Apis::StoragetransferV1::TimeOfDay] @@ -694,12 +647,12 @@ 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). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -708,15 +661,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # 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. + # 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 @@ -733,14 +686,14 @@ module Google end end - # Represents a time of day. The date and time zone are either not significant - # or are specified elsewhere. An API may choose to allow leap seconds. Related + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may choose to allow leap seconds. Related # types are google.type.Date and `google.protobuf.Timestamp`. class TimeOfDay include Google::Apis::Core::Hashable - # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - # to allow the value "24:00:00" for scenarios like business closing time. + # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to + # allow the value "24:00:00" for scenarios like business closing time. # Corresponds to the JSON property `hours` # @return [Fixnum] attr_accessor :hours @@ -798,9 +751,8 @@ module Google # @return [Fixnum] attr_accessor :bytes_failed_to_delete_from_sink - # Bytes found in the data source that are scheduled to be transferred, - # excluding any that are filtered based on object conditions or skipped due - # to sync. + # Bytes found in the data source that are scheduled to be transferred, excluding + # any that are filtered based on object conditions or skipped due to sync. # Corresponds to the JSON property `bytesFoundFromSource` # @return [Fixnum] attr_accessor :bytes_found_from_source @@ -810,14 +762,14 @@ module Google # @return [Fixnum] attr_accessor :bytes_found_only_from_sink - # Bytes in the data source that failed to be transferred or that failed to - # be deleted after being transferred. + # Bytes in the data source that failed to be transferred or that failed to be + # deleted after being transferred. # Corresponds to the JSON property `bytesFromSourceFailed` # @return [Fixnum] attr_accessor :bytes_from_source_failed - # Bytes in the data source that are not transferred because they already - # exist in the data sink. + # Bytes in the data source that are not transferred because they already exist + # in the data sink. # Corresponds to the JSON property `bytesFromSourceSkippedBySync` # @return [Fixnum] attr_accessor :bytes_from_source_skipped_by_sync @@ -843,8 +795,8 @@ module Google attr_accessor :objects_failed_to_delete_from_sink # Objects found in the data source that are scheduled to be transferred, - # excluding any that are filtered based on object conditions or skipped due - # to sync. + # excluding any that are filtered based on object conditions or skipped due to + # sync. # Corresponds to the JSON property `objectsFoundFromSource` # @return [Fixnum] attr_accessor :objects_found_from_source @@ -854,14 +806,14 @@ module Google # @return [Fixnum] attr_accessor :objects_found_only_from_sink - # Objects in the data source that failed to be transferred or that failed - # to be deleted after being transferred. + # Objects in the data source that failed to be transferred or that failed to be + # deleted after being transferred. # Corresponds to the JSON property `objectsFromSourceFailed` # @return [Fixnum] attr_accessor :objects_from_source_failed - # Objects in the data source that are not transferred because they already - # exist in the data sink. + # Objects in the data source that are not transferred because they already exist + # in the data sink. # Corresponds to the JSON property `objectsFromSourceSkippedBySync` # @return [Fixnum] attr_accessor :objects_from_source_skipped_by_sync @@ -906,8 +858,8 @@ module Google # @return [String] attr_accessor :deletion_time - # A description provided by the user for the job. Its max length is 1024 - # bytes when Unicode-encoded. + # A description provided by the user for the job. Its max length is 1024 bytes + # when Unicode-encoded. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description @@ -917,35 +869,27 @@ module Google # @return [String] attr_accessor :last_modification_time - # A unique name (within the transfer project) assigned when the job is - # created. If this field is empty in a CreateTransferJobRequest, Storage - # Transfer Service will assign a unique name. Otherwise, the specified name - # is used as the unique name for this job. - # If the specified name is in use by a job, the creation request fails with - # an ALREADY_EXISTS error. - # This name must start with `"transferJobs/"` prefix and end with a letter or - # a number, and should be no more than 128 characters. - # Example: `"transferJobs/[A-Za-z0-9-._~]*[A-Za-z0-9]$"` - # Invalid job names will fail with an - # INVALID_ARGUMENT error. + # A unique name (within the transfer project) assigned when the job is created. + # If this field is empty in a CreateTransferJobRequest, Storage Transfer Service + # will assign a unique name. Otherwise, the specified name is used as the unique + # name for this job. If the specified name is in use by a job, the creation + # request fails with an ALREADY_EXISTS error. This name must start with `" + # transferJobs/"` prefix and end with a letter or a number, and should be no + # more than 128 characters. Example: `"transferJobs/[A-Za-z0-9-._~]*[A-Za-z0-9]$" + # ` Invalid job names will fail with an INVALID_ARGUMENT error. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Specification to configure notifications published to Cloud Pub/Sub. # Notifications will be published to the customer-provided topic using the - # following `PubsubMessage.attributes`: - # * `"eventType"`: one of the EventType values - # * `"payloadFormat"`: one of the PayloadFormat values - # * `"projectId"`: the project_id of the - # `TransferOperation` - # * `"transferJobName"`: the - # transfer_job_name of the - # `TransferOperation` - # * `"transferOperationName"`: the name of the - # `TransferOperation` - # The `PubsubMessage.data` will contain a TransferOperation resource - # formatted according to the specified `PayloadFormat`. + # following `PubsubMessage.attributes`: * `"eventType"`: one of the EventType + # values * `"payloadFormat"`: one of the PayloadFormat values * `"projectId"`: + # the project_id of the `TransferOperation` * `"transferJobName"`: the + # transfer_job_name of the `TransferOperation` * `"transferOperationName"`: the + # name of the `TransferOperation` The `PubsubMessage.data` will contain a + # TransferOperation resource formatted according to the specified `PayloadFormat` + # . # Corresponds to the JSON property `notificationConfig` # @return [Google::Apis::StoragetransferV1::NotificationConfig] attr_accessor :notification_config @@ -960,13 +904,11 @@ module Google # @return [Google::Apis::StoragetransferV1::Schedule] attr_accessor :schedule - # Status of the job. This value MUST be specified for - # `CreateTransferJobRequests`. - # **Note:** The effect of the new job status takes place during a subsequent - # job run. For example, if you change the job status from - # ENABLED to DISABLED, and an operation - # spawned by the transfer is running, the status change would not affect the - # current operation. + # Status of the job. This value MUST be specified for `CreateTransferJobRequests` + # . **Note:** The effect of the new job status takes place during a subsequent + # job run. For example, if you change the job status from ENABLED to DISABLED, + # and an operation spawned by the transfer is running, the status change would + # not affect the current operation. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -1021,18 +963,13 @@ module Google # Specification to configure notifications published to Cloud Pub/Sub. # Notifications will be published to the customer-provided topic using the - # following `PubsubMessage.attributes`: - # * `"eventType"`: one of the EventType values - # * `"payloadFormat"`: one of the PayloadFormat values - # * `"projectId"`: the project_id of the - # `TransferOperation` - # * `"transferJobName"`: the - # transfer_job_name of the - # `TransferOperation` - # * `"transferOperationName"`: the name of the - # `TransferOperation` - # The `PubsubMessage.data` will contain a TransferOperation resource - # formatted according to the specified `PayloadFormat`. + # following `PubsubMessage.attributes`: * `"eventType"`: one of the EventType + # values * `"payloadFormat"`: one of the PayloadFormat values * `"projectId"`: + # the project_id of the `TransferOperation` * `"transferJobName"`: the + # transfer_job_name of the `TransferOperation` * `"transferOperationName"`: the + # name of the `TransferOperation` The `PubsubMessage.data` will contain a + # TransferOperation resource formatted according to the specified `PayloadFormat` + # . # Corresponds to the JSON property `notificationConfig` # @return [Google::Apis::StoragetransferV1::NotificationConfig] attr_accessor :notification_config @@ -1085,18 +1022,16 @@ module Google class TransferOptions include Google::Apis::Core::Hashable - # Whether objects should be deleted from the source after they are - # transferred to the sink. - # **Note:** This option and delete_objects_unique_in_sink are mutually - # exclusive. + # Whether objects should be deleted from the source after they are transferred + # to the sink. **Note:** This option and delete_objects_unique_in_sink are + # mutually exclusive. # Corresponds to the JSON property `deleteObjectsFromSourceAfterTransfer` # @return [Boolean] attr_accessor :delete_objects_from_source_after_transfer alias_method :delete_objects_from_source_after_transfer?, :delete_objects_from_source_after_transfer - # Whether objects that exist only in the sink should be deleted. - # **Note:** This option and delete_objects_from_source_after_transfer are - # mutually exclusive. + # Whether objects that exist only in the sink should be deleted. **Note:** This + # option and delete_objects_from_source_after_transfer are mutually exclusive. # Corresponds to the JSON property `deleteObjectsUniqueInSink` # @return [Boolean] attr_accessor :delete_objects_unique_in_sink @@ -1124,82 +1059,72 @@ module Google class TransferSpec include Google::Apis::Core::Hashable - # An AwsS3Data resource can be a data source, but not a data sink. - # In an AwsS3Data resource, an object's name is the S3 object's key name. + # An AwsS3Data resource can be a data source, but not a data sink. In an + # AwsS3Data resource, an object's name is the S3 object's key name. # Corresponds to the JSON property `awsS3DataSource` # @return [Google::Apis::StoragetransferV1::AwsS3Data] attr_accessor :aws_s3_data_source - # An AzureBlobStorageData resource can be a data source, but not a data sink. - # An AzureBlobStorageData resource represents one Azure container. The storage - # account determines the [Azure - # endpoint](https://docs.microsoft.com/en-us/azure/storage/common/storage-create- - # storage-account#storage-account-endpoints). - # In an AzureBlobStorageData resource, a blobs's name is the [Azure Blob - # Storage blob's key - # name](https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and- - # referencing-containers--blobs--and-metadata#blob-names). + # An AzureBlobStorageData resource can be a data source, but not a data sink. An + # AzureBlobStorageData resource represents one Azure container. The storage + # account determines the [Azure endpoint](https://docs.microsoft.com/en-us/azure/ + # storage/common/storage-create-storage-account#storage-account-endpoints). In + # an AzureBlobStorageData resource, a blobs's name is the [Azure Blob Storage + # blob's key name](https://docs.microsoft.com/en-us/rest/api/storageservices/ + # naming-and-referencing-containers--blobs--and-metadata#blob-names). # Corresponds to the JSON property `azureBlobStorageDataSource` # @return [Google::Apis::StoragetransferV1::AzureBlobStorageData] attr_accessor :azure_blob_storage_data_source - # In a GcsData resource, an object's name is the Cloud Storage object's - # name and its "last modification time" refers to the object's `updated` - # property of Cloud Storage objects, which changes when the content or the - # metadata of the object is updated. + # In a GcsData resource, an object's name is the Cloud Storage object's name and + # its "last modification time" refers to the object's `updated` property of + # Cloud Storage objects, which changes when the content or the metadata of the + # object is updated. # Corresponds to the JSON property `gcsDataSink` # @return [Google::Apis::StoragetransferV1::GcsData] attr_accessor :gcs_data_sink - # In a GcsData resource, an object's name is the Cloud Storage object's - # name and its "last modification time" refers to the object's `updated` - # property of Cloud Storage objects, which changes when the content or the - # metadata of the object is updated. + # In a GcsData resource, an object's name is the Cloud Storage object's name and + # its "last modification time" refers to the object's `updated` property of + # Cloud Storage objects, which changes when the content or the metadata of the + # object is updated. # Corresponds to the JSON property `gcsDataSource` # @return [Google::Apis::StoragetransferV1::GcsData] attr_accessor :gcs_data_source # An HttpData resource specifies a list of objects on the web to be transferred - # over HTTP. The information of the objects to be transferred is contained in - # a file referenced by a URL. The first line in the file must be - # `"TsvHttpData-1.0"`, which specifies the format of the file. Subsequent - # lines specify the information of the list of objects, one object per list - # entry. Each entry has the following tab-delimited fields: - # * **HTTP URL** — The location of the object. - # * **Length** — The size of the object in bytes. - # * **MD5** — The base64-encoded MD5 hash of the object. - # For an example of a valid TSV file, see - # [Transferring data from - # URLs](https://cloud.google.com/storage-transfer/docs/create-url-list). - # When transferring data based on a URL list, keep the following in mind: - # * When an object located at `http(s)://hostname:port/` is - # transferred to a data sink, the name of the object at the data sink is - # `/`. - # * If the specified size of an object does not match the actual size of the - # object fetched, the object will not be transferred. - # * If the specified MD5 does not match the MD5 computed from the transferred - # bytes, the object transfer will fail. For more information, see - # [Generating MD5 - # hashes](https://cloud.google.com/storage-transfer/docs/create-url-list#md5) - # * Ensure that each URL you specify is publicly accessible. For - # example, in Cloud Storage you can - # [share an object publicly] - # (https://cloud.google.com/storage/docs/cloud-console#_sharingdata) and get - # a link to it. - # * Storage Transfer Service obeys `robots.txt` rules and requires the source - # HTTP server to support `Range` requests and to return a `Content-Length` - # header in each response. - # * ObjectConditions have no effect when filtering objects to transfer. + # over HTTP. The information of the objects to be transferred is contained in a + # file referenced by a URL. The first line in the file must be `"TsvHttpData-1.0" + # `, which specifies the format of the file. Subsequent lines specify the + # information of the list of objects, one object per list entry. Each entry has + # the following tab-delimited fields: * **HTTP URL** — The location of the + # object. * **Length** — The size of the object in bytes. * **MD5** — The base64- + # encoded MD5 hash of the object. For an example of a valid TSV file, see [ + # Transferring data from URLs](https://cloud.google.com/storage-transfer/docs/ + # create-url-list). When transferring data based on a URL list, keep the + # following in mind: * When an object located at `http(s)://hostname:port/` is + # transferred to a data sink, the name of the object at the data sink is `/`. * + # If the specified size of an object does not match the actual size of the + # object fetched, the object will not be transferred. * If the specified MD5 + # does not match the MD5 computed from the transferred bytes, the object + # transfer will fail. For more information, see [Generating MD5 hashes](https:// + # cloud.google.com/storage-transfer/docs/create-url-list#md5) * Ensure that each + # URL you specify is publicly accessible. For example, in Cloud Storage you can [ + # share an object publicly] (https://cloud.google.com/storage/docs/cloud-console# + # _sharingdata) and get a link to it. * Storage Transfer Service obeys `robots. + # txt` rules and requires the source HTTP server to support `Range` requests and + # to return a `Content-Length` header in each response. * ObjectConditions have + # no effect when filtering objects to transfer. # Corresponds to the JSON property `httpDataSource` # @return [Google::Apis::StoragetransferV1::HttpData] attr_accessor :http_data_source - # Conditions that determine which objects will be transferred. Applies only - # to Cloud Data Sources such as S3, Azure, and Cloud Storage. - # The "last modification time" refers to the time of the - # last change to the object's content or metadata — specifically, this is - # the `updated` property of Cloud Storage objects, the `LastModified` field of - # S3 objects, and the `Last-Modified` header of Azure blobs. + # Conditions that determine which objects will be transferred. Applies only to + # Cloud Data Sources such as S3, Azure, and Cloud Storage. The "last + # modification time" refers to the time of the last change to the object's + # content or metadata — specifically, this is the `updated` property of Cloud + # Storage objects, the `LastModified` field of S3 objects, and the `Last- + # Modified` header of Azure blobs. # Corresponds to the JSON property `objectConditions` # @return [Google::Apis::StoragetransferV1::ObjectConditions] attr_accessor :object_conditions @@ -1241,13 +1166,10 @@ module Google # @return [Google::Apis::StoragetransferV1::TransferJob] attr_accessor :transfer_job - # The field mask of the fields in `transferJob` that are to be updated in - # this request. Fields in `transferJob` that can be updated are: - # description, - # transfer_spec, - # notification_config, and - # status. To update the `transfer_spec` of the job, a - # complete transfer specification must be provided. An incomplete + # The field mask of the fields in `transferJob` that are to be updated in this + # request. Fields in `transferJob` that can be updated are: description, + # transfer_spec, notification_config, and status. To update the `transfer_spec` + # of the job, a complete transfer specification must be provided. An incomplete # specification missing any required fields will be rejected with the error # INVALID_ARGUMENT. # Corresponds to the JSON property `updateTransferJobFieldMask` diff --git a/generated/google/apis/storagetransfer_v1/service.rb b/generated/google/apis/storagetransfer_v1/service.rb index 365111395..3b1cdd000 100644 --- a/generated/google/apis/storagetransfer_v1/service.rb +++ b/generated/google/apis/storagetransfer_v1/service.rb @@ -48,17 +48,16 @@ module Google @batch_path = 'batch' end - # Returns the Google service account that is used by Storage Transfer - # Service to access buckets in the project where transfers - # run or in other projects. Each Google service account is associated - # with one Google Cloud Platform Console project. Users - # should add this service account to the Google Cloud Storage bucket - # ACLs to grant access to Storage Transfer Service. This service - # account is created and owned by Storage Transfer Service and can - # only be used by Storage Transfer Service. + # Returns the Google service account that is used by Storage Transfer Service to + # access buckets in the project where transfers run or in other projects. Each + # Google service account is associated with one Google Cloud Platform Console + # project. Users should add this service account to the Google Cloud Storage + # bucket ACLs to grant access to Storage Transfer Service. This service account + # is created and owned by Storage Transfer Service and can only be used by + # Storage Transfer Service. # @param [String] project_id - # Required. The ID of the Google Cloud Platform Console project that the - # Google service account is associated with. + # Required. The ID of the Google Cloud Platform Console project that the Google + # service account is associated with. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -152,16 +151,12 @@ module Google # Lists transfer jobs. # @param [String] filter - # Required. A list of query parameters specified as JSON text in the form of: - # `"project_id":"my_project_id", - # "job_names":["jobid1","jobid2",...], - # "job_statuses":["status1","status2",...]`. - # Since `job_names` and `job_statuses` support multiple values, their values - # must be specified with array notation. `project``_``id` is - # required. `job_names` and `job_statuses` are optional. The valid values - # for `job_statuses` are case-insensitive: - # ENABLED, - # DISABLED, and + # Required. A list of query parameters specified as JSON text in the form of: `" + # project_id":"my_project_id", "job_names":["jobid1","jobid2",...], " + # job_statuses":["status1","status2",...]`. Since `job_names` and `job_statuses` + # support multiple values, their values must be specified with array notation. ` + # project``_``id` is required. `job_names` and `job_statuses` are optional. The + # valid values for `job_statuses` are case-insensitive: ENABLED, DISABLED, and # DELETED. # @param [Fixnum] page_size # The list page size. The max allowed value is 256. @@ -197,13 +192,9 @@ module Google end # Updates a transfer job. Updating a job's transfer spec does not affect - # transfer operations that are running already. Updating a job's schedule - # is not allowed. - # **Note:** The job's status field can be modified - # using this RPC (for example, to set a job's status to - # DELETED, - # DISABLED, or - # ENABLED). + # transfer operations that are running already. Updating a job's schedule is not + # allowed. **Note:** The job's status field can be modified using this RPC (for + # example, to set a job's status to DELETED, DISABLED, or ENABLED). # @param [String] job_name # Required. The name of job to update. # @param [Google::Apis::StoragetransferV1::UpdateTransferJobRequest] update_transfer_job_request_object @@ -236,32 +227,23 @@ module Google execute_or_queue_command(command, &block) end - # Cancels a transfer. Use the - # transferOperations.get method to - # check if the cancellation succeeded or if the operation completed despite - # the `cancel` request. - # When you cancel an operation, the currently running transfer is - # interrupted. For recurring transfer jobs, the next instance of the transfer - # job - # will still run. For example, if your job is configured to run every day - # at 1pm and you cancel Monday's operation at 1:05pm, Monday's transfer - # will stop. However, a transfer job will still be attempted on Tuesday. - # This applies only to currently running operations. If an operation is - # not currently running, `cancel` does nothing. - # - # When you cancel a job, the next job computes a delta of files and may repair - # any - # inconsistent state. For instance, if you run a job every day, and today's job - # found 10 new files and transferred five files before you canceled the job, - # tomorrow's transfer operation will compute a new delta with the five files - # that - # were not copied today plus any new files discovered tomorrow. + # Cancels a transfer. Use the transferOperations.get method to check if the + # cancellation succeeded or if the operation completed despite the `cancel` + # request. When you cancel an operation, the currently running transfer is + # interrupted. For recurring transfer jobs, the next instance of the transfer + # job will still run. For example, if your job is configured to run every day at + # 1pm and you cancel Monday's operation at 1:05pm, Monday's transfer will stop. + # However, a transfer job will still be attempted on Tuesday. This applies only + # to currently running operations. If an operation is not currently running, ` + # cancel` does nothing. *Caution:* Canceling a transfer job can leave your data + # in an unknown state. We recommend that you restore the state at both the + # destination and the source after the `cancel` request completes so that your + # data is in a consistent state. When you cancel a job, the next job computes a + # delta of files and may repair any inconsistent state. For instance, if you run + # a job every day, and today's job found 10 new files and transferred five files + # before you canceled the job, tomorrow's transfer operation will compute a new + # delta with the five files that were not copied today plus any new files + # discovered tomorrow. # @param [String] name # The name of the operation resource to be cancelled. # @param [String] fields @@ -291,9 +273,8 @@ module Google execute_or_queue_command(command, &block) 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. + # 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 @@ -328,14 +309,12 @@ module Google # Required. The value `transferOperations`. # @param [String] filter # Required. A list of query parameters specified as JSON text in the form of: `" - # project_id":"my_project_id", - # "job_names":["jobid1","jobid2",...], - # "operation_names":["opid1","opid2",...], - # "transfer_statuses":["status1","status2",...]`. - # Since `job_names`, `operation_names`, and `transfer_statuses` support multiple - # values, they must be specified with array notation. `project``_`` - # id` is required. `job_names`, `operation_names`, and `transfer_statuses` are - # optional. The valid values for `transfer_statuses` are case-insensitive: + # project_id":"my_project_id", "job_names":["jobid1","jobid2",...], " + # operation_names":["opid1","opid2",...], "transfer_statuses":["status1"," + # status2",...]`. Since `job_names`, `operation_names`, and `transfer_statuses` + # support multiple values, they must be specified with array notation. `project`` + # _``id` is required. `job_names`, `operation_names`, and `transfer_statuses` + # are optional. The valid values for `transfer_statuses` are case-insensitive: # IN_PROGRESS, PAUSED, SUCCESS, FAILED, and ABORTED. # @param [Fixnum] page_size # The list page size. The max allowed value is 256.