Autogenerated update (2018-03-02)
Delete: - firebaseremoteconfig_v1 Update: - cloudbuild_v1 - container_v1 - container_v1beta1 - dialogflow_v2beta1 - ml_v1 - serviceuser_v1 - spanner_v1 - sqladmin_v1beta4 - storagetransfer_v1 - vault_v1 - youtube_partner_v1
This commit is contained in:
parent
406e760dee
commit
42c5513d45
|
@ -44219,6 +44219,7 @@
|
|||
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/isFallback": is_fallback
|
||||
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/messages": messages
|
||||
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/messages/message": message
|
||||
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/mlDisabled": ml_disabled
|
||||
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/mlEnabled": ml_enabled
|
||||
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/name": name
|
||||
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1Intent/outputContexts": output_contexts
|
||||
|
@ -54223,7 +54224,10 @@
|
|||
"/ml:v1/GoogleCloudMlV1__Capability/availableAccelerators": available_accelerators
|
||||
"/ml:v1/GoogleCloudMlV1__Capability/availableAccelerators/available_accelerator": available_accelerator
|
||||
"/ml:v1/GoogleCloudMlV1__Capability/type": type
|
||||
"/ml:v1/GoogleCloudMlV1__Config": google_cloud_ml_v1__config
|
||||
"/ml:v1/GoogleCloudMlV1__Config/tpuServiceAccount": tpu_service_account
|
||||
"/ml:v1/GoogleCloudMlV1__GetConfigResponse": google_cloud_ml_v1__get_config_response
|
||||
"/ml:v1/GoogleCloudMlV1__GetConfigResponse/config": config
|
||||
"/ml:v1/GoogleCloudMlV1__GetConfigResponse/serviceAccount": service_account
|
||||
"/ml:v1/GoogleCloudMlV1__GetConfigResponse/serviceAccountProject": service_account_project
|
||||
"/ml:v1/GoogleCloudMlV1__HyperparameterOutput": google_cloud_ml_v1__hyperparameter_output
|
||||
|
@ -64962,6 +64966,7 @@
|
|||
"/sqladmin:v1beta4/DemoteMasterContext/kind": kind
|
||||
"/sqladmin:v1beta4/DemoteMasterContext/masterInstanceName": master_instance_name
|
||||
"/sqladmin:v1beta4/DemoteMasterContext/replicaConfiguration": replica_configuration
|
||||
"/sqladmin:v1beta4/DemoteMasterContext/verifyGtidConsistency": verify_gtid_consistency
|
||||
"/sqladmin:v1beta4/DemoteMasterMySqlReplicaConfiguration": demote_master_my_sql_replica_configuration
|
||||
"/sqladmin:v1beta4/DemoteMasterMySqlReplicaConfiguration/caCertificate": ca_certificate
|
||||
"/sqladmin:v1beta4/DemoteMasterMySqlReplicaConfiguration/clientCertificate": client_certificate
|
||||
|
@ -69224,10 +69229,12 @@
|
|||
"/vault:v1/vault.matters.holds.get": get_matter_hold
|
||||
"/vault:v1/vault.matters.holds.get/holdId": hold_id
|
||||
"/vault:v1/vault.matters.holds.get/matterId": matter_id
|
||||
"/vault:v1/vault.matters.holds.get/view": view
|
||||
"/vault:v1/vault.matters.holds.list": list_matter_holds
|
||||
"/vault:v1/vault.matters.holds.list/matterId": matter_id
|
||||
"/vault:v1/vault.matters.holds.list/pageSize": page_size
|
||||
"/vault:v1/vault.matters.holds.list/pageToken": page_token
|
||||
"/vault:v1/vault.matters.holds.list/view": view
|
||||
"/vault:v1/vault.matters.holds.update": update_matter_hold
|
||||
"/vault:v1/vault.matters.holds.update/holdId": hold_id
|
||||
"/vault:v1/vault.matters.holds.update/matterId": matter_id
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-builder/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180220'
|
||||
REVISION = '20180301'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -23,10 +23,10 @@ module Google
|
|||
module CloudbuildV1
|
||||
|
||||
# A build resource in the Container Builder API.
|
||||
# At a high level, a Build describes where to find source code, how to build
|
||||
# it (for example, the builder image to run on the source), and what tag to
|
||||
# apply to the built image when it is pushed to Google Container Registry.
|
||||
# Fields can include the following variables which will be expanded when the
|
||||
# At a high level, a `Build` describes where to find source code, how to build
|
||||
# it (for example, the builder image to run on the source), and where to store
|
||||
# the built artifacts.
|
||||
# Fields can include the following variables, which will be expanded when the
|
||||
# build is created:
|
||||
# - $PROJECT_ID: the project ID of the build.
|
||||
# - $BUILD_ID: the autogenerated ID of the build.
|
||||
|
@ -39,7 +39,7 @@ module Google
|
|||
class Build
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the BuildTrigger that triggered this build, if it was
|
||||
# The ID of the `BuildTrigger` that triggered this build, if it was
|
||||
# triggered automatically.
|
||||
# @OutputOnly
|
||||
# Corresponds to the JSON property `buildTriggerId`
|
||||
|
@ -68,10 +68,11 @@ module Google
|
|||
|
||||
# A list of images to be pushed upon the successful completion of all build
|
||||
# steps.
|
||||
# The images will be pushed using the builder service account's credentials.
|
||||
# The digests of the pushed images will be stored in the Build resource's
|
||||
# The images are pushed using the builder service account's credentials.
|
||||
# The digests of the pushed images will be stored in the `Build` resource's
|
||||
# results field.
|
||||
# If any of the images fail to be pushed, the build is marked FAILURE.
|
||||
# If any of the images fail to be pushed, the build status is marked
|
||||
# `FAILURE`.
|
||||
# Corresponds to the JSON property `images`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :images
|
||||
|
@ -102,18 +103,17 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :project_id
|
||||
|
||||
# Results describes the artifacts created by the build pipeline.
|
||||
# Artifacts created by the build pipeline.
|
||||
# Corresponds to the JSON property `results`
|
||||
# @return [Google::Apis::CloudbuildV1::Results]
|
||||
attr_accessor :results
|
||||
|
||||
# Secrets to decrypt using Cloud KMS.
|
||||
# Secrets to decrypt using Cloud Key Management Service.
|
||||
# Corresponds to the JSON property `secrets`
|
||||
# @return [Array<Google::Apis::CloudbuildV1::Secret>]
|
||||
attr_accessor :secrets
|
||||
|
||||
# Source describes the location of the source in a supported storage
|
||||
# service.
|
||||
# Location of the source in a supported storage service.
|
||||
# Corresponds to the JSON property `source`
|
||||
# @return [Google::Apis::CloudbuildV1::Source]
|
||||
attr_accessor :source
|
||||
|
@ -142,24 +142,24 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :status_detail
|
||||
|
||||
# Describes the operations to be performed on the workspace.
|
||||
# Required. The operations to be performed on the workspace.
|
||||
# Corresponds to the JSON property `steps`
|
||||
# @return [Array<Google::Apis::CloudbuildV1::BuildStep>]
|
||||
attr_accessor :steps
|
||||
|
||||
# Substitutions data for Build resource.
|
||||
# Substitutions data for `Build` resource.
|
||||
# Corresponds to the JSON property `substitutions`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :substitutions
|
||||
|
||||
# Tags for annotation of a Build. These are not docker tags.
|
||||
# Tags for annotation of a `Build`. These are not docker tags.
|
||||
# Corresponds to the JSON property `tags`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :tags
|
||||
|
||||
# Amount of time that this build should be allowed to run, to second
|
||||
# granularity. If this amount of time elapses, work on the build will cease
|
||||
# and the build status will be TIMEOUT.
|
||||
# and the build status will be `TIMEOUT`.
|
||||
# Default time is ten minutes.
|
||||
# Corresponds to the JSON property `timeout`
|
||||
# @return [String]
|
||||
|
@ -169,7 +169,7 @@ module Google
|
|||
# * BUILD: time to execute all build steps
|
||||
# * PUSH: time to push all specified images.
|
||||
# * FETCHSOURCE: time to fetch source.
|
||||
# If the build does not specify source, or does not specify images,
|
||||
# If the build does not specify source or images,
|
||||
# these keys will not be included.
|
||||
# @OutputOnly
|
||||
# Corresponds to the JSON property `timing`
|
||||
|
@ -211,10 +211,10 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A build resource in the Container Builder API.
|
||||
# At a high level, a Build describes where to find source code, how to build
|
||||
# it (for example, the builder image to run on the source), and what tag to
|
||||
# apply to the built image when it is pushed to Google Container Registry.
|
||||
# Fields can include the following variables which will be expanded when the
|
||||
# At a high level, a `Build` describes where to find source code, how to build
|
||||
# it (for example, the builder image to run on the source), and where to store
|
||||
# the built artifacts.
|
||||
# Fields can include the following variables, which will be expanded when the
|
||||
# build is created:
|
||||
# - $PROJECT_ID: the project ID of the build.
|
||||
# - $BUILD_ID: the autogenerated ID of the build.
|
||||
|
@ -252,7 +252,7 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :disk_size_gb
|
||||
|
||||
# LogStreamingOption to define build log streaming behavior to Google Cloud
|
||||
# Option to define build log streaming behavior to Google Cloud
|
||||
# Storage.
|
||||
# Corresponds to the JSON property `logStreamingOption`
|
||||
# @return [String]
|
||||
|
@ -273,7 +273,8 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :source_provenance_hash
|
||||
|
||||
# SubstitutionOption to allow unmatch substitutions.
|
||||
# Option to specify behavior when there is an error in the substitution
|
||||
# checks.
|
||||
# Corresponds to the JSON property `substitutionOption`
|
||||
# @return [String]
|
||||
attr_accessor :substitution_option
|
||||
|
@ -293,14 +294,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# BuildStep describes a step to perform in the build pipeline.
|
||||
# A step in the build pipeline.
|
||||
class BuildStep
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of arguments that will be presented to the step when it is started.
|
||||
# If the image used to run the step's container has an entrypoint, these args
|
||||
# will be used as arguments to that entrypoint. If the image does not define
|
||||
# an entrypoint, the first element in args will be used as the entrypoint,
|
||||
# If the image used to run the step's container has an entrypoint, the `args`
|
||||
# are used as arguments to that entrypoint. If the image does not define
|
||||
# an entrypoint, the first element in args is used as the entrypoint,
|
||||
# and the remainder will be used as arguments.
|
||||
# Corresponds to the JSON property `args`
|
||||
# @return [Array<String>]
|
||||
|
@ -310,16 +311,16 @@ module Google
|
|||
# If this value is a relative path, it is relative to the build's working
|
||||
# directory. If this value is absolute, it may be outside the build's working
|
||||
# directory, in which case the contents of the path may not be persisted
|
||||
# across build step executions, unless a volume for that path is specified.
|
||||
# If the build specifies a RepoSource with dir and a step with a dir which
|
||||
# specifies an absolute path, the RepoSource dir is ignored for the step's
|
||||
# execution.
|
||||
# across build step executions, unless a `volume` for that path is specified.
|
||||
# If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
|
||||
# which specifies an absolute path, the `RepoSource` `dir` is ignored for
|
||||
# the step's execution.
|
||||
# Corresponds to the JSON property `dir`
|
||||
# @return [String]
|
||||
attr_accessor :dir
|
||||
|
||||
# Optional entrypoint to be used instead of the build step image's default
|
||||
# If unset, the image's default will be used.
|
||||
# Entrypoint to be used instead of the build step image's default entrypoint.
|
||||
# If unset, the image's default entrypoint is used.
|
||||
# Corresponds to the JSON property `entrypoint`
|
||||
# @return [String]
|
||||
attr_accessor :entrypoint
|
||||
|
@ -331,14 +332,15 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :env
|
||||
|
||||
# Optional unique identifier for this build step, used in wait_for to
|
||||
# Unique identifier for this build step, used in `wait_for` to
|
||||
# reference this build step as a dependency.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# The name of the container image that will run this particular build step.
|
||||
# If the image is already available in the host's Docker daemon's cache, it
|
||||
# Required. The name of the container image that will run this particular
|
||||
# build step.
|
||||
# If the image is available in the host's Docker daemon's cache, it
|
||||
# will be run directly. If not, the host will attempt to pull the image
|
||||
# first, using the builder service account's credentials if necessary.
|
||||
# The Docker daemon's cache will already have the latest versions of all of
|
||||
|
@ -355,8 +357,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A list of environment variables which are encrypted using a Cloud KMS
|
||||
# crypto key. These values must be specified in the build's secrets.
|
||||
# A list of environment variables which are encrypted using a Cloud Key
|
||||
# Management Service crypto key. These values must be specified in the
|
||||
# build's `Secret`.
|
||||
# Corresponds to the JSON property `secretEnv`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :secret_env
|
||||
|
@ -376,7 +379,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :timeout
|
||||
|
||||
# Stores start and end times for a build execution phase.
|
||||
# Start and end times for a build execution phase.
|
||||
# Corresponds to the JSON property `timing`
|
||||
# @return [Google::Apis::CloudbuildV1::TimeSpan]
|
||||
attr_accessor :timing
|
||||
|
@ -392,9 +395,9 @@ module Google
|
|||
attr_accessor :volumes
|
||||
|
||||
# The ID(s) of the step(s) that this build step depends on.
|
||||
# This build step will not start until all the build steps in wait_for
|
||||
# have completed successfully. If wait_for is empty, this build step will
|
||||
# start when all previous build steps in the Build.Steps list have completed
|
||||
# This build step will not start until all the build steps in `wait_for`
|
||||
# have completed successfully. If `wait_for` is empty, this build step will
|
||||
# start when all previous build steps in the `Build.Steps` list have completed
|
||||
# successfully.
|
||||
# Corresponds to the JSON property `waitFor`
|
||||
# @return [Array<String>]
|
||||
|
@ -427,10 +430,10 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A build resource in the Container Builder API.
|
||||
# At a high level, a Build describes where to find source code, how to build
|
||||
# it (for example, the builder image to run on the source), and what tag to
|
||||
# apply to the built image when it is pushed to Google Container Registry.
|
||||
# Fields can include the following variables which will be expanded when the
|
||||
# At a high level, a `Build` describes where to find source code, how to build
|
||||
# it (for example, the builder image to run on the source), and where to store
|
||||
# the built artifacts.
|
||||
# Fields can include the following variables, which will be expanded when the
|
||||
# build is created:
|
||||
# - $PROJECT_ID: the project ID of the build.
|
||||
# - $BUILD_ID: the autogenerated ID of the build.
|
||||
|
@ -478,8 +481,7 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :substitutions
|
||||
|
||||
# RepoSource describes the location of the source in a Google Cloud Source
|
||||
# Repository.
|
||||
# Location of the source in a Google Cloud Source Repository.
|
||||
# Corresponds to the JSON property `triggerTemplate`
|
||||
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
||||
attr_accessor :trigger_template
|
||||
|
@ -501,7 +503,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# BuiltImage describes an image built by the pipeline.
|
||||
# An image built by the pipeline.
|
||||
class BuiltImage
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -516,7 +518,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Stores start and end times for a build execution phase.
|
||||
# Start and end times for a build execution phase.
|
||||
# Corresponds to the JSON property `pushTiming`
|
||||
# @return [Google::Apis::CloudbuildV1::TimeSpan]
|
||||
attr_accessor :push_timing
|
||||
|
@ -624,11 +626,11 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Response containing existing BuildTriggers.
|
||||
# Response containing existing `BuildTriggers`.
|
||||
class ListBuildTriggersResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# BuildTriggers for the project, sorted by create_time descending.
|
||||
# `BuildTriggers` for the project, sorted by `create_time` descending.
|
||||
# Corresponds to the JSON property `triggers`
|
||||
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
|
||||
attr_accessor :triggers
|
||||
|
@ -647,7 +649,7 @@ module Google
|
|||
class ListBuildsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Builds will be sorted by create_time, descending.
|
||||
# Builds will be sorted by `create_time`, descending.
|
||||
# Corresponds to the JSON property `builds`
|
||||
# @return [Array<Google::Apis::CloudbuildV1::Build>]
|
||||
attr_accessor :builds
|
||||
|
@ -790,8 +792,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# RepoSource describes the location of the source in a Google Cloud Source
|
||||
# Repository.
|
||||
# Location of the source in a Google Cloud Source Repository.
|
||||
class RepoSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -806,19 +807,20 @@ module Google
|
|||
attr_accessor :commit_sha
|
||||
|
||||
# Directory, relative to the source root, in which to run the build.
|
||||
# This must be a relative path. If a step's dir is specified and is an
|
||||
# This must be a relative path. If a step's `dir` is specified and is an
|
||||
# absolute path, this value is ignored for that step's execution.
|
||||
# Corresponds to the JSON property `dir`
|
||||
# @return [String]
|
||||
attr_accessor :dir
|
||||
|
||||
# ID of the project that owns the repo. If omitted, the project ID requesting
|
||||
# the build is assumed.
|
||||
# ID of the project that owns the Cloud Source Repository. If omitted, the
|
||||
# project ID requesting the build is assumed.
|
||||
# Corresponds to the JSON property `projectId`
|
||||
# @return [String]
|
||||
attr_accessor :project_id
|
||||
|
||||
# Name of the repo. If omitted, the name "default" is assumed.
|
||||
# Name of the Cloud Source Repository. If omitted, the name "default" is
|
||||
# assumed.
|
||||
# Corresponds to the JSON property `repoName`
|
||||
# @return [String]
|
||||
attr_accessor :repo_name
|
||||
|
@ -843,16 +845,17 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Results describes the artifacts created by the build pipeline.
|
||||
# Artifacts created by the build pipeline.
|
||||
class Results
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of build step digests, in order corresponding to build step indices.
|
||||
# List of build step digests, in the order corresponding to build step
|
||||
# indices.
|
||||
# Corresponds to the JSON property `buildStepImages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :build_step_images
|
||||
|
||||
# Images that were built as a part of the build.
|
||||
# Container images that were built as a part of the build.
|
||||
# Corresponds to the JSON property `images`
|
||||
# @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
|
||||
attr_accessor :images
|
||||
|
@ -868,7 +871,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# RetryBuildRequest specifies a build to retry.
|
||||
# Specifies a build to retry.
|
||||
class RetryBuildRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -881,7 +884,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Secret pairs a set of secret environment variables containing encrypted
|
||||
# Pairs a set of secret environment variables containing encrypted
|
||||
# values with the Cloud KMS key to use to decrypt the value.
|
||||
class Secret
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -911,19 +914,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Source describes the location of the source in a supported storage
|
||||
# service.
|
||||
# Location of the source in a supported storage service.
|
||||
class Source
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# RepoSource describes the location of the source in a Google Cloud Source
|
||||
# Repository.
|
||||
# Location of the source in a Google Cloud Source Repository.
|
||||
# Corresponds to the JSON property `repoSource`
|
||||
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
||||
attr_accessor :repo_source
|
||||
|
||||
# StorageSource describes the location of the source in an archive file in
|
||||
# Google Cloud Storage.
|
||||
# Location of the source in an archive file in Google Cloud Storage.
|
||||
# Corresponds to the JSON property `storageSource`
|
||||
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
||||
attr_accessor :storage_source
|
||||
|
@ -945,25 +945,23 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Hash(es) of the build source, which can be used to verify that the original
|
||||
# source integrity was maintained in the build. Note that FileHashes will
|
||||
# only be populated if BuildOptions has requested a SourceProvenanceHash.
|
||||
# source integrity was maintained in the build. Note that `FileHashes` will
|
||||
# only be populated if `BuildOptions` has requested a `SourceProvenanceHash`.
|
||||
# The keys to this map are file paths used as build source and the values
|
||||
# contain the hash values for those files.
|
||||
# If the build source came in a single package such as a gzipped tarfile
|
||||
# (.tar.gz), the FileHash will be for the single path to that file.
|
||||
# (`.tar.gz`), the `FileHash` will be for the single path to that file.
|
||||
# @OutputOnly
|
||||
# Corresponds to the JSON property `fileHashes`
|
||||
# @return [Hash<String,Google::Apis::CloudbuildV1::FileHashes>]
|
||||
attr_accessor :file_hashes
|
||||
|
||||
# RepoSource describes the location of the source in a Google Cloud Source
|
||||
# Repository.
|
||||
# Location of the source in a Google Cloud Source Repository.
|
||||
# Corresponds to the JSON property `resolvedRepoSource`
|
||||
# @return [Google::Apis::CloudbuildV1::RepoSource]
|
||||
attr_accessor :resolved_repo_source
|
||||
|
||||
# StorageSource describes the location of the source in an archive file in
|
||||
# Google Cloud Storage.
|
||||
# Location of the source in an archive file in Google Cloud Storage.
|
||||
# Corresponds to the JSON property `resolvedStorageSource`
|
||||
# @return [Google::Apis::CloudbuildV1::StorageSource]
|
||||
attr_accessor :resolved_storage_source
|
||||
|
@ -1052,12 +1050,11 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# StorageSource describes the location of the source in an archive file in
|
||||
# Google Cloud Storage.
|
||||
# Location of the source in an archive file in Google Cloud Storage.
|
||||
class StorageSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Google Cloud Storage bucket containing source (see
|
||||
# Google Cloud Storage bucket containing the source (see
|
||||
# [Bucket Name
|
||||
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
||||
# ).
|
||||
|
@ -1071,8 +1068,8 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :generation
|
||||
|
||||
# Google Cloud Storage object containing source.
|
||||
# This object must be a gzipped archive file (.tar.gz) containing source to
|
||||
# Google Cloud Storage object containing the source.
|
||||
# This object must be a gzipped archive file (`.tar.gz`) containing source to
|
||||
# build.
|
||||
# Corresponds to the JSON property `object`
|
||||
# @return [String]
|
||||
|
@ -1090,7 +1087,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Stores start and end times for a build execution phase.
|
||||
# Start and end times for a build execution phase.
|
||||
class TimeSpan
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Cancels a requested build in progress.
|
||||
# Cancels a build in progress.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
|
@ -205,9 +205,9 @@ module Google
|
|||
end
|
||||
|
||||
# Starts a build with the specified configuration.
|
||||
# The long-running Operation returned by this method will include the ID of
|
||||
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
||||
# success or failure).
|
||||
# This method returns a long-running `Operation`, which includes the build ID.
|
||||
# Pass the build ID to `GetBuild` to determine the build status
|
||||
# (such as `SUCCESS` or `FAILURE`).
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
||||
|
@ -241,8 +241,8 @@ module Google
|
|||
end
|
||||
|
||||
# Returns information about a previously requested build.
|
||||
# The Build that is returned includes its status (e.g., success or failure,
|
||||
# or in-progress), and timing information.
|
||||
# The `Build` that is returned includes its status (such as `SUCCESS`,
|
||||
# `FAILURE`, or `WORKING`), and timing information.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
|
@ -316,22 +316,22 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new build based on the given build.
|
||||
# This API creates a new build using the original build request, which may
|
||||
# Creates a new build based on the specified build.
|
||||
# This method creates a new build using the original build request, which may
|
||||
# or may not result in an identical build.
|
||||
# For triggered builds:
|
||||
# * Triggered builds resolve to a precise revision, so a retry of a triggered
|
||||
# build will result in a build that uses the same revision.
|
||||
# For non-triggered builds that specify RepoSource:
|
||||
# * Triggered builds resolve to a precise revision; therefore a retry of a
|
||||
# triggered build will result in a build that uses the same revision.
|
||||
# For non-triggered builds that specify `RepoSource`:
|
||||
# * If the original build built from the tip of a branch, the retried build
|
||||
# will build from the tip of that branch, which may not be the same revision
|
||||
# as the original build.
|
||||
# * If the original build specified a commit sha or revision ID, the retried
|
||||
# build will use the identical source.
|
||||
# For builds that specify StorageSource:
|
||||
# * If the original build pulled source from Cloud Storage without specifying
|
||||
# the generation of the object, the new build will use the current object,
|
||||
# which may be different from the original build source.
|
||||
# For builds that specify `StorageSource`:
|
||||
# * If the original build pulled source from Google Cloud Storage without
|
||||
# specifying the generation of the object, the new build will use the current
|
||||
# object, which may be different from the original build source.
|
||||
# * If the original build pulled source from Cloud Storage and specified the
|
||||
# generation of the object, the new build will attempt to use the same
|
||||
# object, which may or may not be available depending on the bucket's
|
||||
|
@ -371,7 +371,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new BuildTrigger.
|
||||
# Creates a new `BuildTrigger`.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
# ID of the project for which to configure automatic builds.
|
||||
|
@ -405,12 +405,12 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes an BuildTrigger by its project ID and trigger ID.
|
||||
# Deletes a `BuildTrigger` by its project ID and trigger ID.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
# ID of the project that owns the trigger.
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to delete.
|
||||
# ID of the `BuildTrigger` to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -439,12 +439,12 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets information about a BuildTrigger.
|
||||
# Returns information about a `BuildTrigger`.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
# ID of the project that owns the trigger.
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to get.
|
||||
# ID of the `BuildTrigger` to get.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -473,7 +473,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists existing BuildTrigger.
|
||||
# Lists existing `BuildTrigger`s.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
# ID of the project for which to list BuildTriggers.
|
||||
|
@ -504,12 +504,12 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates an BuildTrigger by its project ID and trigger ID.
|
||||
# Updates a `BuildTrigger` by its project ID and trigger ID.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
# ID of the project that owns the trigger.
|
||||
# @param [String] trigger_id
|
||||
# ID of the BuildTrigger to update.
|
||||
# ID of the `BuildTrigger` to update.
|
||||
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
@ -541,7 +541,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Runs a BuildTrigger at a particular source revision.
|
||||
# Runs a `BuildTrigger` at a particular source revision.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] trigger_id
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180108'
|
||||
REVISION = '20180213'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1186,6 +1186,7 @@ module Google
|
|||
# in length. These are reflected as part of a URL in the metadata server.
|
||||
# Additionally, to avoid ambiguity, keys must not conflict with any other
|
||||
# metadata keys for the project or be one of the reserved keys:
|
||||
# "cluster-location"
|
||||
# "cluster-name"
|
||||
# "cluster-uid"
|
||||
# "configure-sh"
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180201'
|
||||
REVISION = '20180213'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1336,6 +1336,7 @@ module Google
|
|||
# in length. These are reflected as part of a URL in the metadata server.
|
||||
# Additionally, to avoid ambiguity, keys must not conflict with any other
|
||||
# metadata keys for the project or be one of the reserved keys:
|
||||
# "cluster-location"
|
||||
# "cluster-name"
|
||||
# "cluster-uid"
|
||||
# "configure-sh"
|
||||
|
@ -2712,8 +2713,8 @@ module Google
|
|||
class WorkloadMetadataConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NodeMetadata is the configuration for if and how to expose the node
|
||||
# metadata to the workload running on the node.
|
||||
# NodeMetadata is the configuration for how to expose the node metadata to
|
||||
# the workload running on the node.
|
||||
# Corresponds to the JSON property `nodeMetadata`
|
||||
# @return [String]
|
||||
attr_accessor :node_metadata
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||
module DialogflowV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20180220'
|
||||
REVISION = '20180226'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -2272,10 +2272,26 @@ module Google
|
|||
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage>]
|
||||
attr_accessor :messages
|
||||
|
||||
# Optional. Indicates whether Machine Learning is disabled for the intent.
|
||||
# Note: If `ml_disabled` setting is set to true, then this intent is not
|
||||
# taken into account during inference in `ML ONLY` match mode. Also,
|
||||
# auto-markup in the UI is turned off.
|
||||
# Corresponds to the JSON property `mlDisabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :ml_disabled
|
||||
alias_method :ml_disabled?, :ml_disabled
|
||||
|
||||
# Optional. Indicates whether Machine Learning is enabled for the intent.
|
||||
# Note: If `ml_enabled` setting is set to false, then this intent is not
|
||||
# taken into account during inference in `ML ONLY` match mode. Also,
|
||||
# auto-markup in the UI is turned off.
|
||||
# DEPRECATED! Please use `ml_disabled` field instead.
|
||||
# NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the
|
||||
# default value is determined as follows:
|
||||
# - Before April 15th, 2018 the default is:
|
||||
# ml_enabled = false / ml_disabled = true.
|
||||
# - After April 15th, 2018 the default is:
|
||||
# ml_enabled = true / ml_disabled = false.
|
||||
# Corresponds to the JSON property `mlEnabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :ml_enabled
|
||||
|
@ -2356,6 +2372,7 @@ module Google
|
|||
@input_context_names = args[:input_context_names] if args.key?(:input_context_names)
|
||||
@is_fallback = args[:is_fallback] if args.key?(:is_fallback)
|
||||
@messages = args[:messages] if args.key?(:messages)
|
||||
@ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
|
||||
@ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@output_contexts = args[:output_contexts] if args.key?(:output_contexts)
|
||||
|
|
|
@ -1213,6 +1213,7 @@ module Google
|
|||
property :is_fallback, as: 'isFallback'
|
||||
collection :messages, as: 'messages', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage::Representation
|
||||
|
||||
property :ml_disabled, as: 'mlDisabled'
|
||||
property :ml_enabled, as: 'mlEnabled'
|
||||
property :name, as: 'name'
|
||||
collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/firebaseremoteconfig_v1/service.rb'
|
||||
require 'google/apis/firebaseremoteconfig_v1/classes.rb'
|
||||
require 'google/apis/firebaseremoteconfig_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Firebase Remote Config API
|
||||
#
|
||||
# Firebase Remote Config API allows the 3P clients to manage Remote Config
|
||||
# conditions and parameters for Firebase applications.
|
||||
#
|
||||
# @see https://firebase.google.com/docs/remote-config/
|
||||
module FirebaseremoteconfigV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180122'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,200 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FirebaseremoteconfigV1
|
||||
|
||||
# *
|
||||
# The RemoteConfig consists of a list of conditions (which can be
|
||||
# thought of as named "if" statements) and a map of parameters (parameter key
|
||||
# to a structure containing an optional default value, as well as a optional
|
||||
# submap of (condition name to value when that condition is true).
|
||||
class RemoteConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of named conditions. The order *does* affect the semantics.
|
||||
# The condition_name values of these entries must be unique.
|
||||
# The resolved value of a config parameter P is determined as follow:
|
||||
# * Let Y be the set of values from the submap of P that refer to conditions
|
||||
# that evaluate to <code>true</code>.
|
||||
# * If Y is non empty, the value is taken from the specific submap in Y whose
|
||||
# condition_name is the earliest in this condition list.
|
||||
# * Else, if P has a default value option (condition_name is empty) then
|
||||
# the value is taken from that option.
|
||||
# * Else, parameter P has no value and is omitted from the config result.
|
||||
# Example: parameter key "p1", default value "v1", submap specified as
|
||||
# `"c1": v2, "c2": v3` where "c1" and "c2" are names of conditions in the
|
||||
# condition list (where "c1" in this example appears before "c2"). The
|
||||
# value of p1 would be v2 as long as c1 is true. Otherwise, if c2 is true,
|
||||
# p1 would evaluate to v3, and if c1 and c2 are both false, p1 would evaluate
|
||||
# to v1. If no default value was specified, and c1 and c2 were both false,
|
||||
# no value for p1 would be generated.
|
||||
# Corresponds to the JSON property `conditions`
|
||||
# @return [Array<Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition>]
|
||||
attr_accessor :conditions
|
||||
|
||||
# Map of parameter keys to their optional default values and optional submap
|
||||
# of (condition name : value). Order doesn't affect semantics, and so is
|
||||
# sorted by the server. The 'key' values of the params must be unique.
|
||||
# Corresponds to the JSON property `parameters`
|
||||
# @return [Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter>]
|
||||
attr_accessor :parameters
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@conditions = args[:conditions] if args.key?(:conditions)
|
||||
@parameters = args[:parameters] if args.key?(:parameters)
|
||||
end
|
||||
end
|
||||
|
||||
# A single RemoteConfig Condition. A list of these (because order matters) are
|
||||
# part of a single RemoteConfig template.
|
||||
class RemoteConfigCondition
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# DO NOT USE. Implementation removed and will not be added unless requested.
|
||||
# A description for this Condition. Length must be less than or equal to
|
||||
# 100 characters (or more precisely, unicode code points, which is defined in
|
||||
# java/com/google/wireless/android/config/ConstsExporter.java).
|
||||
# A description may contain any Unicode characters
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Required.
|
||||
# Corresponds to the JSON property `expression`
|
||||
# @return [String]
|
||||
attr_accessor :expression
|
||||
|
||||
# Required.
|
||||
# A non empty and unique name of this condition.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Optional.
|
||||
# The display (tag) color of this condition. This serves as part of a tag
|
||||
# (in the future, we may add tag text as well as tag color, but that is not
|
||||
# yet implemented in the UI).
|
||||
# This value has no affect on the semantics of the delivered config and it
|
||||
# is ignored by the backend, except for passing it through write/read
|
||||
# requests.
|
||||
# Not having this value or having the "CONDITION_DISPLAY_COLOR_UNSPECIFIED"
|
||||
# value (0) have the same meaning: Let the UI choose any valid color when
|
||||
# displaying the condition.
|
||||
# Corresponds to the JSON property `tagColor`
|
||||
# @return [String]
|
||||
attr_accessor :tag_color
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@expression = args[:expression] if args.key?(:expression)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@tag_color = args[:tag_color] if args.key?(:tag_color)
|
||||
end
|
||||
end
|
||||
|
||||
# While default_value and conditional_values are each optional, at least one of
|
||||
# the two is required - otherwise, the parameter is meaningless (and an
|
||||
# exception will be thrown by the validation logic).
|
||||
class RemoteConfigParameter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional - a map of (condition_name, value). The condition_name of the
|
||||
# highest priority (the one listed first in the conditions array) determines
|
||||
# the value of this parameter.
|
||||
# Corresponds to the JSON property `conditionalValues`
|
||||
# @return [Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue>]
|
||||
attr_accessor :conditional_values
|
||||
|
||||
# A RemoteConfigParameter's "value" (either the default value, or the value
|
||||
# associated with a condition name) is either a string, or the
|
||||
# "use_in_app_default" indicator (which means to leave out the parameter from
|
||||
# the returned <key, value> map that is the output of the parameter fetch).
|
||||
# We represent the "use_in_app_default" as a bool, but (when using the boolean
|
||||
# instead of the string) it should always be <code>true</code>.
|
||||
# Corresponds to the JSON property `defaultValue`
|
||||
# @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue]
|
||||
attr_accessor :default_value
|
||||
|
||||
# Optional.
|
||||
# A description for this Parameter. Length must be less than or equal to
|
||||
# 100 characters (or more precisely, unicode code points, which is defined in
|
||||
# java/com/google/wireless/android/config/ConstsExporter.java).
|
||||
# A description may contain any Unicode characters
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@conditional_values = args[:conditional_values] if args.key?(:conditional_values)
|
||||
@default_value = args[:default_value] if args.key?(:default_value)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
end
|
||||
end
|
||||
|
||||
# A RemoteConfigParameter's "value" (either the default value, or the value
|
||||
# associated with a condition name) is either a string, or the
|
||||
# "use_in_app_default" indicator (which means to leave out the parameter from
|
||||
# the returned <key, value> map that is the output of the parameter fetch).
|
||||
# We represent the "use_in_app_default" as a bool, but (when using the boolean
|
||||
# instead of the string) it should always be <code>true</code>.
|
||||
class RemoteConfigParameterValue
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# if true, omit the parameter from the map of fetched parameter values
|
||||
# Corresponds to the JSON property `useInAppDefault`
|
||||
# @return [Boolean]
|
||||
attr_accessor :use_in_app_default
|
||||
alias_method :use_in_app_default?, :use_in_app_default
|
||||
|
||||
# the string to set the parameter to
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@use_in_app_default = args[:use_in_app_default] if args.key?(:use_in_app_default)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,89 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FirebaseremoteconfigV1
|
||||
|
||||
class RemoteConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RemoteConfigCondition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RemoteConfigParameter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RemoteConfigParameterValue
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RemoteConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :conditions, as: 'conditions', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition::Representation
|
||||
|
||||
hash :parameters, as: 'parameters', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RemoteConfigCondition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :expression, as: 'expression'
|
||||
property :name, as: 'name'
|
||||
property :tag_color, as: 'tagColor'
|
||||
end
|
||||
end
|
||||
|
||||
class RemoteConfigParameter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :conditional_values, as: 'conditionalValues', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation
|
||||
|
||||
property :default_value, as: 'defaultValue', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
end
|
||||
end
|
||||
|
||||
class RemoteConfigParameterValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :use_in_app_default, as: 'useInAppDefault'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,153 +0,0 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FirebaseremoteconfigV1
|
||||
# Firebase Remote Config API
|
||||
#
|
||||
# Firebase Remote Config API allows the 3P clients to manage Remote Config
|
||||
# conditions and parameters for Firebase applications.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/firebaseremoteconfig_v1'
|
||||
#
|
||||
# Firebaseremoteconfig = Google::Apis::FirebaseremoteconfigV1 # Alias the module
|
||||
# service = Firebaseremoteconfig::FirebaseRemoteConfigService.new
|
||||
#
|
||||
# @see https://firebase.google.com/docs/remote-config/
|
||||
class FirebaseRemoteConfigService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# 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.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://firebaseremoteconfig.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Get the latest version Remote Configuration for a project.
|
||||
# Returns the RemoteConfig as the payload, and also the eTag as a
|
||||
# response header.
|
||||
# @param [String] project
|
||||
# The GMP project identifier. Required.
|
||||
# See note at the beginning of this file regarding project ids.
|
||||
# @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::FirebaseremoteconfigV1::RemoteConfig] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfig]
|
||||
#
|
||||
# @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_remote_config(project, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+project}/remoteConfig', options)
|
||||
command.response_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
|
||||
command.response_class = Google::Apis::FirebaseremoteconfigV1::RemoteConfig
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Update a RemoteConfig. We treat this as an always-existing
|
||||
# resource (when it is not found in our data store, we treat it as version
|
||||
# 0, a template with zero conditions and zero parameters). Hence there are
|
||||
# no Create or Delete operations. Returns the updated template when
|
||||
# successful (and the updated eTag as a response header), or an error if
|
||||
# things go wrong.
|
||||
# Possible error messages:
|
||||
# * VALIDATION_ERROR (HTTP status 400) with additional details if the
|
||||
# template being passed in can not be validated.
|
||||
# * AUTHENTICATION_ERROR (HTTP status 401) if the request can not be
|
||||
# authenticate (e.g. no access token, or invalid access token).
|
||||
# * AUTHORIZATION_ERROR (HTTP status 403) if the request can not be
|
||||
# authorized (e.g. the user has no access to the specified project id).
|
||||
# * VERSION_MISMATCH (HTTP status 412) when trying to update when the
|
||||
# expected eTag (passed in via the "If-match" header) is not specified, or
|
||||
# is specified but does does not match the current eTag.
|
||||
# * Internal error (HTTP status 500) for Database problems or other internal
|
||||
# errors.
|
||||
# @param [String] project
|
||||
# The GMP project identifier. Required.
|
||||
# See note at the beginning of this file regarding project ids.
|
||||
# @param [Google::Apis::FirebaseremoteconfigV1::RemoteConfig] remote_config_object
|
||||
# @param [Boolean] validate_only
|
||||
# Optional. Defaults to <code>false</code> (UpdateRemoteConfig call should
|
||||
# update the backend if there are no validation/interal errors). May be set
|
||||
# to <code>true</code> to indicate that, should no validation errors occur,
|
||||
# the call should return a "200 OK" instead of performing the update. Note
|
||||
# that other error messages (500 Internal Error, 412 Version Mismatch, etc)
|
||||
# may still result after flipping to <code>false</code>, even if getting a
|
||||
# "200 OK" when calling with <code>true</code>.
|
||||
# @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::FirebaseremoteconfigV1::RemoteConfig] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfig]
|
||||
#
|
||||
# @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 update_project_remote_config(project, remote_config_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1/{+project}/remoteConfig', options)
|
||||
command.request_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
|
||||
command.request_object = remote_config_object
|
||||
command.response_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
|
||||
command.response_class = Google::Apis::FirebaseremoteconfigV1::RemoteConfig
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/ml/
|
||||
module MlV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180210'
|
||||
REVISION = '20180228'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -179,10 +179,34 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class GoogleCloudMlV1Config
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The service account Cloud ML uses to run on TPU node.
|
||||
# Corresponds to the JSON property `tpuServiceAccount`
|
||||
# @return [String]
|
||||
attr_accessor :tpu_service_account
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@tpu_service_account = args[:tpu_service_account] if args.key?(:tpu_service_account)
|
||||
end
|
||||
end
|
||||
|
||||
# Returns service account information associated with a project.
|
||||
class GoogleCloudMlV1GetConfigResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `config`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1Config]
|
||||
attr_accessor :config
|
||||
|
||||
# The service account Cloud ML uses to access resources in the project.
|
||||
# Corresponds to the JSON property `serviceAccount`
|
||||
# @return [String]
|
||||
|
@ -199,6 +223,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@config = args[:config] if args.key?(:config)
|
||||
@service_account = args[:service_account] if args.key?(:service_account)
|
||||
@service_account_project = args[:service_account_project] if args.key?(:service_account_project)
|
||||
end
|
||||
|
@ -1292,6 +1317,123 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Specifies the audit configuration for a service.
|
||||
# The configuration determines which permission types are logged, and what
|
||||
# identities, if any, are exempted from logging.
|
||||
# An AuditConfig must have one or more AuditLogConfigs.
|
||||
# If there are AuditConfigs for both `allServices` and a specific service,
|
||||
# the union of the two AuditConfigs is used for that service: the log_types
|
||||
# specified in each AuditConfig are enabled, and the exempted_members in each
|
||||
# AuditLogConfig are exempted.
|
||||
# Example Policy with multiple AuditConfigs:
|
||||
# `
|
||||
# "audit_configs": [
|
||||
# `
|
||||
# "service": "allServices"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "exempted_members": [
|
||||
# "user:foo@gmail.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "ADMIN_READ",
|
||||
# `
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "service": "fooservice.googleapis.com"
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# "exempted_members": [
|
||||
# "user:bar@gmail.com"
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
||||
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
|
||||
# bar@gmail.com from DATA_WRITE logging.
|
||||
class GoogleIamV1AuditConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The configuration for logging of each type of permission.
|
||||
# Next ID: 4
|
||||
# Corresponds to the JSON property `auditLogConfigs`
|
||||
# @return [Array<Google::Apis::MlV1::GoogleIamV1AuditLogConfig>]
|
||||
attr_accessor :audit_log_configs
|
||||
|
||||
# Specifies a service that will be enabled for audit logging.
|
||||
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
# `allServices` is a special value that covers all services.
|
||||
# Corresponds to the JSON property `service`
|
||||
# @return [String]
|
||||
attr_accessor :service
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
||||
@service = args[:service] if args.key?(:service)
|
||||
end
|
||||
end
|
||||
|
||||
# Provides the configuration for logging a type of permissions.
|
||||
# Example:
|
||||
# `
|
||||
# "audit_log_configs": [
|
||||
# `
|
||||
# "log_type": "DATA_READ",
|
||||
# "exempted_members": [
|
||||
# "user:foo@gmail.com"
|
||||
# ]
|
||||
# `,
|
||||
# `
|
||||
# "log_type": "DATA_WRITE",
|
||||
# `
|
||||
# ]
|
||||
# `
|
||||
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
||||
# foo@gmail.com from DATA_READ logging.
|
||||
class GoogleIamV1AuditLogConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies the identities that do not cause logging for this type of
|
||||
# permission.
|
||||
# Follows the same format of Binding.members.
|
||||
# Corresponds to the JSON property `exemptedMembers`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :exempted_members
|
||||
|
||||
# The log type that this config enables.
|
||||
# Corresponds to the JSON property `logType`
|
||||
# @return [String]
|
||||
attr_accessor :log_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
||||
@log_type = args[:log_type] if args.key?(:log_type)
|
||||
end
|
||||
end
|
||||
|
||||
# Associates `members` with a `role`.
|
||||
class GoogleIamV1Binding
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1361,6 +1503,11 @@ module Google
|
|||
class GoogleIamV1Policy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies cloud audit logging configuration for this policy.
|
||||
# Corresponds to the JSON property `auditConfigs`
|
||||
# @return [Array<Google::Apis::MlV1::GoogleIamV1AuditConfig>]
|
||||
attr_accessor :audit_configs
|
||||
|
||||
# Associates a list of `members` to a `role`.
|
||||
# `bindings` with no members will result in an error.
|
||||
# Corresponds to the JSON property `bindings`
|
||||
|
@ -1392,6 +1539,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||
@bindings = args[:bindings] if args.key?(:bindings)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
|
@ -1432,6 +1580,15 @@ module Google
|
|||
# @return [Google::Apis::MlV1::GoogleIamV1Policy]
|
||||
attr_accessor :policy
|
||||
|
||||
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||
# the fields in the mask will be modified. If no mask is provided, the
|
||||
# following default mask is used:
|
||||
# paths: "bindings, etag"
|
||||
# This field is only used by Cloud IAM.
|
||||
# Corresponds to the JSON property `updateMask`
|
||||
# @return [String]
|
||||
attr_accessor :update_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -1439,6 +1596,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@policy = args[:policy] if args.key?(:policy)
|
||||
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -52,6 +52,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1Config
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1GetConfigResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -172,6 +178,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1AuditConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1AuditLogConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleIamV1Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -264,9 +282,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1Config
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :tpu_service_account, as: 'tpuServiceAccount'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudMlV1GetConfigResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :config, as: 'config', class: Google::Apis::MlV1::GoogleCloudMlV1Config, decorator: Google::Apis::MlV1::GoogleCloudMlV1Config::Representation
|
||||
|
||||
property :service_account, as: 'serviceAccount'
|
||||
property :service_account_project, :numeric_string => true, as: 'serviceAccountProject'
|
||||
end
|
||||
|
@ -503,6 +530,23 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MlV1::GoogleIamV1AuditLogConfig, decorator: Google::Apis::MlV1::GoogleIamV1AuditLogConfig::Representation
|
||||
|
||||
property :service, as: 'service'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1AuditLogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :log_type, as: 'logType'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleIamV1Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -514,6 +558,8 @@ module Google
|
|||
class GoogleIamV1Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::MlV1::GoogleIamV1AuditConfig, decorator: Google::Apis::MlV1::GoogleIamV1AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::MlV1::GoogleIamV1Binding, decorator: Google::Apis::MlV1::GoogleIamV1Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
|
@ -526,6 +572,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::MlV1::GoogleIamV1Policy, decorator: Google::Apis::MlV1::GoogleIamV1Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ require 'google/apis/serviceuser_v1/representations.rb'
|
|||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Service User API
|
||||
# Service User API
|
||||
#
|
||||
# Enables services that service consumers want to use on Google Cloud Platform,
|
||||
# lists the available or enabled services, or disables services that service
|
||||
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-management/
|
||||
module ServiceuserV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180220'
|
||||
REVISION = '20180223'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module ServiceuserV1
|
||||
# Google Service User API
|
||||
# Service User API
|
||||
#
|
||||
# Enables services that service consumers want to use on Google Cloud Platform,
|
||||
# lists the available or enabled services, or disables services that service
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/spanner/
|
||||
module SpannerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180213'
|
||||
REVISION = '20180220'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/sql/docs/reference/latest
|
||||
module SqladminV1beta4
|
||||
VERSION = 'V1beta4'
|
||||
REVISION = '20180124'
|
||||
REVISION = '20180227'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -688,6 +688,18 @@ module Google
|
|||
# @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
|
||||
attr_accessor :replica_configuration
|
||||
|
||||
# Verify GTID consistency for demote operation. Default value: True. Second
|
||||
# Generation instances only. Setting this flag to false enables you to bypass
|
||||
# GTID consistency check between on-premises master and Cloud SQL instance
|
||||
# during the demotion operation but also exposes you to the risk of future
|
||||
# replication failures. Change the value only if you know the reason for the
|
||||
# GTID divergence and are confident that doing so will not cause any replication
|
||||
# issues.
|
||||
# Corresponds to the JSON property `verifyGtidConsistency`
|
||||
# @return [Boolean]
|
||||
attr_accessor :verify_gtid_consistency
|
||||
alias_method :verify_gtid_consistency?, :verify_gtid_consistency
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -697,6 +709,7 @@ module Google
|
|||
@kind = args[:kind] if args.key?(:kind)
|
||||
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
||||
@replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
|
||||
@verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -513,6 +513,7 @@ module Google
|
|||
property :master_instance_name, as: 'masterInstanceName'
|
||||
property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration::Representation
|
||||
|
||||
property :verify_gtid_consistency, as: 'verifyGtidConsistency'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ require 'google/apis/storagetransfer_v1/representations.rb'
|
|||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Storage Transfer API
|
||||
# Storage Transfer API
|
||||
#
|
||||
# Transfers data from external data sources to a Google Cloud Storage bucket or
|
||||
# between Google Cloud Storage buckets.
|
||||
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/storage/transfer
|
||||
module StoragetransferV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180110'
|
||||
REVISION = '20180228'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|||
module Google
|
||||
module Apis
|
||||
module StoragetransferV1
|
||||
# Google Storage Transfer API
|
||||
# Storage Transfer API
|
||||
#
|
||||
# Transfers data from external data sources to a Google Cloud Storage bucket or
|
||||
# between Google Cloud Storage buckets.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/vault
|
||||
module VaultV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20171026'
|
||||
REVISION = '20180217'
|
||||
|
||||
# Manage your eDiscovery data
|
||||
AUTH_EDISCOVERY = 'https://www.googleapis.com/auth/ediscovery'
|
||||
|
|
|
@ -98,7 +98,7 @@ module Google
|
|||
class CorpusQuery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Query options for drive holds.
|
||||
# Query options for Drive holds.
|
||||
# Corresponds to the JSON property `driveQuery`
|
||||
# @return [Google::Apis::VaultV1::HeldDriveQuery]
|
||||
attr_accessor :drive_query
|
||||
|
@ -171,7 +171,7 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Query options for drive holds.
|
||||
# Query options for Drive holds.
|
||||
class HeldDriveQuery
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -267,7 +267,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :hold_time
|
||||
|
||||
# The org unit's immutable ID as provided by the admin SDK.
|
||||
# The org unit's immutable ID as provided by the Admin SDK.
|
||||
# Corresponds to the JSON property `orgUnitId`
|
||||
# @return [String]
|
||||
attr_accessor :org_unit_id
|
||||
|
|
|
@ -455,6 +455,8 @@ module Google
|
|||
# The matter ID.
|
||||
# @param [String] hold_id
|
||||
# The hold ID.
|
||||
# @param [String] view
|
||||
# Specifies which parts of the Hold to return.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -472,12 +474,13 @@ module Google
|
|||
# @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_matter_hold(matter_id, hold_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_matter_hold(matter_id, hold_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/matters/{matterId}/holds/{holdId}', options)
|
||||
command.response_representation = Google::Apis::VaultV1::Hold::Representation
|
||||
command.response_class = Google::Apis::VaultV1::Hold
|
||||
command.params['matterId'] = matter_id unless matter_id.nil?
|
||||
command.params['holdId'] = hold_id unless hold_id.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -493,6 +496,8 @@ module Google
|
|||
# @param [String] page_token
|
||||
# The pagination token as returned in the response.
|
||||
# An empty token means start from the beginning.
|
||||
# @param [String] view
|
||||
# Specifies which parts of the Hold to return.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -510,13 +515,14 @@ module Google
|
|||
# @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_matter_holds(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_matter_holds(matter_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/matters/{matterId}/holds', options)
|
||||
command.response_representation = Google::Apis::VaultV1::ListHoldsResponse::Representation
|
||||
command.response_class = Google::Apis::VaultV1::ListHoldsResponse
|
||||
command.params['matterId'] = matter_id unless matter_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/youtube/partner/
|
||||
module YoutubePartnerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180219'
|
||||
REVISION = '20180226'
|
||||
|
||||
# View and manage your assets and associated content on YouTube
|
||||
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
||||
|
|
Loading…
Reference in New Issue