From 6c1802eb46338d33d9cc79bb853e717aac023f23 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 24 Sep 2017 05:25:08 +0000 Subject: [PATCH] Autogenerated update (2017-09-24) Update: - acceleratedmobilepageurl_v1 - compute_alpha - compute_beta - compute_v1 - content_v2 - content_v2sandbox - servicecontrol_v1 --- api_names_out.yaml | 70 +++++++ .../apis/acceleratedmobilepageurl_v1.rb | 2 +- generated/google/apis/analytics_v3/service.rb | 2 +- .../apis/cloudmonitoring_v2beta2/service.rb | 2 +- generated/google/apis/compute_alpha.rb | 2 +- .../google/apis/compute_alpha/classes.rb | 86 ++++++++- .../apis/compute_alpha/representations.rb | 33 ++++ .../google/apis/compute_alpha/service.rb | 122 ++++++++++++ generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 66 ++++++- .../apis/compute_beta/representations.rb | 5 + generated/google/apis/compute_beta/service.rb | 180 ++++++++++++++++++ generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 39 +++- .../google/apis/compute_v1/representations.rb | 4 + generated/google/apis/compute_v1/service.rb | 2 +- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/classes.rb | 145 +++++++++++++- .../google/apis/content_v2/representations.rb | 38 ++++ generated/google/apis/content_v2/service.rb | 14 +- generated/google/apis/content_v2sandbox.rb | 2 +- .../google/apis/content_v2sandbox/classes.rb | 10 +- .../apis/resourceviews_v1beta1/service.rb | 2 +- generated/google/apis/servicecontrol_v1.rb | 2 +- .../google/apis/servicecontrol_v1/classes.rb | 64 +++++-- .../apis/servicecontrol_v1/representations.rb | 17 +- .../google/apis/servicecontrol_v1/service.rb | 28 +-- .../google/apis/taskqueue_v1beta2/service.rb | 2 +- 28 files changed, 860 insertions(+), 85 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 4c099b9cc..cbee661b4 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -14604,9 +14604,11 @@ "/compute:alpha/BackendBucketList/warning/message": message "/compute:alpha/BackendService": backend_service "/compute:alpha/BackendService/affinityCookieTtlSec": affinity_cookie_ttl_sec +"/compute:alpha/BackendService/appEngineBackend": app_engine_backend "/compute:alpha/BackendService/backends": backends "/compute:alpha/BackendService/backends/backend": backend "/compute:alpha/BackendService/cdnPolicy": cdn_policy +"/compute:alpha/BackendService/cloudFunctionBackend": cloud_function_backend "/compute:alpha/BackendService/connectionDraining": connection_draining "/compute:alpha/BackendService/creationTimestamp": creation_timestamp "/compute:alpha/BackendService/customRequestHeaders": custom_request_headers @@ -14645,11 +14647,18 @@ "/compute:alpha/BackendServiceAggregatedList/warning/data/datum/key": key "/compute:alpha/BackendServiceAggregatedList/warning/data/datum/value": value "/compute:alpha/BackendServiceAggregatedList/warning/message": message +"/compute:alpha/BackendServiceAppEngineBackend": backend_service_app_engine_backend +"/compute:alpha/BackendServiceAppEngineBackend/appEngineService": app_engine_service +"/compute:alpha/BackendServiceAppEngineBackend/targetProject": target_project +"/compute:alpha/BackendServiceAppEngineBackend/version": version "/compute:alpha/BackendServiceCdnPolicy": backend_service_cdn_policy "/compute:alpha/BackendServiceCdnPolicy/cacheKeyPolicy": cache_key_policy "/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/BackendServiceCloudFunctionBackend": backend_service_cloud_function_backend +"/compute:alpha/BackendServiceCloudFunctionBackend/functionName": function_name +"/compute:alpha/BackendServiceCloudFunctionBackend/targetProject": target_project "/compute:alpha/BackendServiceFailoverPolicy": backend_service_failover_policy "/compute:alpha/BackendServiceFailoverPolicy/disableConnectionDrainOnFailover": disable_connection_drain_on_failover "/compute:alpha/BackendServiceFailoverPolicy/dropTrafficIfUnhealthy": drop_traffic_if_unhealthy @@ -18393,6 +18402,15 @@ "/compute:alpha/compute.licenseCodes.get": get_license_code "/compute:alpha/compute.licenseCodes.get/licenseCode": license_code "/compute:alpha/compute.licenseCodes.get/project": project +"/compute:alpha/compute.licenseCodes.getIamPolicy": get_license_code_iam_policy +"/compute:alpha/compute.licenseCodes.getIamPolicy/project": project +"/compute:alpha/compute.licenseCodes.getIamPolicy/resource": resource +"/compute:alpha/compute.licenseCodes.setIamPolicy": set_license_code_iam_policy +"/compute:alpha/compute.licenseCodes.setIamPolicy/project": project +"/compute:alpha/compute.licenseCodes.setIamPolicy/resource": resource +"/compute:alpha/compute.licenseCodes.testIamPermissions": test_license_code_iam_permissions +"/compute:alpha/compute.licenseCodes.testIamPermissions/project": project +"/compute:alpha/compute.licenseCodes.testIamPermissions/resource": resource "/compute:alpha/compute.licenses.delete": delete_license "/compute:alpha/compute.licenses.delete/license": license "/compute:alpha/compute.licenses.delete/project": project @@ -19489,6 +19507,8 @@ "/compute:beta/AccessConfig/kind": kind "/compute:beta/AccessConfig/name": name "/compute:beta/AccessConfig/natIP": nat_ip +"/compute:beta/AccessConfig/publicPtrDomainName": public_ptr_domain_name +"/compute:beta/AccessConfig/setPublicPtr": set_public_ptr "/compute:beta/AccessConfig/type": type "/compute:beta/Address": address "/compute:beta/Address/address": address @@ -20866,6 +20886,7 @@ "/compute:beta/NetworkInterface/accessConfigs/access_config": access_config "/compute:beta/NetworkInterface/aliasIpRanges": alias_ip_ranges "/compute:beta/NetworkInterface/aliasIpRanges/alias_ip_range": alias_ip_range +"/compute:beta/NetworkInterface/fingerprint": fingerprint "/compute:beta/NetworkInterface/kind": kind "/compute:beta/NetworkInterface/name": name "/compute:beta/NetworkInterface/network": network @@ -21412,8 +21433,10 @@ "/compute:beta/SslCertificateList/warning/data/datum/value": value "/compute:beta/SslCertificateList/warning/message": message "/compute:beta/Subnetwork": subnetwork +"/compute:beta/Subnetwork/allowSubnetCidrRoutesOverlap": allow_subnet_cidr_routes_overlap "/compute:beta/Subnetwork/creationTimestamp": creation_timestamp "/compute:beta/Subnetwork/description": description +"/compute:beta/Subnetwork/fingerprint": fingerprint "/compute:beta/Subnetwork/gatewayAddress": gateway_address "/compute:beta/Subnetwork/id": id "/compute:beta/Subnetwork/ipCidrRange": ip_cidr_range @@ -22690,6 +22713,18 @@ "/compute:beta/compute.instances.testIamPermissions/project": project "/compute:beta/compute.instances.testIamPermissions/resource": resource "/compute:beta/compute.instances.testIamPermissions/zone": zone +"/compute:beta/compute.instances.updateAccessConfig": update_instance_access_config +"/compute:beta/compute.instances.updateAccessConfig/instance": instance +"/compute:beta/compute.instances.updateAccessConfig/networkInterface": network_interface +"/compute:beta/compute.instances.updateAccessConfig/project": project +"/compute:beta/compute.instances.updateAccessConfig/requestId": request_id +"/compute:beta/compute.instances.updateAccessConfig/zone": zone +"/compute:beta/compute.instances.updateNetworkInterface": update_instance_network_interface +"/compute:beta/compute.instances.updateNetworkInterface/instance": instance +"/compute:beta/compute.instances.updateNetworkInterface/networkInterface": network_interface +"/compute:beta/compute.instances.updateNetworkInterface/project": project +"/compute:beta/compute.instances.updateNetworkInterface/requestId": request_id +"/compute:beta/compute.instances.updateNetworkInterface/zone": zone "/compute:beta/compute.interconnectAttachments.aggregatedList": aggregated_interconnect_attachment_list "/compute:beta/compute.interconnectAttachments.aggregatedList/filter": filter "/compute:beta/compute.interconnectAttachments.aggregatedList/maxResults": max_results @@ -23233,6 +23268,11 @@ "/compute:beta/compute.subnetworks.list/pageToken": page_token "/compute:beta/compute.subnetworks.list/project": project "/compute:beta/compute.subnetworks.list/region": region +"/compute:beta/compute.subnetworks.patch": patch_subnetwork +"/compute:beta/compute.subnetworks.patch/project": project +"/compute:beta/compute.subnetworks.patch/region": region +"/compute:beta/compute.subnetworks.patch/requestId": request_id +"/compute:beta/compute.subnetworks.patch/subnetwork": subnetwork "/compute:beta/compute.subnetworks.setIamPolicy": set_subnetwork_iam_policy "/compute:beta/compute.subnetworks.setIamPolicy/project": project "/compute:beta/compute.subnetworks.setIamPolicy/region": region @@ -24162,6 +24202,9 @@ "/compute:v1/Image/sourceDisk": source_disk "/compute:v1/Image/sourceDiskEncryptionKey": source_disk_encryption_key "/compute:v1/Image/sourceDiskId": source_disk_id +"/compute:v1/Image/sourceImage": source_image +"/compute:v1/Image/sourceImageEncryptionKey": source_image_encryption_key +"/compute:v1/Image/sourceImageId": source_image_id "/compute:v1/Image/sourceType": source_type "/compute:v1/Image/status": status "/compute:v1/ImageList": image_list @@ -27539,6 +27582,8 @@ "/content:v2/Account/users": users "/content:v2/Account/users/user": user "/content:v2/Account/websiteUrl": website_url +"/content:v2/Account/youtubeChannelLinks": youtube_channel_links +"/content:v2/Account/youtubeChannelLinks/youtube_channel_link": youtube_channel_link "/content:v2/AccountAdwordsLink": account_adwords_link "/content:v2/AccountAdwordsLink/adwordsId": adwords_id "/content:v2/AccountAdwordsLink/status": status @@ -27591,6 +27636,9 @@ "/content:v2/AccountUser": account_user "/content:v2/AccountUser/admin": admin "/content:v2/AccountUser/emailAddress": email_address +"/content:v2/AccountYouTubeChannelLink": account_you_tube_channel_link +"/content:v2/AccountYouTubeChannelLink/channelId": channel_id +"/content:v2/AccountYouTubeChannelLink/status": status "/content:v2/AccountsAuthInfoResponse": accounts_auth_info_response "/content:v2/AccountsAuthInfoResponse/accountIdentifiers": account_identifiers "/content:v2/AccountsAuthInfoResponse/accountIdentifiers/account_identifier": account_identifier @@ -27697,6 +27745,8 @@ "/content:v2/Datafeed/kind": kind "/content:v2/Datafeed/name": name "/content:v2/Datafeed/targetCountry": target_country +"/content:v2/Datafeed/targets": targets +"/content:v2/Datafeed/targets/target": target "/content:v2/DatafeedFetchSchedule": datafeed_fetch_schedule "/content:v2/DatafeedFetchSchedule/dayOfMonth": day_of_month "/content:v2/DatafeedFetchSchedule/fetchUrl": fetch_url @@ -27712,12 +27762,14 @@ "/content:v2/DatafeedFormat/fileEncoding": file_encoding "/content:v2/DatafeedFormat/quotingMode": quoting_mode "/content:v2/DatafeedStatus": datafeed_status +"/content:v2/DatafeedStatus/country": country "/content:v2/DatafeedStatus/datafeedId": datafeed_id "/content:v2/DatafeedStatus/errors": errors "/content:v2/DatafeedStatus/errors/error": error "/content:v2/DatafeedStatus/itemsTotal": items_total "/content:v2/DatafeedStatus/itemsValid": items_valid "/content:v2/DatafeedStatus/kind": kind +"/content:v2/DatafeedStatus/language": language "/content:v2/DatafeedStatus/lastUploadDate": last_upload_date "/content:v2/DatafeedStatus/processingStatus": processing_status "/content:v2/DatafeedStatus/warnings": warnings @@ -27732,6 +27784,13 @@ "/content:v2/DatafeedStatusExample/itemId": item_id "/content:v2/DatafeedStatusExample/lineNumber": line_number "/content:v2/DatafeedStatusExample/value": value +"/content:v2/DatafeedTarget": datafeed_target +"/content:v2/DatafeedTarget/country": country +"/content:v2/DatafeedTarget/excludedDestinations": excluded_destinations +"/content:v2/DatafeedTarget/excludedDestinations/excluded_destination": excluded_destination +"/content:v2/DatafeedTarget/includedDestinations": included_destinations +"/content:v2/DatafeedTarget/includedDestinations/included_destination": included_destination +"/content:v2/DatafeedTarget/language": language "/content:v2/DatafeedsCustomBatchRequest": batch_datafeeds_request "/content:v2/DatafeedsCustomBatchRequest/entries": entries "/content:v2/DatafeedsCustomBatchRequest/entries/entry": entry @@ -27759,7 +27818,9 @@ "/content:v2/DatafeedstatusesCustomBatchRequest/entries/entry": entry "/content:v2/DatafeedstatusesCustomBatchRequestEntry": datafeed_statuses_batch_request_entry "/content:v2/DatafeedstatusesCustomBatchRequestEntry/batchId": batch_id +"/content:v2/DatafeedstatusesCustomBatchRequestEntry/country": country "/content:v2/DatafeedstatusesCustomBatchRequestEntry/datafeedId": datafeed_id +"/content:v2/DatafeedstatusesCustomBatchRequestEntry/language": language "/content:v2/DatafeedstatusesCustomBatchRequestEntry/merchantId": merchant_id "/content:v2/DatafeedstatusesCustomBatchRequestEntry/method": request_method "/content:v2/DatafeedstatusesCustomBatchResponse": batch_datafeed_statuses_response @@ -28548,7 +28609,9 @@ "/content:v2/content.datafeeds.update/merchantId": merchant_id "/content:v2/content.datafeedstatuses.custombatch": batch_datafeed_status "/content:v2/content.datafeedstatuses.get": get_datafeed_status +"/content:v2/content.datafeedstatuses.get/country": country "/content:v2/content.datafeedstatuses.get/datafeedId": datafeed_id +"/content:v2/content.datafeedstatuses.get/language": language "/content:v2/content.datafeedstatuses.get/merchantId": merchant_id "/content:v2/content.datafeedstatuses.list": list_datafeed_statuses "/content:v2/content.datafeedstatuses.list/maxResults": max_results @@ -50514,6 +50577,9 @@ "/searchconsole:v1/key": key "/searchconsole:v1/quotaUser": quota_user "/searchconsole:v1/searchconsole.urlTestingTools.mobileFriendlyTest.run": run_mobile_friendly_test +"/servicecontrol:v1/AllocateInfo": allocate_info +"/servicecontrol:v1/AllocateInfo/unusedArguments": unused_arguments +"/servicecontrol:v1/AllocateInfo/unusedArguments/unused_argument": unused_argument "/servicecontrol:v1/AllocateQuotaRequest": allocate_quota_request "/servicecontrol:v1/AllocateQuotaRequest/allocateOperation": allocate_operation "/servicecontrol:v1/AllocateQuotaRequest/allocationMode": allocation_mode @@ -50521,6 +50587,7 @@ "/servicecontrol:v1/AllocateQuotaResponse": allocate_quota_response "/servicecontrol:v1/AllocateQuotaResponse/allocateErrors": allocate_errors "/servicecontrol:v1/AllocateQuotaResponse/allocateErrors/allocate_error": allocate_error +"/servicecontrol:v1/AllocateQuotaResponse/allocateInfo": allocate_info "/servicecontrol:v1/AllocateQuotaResponse/operationId": operation_id "/servicecontrol:v1/AllocateQuotaResponse/quotaMetrics": quota_metrics "/servicecontrol:v1/AllocateQuotaResponse/quotaMetrics/quota_metric": quota_metric @@ -50529,6 +50596,9 @@ "/servicecontrol:v1/AuditLog/authenticationInfo": authentication_info "/servicecontrol:v1/AuditLog/authorizationInfo": authorization_info "/servicecontrol:v1/AuditLog/authorizationInfo/authorization_info": authorization_info +"/servicecontrol:v1/AuditLog/metadata": metadata +"/servicecontrol:v1/AuditLog/metadata/metadatum": metadatum +"/servicecontrol:v1/AuditLog/metadata/metadatum/metadatum": metadatum "/servicecontrol:v1/AuditLog/methodName": method_name "/servicecontrol:v1/AuditLog/numResponseItems": num_response_items "/servicecontrol:v1/AuditLog/request": request diff --git a/generated/google/apis/acceleratedmobilepageurl_v1.rb b/generated/google/apis/acceleratedmobilepageurl_v1.rb index d8524f0e0..bec6c3bc7 100644 --- a/generated/google/apis/acceleratedmobilepageurl_v1.rb +++ b/generated/google/apis/acceleratedmobilepageurl_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/amp/cache/ module AcceleratedmobilepageurlV1 VERSION = 'V1' - REVISION = '20170718' + REVISION = '20170921' end end end diff --git a/generated/google/apis/analytics_v3/service.rb b/generated/google/apis/analytics_v3/service.rb index 547619e57..a2b87aa80 100644 --- a/generated/google/apis/analytics_v3/service.rb +++ b/generated/google/apis/analytics_v3/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'analytics/v3/') - @batch_path = 'batch' + @batch_path = 'batch/analytics/v3' end # Returns Analytics data for a view (profile). diff --git a/generated/google/apis/cloudmonitoring_v2beta2/service.rb b/generated/google/apis/cloudmonitoring_v2beta2/service.rb index 5d0b53e79..077df06e5 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2/service.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'cloudmonitoring/v2beta2/projects/') - @batch_path = 'batch' + @batch_path = 'batch/cloudmonitoring/v2beta2' end # Create a new metric. diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index a41989c53..d07f8f4d5 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 = '20170905' + REVISION = '20170908' # 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 c2a27f4ee..3137de95f 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -536,7 +536,7 @@ module Google class Address include Google::Apis::Core::Hashable - # The static external IP address represented by this resource. + # The static IP address represented by this resource. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -2411,6 +2411,11 @@ module Google # @return [Fixnum] attr_accessor :affinity_cookie_ttl_sec + # Configuration of a App Engine backend. + # Corresponds to the JSON property `appEngineBackend` + # @return [Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend] + attr_accessor :app_engine_backend + # The list of backends that serve this BackendService. # Corresponds to the JSON property `backends` # @return [Array] @@ -2421,6 +2426,11 @@ module Google # @return [Google::Apis::ComputeAlpha::BackendServiceCdnPolicy] attr_accessor :cdn_policy + # Configuration of a Cloud Function backend. + # Corresponds to the JSON property `cloudFunctionBackend` + # @return [Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend] + attr_accessor :cloud_function_backend + # Message containing connection draining configuration. # Corresponds to the JSON property `connectionDraining` # @return [Google::Apis::ComputeAlpha::ConnectionDraining] @@ -2571,8 +2581,10 @@ module Google # Update properties of this object def update!(**args) @affinity_cookie_ttl_sec = args[:affinity_cookie_ttl_sec] if args.key?(:affinity_cookie_ttl_sec) + @app_engine_backend = args[:app_engine_backend] if args.key?(:app_engine_backend) @backends = args[:backends] if args.key?(:backends) @cdn_policy = args[:cdn_policy] if args.key?(:cdn_policy) + @cloud_function_backend = args[:cloud_function_backend] if args.key?(:cloud_function_backend) @connection_draining = args[:connection_draining] if args.key?(:connection_draining) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @custom_request_headers = args[:custom_request_headers] if args.key?(:custom_request_headers) @@ -2714,6 +2726,39 @@ module Google end end + # Configuration of a App Engine backend. + class BackendServiceAppEngineBackend + include Google::Apis::Core::Hashable + + # Optional. App Engine app service name. + # Corresponds to the JSON property `appEngineService` + # @return [String] + attr_accessor :app_engine_service + + # Required. Project ID of the project hosting the app. This is the project ID of + # this project. Reference to another project is not allowed. + # Corresponds to the JSON property `targetProject` + # @return [String] + attr_accessor :target_project + + # Optional. Version of App Engine app service. When empty, App Engine will do + # its normal traffic split. + # 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) + @app_engine_service = args[:app_engine_service] if args.key?(:app_engine_service) + @target_project = args[:target_project] if args.key?(:target_project) + @version = args[:version] if args.key?(:version) + end + end + # Message containing Cloud CDN configuration for a backend service. class BackendServiceCdnPolicy include Google::Apis::Core::Hashable @@ -2752,6 +2797,32 @@ module Google end end + # Configuration of a Cloud Function backend. + class BackendServiceCloudFunctionBackend + include Google::Apis::Core::Hashable + + # Required. A cloud function name. Special value ?*? represents all cloud + # functions in the project. + # Corresponds to the JSON property `functionName` + # @return [String] + attr_accessor :function_name + + # Required. Project ID of the project hosting the cloud function. + # Corresponds to the JSON property `targetProject` + # @return [String] + attr_accessor :target_project + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @function_name = args[:function_name] if args.key?(:function_name) + @target_project = args[:target_project] if args.key?(:target_project) + end + end + # class BackendServiceFailoverPolicy include Google::Apis::Core::Hashable @@ -6023,8 +6094,7 @@ module Google # The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is # supported. For newer Windows images, the server might also populate this - # property with the value WINDOWS to indicate that this is a Windows image. This - # value is purely informational and does not enable or disable any features. + # property with the value WINDOWS to indicate that this is a Windows image. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -8000,9 +8070,8 @@ module Google # can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0. # 1621 or higher. Linux images with kernel versions 3.17 and higher will support # VIRTIO_SCSI_MULTIQUEUE. - # For new Windows images, the server might also populate this field with the - # value WINDOWS, to indicate that this is a Windows image. This value is purely - # informational and does not enable or disable any features. + # For newer Windows images, the server might also populate this property with + # the value WINDOWS to indicate that this is a Windows image. # Corresponds to the JSON property `guestOsFeatures` # @return [Array] attr_accessor :guest_os_features @@ -19352,9 +19421,8 @@ module Google # @return [String] attr_accessor :status - # [Output Only] A size of the the storage used by the snapshot. As snapshots - # share storage, this number is expected to change with snapshot creation/ - # deletion. + # [Output Only] A size of the storage used by the snapshot. As snapshots share + # storage, this number is expected to change with snapshot creation/deletion. # Corresponds to the JSON property `storageBytes` # @return [Fixnum] attr_accessor :storage_bytes diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 5c45cd842..98023424f 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -352,12 +352,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class BackendServiceAppEngineBackend + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendServiceCdnPolicy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class BackendServiceCloudFunctionBackend + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BackendServiceFailoverPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4001,10 +4013,14 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :affinity_cookie_ttl_sec, as: 'affinityCookieTtlSec' + property :app_engine_backend, as: 'appEngineBackend', class: Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend, decorator: Google::Apis::ComputeAlpha::BackendServiceAppEngineBackend::Representation + collection :backends, as: 'backends', class: Google::Apis::ComputeAlpha::Backend, decorator: Google::Apis::ComputeAlpha::Backend::Representation property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeAlpha::BackendServiceCdnPolicy, decorator: Google::Apis::ComputeAlpha::BackendServiceCdnPolicy::Representation + property :cloud_function_backend, as: 'cloudFunctionBackend', class: Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend, decorator: Google::Apis::ComputeAlpha::BackendServiceCloudFunctionBackend::Representation + property :connection_draining, as: 'connectionDraining', class: Google::Apis::ComputeAlpha::ConnectionDraining, decorator: Google::Apis::ComputeAlpha::ConnectionDraining::Representation property :creation_timestamp, as: 'creationTimestamp' @@ -4064,6 +4080,15 @@ module Google end end + class BackendServiceAppEngineBackend + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_engine_service, as: 'appEngineService' + property :target_project, as: 'targetProject' + property :version, as: 'version' + end + end + class BackendServiceCdnPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4074,6 +4099,14 @@ module Google end end + class BackendServiceCloudFunctionBackend + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :function_name, as: 'functionName' + property :target_project, as: 'targetProject' + end + end + class BackendServiceFailoverPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 60dfb862a..92e1bd5af 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -12256,6 +12256,128 @@ module Google execute_or_queue_command(command, &block) end + # Gets the access control policy for a resource. May be empty if no such policy + # or resource exists. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_license_code_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{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? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeAlpha::Policy] policy_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. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def set_license_code_iam_policy(project, resource, policy_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.request_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.request_object = policy_object + command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation + command.response_class = Google::Apis::ComputeAlpha::Policy + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + + # Returns permissions that a caller has on the specified resource. + # @param [String] project + # Project ID for this request. + # @param [String] resource + # Name of the resource for this request. + # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def test_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.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation + command.request_object = test_permissions_request_object + command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse + command.params['project'] = project unless project.nil? + command.params['resource'] = resource unless resource.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Deletes the specified license. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 984b84477..afd061d81 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 = '20170905' + REVISION = '20170908' # 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 4f17a17d2..a51f0fcd4 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -473,6 +473,19 @@ module Google # @return [String] attr_accessor :nat_ip + # The DNS domain name for the public PTR record. This field can only be set when + # the set_public_ptr field is enabled. + # Corresponds to the JSON property `publicPtrDomainName` + # @return [String] + attr_accessor :public_ptr_domain_name + + # Specifies whether a public DNS ?PTR? record should be created to map the + # external IP address of the instance to a DNS domain name. + # Corresponds to the JSON property `setPublicPtr` + # @return [Boolean] + attr_accessor :set_public_ptr + alias_method :set_public_ptr?, :set_public_ptr + # The type of configuration. The default and only option is ONE_TO_ONE_NAT. # Corresponds to the JSON property `type` # @return [String] @@ -487,6 +500,8 @@ module Google @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @nat_ip = args[:nat_ip] if args.key?(:nat_ip) + @public_ptr_domain_name = args[:public_ptr_domain_name] if args.key?(:public_ptr_domain_name) + @set_public_ptr = args[:set_public_ptr] if args.key?(:set_public_ptr) @type = args[:type] if args.key?(:type) end end @@ -495,7 +510,7 @@ module Google class Address include Google::Apis::Core::Hashable - # The static external IP address represented by this resource. + # The static IP address represented by this resource. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -5597,8 +5612,7 @@ module Google # The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is # supported. For newer Windows images, the server might also populate this - # property with the value WINDOWS to indicate that this is a Windows image. This - # value is purely informational and does not enable or disable any features. + # property with the value WINDOWS to indicate that this is a Windows image. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -6537,9 +6551,8 @@ module Google # can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0. # 1621 or higher. Linux images with kernel versions 3.17 and higher will support # VIRTIO_SCSI_MULTIQUEUE. - # For new Windows images, the server might also populate this field with the - # value WINDOWS, to indicate that this is a Windows image. This value is purely - # informational and does not enable or disable any features. + # For newer Windows images, the server might also populate this property with + # the value WINDOWS to indicate that this is a Windows image. # Corresponds to the JSON property `guestOsFeatures` # @return [Array] attr_accessor :guest_os_features @@ -11677,6 +11690,14 @@ module Google # @return [Array] attr_accessor :alias_ip_ranges + # Fingerprint hash of contents stored in this network interface. This field will + # be ignored when inserting an Instance or adding a NetworkInterface. An up-to- + # date fingerprint must be provided in order to update the NetworkInterface. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + # [Output Only] Type of the resource. Always compute#networkInterface for # network interfaces. # Corresponds to the JSON property `kind` @@ -11733,6 +11754,7 @@ module Google def update!(**args) @access_configs = args[:access_configs] if args.key?(:access_configs) @alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @@ -15610,9 +15632,8 @@ module Google # @return [String] attr_accessor :status - # [Output Only] A size of the the storage used by the snapshot. As snapshots - # share storage, this number is expected to change with snapshot creation/ - # deletion. + # [Output Only] A size of the storage used by the snapshot. As snapshots share + # storage, this number is expected to change with snapshot creation/deletion. # Corresponds to the JSON property `storageBytes` # @return [Fixnum] attr_accessor :storage_bytes @@ -15963,6 +15984,22 @@ module Google class Subnetwork include Google::Apis::Core::Hashable + # Whether this subnetwork can conflict with static routes. Setting this to true + # allows this subnetwork's primary and secondary ranges to conflict with routes + # that have already been configured on the corresponding network. Static routes + # will take precedence over the subnetwork route if the route prefix length is + # at least as large as the subnetwork prefix length. + # Also, packets destined to IPs within subnetwork may contain private/sensitive + # data and are prevented from leaving the virtual network. Setting this field to + # true will disable this feature. + # The default value is false and applies to all existing subnetworks and + # automatically created subnetworks. + # This field cannot be set to true at resource creation time. + # Corresponds to the JSON property `allowSubnetCidrRoutesOverlap` + # @return [Boolean] + attr_accessor :allow_subnet_cidr_routes_overlap + alias_method :allow_subnet_cidr_routes_overlap?, :allow_subnet_cidr_routes_overlap + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -15974,6 +16011,15 @@ module Google # @return [String] attr_accessor :description + # Fingerprint of this resource. A hash of the contents stored in this object. + # This field is used in optimistic locking. This field will be ignored when + # inserting a Subnetwork. An up-to-date fingerprint must be provided in order to + # update the Subnetwork. + # Corresponds to the JSON property `fingerprint` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :fingerprint + # [Output Only] The gateway address for default routes to reach destination # addresses outside this subnetwork. This field can be set only at resource # creation time. @@ -16052,8 +16098,10 @@ module Google # Update properties of this object def update!(**args) + @allow_subnet_cidr_routes_overlap = args[:allow_subnet_cidr_routes_overlap] if args.key?(:allow_subnet_cidr_routes_overlap) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @gateway_address = args[:gateway_address] if args.key?(:gateway_address) @id = args[:id] if args.key?(:id) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index c14ff25b8..2549ae457 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -2946,6 +2946,8 @@ module Google property :kind, as: 'kind' property :name, as: 'name' property :nat_ip, as: 'natIP' + property :public_ptr_domain_name, as: 'publicPtrDomainName' + property :set_public_ptr, as: 'setPublicPtr' property :type, as: 'type' end end @@ -5716,6 +5718,7 @@ module Google collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeBeta::AliasIpRange, decorator: Google::Apis::ComputeBeta::AliasIpRange::Representation + property :fingerprint, :base64 => true, as: 'fingerprint' property :kind, as: 'kind' property :name, as: 'name' property :network, as: 'network' @@ -6821,8 +6824,10 @@ module Google class Subnetwork # @private class Representation < Google::Apis::Core::JsonRepresentation + property :allow_subnet_cidr_routes_overlap, as: 'allowSubnetCidrRoutesOverlap' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' + property :fingerprint, :base64 => true, as: 'fingerprint' property :gateway_address, as: 'gatewayAddress' property :id, :numeric_string => true, as: 'id' property :ip_cidr_range, as: 'ipCidrRange' diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index 8c858a543..0158341da 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -9280,6 +9280,126 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified access config from an instance's network interface with + # the data included in the request. This method supports PATCH semantics and + # uses the JSON merge patch format and processing rules. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # The instance name for this request. + # @param [String] network_interface + # The name of the network interface where the access config is attached. + # @param [Google::Apis::ComputeBeta::AccessConfig] access_config_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def 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.request_representation = Google::Apis::ComputeBeta::AccessConfig::Representation + command.request_object = access_config_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['networkInterface'] = network_interface unless network_interface.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 + + # Updates an instance's network interface. This method follows PATCH semantics. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # The instance name for this request. + # @param [String] network_interface + # The name of the network interface to update. + # @param [Google::Apis::ComputeBeta::NetworkInterface] network_interface_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def 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.request_representation = Google::Apis::ComputeBeta::NetworkInterface::Representation + command.request_object = network_interface_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['zone'] = zone unless zone.nil? + command.params['instance'] = instance unless instance.nil? + command.query['networkInterface'] = network_interface unless network_interface.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Retrieves an aggregated list of interconnect attachments. # @param [String] project # Project ID for this request. @@ -15883,6 +16003,66 @@ module Google execute_or_queue_command(command, &block) end + # Patches the specified subnetwork with the data included in the request. Only + # the following fields within the subnetwork resource can be specified in the + # request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also + # mandatory to specify the current fingeprint of the subnetwork resource being + # patched. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] subnetwork + # Name of the Subnetwork resource to patch. + # @param [Google::Apis::ComputeBeta::Subnetwork] subnetwork_object + # @param [String] request_id + # An optional request ID to identify requests. Specify a unique request ID so + # that if you must retry your request, the server will know to ignore the + # request if it has already been completed. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request ID, the + # server can check if original operation with the same request ID was received, + # and if so, will ignore the second request. This prevents clients from + # accidentally creating duplicate commitments. + # The request ID must be a valid UUID with the exception that zero UUID is not + # supported (00000000-0000-0000-0000-000000000000). + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # Overrides userIp if both are provided. + # @param [String] user_ip + # IP address of the site where the request originates. Use this if you want to + # enforce per-user limits. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeBeta::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_subnetwork(project, region, subnetwork, subnetwork_object = 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.request_representation = Google::Apis::ComputeBeta::Subnetwork::Representation + command.request_object = subnetwork_object + command.response_representation = Google::Apis::ComputeBeta::Operation::Representation + command.response_class = Google::Apis::ComputeBeta::Operation + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['subnetwork'] = subnetwork unless subnetwork.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] project diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index fbef0aa30..8c3e227f4 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 = '20170905' + REVISION = '20170908' # 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 7e932b522..b0901d7fc 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -355,7 +355,7 @@ module Google class Address include Google::Apis::Core::Hashable - # The static external IP address represented by this resource. + # The static IP address represented by this resource. # Corresponds to the JSON property `address` # @return [String] attr_accessor :address @@ -3846,8 +3846,7 @@ module Google # The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is # supported. For newer Windows images, the server might also populate this - # property with the value WINDOWS to indicate that this is a Windows image. This - # value is purely informational and does not enable or disable any features. + # property with the value WINDOWS to indicate that this is a Windows image. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -4570,9 +4569,8 @@ module Google # can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0. # 1621 or higher. Linux images with kernel versions 3.17 and higher will support # VIRTIO_SCSI_MULTIQUEUE. - # For new Windows images, the server might also populate this field with the - # value WINDOWS, to indicate that this is a Windows image. This value is purely - # informational and does not enable or disable any features. + # For newer Windows images, the server might also populate this property with + # the value WINDOWS to indicate that this is a Windows image. # Corresponds to the JSON property `guestOsFeatures` # @return [Array] attr_accessor :guest_os_features @@ -4658,6 +4656,27 @@ module Google # @return [String] attr_accessor :source_disk_id + # URL of the source image used to create this image. This can be a full or valid + # partial URL. You must provide exactly one of: + # - this property, or + # - the rawDisk.source property, or + # - the sourceDisk property in order to create an image. + # Corresponds to the JSON property `sourceImage` + # @return [String] + attr_accessor :source_image + + # Represents a customer-supplied encryption key + # Corresponds to the JSON property `sourceImageEncryptionKey` + # @return [Google::Apis::ComputeV1::CustomerEncryptionKey] + attr_accessor :source_image_encryption_key + + # [Output Only] The ID value of the image used to create this image. This value + # may be used to determine whether the image was taken from the current or a + # previous instance of a given image name. + # Corresponds to the JSON property `sourceImageId` + # @return [String] + attr_accessor :source_image_id + # The type of the image used to create this disk. The default and only value is # RAW # Corresponds to the JSON property `sourceType` @@ -4697,6 +4716,9 @@ module Google @source_disk = args[:source_disk] if args.key?(:source_disk) @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key) @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) + @source_image = args[:source_image] if args.key?(:source_image) + @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) + @source_image_id = args[:source_image_id] if args.key?(:source_image_id) @source_type = args[:source_type] if args.key?(:source_type) @status = args[:status] if args.key?(:status) end @@ -9828,9 +9850,8 @@ module Google # @return [String] attr_accessor :status - # [Output Only] A size of the the storage used by the snapshot. As snapshots - # share storage, this number is expected to change with snapshot creation/ - # deletion. + # [Output Only] A size of the storage used by the snapshot. As snapshots share + # storage, this number is expected to change with snapshot creation/deletion. # Corresponds to the JSON property `storageBytes` # @return [Fixnum] attr_accessor :storage_bytes diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index 31f5cb8b4..ca87e2648 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -2788,6 +2788,10 @@ module Google property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation property :source_disk_id, as: 'sourceDiskId' + property :source_image, as: 'sourceImage' + property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation + + property :source_image_id, as: 'sourceImageId' property :source_type, as: 'sourceType' property :status, as: 'status' end diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 0d41a0ea7..0c3dcc3c2 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'compute/v1/projects/') - @batch_path = 'batch' + @batch_path = 'batch/compute/v1' end # Retrieves an aggregated list of accelerator types. diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 5dd59ce3a..406974180 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 = '20170914' + REVISION = '20170921' # 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 2e6bf373e..c79a7cbf8 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -78,6 +78,15 @@ module Google # @return [String] attr_accessor :website_url + # List of linked YouTube channels that are active or pending approval. To create + # a new link request, add a new link with status active to the list. It will + # remain in a pending state until approved or rejected in the YT Creator Studio + # interface. To delete an active link, or to cancel a link request, remove it + # from the list. + # Corresponds to the JSON property `youtubeChannelLinks` + # @return [Array] + attr_accessor :youtube_channel_links + def initialize(**args) update!(**args) end @@ -93,6 +102,7 @@ module Google @seller_id = args[:seller_id] if args.key?(:seller_id) @users = args[:users] if args.key?(:users) @website_url = args[:website_url] if args.key?(:website_url) + @youtube_channel_links = args[:youtube_channel_links] if args.key?(:youtube_channel_links) end end @@ -467,6 +477,39 @@ module Google end end + # + class AccountYouTubeChannelLink + include Google::Apis::Core::Hashable + + # Channel ID. + # Corresponds to the JSON property `channelId` + # @return [String] + attr_accessor :channel_id + + # Status of the link between this Merchant Center account and the YouTube + # channel. Upon retrieval, it represents the actual status of the link and can + # be either active if it was approved in YT Creator Studio or pending if it's + # pending approval. Upon insertion, it represents the intended status of the + # link. Re-uploading a link with status active when it's still pending or with + # status pending when it's already active will have no effect: the status will + # remain unchanged. Re-uploading a link with deprecated status inactive is + # equivalent to not submitting the link at all and will delete the link if it + # was active or cancel the link request if it was pending. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @status = args[:status] if args.key?(:status) + end + end + # class AccountsAuthInfoResponse include Google::Apis::Core::Hashable @@ -1093,8 +1136,8 @@ module Google # @return [String] attr_accessor :attribute_language - # The two-letter ISO 639-1 language of the items in the feed. Must be a valid - # language for targetCountry. + # [DEPRECATED] Please use target.language instead. The two-letter ISO 639-1 + # language of the items in the feed. Must be a valid language for targetCountry. # Corresponds to the JSON property `contentLanguage` # @return [String] attr_accessor :content_language @@ -1128,8 +1171,8 @@ module Google # @return [Fixnum] attr_accessor :id - # The list of intended destinations (corresponds to checked check boxes in - # Merchant Center). + # [DEPRECATED] Please use target.includedDestination instead. The list of + # intended destinations (corresponds to checked check boxes in Merchant Center). # Corresponds to the JSON property `intendedDestinations` # @return [Array] attr_accessor :intended_destinations @@ -1145,12 +1188,18 @@ module Google # @return [String] attr_accessor :name - # The country where the items in the feed will be included in the search index, - # represented as a CLDR territory code. + # [DEPRECATED] Please use target.country instead. The country where the items in + # the feed will be included in the search index, represented as a CLDR territory + # code. # Corresponds to the JSON property `targetCountry` # @return [String] attr_accessor :target_country + # The targets this feed should apply to (country, language, destinations). + # Corresponds to the JSON property `targets` + # @return [Array] + attr_accessor :targets + def initialize(**args) update!(**args) end @@ -1168,6 +1217,7 @@ module Google @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @target_country = args[:target_country] if args.key?(:target_country) + @targets = args[:targets] if args.key?(:targets) end end @@ -1285,6 +1335,12 @@ module Google class DatafeedStatus include Google::Apis::Core::Hashable + # The country for which the status is reported, represented as a CLDR territory + # code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + # The ID of the feed for which the status is reported. # Corresponds to the JSON property `datafeedId` # @return [Fixnum] @@ -1311,6 +1367,11 @@ module Google # @return [String] attr_accessor :kind + # The two-letter ISO 639-1 language for which the status is reported. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + # The last date at which the feed was uploaded. # Corresponds to the JSON property `lastUploadDate` # @return [String] @@ -1332,11 +1393,13 @@ module Google # Update properties of this object def update!(**args) + @country = args[:country] if args.key?(:country) @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) @errors = args[:errors] if args.key?(:errors) @items_total = args[:items_total] if args.key?(:items_total) @items_valid = args[:items_valid] if args.key?(:items_valid) @kind = args[:kind] if args.key?(:kind) + @language = args[:language] if args.key?(:language) @last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date) @processing_status = args[:processing_status] if args.key?(:processing_status) @warnings = args[:warnings] if args.key?(:warnings) @@ -1411,6 +1474,48 @@ module Google end end + # + class DatafeedTarget + include Google::Apis::Core::Hashable + + # The country where the items in the feed will be included in the search index, + # represented as a CLDR territory code. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The list of destinations to exclude for this target (corresponds to unchecked + # check boxes in Merchant Center). + # Corresponds to the JSON property `excludedDestinations` + # @return [Array] + attr_accessor :excluded_destinations + + # The list of destinations to include for this target (corresponds to checked + # check boxes in Merchant Center). Default destinations are always included + # unless provided in the excluded_destination field. + # Corresponds to the JSON property `includedDestinations` + # @return [Array] + attr_accessor :included_destinations + + # The two-letter ISO 639-1 language of the items in the feed. Must be a valid + # language for targetCountryLanguage.country. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country = args[:country] if args.key?(:country) + @excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations) + @included_destinations = args[:included_destinations] if args.key?(:included_destinations) + @language = args[:language] if args.key?(:language) + end + end + # class BatchDatafeedsRequest include Google::Apis::Core::Hashable @@ -1590,11 +1695,25 @@ module Google # @return [Fixnum] attr_accessor :batch_id - # The ID of the data feed to get or delete. + # The country for which to get the datafeed status. If this parameter is + # provided then language must also be provided. Note that for multi-target + # datafeeds this parameter is required. + # Corresponds to the JSON property `country` + # @return [String] + attr_accessor :country + + # The ID of the data feed to get. # Corresponds to the JSON property `datafeedId` # @return [Fixnum] attr_accessor :datafeed_id + # The language for which to get the datafeed status. If this parameter is + # provided then country must also be provided. Note that for multi-target + # datafeeds this parameter is required. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + # The ID of the managing account. # Corresponds to the JSON property `merchantId` # @return [Fixnum] @@ -1612,7 +1731,9 @@ module Google # Update properties of this object def update!(**args) @batch_id = args[:batch_id] if args.key?(:batch_id) + @country = args[:country] if args.key?(:country) @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @language = args[:language] if args.key?(:language) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @request_method = args[:request_method] if args.key?(:request_method) end @@ -2928,7 +3049,15 @@ module Google # @return [String] attr_accessor :phone_number - # The type of instrument (VISA, Mastercard, etc). + # The type of instrument. + # Acceptable values are: + # - "AMEX" + # - "DISCOVER" + # - "JCB" + # - "MASTERCARD" + # - "UNIONPAY" + # - "VISA" + # - "" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 2c29c7ef1..ef632a1b8 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AccountYouTubeChannelLink + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AccountsAuthInfoResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -232,6 +238,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DatafeedTarget + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BatchDatafeedsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -966,6 +978,8 @@ module Google collection :users, as: 'users', class: Google::Apis::ContentV2::AccountUser, decorator: Google::Apis::ContentV2::AccountUser::Representation property :website_url, as: 'websiteUrl' + collection :youtube_channel_links, as: 'youtubeChannelLinks', class: Google::Apis::ContentV2::AccountYouTubeChannelLink, decorator: Google::Apis::ContentV2::AccountYouTubeChannelLink::Representation + end end @@ -1066,6 +1080,14 @@ module Google end end + class AccountYouTubeChannelLink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :channel_id, as: 'channelId' + property :status, as: 'status' + end + end + class AccountsAuthInfoResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1272,6 +1294,8 @@ module Google property :kind, as: 'kind' property :name, as: 'name' property :target_country, as: 'targetCountry' + collection :targets, as: 'targets', class: Google::Apis::ContentV2::DatafeedTarget, decorator: Google::Apis::ContentV2::DatafeedTarget::Representation + end end @@ -1302,12 +1326,14 @@ module Google class DatafeedStatus # @private class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' property :datafeed_id, :numeric_string => true, as: 'datafeedId' collection :errors, as: 'errors', class: Google::Apis::ContentV2::DatafeedStatusError, decorator: Google::Apis::ContentV2::DatafeedStatusError::Representation property :items_total, :numeric_string => true, as: 'itemsTotal' property :items_valid, :numeric_string => true, as: 'itemsValid' property :kind, as: 'kind' + property :language, as: 'language' property :last_upload_date, as: 'lastUploadDate' property :processing_status, as: 'processingStatus' collection :warnings, as: 'warnings', class: Google::Apis::ContentV2::DatafeedStatusError, decorator: Google::Apis::ContentV2::DatafeedStatusError::Representation @@ -1335,6 +1361,16 @@ module Google end end + class DatafeedTarget + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country, as: 'country' + collection :excluded_destinations, as: 'excludedDestinations' + collection :included_destinations, as: 'includedDestinations' + property :language, as: 'language' + end + end + class BatchDatafeedsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1397,7 +1433,9 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :batch_id, as: 'batchId' + property :country, as: 'country' property :datafeed_id, :numeric_string => true, as: 'datafeedId' + property :language, as: 'language' property :merchant_id, :numeric_string => true, as: 'merchantId' property :request_method, as: 'method' end diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index ad9382cf8..20d3c3587 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -1090,6 +1090,16 @@ module Google # method can only be called for non-multi-client accounts. # @param [Fixnum] merchant_id # @param [Fixnum] datafeed_id + # @param [String] country + # The country for which to get the datafeed status. If this parameter is + # provided then language must also be provided. Note that this parameter is + # required for feeds targeting multiple countries and languages, since a feed + # may have a different status for each target. + # @param [String] language + # The language for which to get the datafeed status. If this parameter is + # provided then country must also be provided. Note that this parameter is + # required for feeds targeting multiple countries and languages, since a feed + # may have a different status for each target. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1111,12 +1121,14 @@ 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_datafeed_status(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_datafeed_status(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options) command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation command.response_class = Google::Apis::ContentV2::DatafeedStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? + command.query['country'] = country unless country.nil? + command.query['language'] = language unless language.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? diff --git a/generated/google/apis/content_v2sandbox.rb b/generated/google/apis/content_v2sandbox.rb index e4a25a76f..8a287b6b7 100644 --- a/generated/google/apis/content_v2sandbox.rb +++ b/generated/google/apis/content_v2sandbox.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2sandbox VERSION = 'V2sandbox' - REVISION = '20170912' + REVISION = '20170921' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2sandbox/classes.rb b/generated/google/apis/content_v2sandbox/classes.rb index e46bdb50b..99a3f1dcc 100644 --- a/generated/google/apis/content_v2sandbox/classes.rb +++ b/generated/google/apis/content_v2sandbox/classes.rb @@ -753,7 +753,15 @@ module Google # @return [String] attr_accessor :phone_number - # The type of instrument (VISA, Mastercard, etc). + # The type of instrument. + # Acceptable values are: + # - "AMEX" + # - "DISCOVER" + # - "JCB" + # - "MASTERCARD" + # - "UNIONPAY" + # - "VISA" + # - "" # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/resourceviews_v1beta1/service.rb b/generated/google/apis/resourceviews_v1beta1/service.rb index efc1ee88d..ad2c56f26 100644 --- a/generated/google/apis/resourceviews_v1beta1/service.rb +++ b/generated/google/apis/resourceviews_v1beta1/service.rb @@ -51,7 +51,7 @@ module Google def initialize super('https://www.googleapis.com/', 'resourceviews/v1beta1/projects/') - @batch_path = 'batch' + @batch_path = 'batch/resourceviews/v1beta1' end # Add resources to the view. diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 8c159a8e6..0a8bed7b2 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 = '20170909' + REVISION = '20170918' # 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 0f5686300..d52717a90 100644 --- a/generated/google/apis/servicecontrol_v1/classes.rb +++ b/generated/google/apis/servicecontrol_v1/classes.rb @@ -22,6 +22,28 @@ module Google module Apis module ServicecontrolV1 + # + 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. + # Corresponds to the JSON property `unusedArguments` + # @return [Array] + attr_accessor :unused_arguments + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments) + end + end + # Request message for the AllocateQuota method. class AllocateQuotaRequest include Google::Apis::Core::Hashable @@ -31,12 +53,6 @@ module Google # @return [Google::Apis::ServicecontrolV1::QuotaOperation] attr_accessor :allocate_operation - # Allocation mode for this operation. - # Deprecated: use QuotaMode inside the QuotaOperation. - # Corresponds to the JSON property `allocationMode` - # @return [String] - attr_accessor :allocation_mode - # 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. @@ -51,7 +67,6 @@ module Google # Update properties of this object def update!(**args) @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation) - @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode) @service_config_id = args[:service_config_id] if args.key?(:service_config_id) end end @@ -65,6 +80,11 @@ module Google # @return [Array] attr_accessor :allocate_errors + # WARNING: DO NOT use this field until this warning message is removed. + # Corresponds to the JSON property `allocateInfo` + # @return [Google::Apis::ServicecontrolV1::AllocateInfo] + attr_accessor :allocate_info + # The same operation_id value used in the AllocateQuotaRequest. Used for # logging and diagnostics purposes. # Corresponds to the JSON property `operationId` @@ -101,6 +121,7 @@ module Google # Update properties of this object def update!(**args) @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors) + @allocate_info = args[:allocate_info] if args.key?(:allocate_info) @operation_id = args[:operation_id] if args.key?(:operation_id) @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics) @service_config_id = args[:service_config_id] if args.key?(:service_config_id) @@ -123,6 +144,12 @@ module Google # @return [Array] attr_accessor :authorization_info + # Other service-specific data about the request, response, and other + # information associated with the current audited event. + # Corresponds to the JSON property `metadata` + # @return [Array>] + 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, @@ -172,6 +199,7 @@ module Google # @return [Hash] attr_accessor :response + # Deprecated, use `metadata` field instead. # Other service-specific data about the request, response, and other # activities. # Corresponds to the JSON property `serviceData` @@ -235,6 +263,7 @@ module Google def update!(**args) @authentication_info = args[:authentication_info] if args.key?(:authentication_info) @authorization_info = args[:authorization_info] if args.key?(:authorization_info) + @metadata = args[:metadata] if args.key?(:metadata) @method_name = args[:method_name] if args.key?(:method_name) @num_response_items = args[:num_response_items] if args.key?(:num_response_items) @request = args[:request] if args.key?(:request) @@ -345,7 +374,7 @@ module Google end end - # + # Contains additional information about the check operation. class CheckInfo include Google::Apis::Core::Hashable @@ -427,7 +456,7 @@ module Google # @return [Array] attr_accessor :check_errors - # Feedback data returned from the server during processing a Check request. + # Contains additional information about the check operation. # Corresponds to the JSON property `checkInfo` # @return [Google::Apis::ServicecontrolV1::CheckInfo] attr_accessor :check_info @@ -567,7 +596,7 @@ module Google end end - # + # Request message for QuotaController.EndReconciliation. class EndReconciliationRequest include Google::Apis::Core::Hashable @@ -594,7 +623,7 @@ module Google end end - # + # Response message for QuotaController.EndReconciliation. class EndReconciliationResponse include Google::Apis::Core::Hashable @@ -1064,7 +1093,7 @@ module Google # @return [String] attr_accessor :resource_container - # + # The resources that are involved in the operation. # Corresponds to the JSON property `resources` # @return [Array] attr_accessor :resources @@ -1075,7 +1104,8 @@ module Google attr_accessor :start_time # User defined labels for the resource that this operation is associated - # with. + # 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 @@ -1102,7 +1132,7 @@ module Google end end - # + # Represents error information for QuotaOperation. class QuotaError include Google::Apis::Core::Hashable @@ -1431,7 +1461,7 @@ module Google end end - # + # Contains additional info about the report operation. class ReportInfo include Google::Apis::Core::Hashable @@ -1611,7 +1641,7 @@ module Google end end - # + # Request message for QuotaController.StartReconciliation. class StartReconciliationRequest include Google::Apis::Core::Hashable @@ -1638,7 +1668,7 @@ module Google end end - # + # Response message for QuotaController.StartReconciliation. class StartReconciliationResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/servicecontrol_v1/representations.rb b/generated/google/apis/servicecontrol_v1/representations.rb index b269565e5..3a476b823 100644 --- a/generated/google/apis/servicecontrol_v1/representations.rb +++ b/generated/google/apis/servicecontrol_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module ServicecontrolV1 + class AllocateInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AllocateQuotaRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -238,12 +244,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AllocateInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :unused_arguments, as: 'unusedArguments' + end + end + class AllocateQuotaRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :allocate_operation, as: 'allocateOperation', class: Google::Apis::ServicecontrolV1::QuotaOperation, decorator: Google::Apis::ServicecontrolV1::QuotaOperation::Representation - property :allocation_mode, as: 'allocationMode' property :service_config_id, as: 'serviceConfigId' end end @@ -253,6 +265,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :allocate_errors, as: 'allocateErrors', class: Google::Apis::ServicecontrolV1::QuotaError, decorator: Google::Apis::ServicecontrolV1::QuotaError::Representation + property :allocate_info, as: 'allocateInfo', class: Google::Apis::ServicecontrolV1::AllocateInfo, decorator: Google::Apis::ServicecontrolV1::AllocateInfo::Representation + property :operation_id, as: 'operationId' collection :quota_metrics, as: 'quotaMetrics', class: Google::Apis::ServicecontrolV1::MetricValueSet, decorator: Google::Apis::ServicecontrolV1::MetricValueSet::Representation @@ -267,6 +281,7 @@ module Google collection :authorization_info, as: 'authorizationInfo', class: Google::Apis::ServicecontrolV1::AuthorizationInfo, decorator: Google::Apis::ServicecontrolV1::AuthorizationInfo::Representation + collection :metadata, as: 'metadata' property :method_name, as: 'methodName' property :num_response_items, :numeric_string => true, as: 'numResponseItems' hash :request, as: 'request' diff --git a/generated/google/apis/servicecontrol_v1/service.rb b/generated/google/apis/servicecontrol_v1/service.rb index ff16d7f4b..1cf6d4fee 100644 --- a/generated/google/apis/servicecontrol_v1/service.rb +++ b/generated/google/apis/servicecontrol_v1/service.rb @@ -52,15 +52,11 @@ module Google # before the operation is executed. # This method requires the `servicemanagement.services.quota` # permission on the specified service. For more information, see - # [Google Cloud IAM](https://cloud.google.com/iam). - # **NOTE:** the client code **must** fail-open if the server returns one - # of the following quota errors: - # - `PROJECT_STATUS_UNAVAILABLE` - # - `SERVICE_STATUS_UNAVAILABLE` - # - `BILLING_STATUS_UNAVAILABLE` - # - `QUOTA_SYSTEM_UNAVAILABLE` - # The server may inject above errors to prohibit any hard dependency - # on the quota system. + # [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"`. @@ -184,15 +180,11 @@ module Google # Releases previously allocated quota done through AllocateQuota method. # This method requires the `servicemanagement.services.quota` # permission on the specified service. For more information, see - # [Google Cloud IAM](https://cloud.google.com/iam). - # **NOTE:** the client code **must** fail-open if the server returns one - # of the following quota errors: - # - `PROJECT_STATUS_UNAVAILABLE` - # - `SERVICE_STATUS_UNAVAILABLE` - # - `BILLING_STATUS_UNAVAILABLE` - # - `QUOTA_SYSTEM_UNAVAILABLE` - # The server may inject above errors to prohibit any hard dependency - # on the quota system. + # [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"`. diff --git a/generated/google/apis/taskqueue_v1beta2/service.rb b/generated/google/apis/taskqueue_v1beta2/service.rb index 212ad4616..61eda38cf 100644 --- a/generated/google/apis/taskqueue_v1beta2/service.rb +++ b/generated/google/apis/taskqueue_v1beta2/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'taskqueue/v1beta2/projects/') - @batch_path = 'batch' + @batch_path = 'batch/taskqueue/v1beta2' end # Get detailed information about a TaskQueue.