Autogenerated update (2018-06-15)

Update:
- cloudbuild_v1
- cloudtasks_v2beta2
- dataproc_v1
- dialogflow_v2
- dialogflow_v2beta1
- iamcredentials_v1
- ml_v1
- serviceconsumermanagement_v1
- servicecontrol_v1
This commit is contained in:
Google APIs 2018-06-15 00:36:51 +00:00
parent f7475934ab
commit da450745d5
22 changed files with 742 additions and 122 deletions

View File

@ -36933,6 +36933,10 @@
"/dataproc:v1/ClusterMetrics/hdfsMetrics/hdfs_metric": hdfs_metric
"/dataproc:v1/ClusterMetrics/yarnMetrics": yarn_metrics
"/dataproc:v1/ClusterMetrics/yarnMetrics/yarn_metric": yarn_metric
"/dataproc:v1/ClusterOperation": cluster_operation
"/dataproc:v1/ClusterOperation/done": done
"/dataproc:v1/ClusterOperation/error": error
"/dataproc:v1/ClusterOperation/operationId": operation_id
"/dataproc:v1/ClusterOperationMetadata": cluster_operation_metadata
"/dataproc:v1/ClusterOperationMetadata/clusterName": cluster_name
"/dataproc:v1/ClusterOperationMetadata/clusterUuid": cluster_uuid
@ -36960,6 +36964,7 @@
"/dataproc:v1/DiagnoseClusterResults/outputUri": output_uri
"/dataproc:v1/DiskConfig": disk_config
"/dataproc:v1/DiskConfig/bootDiskSizeGb": boot_disk_size_gb
"/dataproc:v1/DiskConfig/bootDiskType": boot_disk_type
"/dataproc:v1/DiskConfig/numLocalSsds": num_local_ssds
"/dataproc:v1/Empty": empty
"/dataproc:v1/GceClusterConfig": gce_cluster_config
@ -37136,6 +37141,26 @@
"/dataproc:v1/SubmitJobRequest": submit_job_request
"/dataproc:v1/SubmitJobRequest/job": job
"/dataproc:v1/SubmitJobRequest/requestId": request_id
"/dataproc:v1/WorkflowGraph": workflow_graph
"/dataproc:v1/WorkflowGraph/nodes": nodes
"/dataproc:v1/WorkflowGraph/nodes/node": node
"/dataproc:v1/WorkflowMetadata": workflow_metadata
"/dataproc:v1/WorkflowMetadata/clusterName": cluster_name
"/dataproc:v1/WorkflowMetadata/createCluster": create_cluster
"/dataproc:v1/WorkflowMetadata/deleteCluster": delete_cluster
"/dataproc:v1/WorkflowMetadata/graph": graph
"/dataproc:v1/WorkflowMetadata/parameters": parameters
"/dataproc:v1/WorkflowMetadata/parameters/parameter": parameter
"/dataproc:v1/WorkflowMetadata/state": state
"/dataproc:v1/WorkflowMetadata/template": template
"/dataproc:v1/WorkflowMetadata/version": version
"/dataproc:v1/WorkflowNode": workflow_node
"/dataproc:v1/WorkflowNode/error": error
"/dataproc:v1/WorkflowNode/jobId": job_id
"/dataproc:v1/WorkflowNode/prerequisiteStepIds": prerequisite_step_ids
"/dataproc:v1/WorkflowNode/prerequisiteStepIds/prerequisite_step_id": prerequisite_step_id
"/dataproc:v1/WorkflowNode/state": state
"/dataproc:v1/WorkflowNode/stepId": step_id
"/dataproc:v1/YarnApplication": yarn_application
"/dataproc:v1/YarnApplication/name": name
"/dataproc:v1/YarnApplication/progress": progress
@ -62797,6 +62822,7 @@
"/ml:v1/GoogleCloudMlV1__Version/labels": labels
"/ml:v1/GoogleCloudMlV1__Version/labels/label": label
"/ml:v1/GoogleCloudMlV1__Version/lastUseTime": last_use_time
"/ml:v1/GoogleCloudMlV1__Version/machineType": machine_type
"/ml:v1/GoogleCloudMlV1__Version/manualScaling": manual_scaling
"/ml:v1/GoogleCloudMlV1__Version/name": name
"/ml:v1/GoogleCloudMlV1__Version/pythonVersion": python_version
@ -69962,6 +69988,15 @@
"/servicecontrol:v1/AuditLog/serviceData/service_datum": service_datum
"/servicecontrol:v1/AuditLog/serviceName": service_name
"/servicecontrol:v1/AuditLog/status": status
"/servicecontrol:v1/Auth": auth
"/servicecontrol:v1/Auth/accessLevels": access_levels
"/servicecontrol:v1/Auth/accessLevels/access_level": access_level
"/servicecontrol:v1/Auth/audiences": audiences
"/servicecontrol:v1/Auth/audiences/audience": audience
"/servicecontrol:v1/Auth/claims": claims
"/servicecontrol:v1/Auth/claims/claim": claim
"/servicecontrol:v1/Auth/presenter": presenter
"/servicecontrol:v1/Auth/principal": principal
"/servicecontrol:v1/AuthenticationInfo": authentication_info
"/servicecontrol:v1/AuthenticationInfo/authoritySelector": authority_selector
"/servicecontrol:v1/AuthenticationInfo/principalEmail": principal_email
@ -69971,6 +70006,7 @@
"/servicecontrol:v1/AuthorizationInfo/granted": granted
"/servicecontrol:v1/AuthorizationInfo/permission": permission
"/servicecontrol:v1/AuthorizationInfo/resource": resource
"/servicecontrol:v1/AuthorizationInfo/resourceAttributes": resource_attributes
"/servicecontrol:v1/CheckError": check_error
"/servicecontrol:v1/CheckError/code": code
"/servicecontrol:v1/CheckError/detail": detail
@ -70127,10 +70163,32 @@
"/servicecontrol:v1/ReportResponse/reportInfos": report_infos
"/servicecontrol:v1/ReportResponse/reportInfos/report_info": report_info
"/servicecontrol:v1/ReportResponse/serviceConfigId": service_config_id
"/servicecontrol:v1/Request": request
"/servicecontrol:v1/Request/auth": auth
"/servicecontrol:v1/Request/fragment": fragment
"/servicecontrol:v1/Request/headers": headers
"/servicecontrol:v1/Request/headers/header": header
"/servicecontrol:v1/Request/host": host
"/servicecontrol:v1/Request/id": id
"/servicecontrol:v1/Request/method": method_prop
"/servicecontrol:v1/Request/path": path
"/servicecontrol:v1/Request/protocol": protocol
"/servicecontrol:v1/Request/query": query
"/servicecontrol:v1/Request/reason": reason
"/servicecontrol:v1/Request/scheme": scheme
"/servicecontrol:v1/Request/size": size
"/servicecontrol:v1/Request/time": time
"/servicecontrol:v1/RequestMetadata": request_metadata
"/servicecontrol:v1/RequestMetadata/callerIp": caller_ip
"/servicecontrol:v1/RequestMetadata/callerNetwork": caller_network
"/servicecontrol:v1/RequestMetadata/callerSuppliedUserAgent": caller_supplied_user_agent
"/servicecontrol:v1/RequestMetadata/requestAttributes": request_attributes
"/servicecontrol:v1/Resource": resource
"/servicecontrol:v1/Resource/labels": labels
"/servicecontrol:v1/Resource/labels/label": label
"/servicecontrol:v1/Resource/name": name
"/servicecontrol:v1/Resource/service": service
"/servicecontrol:v1/Resource/type": type
"/servicecontrol:v1/ResourceInfo": resource_info
"/servicecontrol:v1/ResourceInfo/resourceContainer": resource_container
"/servicecontrol:v1/ResourceInfo/resourceName": resource_name

