Autogenerated update (2018-06-13)

Update:
- chat_v1
- cloudiot_v1
- cloudkms_v1
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2
- cloudresourcemanager_v2beta1
- deploymentmanager_alpha
- deploymentmanager_v2beta
- digitalassetlinks_v1
- firebaserules_v1
- proximitybeacon_v1beta1
- pubsub_v1
- pubsub_v1beta1a
- sheets_v4
- testing_v1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
This commit is contained in:
Google APIs 2018-06-13 00:36:00 +00:00
parent 6bdecaee68
commit 3608b5d471
31 changed files with 198 additions and 378 deletions

View File

@ -14927,6 +14927,7 @@
"/cloudresourcemanager:v1/ListAvailableOrgPolicyConstraintsResponse/nextPageToken": next_page_token
"/cloudresourcemanager:v1/ListConstraint": list_constraint
"/cloudresourcemanager:v1/ListConstraint/suggestedValue": suggested_value
"/cloudresourcemanager:v1/ListConstraint/supportsUnder": supports_under
"/cloudresourcemanager:v1/ListLiensResponse": list_liens_response
"/cloudresourcemanager:v1/ListLiensResponse/liens": liens
"/cloudresourcemanager:v1/ListLiensResponse/liens/lien": lien
@ -15039,6 +15040,8 @@
"/cloudresourcemanager:v1/cloudresourcemanager.liens.create": create_lien
"/cloudresourcemanager:v1/cloudresourcemanager.liens.delete": delete_lien
"/cloudresourcemanager:v1/cloudresourcemanager.liens.delete/name": name
"/cloudresourcemanager:v1/cloudresourcemanager.liens.get": get_lien
"/cloudresourcemanager:v1/cloudresourcemanager.liens.get/name": name
"/cloudresourcemanager:v1/cloudresourcemanager.liens.list": list_liens
"/cloudresourcemanager:v1/cloudresourcemanager.liens.list/pageSize": page_size
"/cloudresourcemanager:v1/cloudresourcemanager.liens.list/pageToken": page_token
@ -56519,6 +56522,8 @@
"/firebaserules:v1/TestResult/functionCalls": function_calls
"/firebaserules:v1/TestResult/functionCalls/function_call": function_call
"/firebaserules:v1/TestResult/state": state
"/firebaserules:v1/TestResult/visitedExpressions": visited_expressions
"/firebaserules:v1/TestResult/visitedExpressions/visited_expression": visited_expression
"/firebaserules:v1/TestRulesetRequest": test_ruleset_request
"/firebaserules:v1/TestRulesetRequest/source": source
"/firebaserules:v1/TestRulesetRequest/testSuite": test_suite
@ -56533,6 +56538,9 @@
"/firebaserules:v1/UpdateReleaseRequest": update_release_request
"/firebaserules:v1/UpdateReleaseRequest/release": release
"/firebaserules:v1/UpdateReleaseRequest/updateMask": update_mask
"/firebaserules:v1/VisitedExpression": visited_expression
"/firebaserules:v1/VisitedExpression/sourcePosition": source_position
"/firebaserules:v1/VisitedExpression/value": value
"/firebaserules:v1/fields": fields
"/firebaserules:v1/firebaserules.projects.releases.create": create_project_release
"/firebaserules:v1/firebaserules.projects.releases.create/name": name

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/hangouts/chat
module ChatV1
VERSION = 'V1'
REVISION = '20180531'
REVISION = '20180606'
end
end
end

View File

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

View File

