From a1e0c23a20d3b6b02faefb13153c966049956dc7 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 31 Aug 2017 00:35:15 +0000 Subject: [PATCH] Autogenerated update (2017-08-31) Update: - androidenterprise_v1 - container_v1 - container_v1beta1 - dlp_v2beta1 - drive_v2 - drive_v3 - people_v1 - toolresults_v1beta3 - toolresults_v1beta3firstparty - youtube_partner_v1 --- api_names_out.yaml | 69 +++++++++ generated/google/apis/androidenterprise_v1.rb | 2 +- .../apis/androidenterprise_v1/classes.rb | 33 +++++ .../androidenterprise_v1/representations.rb | 16 ++ .../apis/androidenterprise_v1/service.rb | 2 +- generated/google/apis/container_v1.rb | 2 +- generated/google/apis/container_v1/classes.rb | 107 ++++++++++---- .../apis/container_v1/representations.rb | 7 + generated/google/apis/container_v1beta1.rb | 2 +- .../google/apis/container_v1beta1/classes.rb | 93 ++++++++---- .../apis/container_v1beta1/representations.rb | 5 + generated/google/apis/dlp_v2beta1.rb | 2 +- generated/google/apis/dlp_v2beta1/classes.rb | 2 +- generated/google/apis/dlp_v2beta1/service.rb | 135 +++++++++++++++++ generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 6 + .../google/apis/drive_v2/representations.rb | 1 + generated/google/apis/drive_v2/service.rb | 10 +- generated/google/apis/drive_v3.rb | 2 +- generated/google/apis/drive_v3/classes.rb | 6 + .../google/apis/drive_v3/representations.rb | 1 + generated/google/apis/drive_v3/service.rb | 10 +- generated/google/apis/people_v1.rb | 2 +- generated/google/apis/people_v1/classes.rb | 37 +++++ .../google/apis/people_v1/representations.rb | 18 +++ generated/google/apis/toolresults_v1beta3.rb | 2 +- .../apis/toolresults_v1beta3/service.rb | 48 ++++++ .../apis/toolresults_v1beta3firstparty.rb | 2 +- .../toolresults_v1beta3firstparty/service.rb | 48 ++++++ generated/google/apis/youtube_partner_v1.rb | 2 +- .../google/apis/youtube_partner_v1/classes.rb | 137 ++++++++++++++++++ .../youtube_partner_v1/representations.rb | 62 ++++++++ .../google/apis/youtube_partner_v1/service.rb | 80 ++++++++++ 33 files changed, 881 insertions(+), 72 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 82fadf98a..c2fab687b 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -5185,6 +5185,7 @@ "/androidenterprise:v1/Product/productId": product_id "/androidenterprise:v1/Product/productPricing": product_pricing "/androidenterprise:v1/Product/requiresContainerApp": requires_container_app +"/androidenterprise:v1/Product/signingCertificate": signing_certificate "/androidenterprise:v1/Product/smallIconUrl": small_icon_url "/androidenterprise:v1/Product/title": title "/androidenterprise:v1/Product/workDetailsUrl": work_details_url @@ -5207,6 +5208,9 @@ "/androidenterprise:v1/ProductSet/productId": product_id "/androidenterprise:v1/ProductSet/productId/product_id": product_id "/androidenterprise:v1/ProductSet/productSetBehavior": product_set_behavior +"/androidenterprise:v1/ProductSigningCertificate": product_signing_certificate +"/androidenterprise:v1/ProductSigningCertificate/certificateHashSha1": certificate_hash_sha1 +"/androidenterprise:v1/ProductSigningCertificate/certificateHashSha256": certificate_hash_sha256 "/androidenterprise:v1/ProductsApproveRequest": approve_product_request "/androidenterprise:v1/ProductsApproveRequest/approvalUrlInfo": approval_url_info "/androidenterprise:v1/ProductsApproveRequest/approvedPermissions": approved_permissions @@ -25854,9 +25858,14 @@ "/container:v1/HttpLoadBalancing/disabled": disabled "/container:v1/IPAllocationPolicy": ip_allocation_policy "/container:v1/IPAllocationPolicy/clusterIpv4Cidr": cluster_ipv4_cidr +"/container:v1/IPAllocationPolicy/clusterIpv4CidrBlock": cluster_ipv4_cidr_block +"/container:v1/IPAllocationPolicy/clusterSecondaryRangeName": cluster_secondary_range_name "/container:v1/IPAllocationPolicy/createSubnetwork": create_subnetwork "/container:v1/IPAllocationPolicy/nodeIpv4Cidr": node_ipv4_cidr +"/container:v1/IPAllocationPolicy/nodeIpv4CidrBlock": node_ipv4_cidr_block "/container:v1/IPAllocationPolicy/servicesIpv4Cidr": services_ipv4_cidr +"/container:v1/IPAllocationPolicy/servicesIpv4CidrBlock": services_ipv4_cidr_block +"/container:v1/IPAllocationPolicy/servicesSecondaryRangeName": services_secondary_range_name "/container:v1/IPAllocationPolicy/subnetworkName": subnetwork_name "/container:v1/IPAllocationPolicy/useIpAliases": use_ip_aliases "/container:v1/KubernetesDashboard": kubernetes_dashboard @@ -25929,9 +25938,11 @@ "/container:v1/NodePoolAutoscaling/minNodeCount": min_node_count "/container:v1/Operation": operation "/container:v1/Operation/detail": detail +"/container:v1/Operation/endTime": end_time "/container:v1/Operation/name": name "/container:v1/Operation/operationType": operation_type "/container:v1/Operation/selfLink": self_link +"/container:v1/Operation/startTime": start_time "/container:v1/Operation/status": status "/container:v1/Operation/statusMessage": status_message "/container:v1/Operation/targetLink": target_link @@ -26195,9 +26206,14 @@ "/container:v1beta1/HttpLoadBalancing/disabled": disabled "/container:v1beta1/IPAllocationPolicy": ip_allocation_policy "/container:v1beta1/IPAllocationPolicy/clusterIpv4Cidr": cluster_ipv4_cidr +"/container:v1beta1/IPAllocationPolicy/clusterIpv4CidrBlock": cluster_ipv4_cidr_block +"/container:v1beta1/IPAllocationPolicy/clusterSecondaryRangeName": cluster_secondary_range_name "/container:v1beta1/IPAllocationPolicy/createSubnetwork": create_subnetwork "/container:v1beta1/IPAllocationPolicy/nodeIpv4Cidr": node_ipv4_cidr +"/container:v1beta1/IPAllocationPolicy/nodeIpv4CidrBlock": node_ipv4_cidr_block "/container:v1beta1/IPAllocationPolicy/servicesIpv4Cidr": services_ipv4_cidr +"/container:v1beta1/IPAllocationPolicy/servicesIpv4CidrBlock": services_ipv4_cidr_block +"/container:v1beta1/IPAllocationPolicy/servicesSecondaryRangeName": services_secondary_range_name "/container:v1beta1/IPAllocationPolicy/subnetworkName": subnetwork_name "/container:v1beta1/IPAllocationPolicy/useIpAliases": use_ip_aliases "/container:v1beta1/KubernetesDashboard": kubernetes_dashboard @@ -36922,6 +36938,17 @@ "/dlp:v2beta1/dlp.inspect.results.findings.list/name": name "/dlp:v2beta1/dlp.inspect.results.findings.list/pageSize": page_size "/dlp:v2beta1/dlp.inspect.results.findings.list/pageToken": page_token +"/dlp:v2beta1/dlp.riskAnalysis.operations.cancel": cancel_risk_analysis_operation +"/dlp:v2beta1/dlp.riskAnalysis.operations.cancel/name": name +"/dlp:v2beta1/dlp.riskAnalysis.operations.delete": delete_risk_analysis_operation +"/dlp:v2beta1/dlp.riskAnalysis.operations.delete/name": name +"/dlp:v2beta1/dlp.riskAnalysis.operations.get": get_risk_analysis_operation +"/dlp:v2beta1/dlp.riskAnalysis.operations.get/name": name +"/dlp:v2beta1/dlp.riskAnalysis.operations.list": list_risk_analysis_operations +"/dlp:v2beta1/dlp.riskAnalysis.operations.list/filter": filter +"/dlp:v2beta1/dlp.riskAnalysis.operations.list/name": name +"/dlp:v2beta1/dlp.riskAnalysis.operations.list/pageSize": page_size +"/dlp:v2beta1/dlp.riskAnalysis.operations.list/pageToken": page_token "/dlp:v2beta1/dlp.rootCategories.infoTypes.list": list_root_category_info_types "/dlp:v2beta1/dlp.rootCategories.infoTypes.list/category": category "/dlp:v2beta1/dlp.rootCategories.infoTypes.list/languageCode": language_code @@ -37798,6 +37825,8 @@ "/drive:v2/File/owners/owner": owner "/drive:v2/File/parents": parents "/drive:v2/File/parents/parent": parent +"/drive:v2/File/permissionIds": permission_ids +"/drive:v2/File/permissionIds/permission_id": permission_id "/drive:v2/File/permissions": permissions "/drive:v2/File/permissions/permission": permission "/drive:v2/File/properties": properties @@ -38422,6 +38451,8 @@ "/drive:v3/File/owners/owner": owner "/drive:v3/File/parents": parents "/drive:v3/File/parents/parent": parent +"/drive:v3/File/permissionIds": permission_ids +"/drive:v3/File/permissionIds/permission_id": permission_id "/drive:v3/File/permissions": permissions "/drive:v3/File/permissions/permission": permission "/drive:v3/File/properties": properties @@ -45898,6 +45929,8 @@ "/people:v1/Person/taglines/tagline": tagline "/people:v1/Person/urls": urls "/people:v1/Person/urls/url": url +"/people:v1/Person/userDefined": user_defined +"/people:v1/Person/userDefined/user_defined": user_defined "/people:v1/PersonMetadata": person_metadata "/people:v1/PersonMetadata/deleted": deleted "/people:v1/PersonMetadata/linkedPeopleResourceNames": linked_people_resource_names @@ -45967,6 +46000,10 @@ "/people:v1/Url/metadata": metadata "/people:v1/Url/type": type "/people:v1/Url/value": value +"/people:v1/UserDefined": user_defined +"/people:v1/UserDefined/key": key +"/people:v1/UserDefined/metadata": metadata +"/people:v1/UserDefined/value": value "/people:v1/fields": fields "/people:v1/key": key "/people:v1/people.contactGroups.batchGet": batch_contact_group_get @@ -55845,6 +55882,11 @@ "/toolresults:v1beta3/toolresults.projects.histories.create": create_project_history "/toolresults:v1beta3/toolresults.projects.histories.create/projectId": project_id "/toolresults:v1beta3/toolresults.projects.histories.create/requestId": request_id +"/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.get": get_project_history_execution_cluster +"/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.get/clusterId": cluster_id +"/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.get/executionId": execution_id +"/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.get/historyId": history_id +"/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.get/projectId": project_id "/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.list": list_project_history_execution_clusters "/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.list/executionId": execution_id "/toolresults:v1beta3/toolresults.projects.histories.executions.clusters.list/historyId": history_id @@ -56198,6 +56240,11 @@ "/toolresults:v1beta3firstparty/toolresults.projects.histories.create": create_project_history "/toolresults:v1beta3firstparty/toolresults.projects.histories.create/projectId": project_id "/toolresults:v1beta3firstparty/toolresults.projects.histories.create/requestId": request_id +"/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.get": get_project_history_execution_cluster +"/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.get/clusterId": cluster_id +"/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.get/executionId": execution_id +"/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.get/historyId": history_id +"/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.get/projectId": project_id "/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.list": list_project_history_execution_clusters "/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.list/executionId": execution_id "/toolresults:v1beta3firstparty/toolresults.projects.histories.executions.clusters.list/historyId": history_id @@ -59178,6 +59225,14 @@ "/youtubePartner:v1/TerritoryOwners/territories": territories "/youtubePartner:v1/TerritoryOwners/territories/territory": territory "/youtubePartner:v1/TerritoryOwners/type": type +"/youtubePartner:v1/ValidateAsyncRequest": validate_async_request +"/youtubePartner:v1/ValidateAsyncRequest/content": content +"/youtubePartner:v1/ValidateAsyncRequest/kind": kind +"/youtubePartner:v1/ValidateAsyncRequest/uploaderName": uploader_name +"/youtubePartner:v1/ValidateAsyncResponse": validate_async_response +"/youtubePartner:v1/ValidateAsyncResponse/kind": kind +"/youtubePartner:v1/ValidateAsyncResponse/status": status +"/youtubePartner:v1/ValidateAsyncResponse/validationId": validation_id "/youtubePartner:v1/ValidateError": validate_error "/youtubePartner:v1/ValidateError/columnName": column_name "/youtubePartner:v1/ValidateError/columnNumber": column_number @@ -59195,6 +59250,16 @@ "/youtubePartner:v1/ValidateResponse/errors/error": error "/youtubePartner:v1/ValidateResponse/kind": kind "/youtubePartner:v1/ValidateResponse/status": status +"/youtubePartner:v1/ValidateStatusRequest": validate_status_request +"/youtubePartner:v1/ValidateStatusRequest/kind": kind +"/youtubePartner:v1/ValidateStatusRequest/locale": locale +"/youtubePartner:v1/ValidateStatusRequest/validationId": validation_id +"/youtubePartner:v1/ValidateStatusResponse": validate_status_response +"/youtubePartner:v1/ValidateStatusResponse/errors": errors +"/youtubePartner:v1/ValidateStatusResponse/errors/error": error +"/youtubePartner:v1/ValidateStatusResponse/isMetadataOnly": is_metadata_only +"/youtubePartner:v1/ValidateStatusResponse/kind": kind +"/youtubePartner:v1/ValidateStatusResponse/status": status "/youtubePartner:v1/VideoAdvertisingOption": video_advertising_option "/youtubePartner:v1/VideoAdvertisingOption/adBreaks": ad_breaks "/youtubePartner:v1/VideoAdvertisingOption/adBreaks/ad_break": ad_break @@ -59466,6 +59531,10 @@ "/youtubePartner:v1/youtubePartner.references.update/releaseClaims": release_claims "/youtubePartner:v1/youtubePartner.validator.validate": validate_validator "/youtubePartner:v1/youtubePartner.validator.validate/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubePartner:v1/youtubePartner.validator.validateAsync": validate_validator_async +"/youtubePartner:v1/youtubePartner.validator.validateAsync/onBehalfOfContentOwner": on_behalf_of_content_owner +"/youtubePartner:v1/youtubePartner.validator.validateAsyncStatus": validate_validator_async_status +"/youtubePartner:v1/youtubePartner.validator.validateAsyncStatus/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubePartner:v1/youtubePartner.videoAdvertisingOptions.get": get_video_advertising_option "/youtubePartner:v1/youtubePartner.videoAdvertisingOptions.get/onBehalfOfContentOwner": on_behalf_of_content_owner "/youtubePartner:v1/youtubePartner.videoAdvertisingOptions.get/videoId": video_id diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index d23ec2815..137e69d07 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20170803' + REVISION = '20170823' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index d711e9358..2b7b2d1ec 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -1520,6 +1520,11 @@ module Google attr_accessor :requires_container_app alias_method :requires_container_app?, :requires_container_app + # The certificate used to sign this product. + # Corresponds to the JSON property `signingCertificate` + # @return [Google::Apis::AndroidenterpriseV1::ProductSigningCertificate] + attr_accessor :signing_certificate + # A link to a smaller image that can be used as an icon for the product. This # image is suitable for use at up to 128px x 128px. # Corresponds to the JSON property `smallIconUrl` @@ -1552,6 +1557,7 @@ module Google @product_id = args[:product_id] if args.key?(:product_id) @product_pricing = args[:product_pricing] if args.key?(:product_pricing) @requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app) + @signing_certificate = args[:signing_certificate] if args.key?(:signing_certificate) @small_icon_url = args[:small_icon_url] if args.key?(:small_icon_url) @title = args[:title] if args.key?(:title) @work_details_url = args[:work_details_url] if args.key?(:work_details_url) @@ -1715,6 +1721,33 @@ module Google end end + # + class ProductSigningCertificate + include Google::Apis::Core::Hashable + + # The base64 urlsafe encoded SHA1 hash of the certificate. (This field is + # deprecated in favor of SHA2-256. It should not be used and may be removed at + # any time.) + # Corresponds to the JSON property `certificateHashSha1` + # @return [String] + attr_accessor :certificate_hash_sha1 + + # The base64 urlsafe encoded SHA2-256 hash of the certificate. + # Corresponds to the JSON property `certificateHashSha256` + # @return [String] + attr_accessor :certificate_hash_sha256 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @certificate_hash_sha1 = args[:certificate_hash_sha1] if args.key?(:certificate_hash_sha1) + @certificate_hash_sha256 = args[:certificate_hash_sha256] if args.key?(:certificate_hash_sha256) + end + end + # class ApproveProductRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/androidenterprise_v1/representations.rb b/generated/google/apis/androidenterprise_v1/representations.rb index 24b8823ce..287ad6e03 100644 --- a/generated/google/apis/androidenterprise_v1/representations.rb +++ b/generated/google/apis/androidenterprise_v1/representations.rb @@ -292,6 +292,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ProductSigningCertificate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ApproveProductRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -778,6 +784,8 @@ module Google property :product_id, as: 'productId' property :product_pricing, as: 'productPricing' property :requires_container_app, as: 'requiresContainerApp' + property :signing_certificate, as: 'signingCertificate', class: Google::Apis::AndroidenterpriseV1::ProductSigningCertificate, decorator: Google::Apis::AndroidenterpriseV1::ProductSigningCertificate::Representation + property :small_icon_url, as: 'smallIconUrl' property :title, as: 'title' property :work_details_url, as: 'workDetailsUrl' @@ -827,6 +835,14 @@ module Google end end + class ProductSigningCertificate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :certificate_hash_sha1, as: 'certificateHashSha1' + property :certificate_hash_sha256, as: 'certificateHashSha256' + end + end + class ApproveProductRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/androidenterprise_v1/service.rb b/generated/google/apis/androidenterprise_v1/service.rb index 397c0e56e..d306322e6 100644 --- a/generated/google/apis/androidenterprise_v1/service.rb +++ b/generated/google/apis/androidenterprise_v1/service.rb @@ -743,7 +743,7 @@ module Google execute_or_queue_command(command, &block) end - # Sends a test push notification to validate the EMM integration with the Google + # Sends a test notification to validate the EMM integration with the Google # Cloud Pub/Sub service for this enterprise. # @param [String] enterprise_id # The ID of the enterprise. diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index abf29e4da..ec89659ee 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20170804' + REVISION = '20170818' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 9ec8357e7..cd21cb024 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -673,20 +673,36 @@ module Google class IpAllocationPolicy include Google::Apis::Core::Hashable - # The IP address range for the cluster pod IPs. If this field is set, then - # `cluster.cluster_ipv4_cidr` must be left blank. - # This field is only applicable when `use_ip_aliases` is true. - # Set to blank to have a range will be chosen with the default size. - # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific - # netmask. - # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - # to use. + # This field is deprecated, use cluster_ipv4_cidr_block. # Corresponds to the JSON property `clusterIpv4Cidr` # @return [String] attr_accessor :cluster_ipv4_cidr + # The IP address range for the cluster pod IPs. If this field is set, then + # `cluster.cluster_ipv4_cidr` must be left blank. + # This field is only applicable when `use_ip_aliases` is true. + # Set to blank to have a range chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range chosen with a specific + # netmask. + # Set to a + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + # to use. + # Corresponds to the JSON property `clusterIpv4CidrBlock` + # @return [String] + attr_accessor :cluster_ipv4_cidr_block + + # The name of the secondary range to be used for the cluster CIDR + # block. The secondary range will be used for pod IP + # addresses. This must be an existing secondary range associated + # with the cluster subnetwork. + # This field is only applicable with use_ip_aliases is true and + # create_subnetwork is false. + # Corresponds to the JSON property `clusterSecondaryRangeName` + # @return [String] + attr_accessor :cluster_secondary_range_name + # Whether a new subnetwork will be created automatically for the cluster. # This field is only applicable when `use_ip_aliases` is true. # Corresponds to the JSON property `createSubnetwork` @@ -694,33 +710,55 @@ module Google attr_accessor :create_subnetwork alias_method :create_subnetwork?, :create_subnetwork - # The IP address range of the instance IPs in this cluster. - # This is applicable only if `create_subnetwork` is true. - # Set to blank to have a range will be chosen with the default size. - # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific - # netmask. - # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - # to use. + # This field is deprecated, use node_ipv4_cidr_block. # Corresponds to the JSON property `nodeIpv4Cidr` # @return [String] attr_accessor :node_ipv4_cidr - # The IP address range of the services IPs in this cluster. If blank, a range - # will be automatically chosen with the default size. - # This field is only applicable when `use_ip_aliases` is true. - # Set to blank to have a range will be chosen with the default size. - # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific + # The IP address range of the instance IPs in this cluster. + # This is applicable only if `create_subnetwork` is true. + # Set to blank to have a range chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range chosen with a specific # netmask. - # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # Set to a + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range # to use. + # Corresponds to the JSON property `nodeIpv4CidrBlock` + # @return [String] + attr_accessor :node_ipv4_cidr_block + + # This field is deprecated, use services_ipv4_cidr_block. # Corresponds to the JSON property `servicesIpv4Cidr` # @return [String] attr_accessor :services_ipv4_cidr + # The IP address range of the services IPs in this cluster. If blank, a range + # will be automatically chosen with the default size. + # This field is only applicable when `use_ip_aliases` is true. + # Set to blank to have a range chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range chosen with a specific + # netmask. + # Set to a + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + # to use. + # Corresponds to the JSON property `servicesIpv4CidrBlock` + # @return [String] + attr_accessor :services_ipv4_cidr_block + + # The name of the secondary range to be used as for the services + # CIDR block. The secondary range will be used for service + # ClusterIPs. This must be an existing secondary range associated + # with the cluster subnetwork. + # This field is only applicable with use_ip_aliases is true and + # create_subnetwork is false. + # Corresponds to the JSON property `servicesSecondaryRangeName` + # @return [String] + attr_accessor :services_secondary_range_name + # A custom subnetwork name to be used if `create_subnetwork` is true. If # this field is empty, then an automatic name will be chosen for the new # subnetwork. @@ -741,9 +779,14 @@ module Google # Update properties of this object def update!(**args) @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) + @cluster_ipv4_cidr_block = args[:cluster_ipv4_cidr_block] if args.key?(:cluster_ipv4_cidr_block) + @cluster_secondary_range_name = args[:cluster_secondary_range_name] if args.key?(:cluster_secondary_range_name) @create_subnetwork = args[:create_subnetwork] if args.key?(:create_subnetwork) @node_ipv4_cidr = args[:node_ipv4_cidr] if args.key?(:node_ipv4_cidr) + @node_ipv4_cidr_block = args[:node_ipv4_cidr_block] if args.key?(:node_ipv4_cidr_block) @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) + @services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block) + @services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name) @subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name) @use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases) end @@ -1278,6 +1321,12 @@ module Google # @return [String] attr_accessor :detail + # [Output only] The time the operation completed, in + # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + # The server-assigned ID for the operation. # Corresponds to the JSON property `name` # @return [String] @@ -1293,6 +1342,12 @@ module Google # @return [String] attr_accessor :self_link + # [Output only] The time the operation started, in + # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + # The current status of the operation. # Corresponds to the JSON property `status` # @return [String] @@ -1322,9 +1377,11 @@ module Google # Update properties of this object def update!(**args) @detail = args[:detail] if args.key?(:detail) + @end_time = args[:end_time] if args.key?(:end_time) @name = args[:name] if args.key?(:name) @operation_type = args[:operation_type] if args.key?(:operation_type) @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @target_link = args[:target_link] if args.key?(:target_link) diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index bde973807..288faad08 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -453,9 +453,14 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' + property :cluster_ipv4_cidr_block, as: 'clusterIpv4CidrBlock' + property :cluster_secondary_range_name, as: 'clusterSecondaryRangeName' property :create_subnetwork, as: 'createSubnetwork' property :node_ipv4_cidr, as: 'nodeIpv4Cidr' + property :node_ipv4_cidr_block, as: 'nodeIpv4CidrBlock' property :services_ipv4_cidr, as: 'servicesIpv4Cidr' + property :services_ipv4_cidr_block, as: 'servicesIpv4CidrBlock' + property :services_secondary_range_name, as: 'servicesSecondaryRangeName' property :subnetwork_name, as: 'subnetworkName' property :use_ip_aliases, as: 'useIpAliases' end @@ -591,9 +596,11 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :detail, as: 'detail' + property :end_time, as: 'endTime' property :name, as: 'name' property :operation_type, as: 'operationType' property :self_link, as: 'selfLink' + property :start_time, as: 'startTime' property :status, as: 'status' property :status_message, as: 'statusMessage' property :target_link, as: 'targetLink' diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index 979c7f9ad..a4e3066af 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20170814' + REVISION = '20170818' # 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/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index 5f329fddc..0cccdb4ce 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -778,20 +778,36 @@ module Google class IpAllocationPolicy include Google::Apis::Core::Hashable - # The IP address range for the cluster pod IPs. If this field is set, then - # `cluster.cluster_ipv4_cidr` must be left blank. - # This field is only applicable when `use_ip_aliases` is true. - # Set to blank to have a range will be chosen with the default size. - # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific - # netmask. - # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - # to use. + # This field is deprecated, use cluster_ipv4_cidr_block. # Corresponds to the JSON property `clusterIpv4Cidr` # @return [String] attr_accessor :cluster_ipv4_cidr + # The IP address range for the cluster pod IPs. If this field is set, then + # `cluster.cluster_ipv4_cidr` must be left blank. + # This field is only applicable when `use_ip_aliases` is true. + # Set to blank to have a range chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range chosen with a specific + # netmask. + # Set to a + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + # to use. + # Corresponds to the JSON property `clusterIpv4CidrBlock` + # @return [String] + attr_accessor :cluster_ipv4_cidr_block + + # The name of the secondary range to be used for the cluster CIDR + # block. The secondary range will be used for pod IP + # addresses. This must be an existing secondary range associated + # with the cluster subnetwork. + # This field is only applicable with use_ip_aliases and + # create_subnetwork is false. + # Corresponds to the JSON property `clusterSecondaryRangeName` + # @return [String] + attr_accessor :cluster_secondary_range_name + # Whether a new subnetwork will be created automatically for the cluster. # This field is only applicable when `use_ip_aliases` is true. # Corresponds to the JSON property `createSubnetwork` @@ -799,33 +815,55 @@ module Google attr_accessor :create_subnetwork alias_method :create_subnetwork?, :create_subnetwork - # The IP address range of the instance IPs in this cluster. - # This is applicable only if `create_subnetwork` is true. - # Set to blank to have a range will be chosen with the default size. - # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific - # netmask. - # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - # to use. + # This field is deprecated, use node_ipv4_cidr_block. # Corresponds to the JSON property `nodeIpv4Cidr` # @return [String] attr_accessor :node_ipv4_cidr - # The IP address range of the services IPs in this cluster. If blank, a range - # will be automatically chosen with the default size. - # This field is only applicable when `use_ip_aliases` is true. - # Set to blank to have a range will be chosen with the default size. - # Set to /netmask (e.g. `/14`) to have a range be chosen with a specific + # The IP address range of the instance IPs in this cluster. + # This is applicable only if `create_subnetwork` is true. + # Set to blank to have a range chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range chosen with a specific # netmask. - # Set to a [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # Set to a + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range # to use. + # Corresponds to the JSON property `nodeIpv4CidrBlock` + # @return [String] + attr_accessor :node_ipv4_cidr_block + + # This field is deprecated, use services_ipv4_cidr_block. # Corresponds to the JSON property `servicesIpv4Cidr` # @return [String] attr_accessor :services_ipv4_cidr + # The IP address range of the services IPs in this cluster. If blank, a range + # will be automatically chosen with the default size. + # This field is only applicable when `use_ip_aliases` is true. + # Set to blank to have a range chosen with the default size. + # Set to /netmask (e.g. `/14`) to have a range chosen with a specific + # netmask. + # Set to a + # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + # to use. + # Corresponds to the JSON property `servicesIpv4CidrBlock` + # @return [String] + attr_accessor :services_ipv4_cidr_block + + # The name of the secondary range to be used as for the services + # CIDR block. The secondary range will be used for service + # ClusterIPs. This must be an existing secondary range associated + # with the cluster subnetwork. + # This field is only applicable with use_ip_aliases and + # create_subnetwork is false. + # Corresponds to the JSON property `servicesSecondaryRangeName` + # @return [String] + attr_accessor :services_secondary_range_name + # A custom subnetwork name to be used if `create_subnetwork` is true. If # this field is empty, then an automatic name will be chosen for the new # subnetwork. @@ -846,9 +884,14 @@ module Google # Update properties of this object def update!(**args) @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) + @cluster_ipv4_cidr_block = args[:cluster_ipv4_cidr_block] if args.key?(:cluster_ipv4_cidr_block) + @cluster_secondary_range_name = args[:cluster_secondary_range_name] if args.key?(:cluster_secondary_range_name) @create_subnetwork = args[:create_subnetwork] if args.key?(:create_subnetwork) @node_ipv4_cidr = args[:node_ipv4_cidr] if args.key?(:node_ipv4_cidr) + @node_ipv4_cidr_block = args[:node_ipv4_cidr_block] if args.key?(:node_ipv4_cidr_block) @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) + @services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block) + @services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name) @subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name) @use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases) end diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index d88506b1b..dbed0fef5 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -411,9 +411,14 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' + property :cluster_ipv4_cidr_block, as: 'clusterIpv4CidrBlock' + property :cluster_secondary_range_name, as: 'clusterSecondaryRangeName' property :create_subnetwork, as: 'createSubnetwork' property :node_ipv4_cidr, as: 'nodeIpv4Cidr' + property :node_ipv4_cidr_block, as: 'nodeIpv4CidrBlock' property :services_ipv4_cidr, as: 'servicesIpv4Cidr' + property :services_ipv4_cidr_block, as: 'servicesIpv4CidrBlock' + property :services_secondary_range_name, as: 'servicesSecondaryRangeName' property :subnetwork_name, as: 'subnetworkName' property :use_ip_aliases, as: 'useIpAliases' end diff --git a/generated/google/apis/dlp_v2beta1.rb b/generated/google/apis/dlp_v2beta1.rb index 9bd6463b8..d727a983e 100644 --- a/generated/google/apis/dlp_v2beta1.rb +++ b/generated/google/apis/dlp_v2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2beta1 VERSION = 'V2beta1' - REVISION = '20170822' + REVISION = '20170829' # 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/dlp_v2beta1/classes.rb b/generated/google/apis/dlp_v2beta1/classes.rb index 48202edf1..76da8e217 100644 --- a/generated/google/apis/dlp_v2beta1/classes.rb +++ b/generated/google/apis/dlp_v2beta1/classes.rb @@ -66,7 +66,7 @@ module Google 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 + # If `true`, the operation is completed, and either `error` or `response` is # available. # Corresponds to the JSON property `done` # @return [Boolean] diff --git a/generated/google/apis/dlp_v2beta1/service.rb b/generated/google/apis/dlp_v2beta1/service.rb index 3d3c0212c..8383c5373 100644 --- a/generated/google/apis/dlp_v2beta1/service.rb +++ b/generated/google/apis/dlp_v2beta1/service.rb @@ -327,6 +327,141 @@ module Google execute_or_queue_command(command, &block) end + # Cancels an operation. Use the get method to check whether the cancellation + # succeeded or whether the operation completed despite cancellation. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DlpV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2beta1::GoogleProtobufEmpty] + # + # @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 cancel_risk_analysis_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest::Representation + command.request_object = google_longrunning_cancel_operation_request_object + command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DlpV2beta1::GoogleProtobufEmpty + 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 + + # This method is not supported and the server returns `UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @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::DlpV2beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2beta1::GoogleProtobufEmpty] + # + # @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_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::DlpV2beta1::GoogleProtobufEmpty + 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 latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DlpV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2beta1::GoogleLongrunningOperation] + # + # @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_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningOperation + 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 + + # Fetch the list of long running operations. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # This parameter supports filtering by done, ie done=true or done=false. + # @param [Fixnum] page_size + # The list page size. The max allowed value is 256 and default is 100. + # @param [String] page_token + # The standard list page token. + # @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::DlpV2beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse] + # + # @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_risk_analysis_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+name}', options) + command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.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 + # Returns the list of root categories of sensitive information. # @param [String] language_code # Optional language code for localized friendly category names. diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 80e930c07..176d7c60e 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20170811' + REVISION = '20170825' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index 965a76002..ff47d7147 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -1533,6 +1533,11 @@ module Google # @return [Array] attr_accessor :parents + # List of permission IDs for users with access to this file. + # Corresponds to the JSON property `permissionIds` + # @return [Array] + attr_accessor :permission_ids + # The list of permissions for users with access to this file. Not populated for # Team Drive files. # Corresponds to the JSON property `permissions` @@ -1709,6 +1714,7 @@ module Google @owner_names = args[:owner_names] if args.key?(:owner_names) @owners = args[:owners] if args.key?(:owners) @parents = args[:parents] if args.key?(:parents) + @permission_ids = args[:permission_ids] if args.key?(:permission_ids) @permissions = args[:permissions] if args.key?(:permissions) @properties = args[:properties] if args.key?(:properties) @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used) diff --git a/generated/google/apis/drive_v2/representations.rb b/generated/google/apis/drive_v2/representations.rb index ee374497a..c728294a6 100644 --- a/generated/google/apis/drive_v2/representations.rb +++ b/generated/google/apis/drive_v2/representations.rb @@ -680,6 +680,7 @@ module Google collection :parents, as: 'parents', class: Google::Apis::DriveV2::ParentReference, decorator: Google::Apis::DriveV2::ParentReference::Representation + collection :permission_ids, as: 'permissionIds' collection :permissions, as: 'permissions', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation collection :properties, as: 'properties', class: Google::Apis::DriveV2::Property, decorator: Google::Apis::DriveV2::Property::Representation diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index 27358f487..2cbc97bdc 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -1227,11 +1227,11 @@ module Google # @param [String] order_by # A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', ' # lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', ' - # recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending - # by default, but may be reversed with the 'desc' modifier. Example usage: ? - # orderBy=folder,modifiedDate desc,title. Please note that there is a current - # limitation for users with approximately one million files in which the - # requested sort order is ignored. + # recency', 'sharedWithMeDate', 'starred', 'title', and 'title_natural'. Each + # key sorts ascending by default, but may be reversed with the 'desc' modifier. + # Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there + # is a current limitation for users with approximately one million files in + # which the requested sort order is ignored. # @param [String] page_token # Page token for files. # @param [String] projection diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index 41278e7ea..dab679289 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20170811' + REVISION = '20170825' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index e66e81dca..d19de8ed9 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -691,6 +691,11 @@ module Google # @return [Array] attr_accessor :parents + # List of permission IDs for users with access to this file. + # Corresponds to the JSON property `permissionIds` + # @return [Array] + attr_accessor :permission_ids + # The full list of permissions for the file. This is only available if the # requesting user can share the file. Not populated for Team Drive files. # Corresponds to the JSON property `permissions` @@ -862,6 +867,7 @@ module Google @owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me) @owners = args[:owners] if args.key?(:owners) @parents = args[:parents] if args.key?(:parents) + @permission_ids = args[:permission_ids] if args.key?(:permission_ids) @permissions = args[:permissions] if args.key?(:permissions) @properties = args[:properties] if args.key?(:properties) @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used) diff --git a/generated/google/apis/drive_v3/representations.rb b/generated/google/apis/drive_v3/representations.rb index 548f19c04..b7110b7a5 100644 --- a/generated/google/apis/drive_v3/representations.rb +++ b/generated/google/apis/drive_v3/representations.rb @@ -378,6 +378,7 @@ module Google collection :owners, as: 'owners', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation collection :parents, as: 'parents' + collection :permission_ids, as: 'permissionIds' collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation hash :properties, as: 'properties' diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index cb6b6618a..62f51e98c 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -840,11 +840,11 @@ module Google # Whether Team Drive items should be included in results. # @param [String] order_by # A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', ' - # modifiedByMeTime', 'modifiedTime', 'name', 'quotaBytesUsed', 'recency', ' - # sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending - # by default, but may be reversed with the 'desc' modifier. Example usage: ? - # orderBy=folder,modifiedTime desc,name. Please note that there is a current - # limitation for users with approximately one million files in which the + # modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', ' + # recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts + # ascending by default, but may be reversed with the 'desc' modifier. Example + # usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a + # current limitation for users with approximately one million files in which the # requested sort order is ignored. # @param [Fixnum] page_size # The maximum number of files to return per page. Partial or empty result pages diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index d6165bce3..a1416264e 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20170823' + REVISION = '20170829' # Manage your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index fdd0bc2d0..947b5d738 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -1479,6 +1479,11 @@ module Google # @return [Array] attr_accessor :urls + # The person's user defined data. + # Corresponds to the JSON property `userDefined` + # @return [Array] + attr_accessor :user_defined + def initialize(**args) update!(**args) end @@ -1515,6 +1520,7 @@ module Google @skills = args[:skills] if args.key?(:skills) @taglines = args[:taglines] if args.key?(:taglines) @urls = args[:urls] if args.key?(:urls) + @user_defined = args[:user_defined] if args.key?(:user_defined) end end @@ -2171,6 +2177,37 @@ module Google @value = args[:value] if args.key?(:value) end end + + # Arbitrary user data that is populated by the end users. + class UserDefined + include Google::Apis::Core::Hashable + + # The end user specified key of the user defined data. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Metadata about a field. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::PeopleV1::FieldMetadata] + attr_accessor :metadata + + # The end user specified value of the user defined data. + # 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) + @metadata = args[:metadata] if args.key?(:metadata) + @value = args[:value] if args.key?(:value) + end + end end end end diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index 1f7a85800..ed3be4c8b 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -310,6 +310,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UserDefined + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Address # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -713,6 +719,8 @@ module Google collection :urls, as: 'urls', class: Google::Apis::PeopleV1::Url, decorator: Google::Apis::PeopleV1::Url::Representation + collection :user_defined, as: 'userDefined', class: Google::Apis::PeopleV1::UserDefined, decorator: Google::Apis::PeopleV1::UserDefined::Representation + end end @@ -867,6 +875,16 @@ module Google property :value, as: 'value' end end + + class UserDefined + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation + + property :value, as: 'value' + end + end end end end diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 4fa497573..99d7e8cdf 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '20170811' + REVISION = '20170829' # 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/toolresults_v1beta3/service.rb b/generated/google/apis/toolresults_v1beta3/service.rb index 3f0b35d22..79ec825f8 100644 --- a/generated/google/apis/toolresults_v1beta3/service.rb +++ b/generated/google/apis/toolresults_v1beta3/service.rb @@ -507,6 +507,54 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves a single screenshot cluster by its ID + # @param [String] project_id + # A Project id. + # Required. + # @param [String] history_id + # A History id. + # Required. + # @param [String] execution_id + # An Execution id. + # Required. + # @param [String] cluster_id + # A Cluster id + # Required. + # @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::ToolresultsV1beta3::ScreenshotCluster] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ToolresultsV1beta3::ScreenshotCluster] + # + # @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_history_execution_cluster(project_id, history_id, execution_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}', options) + command.response_representation = Google::Apis::ToolresultsV1beta3::ScreenshotCluster::Representation + command.response_class = Google::Apis::ToolresultsV1beta3::ScreenshotCluster + command.params['projectId'] = project_id unless project_id.nil? + command.params['historyId'] = history_id unless history_id.nil? + command.params['executionId'] = execution_id unless execution_id.nil? + command.params['clusterId'] = cluster_id unless cluster_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 + # Lists Screenshot Clusters # Returns the list of screenshot clusters corresponding to an execution. # Screenshot clusters are created after the execution is finished. Clusters are diff --git a/generated/google/apis/toolresults_v1beta3firstparty.rb b/generated/google/apis/toolresults_v1beta3firstparty.rb index 14a32a6d7..cc2b0106d 100644 --- a/generated/google/apis/toolresults_v1beta3firstparty.rb +++ b/generated/google/apis/toolresults_v1beta3firstparty.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3firstparty VERSION = 'V1beta3firstparty' - REVISION = '20170811' + REVISION = '20170829' end end end diff --git a/generated/google/apis/toolresults_v1beta3firstparty/service.rb b/generated/google/apis/toolresults_v1beta3firstparty/service.rb index 967c8cc86..aa0d19454 100644 --- a/generated/google/apis/toolresults_v1beta3firstparty/service.rb +++ b/generated/google/apis/toolresults_v1beta3firstparty/service.rb @@ -507,6 +507,54 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves a single screenshot cluster by its ID + # @param [String] project_id + # A Project id. + # Required. + # @param [String] history_id + # A History id. + # Required. + # @param [String] execution_id + # An Execution id. + # Required. + # @param [String] cluster_id + # A Cluster id + # Required. + # @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::ToolresultsV1beta3firstparty::ScreenshotCluster] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ToolresultsV1beta3firstparty::ScreenshotCluster] + # + # @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_history_execution_cluster(project_id, history_id, execution_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}', options) + command.response_representation = Google::Apis::ToolresultsV1beta3firstparty::ScreenshotCluster::Representation + command.response_class = Google::Apis::ToolresultsV1beta3firstparty::ScreenshotCluster + command.params['projectId'] = project_id unless project_id.nil? + command.params['historyId'] = history_id unless history_id.nil? + command.params['executionId'] = execution_id unless execution_id.nil? + command.params['clusterId'] = cluster_id unless cluster_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 + # Lists Screenshot Clusters # Returns the list of screenshot clusters corresponding to an execution. # Screenshot clusters are created after the execution is finished. Clusters are diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index b62a4191b..21d8b3a0b 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20170821' + REVISION = '20170828' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/generated/google/apis/youtube_partner_v1/classes.rb b/generated/google/apis/youtube_partner_v1/classes.rb index cd32d66de..85c794bbe 100644 --- a/generated/google/apis/youtube_partner_v1/classes.rb +++ b/generated/google/apis/youtube_partner_v1/classes.rb @@ -3658,6 +3658,70 @@ module Google end end + # + class ValidateAsyncRequest + include Google::Apis::Core::Hashable + + # The metadata file contents. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # The type of the API resource. For this operation, the value is youtubePartner# + # validateAsyncRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The uploader name. + # Corresponds to the JSON property `uploaderName` + # @return [String] + attr_accessor :uploader_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @kind = args[:kind] if args.key?(:kind) + @uploader_name = args[:uploader_name] if args.key?(:uploader_name) + end + end + + # + class ValidateAsyncResponse + include Google::Apis::Core::Hashable + + # The type of the API resource. For this operation, the value is youtubePartner# + # validateAsyncResponse. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The validation status. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # The validation ID. + # Corresponds to the JSON property `validationId` + # @return [String] + attr_accessor :validation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @status = args[:status] if args.key?(:status) + @validation_id = args[:validation_id] if args.key?(:validation_id) + end + end + # class ValidateError include Google::Apis::Core::Hashable @@ -3779,6 +3843,79 @@ module Google end end + # + class ValidateStatusRequest + include Google::Apis::Core::Hashable + + # The type of the API resource. For this operation, the value is youtubePartner# + # validateStatusRequest. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The desired locale of the error messages as defined in BCP 47 (http://tools. + # ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will + # return the error messages in English ("en"). + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The validation ID. + # Corresponds to the JSON property `validationId` + # @return [String] + attr_accessor :validation_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @validation_id = args[:validation_id] if args.key?(:validation_id) + end + end + + # + class ValidateStatusResponse + include Google::Apis::Core::Hashable + + # The list of errors and/or warnings. + # Corresponds to the JSON property `errors` + # @return [Array] + attr_accessor :errors + + # If this is a metadata-only package. + # Corresponds to the JSON property `isMetadataOnly` + # @return [Boolean] + attr_accessor :is_metadata_only + alias_method :is_metadata_only?, :is_metadata_only + + # The type of the API resource. For this operation, the value is youtubePartner# + # validateStatusResponse. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The validation status. + # 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) + @errors = args[:errors] if args.key?(:errors) + @is_metadata_only = args[:is_metadata_only] if args.key?(:is_metadata_only) + @kind = args[:kind] if args.key?(:kind) + @status = args[:status] if args.key?(:status) + end + end + # class VideoAdvertisingOption include Google::Apis::Core::Hashable diff --git a/generated/google/apis/youtube_partner_v1/representations.rb b/generated/google/apis/youtube_partner_v1/representations.rb index 62cff56be..5163d8948 100644 --- a/generated/google/apis/youtube_partner_v1/representations.rb +++ b/generated/google/apis/youtube_partner_v1/representations.rb @@ -490,6 +490,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ValidateAsyncRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValidateAsyncResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ValidateError class Representation < Google::Apis::Core::JsonRepresentation; end @@ -508,6 +520,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ValidateStatusRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ValidateStatusResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VideoAdvertisingOption class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1492,6 +1516,24 @@ module Google end end + class ValidateAsyncRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, as: 'content' + property :kind, as: 'kind' + property :uploader_name, as: 'uploaderName' + end + end + + class ValidateAsyncResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :status, as: 'status' + property :validation_id, as: 'validationId' + end + end + class ValidateError # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1524,6 +1566,26 @@ module Google end end + class ValidateStatusRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :locale, as: 'locale' + property :validation_id, as: 'validationId' + end + end + + class ValidateStatusResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :errors, as: 'errors', class: Google::Apis::YoutubePartnerV1::ValidateError, decorator: Google::Apis::YoutubePartnerV1::ValidateError::Representation + + property :is_metadata_only, as: 'isMetadataOnly' + property :kind, as: 'kind' + property :status, as: 'status' + end + end + class VideoAdvertisingOption # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_partner_v1/service.rb b/generated/google/apis/youtube_partner_v1/service.rb index a92b0b724..82ee418e8 100644 --- a/generated/google/apis/youtube_partner_v1/service.rb +++ b/generated/google/apis/youtube_partner_v1/service.rb @@ -2997,6 +2997,86 @@ module Google execute_or_queue_command(command, &block) end + # Validate a metadata file asynchronously. + # @param [Google::Apis::YoutubePartnerV1::ValidateAsyncRequest] validate_async_request_object + # @param [String] on_behalf_of_content_owner + # The onBehalfOfContentOwner parameter identifies the content owner that the + # user is acting on behalf of. This parameter supports users whose accounts are + # associated with multiple content owners. + # @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::YoutubePartnerV1::ValidateAsyncResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubePartnerV1::ValidateAsyncResponse] + # + # @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 validate_validator_async(validate_async_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'validatorAsync', options) + command.request_representation = Google::Apis::YoutubePartnerV1::ValidateAsyncRequest::Representation + command.request_object = validate_async_request_object + command.response_representation = Google::Apis::YoutubePartnerV1::ValidateAsyncResponse::Representation + command.response_class = Google::Apis::YoutubePartnerV1::ValidateAsyncResponse + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.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 + + # Get the asynchronous validation status. + # @param [Google::Apis::YoutubePartnerV1::ValidateStatusRequest] validate_status_request_object + # @param [String] on_behalf_of_content_owner + # The onBehalfOfContentOwner parameter identifies the content owner that the + # user is acting on behalf of. This parameter supports users whose accounts are + # associated with multiple content owners. + # @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::YoutubePartnerV1::ValidateStatusResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::YoutubePartnerV1::ValidateStatusResponse] + # + # @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 validate_validator_async_status(validate_status_request_object = nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'validatorAsyncStatus', options) + command.request_representation = Google::Apis::YoutubePartnerV1::ValidateStatusRequest::Representation + command.request_object = validate_status_request_object + command.response_representation = Google::Apis::YoutubePartnerV1::ValidateStatusResponse::Representation + command.response_class = Google::Apis::YoutubePartnerV1::ValidateStatusResponse + command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.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 advertising settings for the specified video. # @param [String] video_id # The videoId parameter specifies the YouTube video ID of the video for which