View File

@ -18,14 +18,14 @@ require 'google/apis/cloudbuild_v1/representations.rb'
module Google
module Apis
# Cloud Container Builder API
# Cloud Container Builder
#
# Builds container images in the cloud.
#
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20180603'
REVISION = '20180614'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -20,7 +20,7 @@ require 'google/apis/errors'
module Google
module Apis
module CloudbuildV1
# Cloud Container Builder API
# Cloud Container Builder
#
# Builds container images in the cloud.
#

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Cloud Tasks API
#
# Manages the execution of large numbers of distributed requests. Cloud Tasks is
# in Alpha.
# Manages the execution of large numbers of distributed requests.
#
# @see https://cloud.google.com/cloud-tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20180606'
REVISION = '20180613'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -612,8 +612,10 @@ module Google
# @return [String]
attr_accessor :lease_duration
# The maximum number of tasks to lease. The maximum that can be
# requested is 1000.
# The maximum number of tasks to lease.
# The system will make a best effort to return as close to as
# `max_tasks` as possible.
# The largest that `max_tasks` can be is 1000.
# Corresponds to the JSON property `maxTasks`
# @return [Fixnum]
attr_accessor :max_tasks

View File

@ -22,8 +22,7 @@ module Google
module CloudtasksV2beta2
# Cloud Tasks API
#
# Manages the execution of large numbers of distributed requests. Cloud Tasks is
# in Alpha.
# Manages the execution of large numbers of distributed requests.
#
# @example
# require 'google/apis/cloudtasks_v2beta2'

View File

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

View File

