Autogenerated update (2017-09-22)

Update:
- adexchangebuyer2_v2beta1
- admin_directory_v1
- cloudtrace_v2
- dataproc_v1beta2
- oslogin_v1alpha
- oslogin_v1beta
- streetviewpublish_v1
- youtube_partner_v1
- youtube_v3
This commit is contained in:
Google APIs 2017-09-22 03:07:05 +00:00
parent 1797e319c5
commit 547f487672
19 changed files with 486 additions and 30 deletions

View File

@ -2036,6 +2036,7 @@
"/admin:directory_v1/Asps/kind": kind
"/admin:directory_v1/CalendarResource": calendar_resource
"/admin:directory_v1/CalendarResource/etags": etags
"/admin:directory_v1/CalendarResource/generatedResourceName": generated_resource_name
"/admin:directory_v1/CalendarResource/kind": kind
"/admin:directory_v1/CalendarResource/resourceDescription": resource_description
"/admin:directory_v1/CalendarResource/resourceEmail": resource_email
@ -2372,6 +2373,7 @@
"/admin:directory_v1/User/emails": emails
"/admin:directory_v1/User/etag": etag
"/admin:directory_v1/User/externalIds": external_ids
"/admin:directory_v1/User/gender": gender
"/admin:directory_v1/User/hashFunction": hash_function
"/admin:directory_v1/User/id": id
"/admin:directory_v1/User/ims": ims
@ -2432,6 +2434,10 @@
"/admin:directory_v1/UserExternalId/customType": custom_type
"/admin:directory_v1/UserExternalId/type": type
"/admin:directory_v1/UserExternalId/value": value
"/admin:directory_v1/UserGender": user_gender
"/admin:directory_v1/UserGender/addressMeAs": address_me_as
"/admin:directory_v1/UserGender/customGender": custom_gender
"/admin:directory_v1/UserGender/type": type
"/admin:directory_v1/UserIm": user_im
"/admin:directory_v1/UserIm/customProtocol": custom_protocol
"/admin:directory_v1/UserIm/customType": custom_type
@ -30354,6 +30360,10 @@
"/dataproc:v1beta2/AcceleratorConfig": accelerator_config
"/dataproc:v1beta2/AcceleratorConfig/acceleratorCount": accelerator_count
"/dataproc:v1beta2/AcceleratorConfig/acceleratorTypeUri": accelerator_type_uri
"/dataproc:v1beta2/Binding": binding
"/dataproc:v1beta2/Binding/members": members
"/dataproc:v1beta2/Binding/members/member": member
"/dataproc:v1beta2/Binding/role": role
"/dataproc:v1beta2/CancelJobRequest": cancel_job_request
"/dataproc:v1beta2/Cluster": cluster
"/dataproc:v1beta2/Cluster/clusterName": cluster_name
@ -30533,6 +30543,11 @@
"/dataproc:v1beta2/PigJob/queryList": query_list
"/dataproc:v1beta2/PigJob/scriptVariables": script_variables
"/dataproc:v1beta2/PigJob/scriptVariables/script_variable": script_variable
"/dataproc:v1beta2/Policy": policy
"/dataproc:v1beta2/Policy/bindings": bindings
"/dataproc:v1beta2/Policy/bindings/binding": binding
"/dataproc:v1beta2/Policy/etag": etag
"/dataproc:v1beta2/Policy/version": version
"/dataproc:v1beta2/PySparkJob": py_spark_job
"/dataproc:v1beta2/PySparkJob/archiveUris": archive_uris
"/dataproc:v1beta2/PySparkJob/archiveUris/archive_uri": archive_uri
@ -30551,6 +30566,8 @@
"/dataproc:v1beta2/QueryList": query_list
"/dataproc:v1beta2/QueryList/queries": queries
"/dataproc:v1beta2/QueryList/queries/query": query
"/dataproc:v1beta2/SetIamPolicyRequest": set_iam_policy_request
"/dataproc:v1beta2/SetIamPolicyRequest/policy": policy
"/dataproc:v1beta2/SoftwareConfig": software_config
"/dataproc:v1beta2/SoftwareConfig/imageVersion": image_version
"/dataproc:v1beta2/SoftwareConfig/properties": properties
@ -30587,6 +30604,12 @@
"/dataproc:v1beta2/Status/message": message
"/dataproc:v1beta2/SubmitJobRequest": submit_job_request
"/dataproc:v1beta2/SubmitJobRequest/job": job
"/dataproc:v1beta2/TestIamPermissionsRequest": test_iam_permissions_request
"/dataproc:v1beta2/TestIamPermissionsRequest/permissions": permissions
"/dataproc:v1beta2/TestIamPermissionsRequest/permissions/permission": permission
"/dataproc:v1beta2/TestIamPermissionsResponse": test_iam_permissions_response
"/dataproc:v1beta2/TestIamPermissionsResponse/permissions": permissions
"/dataproc:v1beta2/TestIamPermissionsResponse/permissions/permission": permission
"/dataproc:v1beta2/YarnApplication": yarn_application
"/dataproc:v1beta2/YarnApplication/name": name
"/dataproc:v1beta2/YarnApplication/progress": progress
@ -30607,6 +30630,8 @@
"/dataproc:v1beta2/dataproc.projects.regions.clusters.get/clusterName": cluster_name
"/dataproc:v1beta2/dataproc.projects.regions.clusters.get/projectId": project_id
"/dataproc:v1beta2/dataproc.projects.regions.clusters.get/region": region
"/dataproc:v1beta2/dataproc.projects.regions.clusters.getIamPolicy": get_project_region_cluster_iam_policy
"/dataproc:v1beta2/dataproc.projects.regions.clusters.getIamPolicy/resource": resource
"/dataproc:v1beta2/dataproc.projects.regions.clusters.list": list_project_region_clusters
"/dataproc:v1beta2/dataproc.projects.regions.clusters.list/filter": filter
"/dataproc:v1beta2/dataproc.projects.regions.clusters.list/pageSize": page_size
@ -30619,6 +30644,10 @@
"/dataproc:v1beta2/dataproc.projects.regions.clusters.patch/projectId": project_id
"/dataproc:v1beta2/dataproc.projects.regions.clusters.patch/region": region
"/dataproc:v1beta2/dataproc.projects.regions.clusters.patch/updateMask": update_mask
"/dataproc:v1beta2/dataproc.projects.regions.clusters.setIamPolicy": set_cluster_iam_policy
"/dataproc:v1beta2/dataproc.projects.regions.clusters.setIamPolicy/resource": resource
"/dataproc:v1beta2/dataproc.projects.regions.clusters.testIamPermissions": test_cluster_iam_permissions
"/dataproc:v1beta2/dataproc.projects.regions.clusters.testIamPermissions/resource": resource
"/dataproc:v1beta2/dataproc.projects.regions.jobs.cancel": cancel_job
"/dataproc:v1beta2/dataproc.projects.regions.jobs.cancel/jobId": job_id
"/dataproc:v1beta2/dataproc.projects.regions.jobs.cancel/projectId": project_id
@ -59381,6 +59410,7 @@
"/youtube:v3/LiveBroadcastContentDetails/enableDvr": enable_dvr
"/youtube:v3/LiveBroadcastContentDetails/enableEmbed": enable_embed
"/youtube:v3/LiveBroadcastContentDetails/enableLowLatency": enable_low_latency
"/youtube:v3/LiveBroadcastContentDetails/latencyPreference": latency_preference
"/youtube:v3/LiveBroadcastContentDetails/mesh": mesh
"/youtube:v3/LiveBroadcastContentDetails/monitorStream": monitor_stream
"/youtube:v3/LiveBroadcastContentDetails/projection": projection

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20170825'
REVISION = '20170920'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -1969,15 +1969,6 @@ module Google
include Google::Apis::Core::Hashable
# An interval of time, with an absolute start and end.
# This is included in the response, for several reasons:
# 1) The request may have specified start or end times relative to the time the
# request was sent; the response indicates the corresponding absolute time
# interval.
# 2) The request may have specified an end time past the latest time for which
# data was available (e.g. if requesting data for the today); the response
# indicates the latest time for which data was actually returned.
# 3) The response data for a single request may be broken down into multiple
# time intervals, if a time series was requested.
# Corresponds to the JSON property `timeInterval`
# @return [Google::Apis::Adexchangebuyer2V2beta1::TimeInterval]
attr_accessor :time_interval
@ -2113,15 +2104,6 @@ module Google
end
# An interval of time, with an absolute start and end.
# This is included in the response, for several reasons:
# 1) The request may have specified start or end times relative to the time the
# request was sent; the response indicates the corresponding absolute time
# interval.
# 2) The request may have specified an end time past the latest time for which
# data was available (e.g. if requesting data for the today); the response
# indicates the latest time for which data was actually returned.
# 3) The response data for a single request may be broken down into multiple
# time intervals, if a time series was requested.
class TimeInterval
include Google::Apis::Core::Hashable

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20170723'
REVISION = '20170830'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'

