Skip to content

Commit

Permalink
Autogenerated update (2018-11-09)
Browse files Browse the repository at this point in the history
Update:
- cloudasset_v1beta1
- dataproc_v1
- dataproc_v1beta2
- drive_v2
- drive_v3
- runtimeconfig_v1beta1
- servicemanagement_v1
- youtube_partner_v1
  • Loading branch information
googleapis-publisher committed Nov 9, 2018
1 parent 4c90d65 commit ddcba56
Show file tree
Hide file tree
Showing 17 changed files with 268 additions and 13 deletions.
15 changes: 15 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41313,6 +41313,7 @@
"/dataproc:v1/Job/driverOutputResourceUri": driver_output_resource_uri
"/dataproc:v1/Job/hadoopJob": hadoop_job
"/dataproc:v1/Job/hiveJob": hive_job
"/dataproc:v1/Job/jobUuid": job_uuid
"/dataproc:v1/Job/labels": labels
"/dataproc:v1/Job/labels/label": label
"/dataproc:v1/Job/pigJob": pig_job
Expand Down Expand Up @@ -41810,6 +41811,7 @@
"/dataproc:v1beta2/Job/driverOutputResourceUri": driver_output_resource_uri
"/dataproc:v1beta2/Job/hadoopJob": hadoop_job
"/dataproc:v1beta2/Job/hiveJob": hive_job
"/dataproc:v1beta2/Job/jobUuid": job_uuid
"/dataproc:v1beta2/Job/labels": labels
"/dataproc:v1beta2/Job/labels/label": label
"/dataproc:v1beta2/Job/pigJob": pig_job
Expand All @@ -41818,6 +41820,7 @@
"/dataproc:v1beta2/Job/reference": reference
"/dataproc:v1beta2/Job/scheduling": scheduling
"/dataproc:v1beta2/Job/sparkJob": spark_job
"/dataproc:v1beta2/Job/sparkRJob": spark_r_job
"/dataproc:v1beta2/Job/sparkSqlJob": spark_sql_job
"/dataproc:v1beta2/Job/status": status
"/dataproc:v1beta2/Job/statusHistory": status_history
Expand Down Expand Up @@ -41954,6 +41957,17 @@
"/dataproc:v1beta2/SparkJob/mainJarFileUri": main_jar_file_uri
"/dataproc:v1beta2/SparkJob/properties": properties
"/dataproc:v1beta2/SparkJob/properties/property": property
"/dataproc:v1beta2/SparkRJob": spark_r_job
"/dataproc:v1beta2/SparkRJob/archiveUris": archive_uris
"/dataproc:v1beta2/SparkRJob/archiveUris/archive_uri": archive_uri
"/dataproc:v1beta2/SparkRJob/args": args
"/dataproc:v1beta2/SparkRJob/args/arg": arg
"/dataproc:v1beta2/SparkRJob/fileUris": file_uris
"/dataproc:v1beta2/SparkRJob/fileUris/file_uri": file_uri
"/dataproc:v1beta2/SparkRJob/loggingConfig": logging_config
"/dataproc:v1beta2/SparkRJob/mainRFileUri": main_r_file_uri
"/dataproc:v1beta2/SparkRJob/properties": properties
"/dataproc:v1beta2/SparkRJob/properties/property": property
"/dataproc:v1beta2/SparkSqlJob": spark_sql_job
"/dataproc:v1beta2/SparkSqlJob/jarFileUris": jar_file_uris
"/dataproc:v1beta2/SparkSqlJob/jarFileUris/jar_file_uri": jar_file_uri
Expand Down Expand Up @@ -79816,6 +79830,7 @@
"/servicemanagement:v1/BackendRule/address": address
"/servicemanagement:v1/BackendRule/deadline": deadline
"/servicemanagement:v1/BackendRule/minDeadline": min_deadline
"/servicemanagement:v1/BackendRule/operationDeadline": operation_deadline
"/servicemanagement:v1/BackendRule/selector": selector
"/servicemanagement:v1/Billing": billing
"/servicemanagement:v1/Billing/consumerDestinations": consumer_destinations
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/cloudasset_v1beta1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview
module CloudassetV1beta1
VERSION = 'V1beta1'
REVISION = '20181105'
REVISION = '20181107'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
133 changes: 130 additions & 3 deletions generated/google/apis/cloudasset_v1beta1/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,101 @@ def initialize
@batch_path = 'batch'
end