@ -239,6 +239,38 @@ module Google
end
end
# The cluster operation triggered by a workflow.
class ClusterOperation
include Google::Apis::Core::Hashable
# Output only. Indicates the operation is done.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# Output only. Error, if operation failed.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# Output only. The id of the cluster operation.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@error = args[:error] if args.key?(:error)
@operation_id = args[:operation_id] if args.key?(:operation_id)
end
end
# Metadata describing the operation.
class ClusterOperationMetadata
include Google::Apis::Core::Hashable
@ -417,6 +449,13 @@ module Google
# @return [Fixnum]
attr_accessor :boot_disk_size_gb
# Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-
# ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk
# Hard Disk Drive).
# Corresponds to the JSON property `bootDiskType`
# @return [String]
attr_accessor :boot_disk_type
# Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
# attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
# apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
@ -433,6 +472,7 @@ module Google
# Update properties of this object
def update!(**args)
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
@boot_disk_type = args[:boot_disk_type] if args.key?(:boot_disk_type)
@num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
end
end
@ -1683,6 +1723,129 @@ module Google
end
end
# The workflow graph.
class WorkflowGraph
include Google::Apis::Core::Hashable
# Output only. The workflow nodes.
# Corresponds to the JSON property `nodes`
# @return [Array<Google::Apis::DataprocV1::WorkflowNode>]
attr_accessor :nodes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@nodes = args[:nodes] if args.key?(:nodes)
end
end
# A Cloud Dataproc workflow template resource.
class WorkflowMetadata
include Google::Apis::Core::Hashable
# Output only. The name of the managed cluster.
# Corresponds to the JSON property `clusterName`
# @return [String]
attr_accessor :cluster_name
# The cluster operation triggered by a workflow.
# Corresponds to the JSON property `createCluster`
# @return [Google::Apis::DataprocV1::ClusterOperation]
attr_accessor :create_cluster
# The cluster operation triggered by a workflow.
# Corresponds to the JSON property `deleteCluster`
# @return [Google::Apis::DataprocV1::ClusterOperation]
attr_accessor :delete_cluster
# The workflow graph.
# Corresponds to the JSON property `graph`
# @return [Google::Apis::DataprocV1::WorkflowGraph]
attr_accessor :graph
# Map from parameter names to values that were used for those parameters.
# Corresponds to the JSON property `parameters`
# @return [Hash<String,String>]
attr_accessor :parameters
# Output only. The workflow state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output only. The "resource name" of the template.
# Corresponds to the JSON property `template`
# @return [String]
attr_accessor :template
# Output only. The version of template at the time of workflow instantiation.
# 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)
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
@create_cluster = args[:create_cluster] if args.key?(:create_cluster)
@delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
@graph = args[:graph] if args.key?(:graph)
@parameters = args[:parameters] if args.key?(:parameters)
@state = args[:state] if args.key?(:state)
@template = args[:template] if args.key?(:template)
@version = args[:version] if args.key?(:version)
end
end
# The workflow node.
class WorkflowNode
include Google::Apis::Core::Hashable
# Output only. The error detail.
# Corresponds to the JSON property `error`
# @return [String]
attr_accessor :error
# Output only. The job id; populated after the node enters RUNNING state.
# Corresponds to the JSON property `jobId`
# @return [String]
attr_accessor :job_id
# Output only. Node's prerequisite nodes.
# Corresponds to the JSON property `prerequisiteStepIds`
# @return [Array<String>]
attr_accessor :prerequisite_step_ids
# Output only. The node state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output only. The name of the node.
# Corresponds to the JSON property `stepId`
# @return [String]
attr_accessor :step_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@job_id = args[:job_id] if args.key?(:job_id)
@prerequisite_step_ids = args[:prerequisite_step_ids] if args.key?(:prerequisite_step_ids)
@state = args[:state] if args.key?(:state)
@step_id = args[:step_id] if args.key?(:step_id)
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