View File

@ -192,6 +192,13 @@ module Google
# @return [String]
attr_accessor :etags
# The auto-generated name of the calendar resource which includes metadata about
# the resource such as building name, floor, capacity, etc. For example, NYC-2-
# Training Room 1A (16)
# Corresponds to the JSON property `generatedResourceName`
# @return [String]
attr_accessor :generated_resource_name
# The type of the resource. For calendar resources, the value is admin#directory#
# resources#calendars#CalendarResource.
# Corresponds to the JSON property `kind`
@ -232,6 +239,7 @@ module Google
# Update properties of this object
def update!(**args)
@etags = args[:etags] if args.key?(:etags)
@generated_resource_name = args[:generated_resource_name] if args.key?(:generated_resource_name)
@kind = args[:kind] if args.key?(:kind)
@resource_description = args[:resource_description] if args.key?(:resource_description)
@resource_email = args[:resource_email] if args.key?(:resource_email)
@ -2381,6 +2389,11 @@ module Google
# @return [Object]
attr_accessor :external_ids
#
# Corresponds to the JSON property `gender`
# @return [Object]
attr_accessor :gender
# Hash function name for password. Supported are MD5, SHA-1 and crypt
# Corresponds to the JSON property `hashFunction`
# @return [String]
@ -2561,6 +2574,7 @@ module Google
@emails = args[:emails] if args.key?(:emails)
@etag = args[:etag] if args.key?(:etag)
@external_ids = args[:external_ids] if args.key?(:external_ids)
@gender = args[:gender] if args.key?(:gender)
@hash_function = args[:hash_function] if args.key?(:hash_function)
@id = args[:id] if args.key?(:id)
@ims = args[:ims] if args.key?(:ims)
@ -2791,6 +2805,38 @@ module Google
end
end
#
class UserGender
include Google::Apis::Core::Hashable
# AddressMeAs. A human-readable string containing the proper way to refer to the
# profile owner by humans, for example "he/him/his" or "they/them/their".
# Corresponds to the JSON property `addressMeAs`
# @return [String]
attr_accessor :address_me_as
# Custom gender.
# Corresponds to the JSON property `customGender`
# @return [String]
attr_accessor :custom_gender
# Gender.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@address_me_as = args[:address_me_as] if args.key?(:address_me_as)
@custom_gender = args[:custom_gender] if args.key?(:custom_gender)
@type = args[:type] if args.key?(:type)
end
end
# JSON template for instant messenger of an user.
class UserIm
include Google::Apis::Core::Hashable