# Batch gets the update history of assets that overlap a time window.
# For RESOURCE content, this API outputs history with asset in both
# non-delete or deleted status.
# For IAM_POLICY content, this API outputs history when the asset and its
# attached IAM POLICY both exist. This can create gaps in the output history.
# @param [String] parent
# Required. The relative name of the root asset. It can only be an
# organization number (such as "organizations/123"), a project ID (such as
# "projects/my-project-id")", or a project number (such as "projects/12345").
# @param [Array<String>, String] asset_names
# A list of the full names of the assets. For example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`.
# See [Resource Names](https://cloud.google.com/apis/design/resource_names#
# full_resource_name)
# for more info.
# The request becomes a no-op if the asset name list is empty, and the max
# size of the asset name list is 100 in one request.
# @param [String] content_type
# Required. The content type.
# @param [String] read_time_window_end_time
# End time of the time window (inclusive).
# Current timestamp if not specified.
# @param [String] read_time_window_start_time
# Start time of the time window (exclusive).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_organization_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}:batchGetAssetsHistory', options)
command.response_representation = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse::Representation
command.response_class = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse
command.params['parent'] = parent unless parent.nil?
command.query['assetNames'] = asset_names unless asset_names.nil?
command.query['contentType'] = content_type unless content_type.nil?
command.query['readTimeWindow.endTime'] = read_time_window_end_time unless read_time_window_end_time.nil?
command.query['readTimeWindow.startTime'] = read_time_window_start_time unless read_time_window_start_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Exports assets with time and resource types to a given Cloud Storage
# location. The output format is newline-delimited JSON.
# This API implements the google.longrunning.Operation API allowing you
# to keep track of the export.
# @param [String] parent
# Required. The relative name of the root asset. This can only be an
# organization
# number (such as "organizations/123"), a project ID (such as
# "projects/my-project-id"), or a project number (such as "projects/12345").
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def export_organization_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
command.request_object = export_assets_request_object
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# 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.
Expand All @@ -69,7 +164,7 @@ def initialize
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
def get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1beta1::Operation
Expand Down Expand Up @@ -121,7 +216,7 @@ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
def batch_project_get_assets_history(parent, asset_names: nil, content_type: nil, read_time_window_end_time: nil, read_time_window_start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}:batchGetAssetsHistory', options)
command.response_representation = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse::Representation
command.response_class = Google::Apis::CloudassetV1beta1::BatchGetAssetsHistoryResponse
Expand Down Expand Up @@ -162,7 +257,7 @@ def batch_get_assets_history(parent, asset_names: nil, content_type: nil, read_t
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def export_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def export_project_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
command.request_object = export_assets_request_object
Expand All @@ -173,6 +268,38 @@ def export_assets(parent, export_assets_request_object = nil, fields: nil, quota
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::CloudassetV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
command.response_class = Google::Apis::CloudassetV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

protected

Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/dataproc_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://cloud.google.com/dataproc/
module DataprocV1
VERSION = 'V1'
REVISION = '20181019'
REVISION = '20181105'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
8 changes: 8 additions & 0 deletions generated/google/apis/dataproc_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,13 @@ class Job
# @return [Google::Apis::DataprocV1::HiveJob]
attr_accessor :hive_job

# Output only. A UUID that uniquely identifies a job within the project over
# time. This is in contrast to a user-settable reference.job_id that may be
# reused over time.
# Corresponds to the JSON property `jobUuid`
# @return [String]
attr_accessor :job_uuid

# Optional. The labels to associate with this job. Label keys must contain 1 to
# 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
# txt). Label values may be empty, but, if present, must contain 1 to 63
Expand Down Expand Up @@ -1118,6 +1125,7 @@ def update!(**args)
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
@hive_job = args[:hive_job] if args.key?(:hive_job)
@job_uuid = args[:job_uuid] if args.key?(:job_uuid)
@labels = args[:labels] if args.key?(:labels)
@pig_job = args[:pig_job] if args.key?(:pig_job)
@placement = args[:placement] if args.key?(:placement)
Expand Down
1 change: 1 addition & 0 deletions generated/google/apis/dataproc_v1/representations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation

property :job_uuid, as: 'jobUuid'
hash :labels, as: 'labels'
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation

Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/dataproc_v1beta2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
REVISION = '20181019'
REVISION = '20181105'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
Loading

0 comments on commit ddcba56

Please sign in to comment.