Autogenerated update (2018-02-24)

Update:
- adexchangebuyer2_v2beta1
- adexchangebuyer_v1_4
- dataproc_v1
- dataproc_v1beta2
- dlp_v2beta2
- monitoring_v3
- people_v1
- servicemanagement_v1
- serviceuser_v1
This commit is contained in:
Google APIs committed 2018-02-24 00:37:29 +00:00
1 parent f607fc3548
commit f0dd4d0ac0
24 files changed
+983 -119

No files matched your search

@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20180215'
REVISION = '20180222'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -481,6 +481,7 @@ module Google
end
# A creative and its classification data.
# Next ID: 31
class Creative
include Google::Apis::Core::Hashable
@@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_4
VERSION = 'V1_4'
REVISION = '20170810'
REVISION = '20180222'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -26,6 +26,15 @@ module Google
class Account
include Google::Apis::Core::Hashable
# When this is false, bid requests that include a deal ID for a private auction
# or preferred deal are always sent to your bidder. When true, all active
# pretargeting configs will be applied to private auctions and preferred deals.
# Programmatic Guaranteed deals (when enabled) are always sent to your bidder.
# Corresponds to the JSON property `applyPretargetingToNonGuaranteedDeals`
# @return [Boolean]
attr_accessor :apply_pretargeting_to_non_guaranteed_deals
alias_method :apply_pretargeting_to_non_guaranteed_deals?, :apply_pretargeting_to_non_guaranteed_deals
# Your bidder locations that have distinct URLs.
# Corresponds to the JSON property `bidderLocation`
# @return [Array<Google::Apis::AdexchangebuyerV1_4::Account::BidderLocation>]
@@ -77,6 +86,7 @@ module Google
# Update properties of this object
def update!(**args)
@apply_pretargeting_to_non_guaranteed_deals = args[:apply_pretargeting_to_non_guaranteed_deals] if args.key?(:apply_pretargeting_to_non_guaranteed_deals)
@bidder_location = args[:bidder_location] if args.key?(:bidder_location)
@cookie_matching_nid = args[:cookie_matching_nid] if args.key?(:cookie_matching_nid)
@cookie_matching_url = args[:cookie_matching_url] if args.key?(:cookie_matching_url)
@@ -470,7 +480,7 @@ module Google
include Google::Apis::Core::Hashable
# The HTML snippet that displays the ad when inserted in the web page. If set,
# videoURL should not be set.
# videoURL, videoVastXML, and nativeAd should not be set.
# Corresponds to the JSON property `HTMLSnippet`
# @return [String]
attr_accessor :html_snippet
@@ -574,8 +584,8 @@ module Google
# @return [Array<String>]
attr_accessor :languages
# If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should
# not be set. (The videoURL inside nativeAd can be set.)
# If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of
# nativeAd should not be set. (The videoURL inside nativeAd can be set.)
# Corresponds to the JSON property `nativeAd`
# @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd]
attr_accessor :native_ad
@@ -631,12 +641,20 @@ module Google
# @return [Fixnum]
attr_accessor :version
# The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not
# be set. Note, this is different from resource.native_ad.video_url above.
# The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and nativeAd
# should not be set. Note, this is different from resource.native_ad.video_url
# above.
# Corresponds to the JSON property `videoURL`
# @return [String]
attr_accessor :video_url
# The contents of a VAST document for a video ad. This document should conform
# to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, and nativeAd
# and should not be set.
# Corresponds to the JSON property `videoVastXML`
# @return [String]
attr_accessor :video_vast_xml
# Ad width.
# Corresponds to the JSON property `width`
# @return [Fixnum]
@@ -675,6 +693,7 @@ module Google
@vendor_type = args[:vendor_type] if args.key?(:vendor_type)
@version = args[:version] if args.key?(:version)
@video_url = args[:video_url] if args.key?(:video_url)
@video_vast_xml = args[:video_vast_xml] if args.key?(:video_vast_xml)
@width = args[:width] if args.key?(:width)
end
@@ -802,8 +821,8 @@ module Google
end
end
# If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should
# not be set. (The videoURL inside nativeAd can be set.)
# If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of
# nativeAd should not be set. (The videoURL inside nativeAd can be set.)
class NativeAd
include Google::Apis::Core::Hashable
@@ -3399,7 +3418,7 @@ module Google
class TargetingValue
include Google::Apis::Core::Hashable
# The creative size value to exclude/include.
# Next Id: 7
# Corresponds to the JSON property `creativeSizeValue`
# @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueCreativeSize]
attr_accessor :creative_size_value
@@ -3410,6 +3429,16 @@ module Google
# @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting]
attr_accessor :day_part_targeting_value
#
# Corresponds to the JSON property `demogAgeCriteriaValue`
# @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogAgeCriteria]
attr_accessor :demog_age_criteria_value
#
# Corresponds to the JSON property `demogGenderCriteriaValue`
# @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria]
attr_accessor :demog_gender_criteria_value
# The long value to exclude/include.
# Corresponds to the JSON property `longValue`
# @return [Fixnum]
@@ -3428,15 +3457,22 @@ module Google
def update!(**args)
@creative_size_value = args[:creative_size_value] if args.key?(:creative_size_value)
@day_part_targeting_value = args[:day_part_targeting_value] if args.key?(:day_part_targeting_value)
@demog_age_criteria_value = args[:demog_age_criteria_value] if args.key?(:demog_age_criteria_value)
@demog_gender_criteria_value = args[:demog_gender_criteria_value] if args.key?(:demog_gender_criteria_value)
@long_value = args[:long_value] if args.key?(:long_value)
@string_value = args[:string_value] if args.key?(:string_value)
end
end
#
# Next Id: 7
class TargetingValueCreativeSize
include Google::Apis::Core::Hashable
# The formats allowed by the publisher.
# Corresponds to the JSON property `allowedFormats`
# @return [Array<String>]
attr_accessor :allowed_formats
# For video size type, the list of companion sizes.
# Corresponds to the JSON property `companionSizes`
# @return [Array<Google::Apis::AdexchangebuyerV1_4::TargetingValueSize>]
@@ -3468,6 +3504,7 @@ module Google
# Update properties of this object
def update!(**args)
@allowed_formats = args[:allowed_formats] if args.key?(:allowed_formats)
@companion_sizes = args[:companion_sizes] if args.key?(:companion_sizes)
@creative_size_type = args[:creative_size_type] if args.key?(:creative_size_type)
@native_template = args[:native_template] if args.key?(:native_template)
@@ -3544,6 +3581,44 @@ module Google
end
end
#
class TargetingValueDemogAgeCriteria
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `demogAgeCriteriaIds`
# @return [Array<String>]
attr_accessor :demog_age_criteria_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@demog_age_criteria_ids = args[:demog_age_criteria_ids] if args.key?(:demog_age_criteria_ids)
end
end
#
class TargetingValueDemogGenderCriteria
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `demogGenderCriteriaIds`
# @return [Array<String>]
attr_accessor :demog_gender_criteria_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@demog_gender_criteria_ids = args[:demog_gender_criteria_ids] if args.key?(:demog_gender_criteria_ids)
end
end
#
class TargetingValueSize
include Google::Apis::Core::Hashable
@@ -472,6 +472,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TargetingValueDemogAgeCriteria
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetingValueDemogGenderCriteria
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetingValueSize
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -487,6 +499,7 @@ module Google
class Account
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :apply_pretargeting_to_non_guaranteed_deals, as: 'applyPretargetingToNonGuaranteedDeals'
collection :bidder_location, as: 'bidderLocation', class: Google::Apis::AdexchangebuyerV1_4::Account::BidderLocation, decorator: Google::Apis::AdexchangebuyerV1_4::Account::BidderLocation::Representation
property :cookie_matching_nid, as: 'cookieMatchingNid'
@@ -651,6 +664,7 @@ module Google
collection :vendor_type, as: 'vendorType'
property :version, as: 'version'
property :video_url, as: 'videoURL'
property :video_vast_xml, as: 'videoVastXML'
property :width, as: 'width'
end
@@ -1370,6 +1384,10 @@ module Google
property :day_part_targeting_value, as: 'dayPartTargetingValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting::Representation
property :demog_age_criteria_value, as: 'demogAgeCriteriaValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogAgeCriteria, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogAgeCriteria::Representation
property :demog_gender_criteria_value, as: 'demogGenderCriteriaValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria::Representation
property :long_value, :numeric_string => true, as: 'longValue'
property :string_value, as: 'stringValue'
end
@@ -1378,6 +1396,7 @@ module Google
class TargetingValueCreativeSize
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_formats, as: 'allowedFormats'
collection :companion_sizes, as: 'companionSizes', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize::Representation
property :creative_size_type, as: 'creativeSizeType'
@@ -1408,6 +1427,20 @@ module Google
end
end
class TargetingValueDemogAgeCriteria
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :demog_age_criteria_ids, as: 'demogAgeCriteriaIds'
end
end
class TargetingValueDemogGenderCriteria
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :demog_gender_criteria_ids, as: 'demogGenderCriteriaIds'
end
end
class TargetingValueSize
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1
VERSION = 'V1'
REVISION = '20180206'
REVISION = '20180220'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+6 -6
View File
@@ -23,7 +23,7 @@ module Google
module DataprocV1
# Specifies the type and number of accelerator cards attached to the instances
# of an instance group (see GPUs on Compute Engine).
# of an instance. See GPUs on Compute Engine.
class AcceleratorConfig
include Google::Apis::Core::Hashable
@@ -33,11 +33,11 @@ module Google
attr_accessor :accelerator_count
# Full URL, partial URI, or short name of the accelerator type resource to
# expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/
# docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/
# compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
# tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
# tesla-k80 * nvidia-tesla-k80
# expose to this instance. See Google Compute Engine AcceleratorTypes.Examples:
# https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/
# acceleratorTypes/nvidia-tesla-k80
# projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
# nvidia-tesla-k80
# Corresponds to the JSON property `acceleratorTypeUri`
# @return [String]
attr_accessor :accelerator_type_uri
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
REVISION = '20180213'
REVISION = '20180220'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+454 -15
View File
@@ -156,6 +156,38 @@ module Google
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 [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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_location_workflow_template_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Instantiates a template and begins execution.The returned Operation can be
# used to track execution of workflow by polling operations.get. The Operation
# will complete when entire workflow is finished.The running workflow can be
@@ -286,6 +318,79 @@ module Google
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::DataprocV1beta2::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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_location_workflow_template_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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.Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @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::DataprocV1beta2::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::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_location_workflow_template_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Updates (replaces) workflow template. The updated template must contain
# version that matches the current server version.
# @param [String] name
@@ -579,11 +684,10 @@ module Google
# is 0 (for forceful decommission), and the maximum allowed timeout is 1 day.
# Only supported on Dataproc image versions 1.2 and higher.
# @param [String] update_mask
# Required. Specifies the path, relative to <code>Cluster</code>, of the field
# to update. For example, to change the number of workers in a cluster to 5, the
# <code>update_mask</code> parameter would be specified as <code>config.
# worker_config.num_instances</code>, and the PATCH request body would specify
# the new value, as follows:
# Required. Specifies the path, relative to Cluster, of the field to update. For
# example, to change the number of workers in a cluster to 5, the update_mask
# parameter would be specified as config.worker_config.num_instances, and the
# PATCH request body would specify the new value, as follows:
# `
# "config":`
# "workerConfig":`
@@ -591,10 +695,9 @@ module Google
# `
# `
# `
# Similarly, to change the number of preemptible workers in a cluster to 5, the <
# code>update_mask</code> parameter would be <code>config.
# secondary_worker_config.num_instances</code>, and the PATCH request body would
# be set as follows:
# Similarly, to change the number of preemptible workers in a cluster to 5, the
# update_mask parameter would be config.secondary_worker_config.num_instances,
# and the PATCH request body would be set as follows:
# `
# "config":`
# "secondaryWorkerConfig":`
@@ -602,12 +705,33 @@ module Google
# `
# `
# `
# <strong>Note:</strong> currently only some fields can be updated: |Mask|
# Purpose| |labels|Updates labels| |config.worker_config.num_instances|Resize
# primary worker group| |config.secondary_worker_config.num_instances|Resize
# secondary worker group| |config.lifecycle_config.auto_delete_ttl|Reset MAX TTL
# duration| |config.lifecycle_config.auto_delete_time|Update MAX TTL deletion
# timestamp| |config.lifecycle_config.idle_delete_ttl|Update Idle TTL duration|
# <strong>Note:</strong> currently only the following fields can be updated:
# <table>
# <tr>
# <td><strong>Mask</strong></td><td><strong>Purpose</strong></td>
# </tr>
# <tr>
# <td>labels</td><td>Updates labels</td>
# </tr>
# <tr>
# <td>config.worker_config.num_instances</td><td>Resize primary worker group</td>
# </tr>
# <tr>
# <td>config.secondary_worker_config.num_instances</td><td>Resize secondary
# worker group</td>
# </tr>
# <tr>
# <td>config.lifecycle_config.auto_delete_ttl</td><td>Reset MAX TTL duration</td>
# </tr>
# <tr>
# <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL deletion
# timestamp</td>
# </tr>
# <tr>
# <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL duration</
# td>
# </tr>
# </table>
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -827,6 +951,38 @@ module Google
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 [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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_region_job_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Lists regions/`region`/jobs in a project.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
@@ -930,6 +1086,41 @@ module Google
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::DataprocV1beta2::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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_job_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Submits a job to a cluster.
# @param [String] project_id
# Required. The ID of the Google Cloud Platform project that the job belongs to.
@@ -966,6 +1157,44 @@ module Google
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.Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @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::DataprocV1beta2::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::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_job_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
@@ -1067,6 +1296,38 @@ module Google
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 [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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_region_operation_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Lists operations that match the specified filter in the request. If the server
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
# allows API services to override the binding to use different resource name
@@ -1113,6 +1374,79 @@ module Google
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::DataprocV1beta2::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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_operation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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.Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @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::DataprocV1beta2::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::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_operation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Creates new workflow template.
# @param [String] parent
# Required. The "resource name" of the region, as described in https://cloud.
@@ -1222,6 +1556,38 @@ module Google
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 [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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_region_workflow_template_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Instantiates a template and begins execution.The returned Operation can be
# used to track execution of workflow by polling operations.get. The Operation
# will complete when entire workflow is finished.The running workflow can be
@@ -1352,6 +1718,79 @@ module Google
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::DataprocV1beta2::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::DataprocV1beta2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_region_workflow_template_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation
command.response_class = Google::Apis::DataprocV1beta2::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.Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @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::DataprocV1beta2::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::DataprocV1beta2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1beta2::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_project_region_workflow_template_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DataprocV1beta2::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
# Updates (replaces) workflow template. The updated template must contain
# version that matches the current server version.
# @param [String] name
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/
module DlpV2beta2
VERSION = 'V2beta2'
REVISION = '20180220'
REVISION = '20180222'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -2619,6 +2619,98 @@ module Google
end
end
# Shifts dates by random number of days, with option to be consistent for the
# same context.
class GooglePrivacyDlpV2beta2DateShiftConfig
include Google::Apis::Core::Hashable
# General identifier of a data field in a storage service.
# Corresponds to the JSON property `context`
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldId]
attr_accessor :context
# This is a data encryption key (DEK) (as opposed to
# a key encryption key (KEK) stored by KMS).
# When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
# IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
# unwrap the data crypto key.
# Corresponds to the JSON property `cryptoKey`
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoKey]
attr_accessor :crypto_key
# For example, -5 means shift date to at most 5 days back in the past.
# [Required]
# Corresponds to the JSON property `lowerBoundDays`
# @return [Fixnum]
attr_accessor :lower_bound_days
# Range of shift in days. Actual shift will be selected at random within this
# range (inclusive ends). Negative means shift to earlier in time. Must not
# be more than 365250 days (1000 years) each direction.
# For example, 3 means shift date to at most 3 days into the future.
# [Required]
# Corresponds to the JSON property `upperBoundDays`
# @return [Fixnum]
attr_accessor :upper_bound_days
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context = args[:context] if args.key?(:context)
@crypto_key = args[:crypto_key] if args.key?(:crypto_key)
@lower_bound_days = args[:lower_bound_days] if args.key?(:lower_bound_days)
@upper_bound_days = args[:upper_bound_days] if args.key?(:upper_bound_days)
end
end
# Message for a date time object.
class GooglePrivacyDlpV2beta2DateTime
include Google::Apis::Core::Hashable
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `date`
# @return [Google::Apis::DlpV2beta2::GoogleTypeDate]
attr_accessor :date
#
# Corresponds to the JSON property `dayOfWeek`
# @return [String]
attr_accessor :day_of_week
# Represents a time of day. The date and time zone are either not significant
# or are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `time`
# @return [Google::Apis::DlpV2beta2::GoogleTypeTimeOfDay]
attr_accessor :time
#
# Corresponds to the JSON property `timeZone`
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2TimeZone]
attr_accessor :time_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@date = args[:date] if args.key?(:date)
@day_of_week = args[:day_of_week] if args.key?(:day_of_week)
@time = args[:time] if args.key?(:time)
@time_zone = args[:time_zone] if args.key?(:time_zone)
end
end
# The configuration that controls how the data will change.
class GooglePrivacyDlpV2beta2DeidentifyConfig
include Google::Apis::Core::Hashable
@@ -3135,6 +3227,11 @@ module Google
# @return [String]
attr_accessor :quote
# Message for infoType-dependent details parsed from quote.
# Corresponds to the JSON property `quoteInfo`
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2QuoteInfo]
attr_accessor :quote_info
def initialize(**args)
update!(**args)
end
@@ -3146,6 +3243,7 @@ module Google
@likelihood = args[:likelihood] if args.key?(:likelihood)
@location = args[:location] if args.key?(:location)
@quote = args[:quote] if args.key?(:quote)
@quote_info = args[:quote_info] if args.key?(:quote_info)
end
end
@@ -4611,6 +4709,16 @@ module Google
class GooglePrivacyDlpV2beta2OutputStorageConfig
include Google::Apis::Core::Hashable
# Schema used for writing the findings. Columns are derived from the
# `Finding` object. If appending to an existing table, any columns from the
# predefined schema that are missing will be added. No columns in the
# existing table will be deleted.
# If unspecified, then all available columns will be used for a new table,
# and no changes will be made to an existing table.
# Corresponds to the JSON property `outputSchema`
# @return [String]
attr_accessor :output_schema
# Message defining the location of a BigQuery table. A table is uniquely
# identified by its project_id, dataset_id, and table_name. Within a query
# a table is often referenced with a string in the format of:
@@ -4626,6 +4734,7 @@ module Google
# Update properties of this object
def update!(**args)
@output_schema = args[:output_schema] if args.key?(:output_schema)
@table = args[:table] if args.key?(:table)
end
end
@@ -4749,6 +4858,12 @@ module Google
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig]
attr_accessor :crypto_replace_ffx_fpe_config
# Shifts dates by random number of days, with option to be consistent for the
# same context.
# Corresponds to the JSON property `dateShiftConfig`
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateShiftConfig]
attr_accessor :date_shift_config
# Buckets values based on fixed size ranges. The
# Bucketing transformation can provide all of this functionality,
# but requires more configuration. This message is provided as a convenience to
@@ -4797,6 +4912,7 @@ module Google
@character_mask_config = args[:character_mask_config] if args.key?(:character_mask_config)
@crypto_hash_config = args[:crypto_hash_config] if args.key?(:crypto_hash_config)
@crypto_replace_ffx_fpe_config = args[:crypto_replace_ffx_fpe_config] if args.key?(:crypto_replace_ffx_fpe_config)
@date_shift_config = args[:date_shift_config] if args.key?(:date_shift_config)
@fixed_size_bucketing_config = args[:fixed_size_bucketing_config] if args.key?(:fixed_size_bucketing_config)
@redact_config = args[:redact_config] if args.key?(:redact_config)
@replace_config = args[:replace_config] if args.key?(:replace_config)
@@ -4930,6 +5046,25 @@ module Google
end
end
# Message for infoType-dependent details parsed from quote.
class GooglePrivacyDlpV2beta2QuoteInfo
include Google::Apis::Core::Hashable
# Message for a date time object.
# Corresponds to the JSON property `dateTime`
# @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateTime]
attr_accessor :date_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@date_time = args[:date_time] if args.key?(:date_time)
end
end
# Generic half-open interval [start, end)
class GooglePrivacyDlpV2beta2Range
include Google::Apis::Core::Hashable
@@ -5634,6 +5769,26 @@ module Google
end
end
#
class GooglePrivacyDlpV2beta2TimeZone
include Google::Apis::Core::Hashable
# Set only if the offset can be determined. Positive for time ahead of UTC.
# E.g. For "UTC-9", this value is -540.
# Corresponds to the JSON property `offsetMinutes`
# @return [Fixnum]
attr_accessor :offset_minutes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@offset_minutes = args[:offset_minutes] if args.key?(:offset_minutes)
end
end
# Configuration of the timespan of the items to include in scanning.
# Currently only supported when inspecting Google Cloud Storage and BigQuery.
class GooglePrivacyDlpV2beta2TimespanConfig
@@ -5924,6 +6079,11 @@ module Google
# @return [Google::Apis::DlpV2beta2::GoogleTypeDate]
attr_accessor :date_value
#
# Corresponds to the JSON property `dayOfWeekValue`
# @return [String]
attr_accessor :day_of_week_value
#
# Corresponds to the JSON property `floatValue`
# @return [Float]
@@ -5959,6 +6119,7 @@ module Google
def update!(**args)
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
@date_value = args[:date_value] if args.key?(:date_value)
@day_of_week_value = args[:day_of_week_value] if args.key?(:day_of_week_value)
@float_value = args[:float_value] if args.key?(:float_value)
@integer_value = args[:integer_value] if args.key?(:integer_value)
@string_value = args[:string_value] if args.key?(:string_value)
@@ -496,6 +496,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2beta2DateShiftConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2beta2DateTime
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2beta2DeidentifyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -892,6 +904,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2beta2QuoteInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2beta2Range
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1048,6 +1066,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2beta2TimeZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2beta2TimespanConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1932,6 +1956,31 @@ module Google
end
end
class GooglePrivacyDlpV2beta2DateShiftConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context, as: 'context', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldId, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldId::Representation
property :crypto_key, as: 'cryptoKey', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoKey, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoKey::Representation
property :lower_bound_days, as: 'lowerBoundDays'
property :upper_bound_days, as: 'upperBoundDays'
end
end
class GooglePrivacyDlpV2beta2DateTime
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date, as: 'date', class: Google::Apis::DlpV2beta2::GoogleTypeDate, decorator: Google::Apis::DlpV2beta2::GoogleTypeDate::Representation
property :day_of_week, as: 'dayOfWeek'
property :time, as: 'time', class: Google::Apis::DlpV2beta2::GoogleTypeTimeOfDay, decorator: Google::Apis::DlpV2beta2::GoogleTypeTimeOfDay::Representation
property :time_zone, as: 'timeZone', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2TimeZone, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2TimeZone::Representation
end
end
class GooglePrivacyDlpV2beta2DeidentifyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2078,6 +2127,8 @@ module Google
property :location, as: 'location', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Location, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2Location::Representation
property :quote, as: 'quote'
property :quote_info, as: 'quoteInfo', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2QuoteInfo, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2QuoteInfo::Representation
end
end
@@ -2532,6 +2583,7 @@ module Google
class GooglePrivacyDlpV2beta2OutputStorageConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :output_schema, as: 'outputSchema'
property :table, as: 'table', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryTable, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2BigQueryTable::Representation
end
@@ -2565,6 +2617,8 @@ module Google
property :crypto_replace_ffx_fpe_config, as: 'cryptoReplaceFfxFpeConfig', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig::Representation
property :date_shift_config, as: 'dateShiftConfig', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateShiftConfig, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateShiftConfig::Representation
property :fixed_size_bucketing_config, as: 'fixedSizeBucketingConfig', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FixedSizeBucketingConfig, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FixedSizeBucketingConfig::Representation
property :redact_config, as: 'redactConfig', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactConfig, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactConfig::Representation
@@ -2618,6 +2672,14 @@ module Google
end
end
class GooglePrivacyDlpV2beta2QuoteInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :date_time, as: 'dateTime', class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateTime, decorator: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateTime::Representation
end
end
class GooglePrivacyDlpV2beta2Range
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2856,6 +2918,13 @@ module Google
end
end
class GooglePrivacyDlpV2beta2TimeZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :offset_minutes, as: 'offsetMinutes'
end
end
class GooglePrivacyDlpV2beta2TimespanConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2948,6 +3017,7 @@ module Google
property :boolean_value, as: 'booleanValue'
property :date_value, as: 'dateValue', class: Google::Apis::DlpV2beta2::GoogleTypeDate, decorator: Google::Apis::DlpV2beta2::GoogleTypeDate::Representation
property :day_of_week_value, as: 'dayOfWeekValue'
property :float_value, as: 'floatValue'
property :integer_value, :numeric_string => true, as: 'integerValue'
property :string_value, as: 'stringValue'
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20180205'
REVISION = '20180221'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -333,7 +333,7 @@ module Google
class ContentMatcher
include Google::Apis::Core::Hashable
# String content to match
# String content to match (max 1024 bytes)
# Corresponds to the JSON property `content`
# @return [String]
attr_accessor :content
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/
module PeopleV1
VERSION = 'V1'
REVISION = '20180217'
REVISION = '20180222'
# Manage your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
+2 -1
View File
@@ -2119,7 +2119,8 @@ module Google
end
end
# A request to update an existing contact group. Only the name can be updated.
# A request to update an existing contact group. All updated fields will be
# replaced.
class UpdateContactGroupRequest
include Google::Apis::Core::Hashable
+8 -4
View File
@@ -364,7 +364,8 @@ module Google
# [`people.connections.list`](/people/api/rest/v1/people.connections/list).
# @param [String] person_fields
# **Required.** A field mask to restrict which fields on the person are
# returned. Valid values are:
# returned. Multiple fields can be specified by separating them with commas.
# Valid values are:
# * addresses
# * ageRanges
# * biographies
@@ -432,7 +433,8 @@ module Google
# The request throws a 400 error if 'personFields' is not specified.
# @param [String] person_fields
# **Required.** A field mask to restrict which fields on each person are
# returned. Valid values are:
# returned. Multiple fields can be specified by separating them with commas.
# Valid values are:
# * addresses
# * ageRanges
# * biographies
@@ -520,7 +522,8 @@ module Google
# @param [Google::Apis::PeopleV1::Person] person_object
# @param [String] update_person_fields
# **Required.** A field mask to restrict which fields on the person are
# updated. Valid values are:
# updated. Multiple fields can be specified by separating them with commas.
# All updated fields will be replaced. Valid values are:
# * addresses
# * biographies
# * birthdays
@@ -583,7 +586,8 @@ module Google
# The token of the page to be returned.
# @param [String] person_fields
# **Required.** A field mask to restrict which fields on each person are
# returned. Valid values are:
# returned. Multiple fields can be specified by separating them with commas.
# Valid values are:
# * addresses
# * ageRanges
# * biographies
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServicemanagementV1
VERSION = 'V1'
REVISION = '20180202'
REVISION = '20180220'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -621,14 +621,6 @@ module Google
class Binding
include Google::Apis::Core::Hashable
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
# Corresponds to the JSON property `condition`
# @return [Google::Apis::ServicemanagementV1::Expr]
attr_accessor :condition
# Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is
@@ -660,7 +652,6 @@ module Google
# Update properties of this object
def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
@@ -843,6 +834,21 @@ module Google
# `google.rpc.context.OriginContext`.
# Available context types are defined in package
# `google.rpc.context`.
# This also provides mechanism to whitelist any protobuf message extension that
# can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
# “x-goog-ext-<extension_id>-jspb” format. For example, list any service
# specific protobuf types that can appear in grpc metadata as follows in your
# yaml file:
# Example:
# context:
# rules:
# - selector: "google.example.library.v1.LibraryService.CreateBook"
# allowed_request_extensions:
# - google.foo.v1.NewExtension
# allowed_response_extensions:
# - google.foo.v1.NewExtension
# You can also specify extension ID instead of fully qualified extension name
# here.
class Context
include Google::Apis::Core::Hashable
@@ -867,6 +873,18 @@ module Google
class ContextRule
include Google::Apis::Core::Hashable
# A list of full type names or extension IDs of extensions allowed in grpc
# side channel from client to backend.
# Corresponds to the JSON property `allowedRequestExtensions`
# @return [Array<String>]
attr_accessor :allowed_request_extensions
# A list of full type names or extension IDs of extensions allowed in grpc
# side channel from backend to client.
# Corresponds to the JSON property `allowedResponseExtensions`
# @return [Array<String>]
attr_accessor :allowed_response_extensions
# A list of full type names of provided contexts.
# Corresponds to the JSON property `provided`
# @return [Array<String>]
@@ -889,6 +907,8 @@ module Google
# Update properties of this object
def update!(**args)
@allowed_request_extensions = args[:allowed_request_extensions] if args.key?(:allowed_request_extensions)
@allowed_response_extensions = args[:allowed_response_extensions] if args.key?(:allowed_response_extensions)
@provided = args[:provided] if args.key?(:provided)
@requested = args[:requested] if args.key?(:requested)
@selector = args[:selector] if args.key?(:selector)
@@ -1435,53 +1455,6 @@ module Google
end
end
# Represents an expression text. Example:
# title: "User account presence"
# description: "Determines whether the request has a user account"
# expression: "size(request.user) > 0"
class Expr
include Google::Apis::Core::Hashable
# An optional description of the expression. This is a longer text which
# describes the expression, e.g. when hovered over it in a UI.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Textual representation of an expression in
# Common Expression Language syntax.
# The application context of the containing message determines which
# well-known feature set of CEL is supported.
# Corresponds to the JSON property `expression`
# @return [String]
attr_accessor :expression
# An optional string indicating the location of the expression for error
# reporting, e.g. a file name and a position in the file.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# An optional title for the expression, i.e. a short string describing
# its purpose. This can be used e.g. in UIs which allow to enter the
# expression.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
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)
@location = args[:location] if args.key?(:location)
@title = args[:title] if args.key?(:title)
end
end
# A single field of a message type.
class Field
include Google::Apis::Core::Hashable
@@ -3526,6 +3499,21 @@ module Google
# `google.rpc.context.OriginContext`.
# Available context types are defined in package
# `google.rpc.context`.
# This also provides mechanism to whitelist any protobuf message extension that
# can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
# “x-goog-ext-<extension_id>-jspb” format. For example, list any service
# specific protobuf types that can appear in grpc metadata as follows in your
# yaml file:
# Example:
# context:
# rules:
# - selector: "google.example.library.v1.LibraryService.CreateBook"
# allowed_request_extensions:
# - google.foo.v1.NewExtension
# allowed_response_extensions:
# - google.foo.v1.NewExtension
# You can also specify extension ID instead of fully qualified extension name
# here.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ServicemanagementV1::Context]
attr_accessor :context
@@ -238,12 +238,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Field
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -690,8 +684,6 @@ module Google
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::ServicemanagementV1::Expr, decorator: Google::Apis::ServicemanagementV1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
@@ -753,6 +745,8 @@ module Google
class ContextRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_request_extensions, as: 'allowedRequestExtensions'
collection :allowed_response_extensions, as: 'allowedResponseExtensions'
collection :provided, as: 'provided'
collection :requested, as: 'requested'
property :selector, as: 'selector'
@@ -892,16 +886,6 @@ module Google
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class Field
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/
module ServiceuserV1
VERSION = 'V1'
REVISION = '20180202'
REVISION = '20180220'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -492,6 +492,21 @@ module Google
# `google.rpc.context.OriginContext`.
# Available context types are defined in package
# `google.rpc.context`.
# This also provides mechanism to whitelist any protobuf message extension that
# can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
# “x-goog-ext-<extension_id>-jspb” format. For example, list any service
# specific protobuf types that can appear in grpc metadata as follows in your
# yaml file:
# Example:
# context:
# rules:
# - selector: "google.example.library.v1.LibraryService.CreateBook"
# allowed_request_extensions:
# - google.foo.v1.NewExtension
# allowed_response_extensions:
# - google.foo.v1.NewExtension
# You can also specify extension ID instead of fully qualified extension name
# here.
class Context
include Google::Apis::Core::Hashable
@@ -516,6 +531,18 @@ module Google
class ContextRule
include Google::Apis::Core::Hashable
# A list of full type names or extension IDs of extensions allowed in grpc
# side channel from client to backend.
# Corresponds to the JSON property `allowedRequestExtensions`
# @return [Array<String>]
attr_accessor :allowed_request_extensions
# A list of full type names or extension IDs of extensions allowed in grpc
# side channel from backend to client.
# Corresponds to the JSON property `allowedResponseExtensions`
# @return [Array<String>]
attr_accessor :allowed_response_extensions
# A list of full type names of provided contexts.
# Corresponds to the JSON property `provided`
# @return [Array<String>]
@@ -538,6 +565,8 @@ module Google
# Update properties of this object
def update!(**args)
@allowed_request_extensions = args[:allowed_request_extensions] if args.key?(:allowed_request_extensions)
@allowed_response_extensions = args[:allowed_response_extensions] if args.key?(:allowed_response_extensions)
@provided = args[:provided] if args.key?(:provided)
@requested = args[:requested] if args.key?(:requested)
@selector = args[:selector] if args.key?(:selector)
@@ -2783,6 +2812,21 @@ module Google
# `google.rpc.context.OriginContext`.
# Available context types are defined in package
# `google.rpc.context`.
# This also provides mechanism to whitelist any protobuf message extension that
# can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
# “x-goog-ext-<extension_id>-jspb” format. For example, list any service
# specific protobuf types that can appear in grpc metadata as follows in your
# yaml file:
# Example:
# context:
# rules:
# - selector: "google.example.library.v1.LibraryService.CreateBook"
# allowed_request_extensions:
# - google.foo.v1.NewExtension
# allowed_response_extensions:
# - google.foo.v1.NewExtension
# You can also specify extension ID instead of fully qualified extension name
# here.
# Corresponds to the JSON property `context`
# @return [Google::Apis::ServiceuserV1::Context]
attr_accessor :context
@@ -518,6 +518,8 @@ module Google
class ContextRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_request_extensions, as: 'allowedRequestExtensions'
collection :allowed_response_extensions, as: 'allowedResponseExtensions'
collection :provided, as: 'provided'
collection :requested, as: 'requested'
property :selector, as: 'selector'