Autogenerated update (2019-01-30)
Update: - adexchangebuyer2_v2beta1 - cloudtasks_v2beta3 - file_v1 - ml_v1 - redis_v1 - redis_v1beta1 - testing_v1
This commit is contained in:
parent
e6117f8a73
commit
0c93c4565a
|
@ -18641,6 +18641,7 @@
|
|||
"/cloudtasks:v2beta3/Task/appEngineHttpRequest": app_engine_http_request
|
||||
"/cloudtasks:v2beta3/Task/createTime": create_time
|
||||
"/cloudtasks:v2beta3/Task/dispatchCount": dispatch_count
|
||||
"/cloudtasks:v2beta3/Task/dispatchDeadline": dispatch_deadline
|
||||
"/cloudtasks:v2beta3/Task/firstAttempt": first_attempt
|
||||
"/cloudtasks:v2beta3/Task/lastAttempt": last_attempt
|
||||
"/cloudtasks:v2beta3/Task/name": name
|
||||
|
@ -77754,15 +77755,20 @@
|
|||
"/ml:v1/GoogleCloudMlV1__PredictionOutput/nodeHours": node_hours
|
||||
"/ml:v1/GoogleCloudMlV1__PredictionOutput/outputPath": output_path
|
||||
"/ml:v1/GoogleCloudMlV1__PredictionOutput/predictionCount": prediction_count
|
||||
"/ml:v1/GoogleCloudMlV1__ReplicaConfig": google_cloud_ml_v1__replica_config
|
||||
"/ml:v1/GoogleCloudMlV1__ReplicaConfig/acceleratorConfig": accelerator_config
|
||||
"/ml:v1/GoogleCloudMlV1__ReplicaConfig/imageUri": image_uri
|
||||
"/ml:v1/GoogleCloudMlV1__SetDefaultVersionRequest": google_cloud_ml_v1__set_default_version_request
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput": google_cloud_ml_v1__training_input
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/args": args
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/args/arg": arg
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/hyperparameters": hyperparameters
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/jobDir": job_dir
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/masterConfig": master_config
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/masterType": master_type
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/packageUris": package_uris
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/packageUris/package_uri": package_uri
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/parameterServerConfig": parameter_server_config
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/parameterServerCount": parameter_server_count
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/parameterServerType": parameter_server_type
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/pythonModule": python_module
|
||||
|
@ -77770,6 +77776,7 @@
|
|||
"/ml:v1/GoogleCloudMlV1__TrainingInput/region": region
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/runtimeVersion": runtime_version
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/scaleTier": scale_tier
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/workerConfig": worker_config
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/workerCount": worker_count
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingInput/workerType": worker_type
|
||||
"/ml:v1/GoogleCloudMlV1__TrainingOutput": google_cloud_ml_v1__training_output
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
|
||||
module Adexchangebuyer2V2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20181210'
|
||||
REVISION = '20190128'
|
||||
|
||||
# Manage your Ad Exchange buyer account configuration
|
||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||
|
|
|
@ -621,7 +621,7 @@ module Google
|
|||
end
|
||||
|
||||
# A creative and its classification data.
|
||||
# Next ID: 39
|
||||
# Next ID: 40
|
||||
class Creative
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/tasks/
|
||||
module CloudtasksV2beta3
|
||||
VERSION = 'V2beta3'
|
||||
REVISION = '20190104'
|
||||
REVISION = '20190118'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1296,6 +1296,35 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :dispatch_count
|
||||
|
||||
# The deadline for requests sent to the worker. If the worker does not
|
||||
# respond by this deadline then the request is cancelled and the attempt
|
||||
# is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
|
||||
# task according to the RetryConfig.
|
||||
# Note that when the request is cancelled, Cloud Tasks will stop listing for
|
||||
# the response, but whether the worker stops processing depends on the
|
||||
# worker. For example, if the worker is stuck, it may not react to cancelled
|
||||
# requests.
|
||||
# The default and maximum values depend on the type of request:
|
||||
# * For App Engine tasks, 0 indicates that the
|
||||
# request has the default deadline. The default deadline depends on the
|
||||
# [scaling type](https://cloud.google.com/appengine/docs/standard/go/how-
|
||||
# instances-are-managed#instance_scaling)
|
||||
# of the service: 10 minutes for standard apps with automatic scaling, 24
|
||||
# hours for standard apps with manual and basic scaling, and 60 minutes for
|
||||
# flex apps. If the request deadline is set, it must be in the interval [15
|
||||
# seconds, 24 hours 15 seconds]. Regardless of the task's
|
||||
# `dispatch_deadline`, the app handler will not run for longer than than
|
||||
# the service's timeout. We recommend setting the `dispatch_deadline` to
|
||||
# at most a few seconds more than the app handler's timeout. For more
|
||||
# information see
|
||||
# [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#
|
||||
# timeouts).
|
||||
# `dispatch_deadline` will be truncated to the nearest millisecond. The
|
||||
# deadline is an approximate deadline.
|
||||
# Corresponds to the JSON property `dispatchDeadline`
|
||||
# @return [String]
|
||||
attr_accessor :dispatch_deadline
|
||||
|
||||
# The status of a task attempt.
|
||||
# Corresponds to the JSON property `firstAttempt`
|
||||
# @return [Google::Apis::CloudtasksV2beta3::Attempt]
|
||||
|
@ -1354,6 +1383,7 @@ module Google
|
|||
@app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@dispatch_count = args[:dispatch_count] if args.key?(:dispatch_count)
|
||||
@dispatch_deadline = args[:dispatch_deadline] if args.key?(:dispatch_deadline)
|
||||
@first_attempt = args[:first_attempt] if args.key?(:first_attempt)
|
||||
@last_attempt = args[:last_attempt] if args.key?(:last_attempt)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
|
|
|
@ -392,6 +392,7 @@ module Google
|
|||
|
||||
property :create_time, as: 'createTime'
|
||||
property :dispatch_count, as: 'dispatchCount'
|
||||
property :dispatch_deadline, as: 'dispatchDeadline'
|
||||
property :first_attempt, as: 'firstAttempt', class: Google::Apis::CloudtasksV2beta3::Attempt, decorator: Google::Apis::CloudtasksV2beta3::Attempt::Representation
|
||||
|
||||
property :last_attempt, as: 'lastAttempt', class: Google::Apis::CloudtasksV2beta3::Attempt, decorator: Google::Apis::CloudtasksV2beta3::Attempt::Representation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/filestore/
|
||||
module FileV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190123'
|
||||
REVISION = '20190129'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -54,149 +54,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# File share configuration for the instance.
|
||||
class FileShareConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# File share capacity in gigabytes (GB).
|
||||
# Cloud Filestore defines 1 GB as 1024^3 bytes.
|
||||
# Corresponds to the JSON property `capacityGb`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :capacity_gb
|
||||
|
||||
# The name of the file share (must be 16 characters or less).
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# A Cloud Filestore instance.
|
||||
class Instance
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# The time when the instance was created.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Optional. A description of the instance (2048 characters or less).
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Server-specified ETag for the instance resource to prevent simultaneous
|
||||
# updates from overwriting each other.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# File system shares on the instance.
|
||||
# For this version, only a single file share is supported.
|
||||
# Corresponds to the JSON property `fileShares`
|
||||
# @return [Array<Google::Apis::FileV1::FileShareConfig>]
|
||||
attr_accessor :file_shares
|
||||
|
||||
# Resource labels to represent user provided metadata.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Output only.
|
||||
# The resource name of the instance, in the format
|
||||
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# VPC networks to which the instance is connected.
|
||||
# For this version, only a single network is supported.
|
||||
# Corresponds to the JSON property `networks`
|
||||
# @return [Array<Google::Apis::FileV1::NetworkConfig>]
|
||||
attr_accessor :networks
|
||||
|
||||
# Output only.
|
||||
# The instance state.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
||||
# Output only.
|
||||
# Additional information about the instance state, if available.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# The service tier of the instance.
|
||||
# Corresponds to the JSON property `tier`
|
||||
# @return [String]
|
||||
attr_accessor :tier
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@file_shares = args[:file_shares] if args.key?(:file_shares)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@networks = args[:networks] if args.key?(:networks)
|
||||
@state = args[:state] if args.key?(:state)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@tier = args[:tier] if args.key?(:tier)
|
||||
end
|
||||
end
|
||||
|
||||
# ListInstancesResponse is the result of ListInstancesRequest.
|
||||
class ListInstancesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of instances in the project for the specified location.
|
||||
# If the `location` value in the request is "-", the response contains a list
|
||||
# of instances from all locations. If any location is unreachable, the
|
||||
# response will only return instances in reachable locations and the
|
||||
# "unreachable" field will be populated with a list of unreachable locations.
|
||||
# Corresponds to the JSON property `instances`
|
||||
# @return [Array<Google::Apis::FileV1::Instance>]
|
||||
attr_accessor :instances
|
||||
|
||||
# The token you can use to retrieve the next page of results. Not returned
|
||||
# if there are no more results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# Locations that could not be reached.
|
||||
# Corresponds to the JSON property `unreachable`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :unreachable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@instances = args[:instances] if args.key?(:instances)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Locations.ListLocations.
|
||||
class ListLocationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -294,56 +151,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Network configuration for the instance.
|
||||
class NetworkConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# IPv4 addresses in the format
|
||||
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format
|
||||
# `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block 7`:`block 8`
|
||||
# .
|
||||
# Corresponds to the JSON property `ipAddresses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ip_addresses
|
||||
|
||||
# Internet protocol versions for which the instance has IP addresses
|
||||
# assigned. For this version, only MODE_IPV4 is supported.
|
||||
# Corresponds to the JSON property `modes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :modes
|
||||
|
||||
# The name of the Google Compute Engine
|
||||
# [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
|
||||
# instance is connected.
|
||||
# Corresponds to the JSON property `network`
|
||||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# A /29 CIDR block in one of the
|
||||
# [internal IP address ranges](https://www.arin.net/knowledge/address_filters.
|
||||
# html)
|
||||
# that identifies the range of IP addresses reserved for this
|
||||
# instance. For example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify
|
||||
# can't overlap with either existing subnets or assigned IP address ranges
|
||||
# for other Cloud Filestore instances in the selected VPC network.
|
||||
# Corresponds to the JSON property `reservedIpRange`
|
||||
# @return [String]
|
||||
attr_accessor :reserved_ip_range
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
||||
@modes = args[:modes] if args.key?(:modes)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
|
|
|
@ -34,24 +34,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FileShareConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Instance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListInstancesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -70,12 +52,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NetworkConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -106,42 +82,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class FileShareConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :capacity_gb, :numeric_string => true, as: 'capacityGb'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Instance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :description, as: 'description'
|
||||
property :etag, as: 'etag'
|
||||
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :tier, as: 'tier'
|
||||
end
|
||||
end
|
||||
|
||||
class ListInstancesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :instances, as: 'instances', class: Google::Apis::FileV1::Instance, decorator: Google::Apis::FileV1::Instance::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :unreachable, as: 'unreachable'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -171,16 +111,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class NetworkConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :ip_addresses, as: 'ipAddresses'
|
||||
collection :modes, as: 'modes'
|
||||
property :network, as: 'network'
|
||||
property :reserved_ip_range, as: 'reservedIpRange'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -116,196 +116,6 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates an instance.
|
||||
# @param [String] parent
|
||||
# The instance's project and location, in the format
|
||||
# projects/`project_id`/locations/`location`. In Cloud Filestore,
|
||||
# locations map to GCP zones, for example **us-west1-b**.
|
||||
# @param [Google::Apis::FileV1::Instance] instance_object
|
||||
# @param [String] instance_id
|
||||
# The name of the instance to create.
|
||||
# The name must be unique for the specified project and location.
|
||||
# @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::FileV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::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 create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
|
||||
command.request_representation = Google::Apis::FileV1::Instance::Representation
|
||||
command.request_object = instance_object
|
||||
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
||||
command.response_class = Google::Apis::FileV1::Operation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['instanceId'] = instance_id unless instance_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes an instance.
|
||||
# @param [String] name
|
||||
# The instance resource name, in the format
|
||||
# projects/`project_id`/locations/`location`/instances/`instance_id`
|
||||
# @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::FileV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
||||
command.response_class = Google::Apis::FileV1::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
|
||||
|
||||
# Gets the details of a specific instance.
|
||||
# @param [String] name
|
||||
# The instance resource name, in the format
|
||||
# projects/`project_id`/locations/`location`/instances/`instance_id`.
|
||||
# @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::FileV1::Instance] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Instance]
|
||||
#
|
||||
# @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_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FileV1::Instance::Representation
|
||||
command.response_class = Google::Apis::FileV1::Instance
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all instances in a project for either a specified location
|
||||
# or for all locations.
|
||||
# @param [String] parent
|
||||
# The project and location for which to retrieve instance information,
|
||||
# in the format projects/`project_id`/locations/`location`. In Cloud
|
||||
# Filestore, locations map to GCP zones, for example **us-west1-b**. To
|
||||
# retrieve instance information for all locations, use "-" for the `location`
|
||||
# value.
|
||||
# @param [String] filter
|
||||
# List filter.
|
||||
# @param [String] order_by
|
||||
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of items to return.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value to use if there are additional
|
||||
# results to retrieve for this list request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FileV1::ListInstancesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::ListInstancesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_location_instances(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
|
||||
command.response_representation = Google::Apis::FileV1::ListInstancesResponse::Representation
|
||||
command.response_class = Google::Apis::FileV1::ListInstancesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.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
|
||||
|
||||
# Updates the settings of a specific instance.
|
||||
# @param [String] name
|
||||
# Output only.
|
||||
# The resource name of the instance, in the format
|
||||
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
|
||||
# @param [Google::Apis::FileV1::Instance] instance_object
|
||||
# @param [String] update_mask
|
||||
# Mask of fields to update. At least one path must be supplied in this
|
||||
# field. The elements of the repeated paths field may only include these
|
||||
# fields:
|
||||
# "description"
|
||||
# @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::FileV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FileV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::FileV1::Instance::Representation
|
||||
command.request_object = instance_object
|
||||
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
||||
command.response_class = Google::Apis::FileV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/ml/
|
||||
module MlV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190123'
|
||||
REVISION = '20190126'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1079,6 +1079,32 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Represents the configration for a replica in a cluster.
|
||||
class GoogleCloudMlV1ReplicaConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents a hardware accelerator request config.
|
||||
# Corresponds to the JSON property `acceleratorConfig`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig]
|
||||
attr_accessor :accelerator_config
|
||||
|
||||
# The docker image to run on worker.
|
||||
# This image must be in Google Container Registry.
|
||||
# Corresponds to the JSON property `imageUri`
|
||||
# @return [String]
|
||||
attr_accessor :image_uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
|
||||
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for the SetDefaultVersion request.
|
||||
class GoogleCloudMlV1SetDefaultVersionRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1120,6 +1146,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :job_dir
|
||||
|
||||
# Represents the configration for a replica in a cluster.
|
||||
# Corresponds to the JSON property `masterConfig`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig]
|
||||
attr_accessor :master_config
|
||||
|
||||
# Optional. Specifies the type of virtual machine to use for your training
|
||||
# job's master worker.
|
||||
# The following types are supported:
|
||||
|
@ -1217,6 +1248,11 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :package_uris
|
||||
|
||||
# Represents the configration for a replica in a cluster.
|
||||
# Corresponds to the JSON property `parameterServerConfig`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig]
|
||||
attr_accessor :parameter_server_config
|
||||
|
||||
# Optional. The number of parameter server replicas to use for the training
|
||||
# job. Each replica in the cluster will be of the type specified in
|
||||
# `parameter_server_type`.
|
||||
|
@ -1273,6 +1309,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :scale_tier
|
||||
|
||||
# Represents the configration for a replica in a cluster.
|
||||
# Corresponds to the JSON property `workerConfig`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig]
|
||||
attr_accessor :worker_config
|
||||
|
||||
# Optional. The number of worker replicas to use for the training job. Each
|
||||
# replica in the cluster will be of the type specified in `worker_type`.
|
||||
# This value can only be used when `scale_tier` is set to `CUSTOM`. If you
|
||||
|
@ -1301,8 +1342,10 @@ module Google
|
|||
@args = args[:args] if args.key?(:args)
|
||||
@hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
|
||||
@job_dir = args[:job_dir] if args.key?(:job_dir)
|
||||
@master_config = args[:master_config] if args.key?(:master_config)
|
||||
@master_type = args[:master_type] if args.key?(:master_type)
|
||||
@package_uris = args[:package_uris] if args.key?(:package_uris)
|
||||
@parameter_server_config = args[:parameter_server_config] if args.key?(:parameter_server_config)
|
||||
@parameter_server_count = args[:parameter_server_count] if args.key?(:parameter_server_count)
|
||||
@parameter_server_type = args[:parameter_server_type] if args.key?(:parameter_server_type)
|
||||
@python_module = args[:python_module] if args.key?(:python_module)
|
||||
|
@ -1310,6 +1353,7 @@ module Google
|
|||
@region = args[:region] if args.key?(:region)
|
||||
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
|
||||
@scale_tier = args[:scale_tier] if args.key?(:scale_tier)
|
||||
@worker_config = args[:worker_config] if args.key?(:worker_config)
|
||||
@worker_count = args[:worker_count] if args.key?(:worker_count)
|
||||
@worker_type = args[:worker_type] if args.key?(:worker_type)
|
||||
end
|
||||
|
|
|
@ -160,6 +160,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1ReplicaConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1SetDefaultVersionRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -502,6 +508,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1ReplicaConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :accelerator_config, as: 'acceleratorConfig', class: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig::Representation
|
||||
|
||||
property :image_uri, as: 'imageUri'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1SetDefaultVersionRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -515,8 +530,12 @@ module Google
|
|||
property :hyperparameters, as: 'hyperparameters', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterSpec::Representation
|
||||
|
||||
property :job_dir, as: 'jobDir'
|
||||
property :master_config, as: 'masterConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation
|
||||
|
||||
property :master_type, as: 'masterType'
|
||||
collection :package_uris, as: 'packageUris'
|
||||
property :parameter_server_config, as: 'parameterServerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation
|
||||
|
||||
property :parameter_server_count, :numeric_string => true, as: 'parameterServerCount'
|
||||
property :parameter_server_type, as: 'parameterServerType'
|
||||
property :python_module, as: 'pythonModule'
|
||||
|
@ -524,6 +543,8 @@ module Google
|
|||
property :region, as: 'region'
|
||||
property :runtime_version, as: 'runtimeVersion'
|
||||
property :scale_tier, as: 'scaleTier'
|
||||
property :worker_config, as: 'workerConfig', class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig, decorator: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig::Representation
|
||||
|
||||
property :worker_count, :numeric_string => true, as: 'workerCount'
|
||||
property :worker_type, as: 'workerType'
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/memorystore/docs/redis/
|
||||
module RedisV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20181203'
|
||||
REVISION = '20190128'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/memorystore/docs/redis/
|
||||
module RedisV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20181203'
|
||||
REVISION = '20190128'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -214,10 +214,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Output only. IAM identity used by import / export operations to transfer
|
||||
# data to/from GCS. Format is "serviceAccount:<service_account_email>". The
|
||||
# value may change over time for a given instance so should be checked before
|
||||
# each import/export operation.
|
||||
# Output only. Cloud IAM identity used by import / export operations to
|
||||
# transfer data to/from Cloud Storage. Format is
|
||||
# "serviceAccount:<service_account_email>". The value may change over time
|
||||
# for a given instance so should be checked before each import/export
|
||||
# operation.
|
||||
# Corresponds to the JSON property `persistenceIamIdentity`
|
||||
# @return [String]
|
||||
attr_accessor :persistence_iam_identity
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-test-lab/
|
||||
module TestingV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190123'
|
||||
REVISION = '20190129'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
Loading…
Reference in New Issue