View File

@ -316,6 +316,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UserGender
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UserIm
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -465,6 +471,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etags, as: 'etags'
property :generated_resource_name, as: 'generatedResourceName'
property :kind, as: 'kind'
property :resource_description, as: 'resourceDescription'
property :resource_email, as: 'resourceEmail'
@ -1007,6 +1014,7 @@ module Google
property :emails, as: 'emails'
property :etag, as: 'etag'
property :external_ids, as: 'externalIds'
property :gender, as: 'gender'
property :hash_function, as: 'hashFunction'
property :id, as: 'id'
property :ims, as: 'ims'
@ -1089,6 +1097,15 @@ module Google
end
end
class UserGender
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address_me_as, as: 'addressMeAs'
property :custom_gender, as: 'customGender'
property :type, as: 'type'
end
end
class UserIm
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1193,12 +1210,12 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gecos, as: 'gecos'
property :gid, as: 'gid'
property :gid, :numeric_string => true, as: 'gid'
property :home_directory, as: 'homeDirectory'
property :primary, as: 'primary'
property :shell, as: 'shell'
property :system_id, as: 'systemId'
property :uid, as: 'uid'
property :uid, :numeric_string => true, as: 'uid'
property :username, as: 'username'
end
end

View File

@ -28,7 +28,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV2
VERSION = 'V2'
REVISION = '20170905'
REVISION = '20170919'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
REVISION = '20170822'
REVISION = '20170919'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -53,6 +53,45 @@ module Google
end
end
# Associates members with a role.
class Binding
include Google::Apis::Core::Hashable
# Specifies the identities requesting access for a Cloud Platform resource.
# members can have the following values:
# allUsers: A special identifier that represents anyone who is on the internet;
# with or without a Google account.
# allAuthenticatedUsers: A special identifier that represents anyone who is
# authenticated with a Google account or a service account.
# user:`emailid`: An email address that represents a specific Google account.
# For example, alice@gmail.com or joe@example.com.
# serviceAccount:`emailid`: An email address that represents a service account.
# For example, my-other-app@appspot.gserviceaccount.com.
# group:`emailid`: An email address that represents a Google group. For example,
# admins@example.com.
# domain:`domain`: A Google Apps domain name that represents all the users of
# that domain. For example, google.com or example.com.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to members. For example, roles/viewer, roles/editor, or
# roles/owner. Required
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
# A request to cancel a job.
class CancelJobRequest
include Google::Apis::Core::Hashable
@ -1357,6 +1396,69 @@ module Google
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources.A Policy consists of a
# list of bindings. A Binding binds a list of members to a role, where the
# members can be user accounts, Google groups, Google domains, and service
# accounts. A role is a named list of permissions defined by IAM.Example
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the IAM developer's guide (
# https://cloud.google.com/iam).
class Policy
include Google::Apis::Core::Hashable
# Associates a list of members to a role. bindings with no members will result
# in an error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::DataprocV1beta2::Binding>]
attr_accessor :bindings
# etag is used for optimistic concurrency control as a way to help prevent
# simultaneous updates of a policy from overwriting each other. It is strongly
# suggested that systems make use of the etag in the read-modify-write cycle to
# perform policy updates in order to avoid race conditions: An etag is returned
# in the response to getIamPolicy, and systems are expected to put that etag in
# the request to setIamPolicy to ensure that their change will be applied to the
# same version of the policy.If no etag is provided in the call to setIamPolicy,
# then the existing policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
attr_accessor :etag
# Version of the Policy. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@version = args[:version] if args.key?(:version)
end
end
# A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
# 0.9.0/python-programming-guide.html) applications on YARN.
class PySparkJob
@ -1460,6 +1562,48 @@ module Google
end
end
# Request message for SetIamPolicy method.
class SetIamPolicyRequest
include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources.A Policy consists of a
# list of bindings. A Binding binds a list of members to a role, where the
# members can be user accounts, Google groups, Google domains, and service
# accounts. A role is a named list of permissions defined by IAM.Example
# `
# "bindings": [
# `
# "role": "roles/owner",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
# ]
# `,
# `
# "role": "roles/viewer",
# "members": ["user:sean@example.com"]
# `
# ]
# `
# For a description of IAM and its features, see the IAM developer's guide (
# https://cloud.google.com/iam).
# Corresponds to the JSON property `policy`
# @return [Google::Apis::DataprocV1beta2::Policy]
attr_accessor :policy
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy = args[:policy] if args.key?(:policy)
end
end
# Specifies the selection and config of software inside the cluster.
class SoftwareConfig
include Google::Apis::Core::Hashable
@ -1709,6 +1853,46 @@ module Google
end
end
# Request message for TestIamPermissions method.
class TestIamPermissionsRequest
include Google::Apis::Core::Hashable
# The set of permissions to check for the resource. Permissions with wildcards (
# such as '*' or 'storage.*') are not allowed. For more information see IAM
# Overview (https://cloud.google.com/iam/docs/overview#permissions).
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# Response message for TestIamPermissions method.
class TestIamPermissionsResponse
include Google::Apis::Core::Hashable
# A subset of TestPermissionsRequest.permissions that the caller is allowed.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
# A YARN application created by a job. Application information is a subset of <
# code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
# Beta Feature: This report is available for testing purposes only. It may be