@ -648,337 +648,6 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_group_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::CloudiotV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
command.response_class = Google::Apis::CloudiotV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::CloudiotV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::CloudiotV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_registry_group_device(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1::Empty::Representation
command.response_class = Google::Apis::CloudiotV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets details about a device.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [String] field_mask
# The fields of the `Device` resource to be returned in the response. If the
# field mask is unset or empty, all fields are returned.
# @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::CloudiotV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_registry_group_device(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
command.response_class = Google::Apis::CloudiotV1::Device
command.params['name'] = name unless name.nil?
command.query['fieldMask'] = field_mask unless field_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Modifies the configuration for the device, which is eventually sent from
# the Cloud IoT Core servers. Returns the modified configuration version and
# its metadata.
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudiotV1::DeviceConfig] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::DeviceConfig]
#
# @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 modify_project_location_registry_group_device_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:modifyCloudToDeviceConfig', options)
command.request_representation = Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest::Representation
command.request_object = modify_cloud_to_device_config_request_object
command.response_representation = Google::Apis::CloudiotV1::DeviceConfig::Representation
command.response_class = Google::Apis::CloudiotV1::DeviceConfig
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a device.
# @param [String] name
# The resource path name. For example,
# `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
# `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``.
# When `name` is populated as a response from the service, it always ends
# in the device numeric ID.
# @param [Google::Apis::CloudiotV1::Device] device_object
# @param [String] update_mask
# Only updates the `device` fields indicated by this mask.
# The field mask must not be empty, and it must not contain fields that
# are immutable or only set by the server.
# Mutable top-level fields: `credentials`, `blocked`, and `metadata`
# @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::CloudiotV1::Device] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::Device]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_registry_group_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::CloudiotV1::Device::Representation
command.request_object = device_object
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
command.response_class = Google::Apis::CloudiotV1::Device
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the last few versions of the device configuration in descending
# order (i.e.: newest first).
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Fixnum] num_versions
# The number of versions to list. Versions are listed in decreasing order of
# the version number. The maximum number of versions retained is 10. If this
# value is zero, it will return all the versions available.
# @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::CloudiotV1::ListDeviceConfigVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_group_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/configVersions', options)
command.response_representation = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse
command.params['name'] = name unless name.nil?
command.query['numVersions'] = num_versions unless num_versions.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the last few versions of the device state in descending order (i.e.:
# newest first).
# @param [String] name
# The name of the device. For example,
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
# @param [Fixnum] num_states
# The number of states to list. States are listed in descending order of
# update time. The maximum number of states retained is 10. If this
# value is zero, it will return all the states available.
# @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::CloudiotV1::ListDeviceStatesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudiotV1::ListDeviceStatesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_registry_group_device_states(name, num_states: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/states', options)
command.response_representation = Google::Apis::CloudiotV1::ListDeviceStatesResponse::Representation
command.response_class = Google::Apis::CloudiotV1::ListDeviceStatesResponse
command.params['name'] = name unless name.nil?
command.query['numStates'] = num_states unless num_states.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

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
REVISION = '20180521'
REVISION = '20180606'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -670,6 +670,15 @@ module Google
# @return [String]
attr_accessor :suggested_value
# Indicates whether subtrees of Cloud Resource Manager resource hierarchy
# can be used in `Policy.allowed_values` and `Policy.denied_values`. For
# example, `"under:folders/123"` would match any resource under the
# 'folders/123' folder.
# Corresponds to the JSON property `supportsUnder`
# @return [Boolean]
attr_accessor :supports_under
alias_method :supports_under?, :supports_under
def initialize(**args)
update!(**args)
end
@ -677,6 +686,7 @@ module Google
# Update properties of this object
def update!(**args)
@suggested_value = args[:suggested_value] if args.key?(:suggested_value)
@supports_under = args[:supports_under] if args.key?(:supports_under)
end
end
@ -764,13 +774,24 @@ module Google
# Used in `policy_type` to specify how `list_policy` behaves at this
# resource.
# A `ListPolicy` can define specific values that are allowed or denied by
# setting either the `allowed_values` or `denied_values` fields. It can also
# be used to allow or deny all values, by setting the `all_values` field. If
# `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
# or `denied_values` must be set (attempting to set both or neither will
# result in a failed request). If `all_values` is set to either `ALLOW` or
# `DENY`, `allowed_values` and `denied_values` must be unset.
# `ListPolicy` can define specific values and subtrees of Cloud Resource
# Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that
# are allowed or denied by setting the `allowed_values` and `denied_values`
# fields. This is achieved by using the `under:` and optional `is:` prefixes.
# The `under:` prefix is used to denote resource subtree values.
# The `is:` prefix is used to denote specific values, and is required only
# if the value contains a ":". Values prefixed with "is:" are treated the
# same as values with no prefix.
# Ancestry subtrees must be in one of the following formats:
# - “projects/<project-id>”, e.g. “projects/tokyo-rain-123”
# - “folders/<folder-id>”, e.g. “folders/1234”
# - “organizations/<organization-id>”, e.g. “organizations/1234”
# The `supports_under` field of the associated `Constraint` defines whether
# ancestry prefixes can be used. You can set `allowed_values` and
# `denied_values` in the same `Policy` if `all_values` is
# `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all
# values. If `all_values` is set to either `ALLOW` or `DENY`,
# `allowed_values` and `denied_values` must be unset.
class ListPolicy
include Google::Apis::Core::Hashable
@ -779,16 +800,14 @@ module Google
# @return [String]
attr_accessor :all_values
# List of values allowed at this resource. Can only be set if no values
# are set for `denied_values` and `all_values` is set to
# `ALL_VALUES_UNSPECIFIED`.
# List of values allowed at this resource. Can only be set if `all_values`
# is set to `ALL_VALUES_UNSPECIFIED`.
# Corresponds to the JSON property `allowedValues`
# @return [Array<String>]
attr_accessor :allowed_values
# List of values denied at this resource. Can only be set if no values are
# set for `allowed_values` and `all_values` is set to
# `ALL_VALUES_UNSPECIFIED`.
# List of values denied at this resource. Can only be set if `all_values`
# is set to `ALL_VALUES_UNSPECIFIED`.
# Corresponds to the JSON property `deniedValues`
# @return [Array<String>]
attr_accessor :denied_values
@ -813,11 +832,12 @@ module Google
# `Policy` is applied to a project below the Organization that has
# `inherit_from_parent` set to `false` and field all_values set to DENY,
# then an attempt to activate any API will be denied.
# The following examples demonstrate different possible layerings:
# The following examples demonstrate different possible layerings for
# `projects/bar` parented by `organizations/foo`:
# Example 1 (no inherited values):
# `organizations/foo` has a `Policy` with values:
# `allowed_values: “E1” allowed_values:”E2”`
# ``projects/bar`` has `inherit_from_parent` `false` and values:
# `projects/bar` has `inherit_from_parent` `false` and values:
# `allowed_values: "E3" allowed_values: "E4"`
# The accepted values at `organizations/foo` are `E1`, `E2`.
# The accepted values at `projects/bar` are `E3`, and `E4`.
@ -864,6 +884,19 @@ module Google
# `all: DENY`
# The accepted values at `organizations/foo` are `E1`, E2`.
# No value is accepted at `projects/bar`.
# Example 10 (allowed and denied subtrees of Resource Manager hierarchy):
# Given the following resource hierarchy
# O1->`F1, F2`; F1->`P1`; F2->`P2, P3`,
# `organizations/foo` has a `Policy` with values:
# `allowed_values: "under:organizations/O1"`
# `projects/bar` has a `Policy` with:
# `allowed_values: "under:projects/P3"`
# `denied_values: "under:folders/F2"`
# The accepted values at `organizations/foo` are `organizations/O1`,
# `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`,
# `projects/P3`.
# The accepted values at `projects/bar` are `organizations/O1`,
# `folders/F1`, `projects/P1`.
# Corresponds to the JSON property `inheritFromParent`
# @return [Boolean]
attr_accessor :inherit_from_parent
@ -1063,13 +1096,24 @@ module Google
# Used in `policy_type` to specify how `list_policy` behaves at this
# resource.
# A `ListPolicy` can define specific values that are allowed or denied by
# setting either the `allowed_values` or `denied_values` fields. It can also
# be used to allow or deny all values, by setting the `all_values` field. If
# `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
# or `denied_values` must be set (attempting to set both or neither will
# result in a failed request). If `all_values` is set to either `ALLOW` or
# `DENY`, `allowed_values` and `denied_values` must be unset.
# `ListPolicy` can define specific values and subtrees of Cloud Resource
# Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that
# are allowed or denied by setting the `allowed_values` and `denied_values`
# fields. This is achieved by using the `under:` and optional `is:` prefixes.
# The `under:` prefix is used to denote resource subtree values.
# The `is:` prefix is used to denote specific values, and is required only
# if the value contains a ":". Values prefixed with "is:" are treated the
# same as values with no prefix.
# Ancestry subtrees must be in one of the following formats:
# - “projects/<project-id>”, e.g. “projects/tokyo-rain-123”
# - “folders/<folder-id>”, e.g. “folders/1234”
# - “organizations/<organization-id>”, e.g. “organizations/1234”
# The `supports_under` field of the associated `Constraint` defines whether
# ancestry prefixes can be used. You can set `allowed_values` and
# `denied_values` in the same `Policy` if `all_values` is
# `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all
# values. If `all_values` is set to either `ALLOW` or `DENY`,
# `allowed_values` and `denied_values` must be unset.
# Corresponds to the JSON property `listPolicy`
# @return [Google::Apis::CloudresourcemanagerV1::ListPolicy]
attr_accessor :list_policy

View File

@ -433,6 +433,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :suggested_value, as: 'suggestedValue'
property :supports_under, as: 'supportsUnder'
end
end

View File

@ -84,6 +84,8 @@ module Google
# Gets the effective `Policy` on a resource. This is the result of merging
# `Policies` in the resource hierarchy. The returned `Policy` will not have
# an `etag`set because it is a computed `Policy` across multiple resources.
# Subtrees of Resource Manager resource hierarchy with 'under:' prefix will
# not be expanded.
# @param [String] resource
# The name of the resource to start computing the effective `Policy`.
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
@ -322,6 +324,40 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieve a Lien by `name`.
# Callers of this method will require permission on the `parent` resource.
# For example, a Lien with a `parent` of `projects/1234` requires permission
# requires permission `resourcemanager.projects.get` or
# `resourcemanager.projects.updateLiens`.
# @param [String] name
# The name/identifier of the Lien.
# @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::CloudresourcemanagerV1::Lien] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV1::Lien]
#
# @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_lien(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List all Liens applied to the `parent` resource.
# Callers of this method will require permission on the `parent` resource.
# For example, a Lien with a `parent` of `projects/1234` requires permission
@ -460,6 +496,8 @@ module Google
# Gets the effective `Policy` on a resource. This is the result of merging
# `Policies` in the resource hierarchy. The returned `Policy` will not have
# an `etag`set because it is a computed `Policy` across multiple resources.
# Subtrees of Resource Manager resource hierarchy with 'under:' prefix will
# not be expanded.
# @param [String] resource
# The name of the resource to start computing the effective `Policy`.
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
@ -975,6 +1013,8 @@ module Google
# Gets the effective `Policy` on a resource. This is the result of merging
# `Policies` in the resource hierarchy. The returned `Policy` will not have
# an `etag`set because it is a computed `Policy` across multiple resources.
# Subtrees of Resource Manager resource hierarchy with 'under:' prefix will
# not be expanded.
# @param [String] resource
# The name of the resource to start computing the effective `Policy`.
# @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
REVISION = '20180521'
REVISION = '20180606'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2
VERSION = 'V2'
REVISION = '20180418'
REVISION = '20180606'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -594,14 +594,18 @@ module Google
# Query expressions can be used to restrict results based upon displayName,
# lifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`
# can be used along with the suffix wildcard symbol `*`.
# The displayName field in a query expression should use escaped quotes
# for values that include whitespace to prevent unexpected behavior.
# Some example queries are:
# |Query | Description|
# |----- | -----------|
# |displayName=Test* | Folders whose display name starts with "Test".
# |lifecycleState=ACTIVE | Folders whose lifecycleState is ACTIVE.
# |parent=folders/123 | Folders whose parent is "folders/123".
# |displayName=Test* | Folders whose display name starts with "Test".|
# |lifecycleState=ACTIVE | Folders whose lifecycleState is ACTIVE.|
# |parent=folders/123 | Folders whose parent is "folders/123".|
# |parent=folders/123 AND lifecycleState=ACTIVE | Active folders whose parent is
# "folders/123".|
# |displayName=\\"Test String\\"|Folders whose display name includes both "Test"
# and "String".|
# Corresponds to the JSON property `query`
# @return [String]
attr_accessor :query

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV2beta1
VERSION = 'V2beta1'
REVISION = '20180418'
REVISION = '20180606'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -594,6 +594,8 @@ module Google
# Query expressions can be used to restrict results based upon displayName,
# lifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`
# can be used along with the suffix wildcard symbol `*`.
# The displayName field in a query expression should use escaped quotes
# for values that include whitespace to prevent unexpected behavior.
# Some example queries are:
# |Query | Description|
# |----- | -----------|
@ -602,6 +604,8 @@ module Google
# |parent=folders/123|Folders whose parent is "folders/123".|
# |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose parent is "
# folders/123".|
# |displayName=\\"Test String\\"|Folders whose display name includes both "Test"
# and "String".|
# Corresponds to the JSON property `query`
# @return [String]
attr_accessor :query

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerAlpha
VERSION = 'Alpha'
REVISION = '20180503'
REVISION = '20180609'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1224,7 +1224,7 @@ module Google
# @param [String] type_provider
# The name of the type provider for this request.
# @param [String] type
# The name of the type provider for this request.
# The name of the type provider type for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/deployment-manager/
module DeploymentmanagerV2beta
VERSION = 'V2beta'
REVISION = '20180503'
REVISION = '20180609'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1224,7 +1224,7 @@ module Google
# @param [String] type_provider
# The name of the type provider for this request.
# @param [String] type
# The name of the type provider for this request.
# The name of the type provider type for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/digital-asset-links/
module DigitalassetlinksV1
VERSION = 'V1'
REVISION = '20171207'
REVISION = '20180606'
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com/docs/storage/security
module FirebaserulesV1
VERSION = 'V1'
REVISION = '20180111'
REVISION = '20180605'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -571,6 +571,12 @@ module Google
# @return [String]
attr_accessor :state
# The set of visited expressions for a given test. This returns positions
# and evaluation results of all visited expressions.
# Corresponds to the JSON property `visitedExpressions`
# @return [Array<Google::Apis::FirebaserulesV1::VisitedExpression>]
attr_accessor :visited_expressions
def initialize(**args)
update!(**args)
end
@ -581,6 +587,7 @@ module Google
@error_position = args[:error_position] if args.key?(:error_position)
@function_calls = args[:function_calls] if args.key?(:function_calls)
@state = args[:state] if args.key?(:state)
@visited_expressions = args[:visited_expressions] if args.key?(:visited_expressions)
end
end
@ -687,6 +694,32 @@ module Google
@update_mask = args[:update_mask] if args.key?(:update_mask)
end
end
# Store the position and access outcome for an expression visited in rules.
class VisitedExpression
include Google::Apis::Core::Hashable
# Position in the `Source` content including its line, column number, and an
# index of the `File` in the `Source` message. Used for debug purposes.
# Corresponds to the JSON property `sourcePosition`
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
attr_accessor :source_position
# The evaluated value for the visited expression, e.g. true/false
# Corresponds to the JSON property `value`
# @return [Object]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_position = args[:source_position] if args.key?(:source_position)
@value = args[:value] if args.key?(:value)
end
end
end
end
end

View File

@ -142,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VisitedExpression
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Arg
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -290,6 +296,8 @@ module Google
collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
property :state, as: 'state'
collection :visited_expressions, as: 'visitedExpressions', class: Google::Apis::FirebaserulesV1::VisitedExpression, decorator: Google::Apis::FirebaserulesV1::VisitedExpression::Representation
end
end
@ -329,6 +337,15 @@ module Google
property :update_mask, as: 'updateMask'
end
end
class VisitedExpression
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
property :value, as: 'value'
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/beacons/proximity/
module ProximitybeaconV1beta1
VERSION = 'V1beta1'
REVISION = '20180521'
REVISION = '20180610'
# View and modify your beacons
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/docs
module PubsubV1beta1a
VERSION = 'V1beta1a'
REVISION = '20180507'
REVISION = '20180604'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20180525'
REVISION = '20180611'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20180606'
REVISION = '20180612'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -179,7 +179,7 @@ module Google
# <https://developer.android.com/training/testing/junit-runner.html#using-
# android-test-orchestrator>
# for more information about Android Test Orchestrator.
# Optional, if empty, test will be run without orchestrator.
# Optional. If not set, the test will be run without the orchestrator.
# Corresponds to the JSON property `orchestratorOption`
# @return [String]
attr_accessor :orchestrator_option

View File

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

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20180601'
REVISION = '20180609'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20180601'
REVISION = '20180609'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'