@ -52,6 +52,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ClusterOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClusterOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -238,6 +244,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class WorkflowGraph
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkflowMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WorkflowNode
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class YarnApplication
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -303,6 +327,15 @@ module Google
end
end
class ClusterOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error'
property :operation_id, as: 'operationId'
end
end
class ClusterOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -356,6 +389,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
property :boot_disk_type, as: 'bootDiskType'
property :num_local_ssds, as: 'numLocalSsds'
end
end
@ -645,6 +679,42 @@ module Google
end
end
class WorkflowGraph
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :nodes, as: 'nodes', class: Google::Apis::DataprocV1::WorkflowNode, decorator: Google::Apis::DataprocV1::WorkflowNode::Representation
end
end
class WorkflowMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_name, as: 'clusterName'
property :create_cluster, as: 'createCluster', class: Google::Apis::DataprocV1::ClusterOperation, decorator: Google::Apis::DataprocV1::ClusterOperation::Representation
property :delete_cluster, as: 'deleteCluster', class: Google::Apis::DataprocV1::ClusterOperation, decorator: Google::Apis::DataprocV1::ClusterOperation::Representation
property :graph, as: 'graph', class: Google::Apis::DataprocV1::WorkflowGraph, decorator: Google::Apis::DataprocV1::WorkflowGraph::Representation
hash :parameters, as: 'parameters'
property :state, as: 'state'
property :template, as: 'template'
property :version, as: 'version'
end
end
class WorkflowNode
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error'
property :job_id, as: 'jobId'
collection :prerequisite_step_ids, as: 'prerequisiteStepIds'
property :state, as: 'state'
property :step_id, as: 'stepId'
end
end
class YarnApplication
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2
VERSION = 'V2'
REVISION = '20180604'
REVISION = '20180611'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -689,8 +689,9 @@ module Google
# The exported agent.
# Example for how to export an agent to a zip file via a command line:
# curl \
# 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:
# export'\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
@ -698,7 +699,7 @@ module Google
# --compressed \
# --data-binary '``' \
# | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
# | base64 --decode > <agent zip file>
# | base64 --decode > &lt;agent zip file&gt;</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -727,16 +728,17 @@ module Google
# The agent to import.
# Example for how to import an agent via the command line:
# curl \
# 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:
# import\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
# -H 'Content-Type: application/json' \
# --compressed \
# --data-binary "`
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
# `"
# 'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
# `"</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -813,7 +815,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
class GoogleCloudDialogflowV2Intent
include Google::Apis::Core::Hashable
@ -2025,7 +2026,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent]
attr_accessor :intent
@ -2120,16 +2120,17 @@ module Google
# The agent to restore.
# Example for how to restore an agent via the command line:
# curl \
# 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:
# restore\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
# -H 'Content-Type: application/json' \
# --compressed \
# --data-binary "`
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
# `" \
# 'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
# `"</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -2433,9 +2434,9 @@ module Google
# or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. The Context ID is
# always converted to lowercase. If <Environment ID> is not specified, we
# assume default 'draft' environment. If <User ID> is not specified, we
# users are under construction and will be available soon. The `Context ID`
# is always converted to lowercase. If `Environment ID` is not specified, we
# assume default 'draft' environment. If `User ID` is not specified, we
# assume default '-' user.
# Corresponds to the JSON property `name`
# @return [String]
@ -2584,9 +2585,9 @@ module Google
# The exported agent.
# Example for how to export an agent to a zip file via a command line:
# curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:
# export'\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/
# agent:export'\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
@ -2594,7 +2595,7 @@ module Google
# --compressed \
# --data-binary '``' \
# | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
# | base64 --decode > <agent zip file>
# | base64 --decode > &lt;agent zip file&gt;</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -2620,7 +2621,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
class GoogleCloudDialogflowV2beta1Intent
include Google::Apis::Core::Hashable
@ -3640,7 +3640,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Intent]
attr_accessor :intent

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20180604'
REVISION = '20180611'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -221,8 +221,9 @@ module Google
# The exported agent.
# Example for how to export an agent to a zip file via a command line:
# curl \
# 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:
# export'\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
@ -230,7 +231,7 @@ module Google
# --compressed \
# --data-binary '``' \
# | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
# | base64 --decode > <agent zip file>
# | base64 --decode > &lt;agent zip file&gt;</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -256,7 +257,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
class GoogleCloudDialogflowV2Intent
include Google::Apis::Core::Hashable
@ -1240,7 +1240,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Intent]
attr_accessor :intent
@ -1820,9 +1819,9 @@ module Google
# or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. The Context ID is
# always converted to lowercase. If <Environment ID> is not specified, we
# assume default 'draft' environment. If <User ID> is not specified, we
# users are under construction and will be available soon. The `Context ID`
# is always converted to lowercase. If `Environment ID` is not specified, we
# assume default 'draft' environment. If `User ID` is not specified, we
# assume default '-' user.
# Corresponds to the JSON property `name`
# @return [String]
@ -2121,9 +2120,9 @@ module Google
# The exported agent.
# Example for how to export an agent to a zip file via a command line:
# curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:
# export'\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/
# agent:export'\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
@ -2131,7 +2130,7 @@ module Google
# --compressed \
# --data-binary '``' \
# | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
# | base64 --decode > <agent zip file>
# | base64 --decode > &lt;agent zip file&gt;</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -2160,17 +2159,17 @@ module Google
# The agent to import.
# Example for how to import an agent via the command line:
# curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:
# import\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/
# agent:import\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
# -H 'Content-Type: application/json' \
# --compressed \
# --data-binary "`
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
# `"
# 'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
# `"</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -2247,7 +2246,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
class GoogleCloudDialogflowV2beta1Intent
include Google::Apis::Core::Hashable
@ -3495,7 +3493,6 @@ module Google
# Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics.
# Next available field number: 22.
# Corresponds to the JSON property `intent`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent]
attr_accessor :intent
@ -3590,17 +3587,17 @@ module Google
# The agent to restore.
# Example for how to restore an agent via the command line:
# curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:
# restore\
# <pre>curl \
# 'https://dialogflow.googleapis.com/v2beta1/projects/&lt;project_name&gt;/
# agent:restore\
# -X POST \
# -H 'Authorization: Bearer '$(gcloud auth print-access-token) \
# -H 'Accept: application/json' \
# -H 'Content-Type: application/json' \
# --compressed \
# --data-binary "`
# 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
# `" \
# 'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'
# `"</pre>
# Corresponds to the JSON property `agentContent`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]
@ -3677,8 +3674,8 @@ module Google
# ID>/sessions
# /<Session ID>/entityTypes/<Entity Type Display Name>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -660,8 +660,8 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
# ID>`. Note: Environments and users are under construction and will be
# available soon. If <Environment ID> is not specified we assume default
# 'draft' environment. If <User ID> is not specified, we assume default
# available soon. If `Environment ID` is not specified we assume default
# 'draft' environment. If `User ID` is not specified, we assume default
# '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -699,12 +699,12 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>`. Note: Environments and users are under
# construction and will be available soon. If <Environment ID> is not
# specified, we assume default 'draft' environment. If <User ID> is not
# construction and will be available soon. If `Environment ID` is not
# specified, we assume default 'draft' environment. If `User ID` is not
# specified, we are using "-". Its up to the API caller to choose an
# appropriate <Session ID> and <User Id>. They can be a random numbers or
# appropriate `Session ID` and `User Id`. They can be a random numbers or
# some type of user and session identifiers (preferably hashed). The length
# of the <Session ID> and <User ID> must not exceed 36 characters.
# of the `Session ID` and `User ID` must not exceed 36 characters.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -741,8 +741,8 @@ module Google
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>`. Note: Environments and users are under
# construction and will be available soon. If <Environment ID> is not
# specified, we assume default 'draft' environment. If <User ID> is not
# construction and will be available soon. If `Environment ID` is not
# specified, we assume default 'draft' environment. If `User ID` is not
# specified, we assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
# @param [String] fields
@ -780,8 +780,8 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. If <Environment
# ID> is not specified, we assume default 'draft' environment. If <User ID>
# users are under construction and will be available soon. If `Environment
# ID` is not specified, we assume default 'draft' environment. If `User ID`
# is not specified, we assume default
# '-' user.
# @param [String] fields
@ -817,8 +817,8 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. If <Environment
# ID> is not specified, we assume default 'draft' environment. If <User ID>
# users are under construction and will be available soon. If `Environment
# ID` is not specified, we assume default 'draft' environment. If `User ID`
# is not specified, we assume default '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -853,8 +853,8 @@ module Google
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>`. Note: Environments and users are under
# construction and will be available soon. If <Environment ID> is not
# specified, we assume default 'draft' environment. If <User ID> is not
# construction and will be available soon. If `Environment ID` is not
# specified, we assume default 'draft' environment. If `User ID` is not
# specified, we assume default '-' user.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
@ -897,9 +897,9 @@ module Google
# or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. The Context ID is
# always converted to lowercase. If <Environment ID> is not specified, we
# assume default 'draft' environment. If <User ID> is not specified, we
# users are under construction and will be available soon. The `Context ID`
# is always converted to lowercase. If `Environment ID` is not specified, we
# assume default 'draft' environment. If `User ID` is not specified, we
# assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
# @param [String] update_mask
@ -941,8 +941,8 @@ module Google
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
# sessions/<Session ID>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -981,8 +981,8 @@ module Google
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
# Name>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1018,8 +1018,8 @@ module Google
# ID>/users/<User ID>/sessions/<Session ID>/
# entityTypes/<Entity Type Display Name>`.
# Note: Environments and users re under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1054,8 +1054,8 @@ module Google
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
# sessions/<Session ID>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
# default 100 and at most 1000.
@ -1099,8 +1099,8 @@ module Google
# ID>/sessions
# /<Session ID>/entityTypes/<Entity Type Display Name>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
# @param [String] update_mask
# Optional. The mask to control which fields get updated.
@ -1423,8 +1423,8 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
# ID>`. Note: Environments and users are under construction and will be
# available soon. If <Environment ID> is not specified we assume default
# 'draft' environment. If <User ID> is not specified, we assume default
# available soon. If `Environment ID` is not specified we assume default
# 'draft' environment. If `User ID` is not specified, we assume default
# '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1462,12 +1462,12 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>`. Note: Environments and users are under
# construction and will be available soon. If <Environment ID> is not
# specified, we assume default 'draft' environment. If <User ID> is not
# construction and will be available soon. If `Environment ID` is not
# specified, we assume default 'draft' environment. If `User ID` is not
# specified, we are using "-". Its up to the API caller to choose an
# appropriate <Session ID> and <User Id>. They can be a random numbers or
# appropriate `Session ID` and `User Id`. They can be a random numbers or
# some type of user and session identifiers (preferably hashed). The length
# of the <Session ID> and <User ID> must not exceed 36 characters.
# of the `Session ID` and `User ID` must not exceed 36 characters.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1504,8 +1504,8 @@ module Google
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>`. Note: Environments and users are under
# construction and will be available soon. If <Environment ID> is not
# specified, we assume default 'draft' environment. If <User ID> is not
# construction and will be available soon. If `Environment ID` is not
# specified, we assume default 'draft' environment. If `User ID` is not
# specified, we assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
# @param [String] fields
@ -1543,8 +1543,8 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. If <Environment
# ID> is not specified, we assume default 'draft' environment. If <User ID>
# users are under construction and will be available soon. If `Environment
# ID` is not specified, we assume default 'draft' environment. If `User ID`
# is not specified, we assume default
# '-' user.
# @param [String] fields
@ -1580,8 +1580,8 @@ module Google
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. If <Environment
# ID> is not specified, we assume default 'draft' environment. If <User ID>
# users are under construction and will be available soon. If `Environment
# ID` is not specified, we assume default 'draft' environment. If `User ID`
# is not specified, we assume default '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1616,8 +1616,8 @@ module Google
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>`. Note: Environments and users are under
# construction and will be available soon. If <Environment ID> is not
# specified, we assume default 'draft' environment. If <User ID> is not
# construction and will be available soon. If `Environment ID` is not
# specified, we assume default 'draft' environment. If `User ID` is not
# specified, we assume default '-' user.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
@ -1660,9 +1660,9 @@ module Google
# or
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. Note: Environments and
# users are under construction and will be available soon. The Context ID is
# always converted to lowercase. If <Environment ID> is not specified, we
# assume default 'draft' environment. If <User ID> is not specified, we
# users are under construction and will be available soon. The `Context ID`
# is always converted to lowercase. If `Environment ID` is not specified, we
# assume default 'draft' environment. If `User ID` is not specified, we
# assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
# @param [String] update_mask
@ -1704,8 +1704,8 @@ module Google
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
# sessions/<Session ID>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1744,8 +1744,8 @@ module Google
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
# Name>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1781,8 +1781,8 @@ module Google
# ID>/users/<User ID>/sessions/<Session ID>/
# entityTypes/<Entity Type Display Name>`.
# Note: Environments and users re under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1817,8 +1817,8 @@ module Google
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
# sessions/<Session ID>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [Fixnum] page_size
# Optional. The maximum number of items to return in a single page. By
# default 100 and at most 1000.
@ -1862,8 +1862,8 @@ module Google
# ID>/sessions
# /<Session ID>/entityTypes/<Entity Type Display Name>`.
# Note: Environments and users are under construction and will be available
# soon. If <Environment ID> is not specified, we assume default 'draft'
# environment. If <User ID> is not specified, we assume default '-' user.
# soon. If `Environment ID` is not specified, we assume default 'draft'
# environment. If `User ID` is not specified, we assume default '-' user.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
# @param [String] update_mask
# Optional. The mask to control which fields get updated.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount
module IamcredentialsV1
VERSION = 'V1'
REVISION = '20180604'
REVISION = '20180608'
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/ml/
module MlV1
VERSION = 'V1'
REVISION = '20180605'
REVISION = '20180608'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1311,6 +1311,22 @@ module Google
# @return [String]
attr_accessor :last_use_time
# Optional. The type of machine on which to serve the model. Currently only
# applies to online prediction service.
# Naming design doc for CMLE online prediction Machine Types:
# https://docs.google.com/document/d/
# 1V3tko3VJ64PcpsmNxCXiPoPGccL9_K8gX1YjC8UofzQ/edit#heading=h.7lvy6owfx4eh.
# The following are currently supported and will be deprecated in
# Beta release.
# mls1-highmem-1 1 core 2 Gb RAM
# mls1-highcpu-4 4 core 2 Gb RAM
# The following are available in Beta:
# mls1-c1-m2 1 core 2 Gb RAM Default
# mls1-c4-m2 1 core 4 Gb RAM
# Corresponds to the JSON property `machineType`
# @return [String]
attr_accessor :machine_type
# Options for manually scaling a model.
# Corresponds to the JSON property `manualScaling`
# @return [Google::Apis::MlV1::GoogleCloudMlV1ManualScaling]
@ -1354,6 +1370,7 @@ module Google
@framework = args[:framework] if args.key?(:framework)
@is_default = args[:is_default] if args.key?(:is_default)
@last_use_time = args[:last_use_time] if args.key?(:last_use_time)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
@name = args[:name] if args.key?(:name)
@python_version = args[:python_version] if args.key?(:python_version)