View File

@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,6 +208,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PySparkJob
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,6 +226,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SoftwareConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -244,6 +262,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class YarnApplication
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -258,6 +288,14 @@ module Google
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class CancelJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -585,6 +623,16 @@ module Google
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::DataprocV1beta2::Binding, decorator: Google::Apis::DataprocV1beta2::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class PySparkJob
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -607,6 +655,14 @@ module Google
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::DataprocV1beta2::Policy, decorator: Google::Apis::DataprocV1beta2::Policy::Representation
end
end
class SoftwareConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -661,6 +717,20 @@ module Google
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class YarnApplication
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -199,6 +199,38 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_region_cluster_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all regions/`region`/clusters in a project.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the cluster belongs
@ -328,6 +360,79 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource. If the
# resource does not exist, this will return an empty set of permissions, not a
# NOT_FOUND error.Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts a job cancellation request. To access the job resource after
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
# @param [String] project_id

View File

@ -25,13 +25,19 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/rest/
module OsloginV1alpha
VERSION = 'V1alpha'
REVISION = '20170918'
REVISION = '20170920'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View and manage your Google Compute Engine resources
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
# View your Google Compute Engine resources
AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
end
end
end

View File

@ -25,13 +25,19 @@ module Google
# @see https://cloud.google.com/compute/docs/oslogin/rest/
module OsloginV1beta
VERSION = 'V1beta'
REVISION = '20170918'
REVISION = '20170920'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View and manage your Google Compute Engine resources
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
# View your Google Compute Engine resources
AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
end
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/streetview/publish/
module StreetviewpublishV1
VERSION = 'V1'
REVISION = '20170914'
REVISION = '20170920'
# Publish and manage your 360 photos on Google Street View
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'