View File

@ -524,6 +524,7 @@ module Google
property :framework, as: 'framework'
property :is_default, as: 'isDefault'
property :last_use_time, as: 'lastUseTime'
property :machine_type, as: 'machineType'
property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling::Representation
property :name, as: 'name'

View File

@ -26,13 +26,10 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1
VERSION = 'V1'
REVISION = '20180605'
REVISION = '20180613'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Manage your Google API service configuration
AUTH_SERVICE_MANAGEMENT = 'https://www.googleapis.com/auth/service.management'
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/
module ServicecontrolV1
VERSION = 'V1'
REVISION = '20180601'
REVISION = '20180610'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -276,6 +276,87 @@ module Google
end
end
# This message defines request authentication attributes. Terminology is
# based on the JSON Web Token (JWT) standard, but the terms also
# correlate to concepts in other standards.
class Auth
include Google::Apis::Core::Hashable
# A list of access level resource names that allow resources to be
# accessed by authenticated requester. It is part of Secure GCP processing
# for the incoming request. An access level string has the format:
# "//`api_service_name`/accessPolicies/`policy_id`/accessLevels/`short_name`"
# Example:
# "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/
# accessLevels/MY_LEVEL"
# Corresponds to the JSON property `accessLevels`
# @return [Array<String>]
attr_accessor :access_levels
# The intended audience(s) for this authentication information. Reflects
# the audience (`aud`) claim within a JWT. The audience
# value(s) depends on the `issuer`, but typically include one or more of
# the following pieces of information:
# * The services intended to receive the credential such as
# ["pubsub.googleapis.com", "storage.googleapis.com"]
# * A set of service-based scopes. For example,
# ["https://www.googleapis.com/auth/cloud-platform"]
# * The client id of an app, such as the Firebase project id for JWTs
# from Firebase Auth.
# Consult the documentation for the credential issuer to determine the
# information provided.
# Corresponds to the JSON property `audiences`
# @return [Array<String>]
attr_accessor :audiences
# Structured claims presented with the credential. JWTs include
# ``key: value`` pairs for standard and private claims. The following
# is a subset of the standard required and optional claims that would
# typically be presented for a Google-based JWT:
# `'iss': 'accounts.google.com',
# 'sub': '113289723416554971153',
# 'aud': ['123456789012', 'pubsub.googleapis.com'],
# 'azp': '123456789012.apps.googleusercontent.com',
# 'email': 'jsmith@example.com',
# 'iat': 1353601026,
# 'exp': 1353604926`
# SAML assertions are similarly specified, but with an identity provider
# dependent structure.
# Corresponds to the JSON property `claims`
# @return [Hash<String,Object>]
attr_accessor :claims
# The authorized presenter of the credential. Reflects the optional
# Authorized Presenter (`azp`) claim within a JWT or the
# OAuth client id. For example, a Google Cloud Platform client id looks
# as follows: "123456789012.apps.googleusercontent.com".
# Corresponds to the JSON property `presenter`
# @return [String]
attr_accessor :presenter
# The authenticated principal. Reflects the issuer (`iss`) and subject
# (`sub`) claims within a JWT. The issuer and subject should be `/`
# delimited, with `/` percent-encoded within the subject fragment. For
# Google accounts, the principal format is:
# "https://accounts.google.com/`id`"
# Corresponds to the JSON property `principal`
# @return [String]
attr_accessor :principal
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access_levels = args[:access_levels] if args.key?(:access_levels)
@audiences = args[:audiences] if args.key?(:audiences)
@claims = args[:claims] if args.key?(:claims)
@presenter = args[:presenter] if args.key?(:presenter)
@principal = args[:principal] if args.key?(:principal)
end
end
# Authentication information for the operation.
class AuthenticationInfo
include Google::Apis::Core::Hashable
@ -336,6 +417,13 @@ module Google
# @return [String]
attr_accessor :resource
# This message defines core attributes for a resource. A resource is an
# addressable (named) entity provided by the destination service. For
# example, a file stored on a network storage service.
# Corresponds to the JSON property `resourceAttributes`
# @return [Google::Apis::ServicecontrolV1::Resource]
attr_accessor :resource_attributes
def initialize(**args)
update!(**args)
end
@ -345,6 +433,7 @@ module Google
@granted = args[:granted] if args.key?(:granted)
@permission = args[:permission] if args.key?(:permission)
@resource = args[:resource] if args.key?(:resource)
@resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
end
end
@ -1569,6 +1658,112 @@ module Google
end
end
# This message defines attributes for an HTTP request. If the actual
# request is not an HTTP request, the runtime system should try to map
# the actual request to an equivalent HTTP request.
class Request
include Google::Apis::Core::Hashable
# This message defines request authentication attributes. Terminology is
# based on the JSON Web Token (JWT) standard, but the terms also
# correlate to concepts in other standards.
# Corresponds to the JSON property `auth`
# @return [Google::Apis::ServicecontrolV1::Auth]
attr_accessor :auth
# The HTTP URL fragment. No URL decoding is performed.
# Corresponds to the JSON property `fragment`
# @return [String]
attr_accessor :fragment
# The HTTP request headers. If multiple headers share the same key, they
# must be merged according to the HTTP spec. All header keys must be
# lowercased, because HTTP header keys are case-insensitive.
# Corresponds to the JSON property `headers`
# @return [Hash<String,String>]
attr_accessor :headers
# The HTTP request `Host` header value.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The unique ID for a request, which can be propagated to downstream
# systems. The ID should have low probability of collision
# within a single day for a specific service.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The HTTP request method, such as `GET`, `POST`.
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# The HTTP URL path.
# Corresponds to the JSON property `path`
# @return [String]
attr_accessor :path
# The network protocol used with the request, such as "http/1.1",
# "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
# https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-
# values.xhtml#alpn-protocol-ids
# for details.
# Corresponds to the JSON property `protocol`
# @return [String]
attr_accessor :protocol
# The HTTP URL query in the format of `name1=value`&name2=value2`, as it
# appears in the first line of the HTTP request. No decoding is performed.
# Corresponds to the JSON property `query`
# @return [String]
attr_accessor :query
# A special parameter for request reason. It is used by security systems
# to associate auditing information with a request.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The HTTP URL scheme, such as `http` and `https`.
# Corresponds to the JSON property `scheme`
# @return [String]
attr_accessor :scheme
# The HTTP request size in bytes. If unknown, it must be -1.
# Corresponds to the JSON property `size`
# @return [Fixnum]
attr_accessor :size
# The timestamp when the `destination` service receives the first byte of
# the request.
# Corresponds to the JSON property `time`
# @return [String]
attr_accessor :time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auth = args[:auth] if args.key?(:auth)
@fragment = args[:fragment] if args.key?(:fragment)
@headers = args[:headers] if args.key?(:headers)
@host = args[:host] if args.key?(:host)
@id = args[:id] if args.key?(:id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@path = args[:path] if args.key?(:path)
@protocol = args[:protocol] if args.key?(:protocol)
@query = args[:query] if args.key?(:query)
@reason = args[:reason] if args.key?(:reason)
@scheme = args[:scheme] if args.key?(:scheme)
@size = args[:size] if args.key?(:size)
@time = args[:time] if args.key?(:time)
end
end
# Metadata about the request.
class RequestMetadata
include Google::Apis::Core::Hashable
@ -1611,6 +1806,13 @@ module Google
# @return [String]
attr_accessor :caller_supplied_user_agent
# This message defines attributes for an HTTP request. If the actual
# request is not an HTTP request, the runtime system should try to map
# the actual request to an equivalent HTTP request.
# Corresponds to the JSON property `requestAttributes`
# @return [Google::Apis::ServicecontrolV1::Request]
attr_accessor :request_attributes
def initialize(**args)
update!(**args)
end
@ -1620,6 +1822,59 @@ module Google
@caller_ip = args[:caller_ip] if args.key?(:caller_ip)
@caller_network = args[:caller_network] if args.key?(:caller_network)
@caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
@request_attributes = args[:request_attributes] if args.key?(:request_attributes)
end
end
# This message defines core attributes for a resource. A resource is an
# addressable (named) entity provided by the destination service. For
# example, a file stored on a network storage service.
class Resource
include Google::Apis::Core::Hashable
# The labels or tags on the resource, such as AWS resource tags and
# Kubernetes resource labels.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The stable identifier (name) of a resource on the `service`. A resource
# can be logically identified as "//`resource.service`/`resource.name`".
# The differences between a resource name and a URI are:
# * Resource name is a logical identifier, independent of network
# protocol and API version. For example,
# `//pubsub.googleapis.com/projects/123/topics/news-feed`.
# * URI often includes protocol and version information, so it can
# be used directly by applications. For example,
# `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
# See https://cloud.google.com/apis/design/resource_names for details.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The name of the service that this resource belongs to, such as
# `pubsub.googleapis.com`. The service may be different from the DNS
# hostname that actually serves the request.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
# The type of the resource. The scheme is platform-specific because
# different platforms define their resources differently.
# 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)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@service = args[:service] if args.key?(:service)
@type = args[:type] if args.key?(:type)
end
end

View File

@ -46,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Auth
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuthenticationInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -214,12 +220,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Request
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RequestMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -304,6 +322,17 @@ module Google
end
end
class Auth
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :access_levels, as: 'accessLevels'
collection :audiences, as: 'audiences'
hash :claims, as: 'claims'
property :presenter, as: 'presenter'
property :principal, as: 'principal'
end
end
class AuthenticationInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -319,6 +348,8 @@ module Google
property :granted, as: 'granted'
property :permission, as: 'permission'
property :resource, as: 'resource'
property :resource_attributes, as: 'resourceAttributes', class: Google::Apis::ServicecontrolV1::Resource, decorator: Google::Apis::ServicecontrolV1::Resource::Representation
end
end
@ -606,12 +637,44 @@ module Google
end
end
class Request
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth, as: 'auth', class: Google::Apis::ServicecontrolV1::Auth, decorator: Google::Apis::ServicecontrolV1::Auth::Representation
property :fragment, as: 'fragment'
hash :headers, as: 'headers'
property :host, as: 'host'
property :id, as: 'id'
property :method_prop, as: 'method'
property :path, as: 'path'
property :protocol, as: 'protocol'
property :query, as: 'query'
property :reason, as: 'reason'
property :scheme, as: 'scheme'
property :size, :numeric_string => true, as: 'size'
property :time, as: 'time'
end
end
class RequestMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :caller_ip, as: 'callerIp'
property :caller_network, as: 'callerNetwork'
property :caller_supplied_user_agent, as: 'callerSuppliedUserAgent'
property :request_attributes, as: 'requestAttributes', class: Google::Apis::ServicecontrolV1::Request, decorator: Google::Apis::ServicecontrolV1::Request::Representation
end
end
class Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :name, as: 'name'
property :service, as: 'service'
property :type, as: 'type'
end
end