View File

@ -454,7 +454,7 @@ module Google
class Place
include Google::Apis::Core::Hashable
# Required. Place identifier, as described in
# Place identifier, as described in
# https://developers.google.com/places/place-id.
# Corresponds to the JSON property `placeId`
# @return [String]

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20170911'
REVISION = '20170918'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/youtube/v3
module YoutubeV3
VERSION = 'V3'
REVISION = '20170903'
REVISION = '20170918'
# Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'

View File

@ -3790,6 +3790,14 @@ module Google
attr_accessor :enable_low_latency
alias_method :enable_low_latency?, :enable_low_latency
# If both this and enable_low_latency are set, they must match. LATENCY_NORMAL
# should match enable_low_latency=false LATENCY_LOW should match
# enable_low_latency=true LATENCY_ULTRA_LOW should have enable_low_latency
# omitted.
# Corresponds to the JSON property `latencyPreference`
# @return [String]
attr_accessor :latency_preference
#
# Corresponds to the JSON property `mesh`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
@ -3842,6 +3850,7 @@ module Google
@enable_dvr = args[:enable_dvr] if args.key?(:enable_dvr)
@enable_embed = args[:enable_embed] if args.key?(:enable_embed)
@enable_low_latency = args[:enable_low_latency] if args.key?(:enable_low_latency)
@latency_preference = args[:latency_preference] if args.key?(:latency_preference)
@mesh = args[:mesh] if args.key?(:mesh)
@monitor_stream = args[:monitor_stream] if args.key?(:monitor_stream)
@projection = args[:projection] if args.key?(:projection)

View File

@ -2040,6 +2040,7 @@ module Google
property :enable_dvr, as: 'enableDvr'
property :enable_embed, as: 'enableEmbed'
property :enable_low_latency, as: 'enableLowLatency'
property :latency_preference, as: 'latencyPreference'
property :mesh, :base64 => true, as: 'mesh'
property :monitor_stream, as: 'monitorStream', class: Google::Apis::YoutubeV3::MonitorStreamInfo, decorator: Google::Apis::YoutubeV3::MonitorStreamInfo::Representation