Autogenerated update (2018-07-11)
Update: - adexchangebuyer2_v2beta1 - ml_v1 - servicecontrol_v1
This commit is contained in:
parent
ef45bf2443
commit
b1880f786a
|
@ -316,6 +316,7 @@
|
|||
"/adexchangebuyer2:v2beta1/ServingRestriction": serving_restriction
|
||||
"/adexchangebuyer2:v2beta1/ServingRestriction/contexts": contexts
|
||||
"/adexchangebuyer2:v2beta1/ServingRestriction/contexts/context": context
|
||||
"/adexchangebuyer2:v2beta1/ServingRestriction/disapproval": disapproval
|
||||
"/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons": disapproval_reasons
|
||||
"/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons/disapproval_reason": disapproval_reason
|
||||
"/adexchangebuyer2:v2beta1/ServingRestriction/status": status
|
||||
|
@ -14933,6 +14934,34 @@
|
|||
"/cloudmonitoring:v2beta2/key": key
|
||||
"/cloudmonitoring:v2beta2/quotaUser": quota_user
|
||||
"/cloudmonitoring:v2beta2/userIp": user_ip
|
||||
"/cloudprofiler:v2/CreateProfileRequest": create_profile_request
|
||||
"/cloudprofiler:v2/CreateProfileRequest/deployment": deployment
|
||||
"/cloudprofiler:v2/CreateProfileRequest/profile": profile
|
||||
"/cloudprofiler:v2/CreateProfileRequest/profileType": profile_type
|
||||
"/cloudprofiler:v2/CreateProfileRequest/profileType/profile_type": profile_type
|
||||
"/cloudprofiler:v2/Deployment": deployment
|
||||
"/cloudprofiler:v2/Deployment/labels": labels
|
||||
"/cloudprofiler:v2/Deployment/labels/label": label
|
||||
"/cloudprofiler:v2/Deployment/projectId": project_id
|
||||
"/cloudprofiler:v2/Deployment/target": target
|
||||
"/cloudprofiler:v2/Profile": profile
|
||||
"/cloudprofiler:v2/Profile/deployment": deployment
|
||||
"/cloudprofiler:v2/Profile/duration": duration
|
||||
"/cloudprofiler:v2/Profile/labels": labels
|
||||
"/cloudprofiler:v2/Profile/labels/label": label
|
||||
"/cloudprofiler:v2/Profile/name": name
|
||||
"/cloudprofiler:v2/Profile/profileBytes": profile_bytes
|
||||
"/cloudprofiler:v2/Profile/profileType": profile_type
|
||||
"/cloudprofiler:v2/cloudprofiler.projects.profiles.create": create_profile
|
||||
"/cloudprofiler:v2/cloudprofiler.projects.profiles.create/parent": parent
|
||||
"/cloudprofiler:v2/cloudprofiler.projects.profiles.createOffline": create_project_profile_offline
|
||||
"/cloudprofiler:v2/cloudprofiler.projects.profiles.createOffline/parent": parent
|
||||
"/cloudprofiler:v2/cloudprofiler.projects.profiles.patch": patch_project_profile
|
||||
"/cloudprofiler:v2/cloudprofiler.projects.profiles.patch/name": name
|
||||
"/cloudprofiler:v2/cloudprofiler.projects.profiles.patch/updateMask": update_mask
|
||||
"/cloudprofiler:v2/fields": fields
|
||||
"/cloudprofiler:v2/key": key
|
||||
"/cloudprofiler:v2/quotaUser": quota_user
|
||||
"/cloudresourcemanager:v1/Ancestor": ancestor
|
||||
"/cloudresourcemanager:v1/Ancestor/resourceId": resource_id
|
||||
"/cloudresourcemanager:v1/AuditConfig": audit_config
|
||||
|
@ -55647,6 +55676,7 @@
|
|||
"/drive:v2/File/canReadRevisions": can_read_revisions
|
||||
"/drive:v2/File/capabilities": capabilities
|
||||
"/drive:v2/File/capabilities/canAddChildren": can_add_children
|
||||
"/drive:v2/File/capabilities/canChangeCopyRequiresWriterPermission": can_change_copy_requires_writer_permission
|
||||
"/drive:v2/File/capabilities/canChangeRestrictedDownload": can_change_restricted_download
|
||||
"/drive:v2/File/capabilities/canComment": can_comment
|
||||
"/drive:v2/File/capabilities/canCopy": can_copy
|
||||
|
@ -55663,6 +55693,7 @@
|
|||
"/drive:v2/File/capabilities/canShare": can_share
|
||||
"/drive:v2/File/capabilities/canTrash": can_trash
|
||||
"/drive:v2/File/capabilities/canUntrash": can_untrash
|
||||
"/drive:v2/File/copyRequiresWriterPermission": copy_requires_writer_permission
|
||||
"/drive:v2/File/copyable": copyable
|
||||
"/drive:v2/File/createdDate": created_date
|
||||
"/drive:v2/File/defaultOpenWithLink": default_open_with_link
|
||||
|
@ -55883,7 +55914,10 @@
|
|||
"/drive:v2/TeamDrive/backgroundImageLink": background_image_link
|
||||
"/drive:v2/TeamDrive/capabilities": capabilities
|
||||
"/drive:v2/TeamDrive/capabilities/canAddChildren": can_add_children
|
||||
"/drive:v2/TeamDrive/capabilities/canChangeCopyRequiresWriterPermissionRestriction": can_change_copy_requires_writer_permission_restriction
|
||||
"/drive:v2/TeamDrive/capabilities/canChangeDomainUsersOnlyRestriction": can_change_domain_users_only_restriction
|
||||
"/drive:v2/TeamDrive/capabilities/canChangeTeamDriveBackground": can_change_team_drive_background
|
||||
"/drive:v2/TeamDrive/capabilities/canChangeTeamMembersOnlyRestriction": can_change_team_members_only_restriction
|
||||
"/drive:v2/TeamDrive/capabilities/canComment": can_comment
|
||||
"/drive:v2/TeamDrive/capabilities/canCopy": can_copy
|
||||
"/drive:v2/TeamDrive/capabilities/canDeleteTeamDrive": can_delete_team_drive
|
||||
|
@ -55901,6 +55935,11 @@
|
|||
"/drive:v2/TeamDrive/id": id
|
||||
"/drive:v2/TeamDrive/kind": kind
|
||||
"/drive:v2/TeamDrive/name": name
|
||||
"/drive:v2/TeamDrive/restrictions": restrictions
|
||||
"/drive:v2/TeamDrive/restrictions/adminManagedRestrictions": admin_managed_restrictions
|
||||
"/drive:v2/TeamDrive/restrictions/copyRequiresWriterPermission": copy_requires_writer_permission
|
||||
"/drive:v2/TeamDrive/restrictions/domainUsersOnly": domain_users_only
|
||||
"/drive:v2/TeamDrive/restrictions/teamMembersOnly": team_members_only
|
||||
"/drive:v2/TeamDrive/themeId": theme_id
|
||||
"/drive:v2/TeamDriveList": team_drive_list
|
||||
"/drive:v2/TeamDriveList/items": items
|
||||
|
@ -56219,6 +56258,7 @@
|
|||
"/drive:v2/drive.teamdrives.list/useDomainAdminAccess": use_domain_admin_access
|
||||
"/drive:v2/drive.teamdrives.update": update_teamdrive
|
||||
"/drive:v2/drive.teamdrives.update/teamDriveId": team_drive_id
|
||||
"/drive:v2/drive.teamdrives.update/useDomainAdminAccess": use_domain_admin_access
|
||||
"/drive:v2/fields": fields
|
||||
"/drive:v2/key": key
|
||||
"/drive:v2/quotaUser": quota_user
|
||||
|
@ -56302,6 +56342,7 @@
|
|||
"/drive:v3/File/appProperties/app_property": app_property
|
||||
"/drive:v3/File/capabilities": capabilities
|
||||
"/drive:v3/File/capabilities/canAddChildren": can_add_children
|
||||
"/drive:v3/File/capabilities/canChangeCopyRequiresWriterPermission": can_change_copy_requires_writer_permission
|
||||
"/drive:v3/File/capabilities/canChangeViewersCanCopyContent": can_change_viewers_can_copy_content
|
||||
"/drive:v3/File/capabilities/canComment": can_comment
|
||||
"/drive:v3/File/capabilities/canCopy": can_copy
|
||||
|
@ -56323,6 +56364,7 @@
|
|||
"/drive:v3/File/contentHints/thumbnail": thumbnail
|
||||
"/drive:v3/File/contentHints/thumbnail/image": image
|
||||
"/drive:v3/File/contentHints/thumbnail/mimeType": mime_type
|
||||
"/drive:v3/File/copyRequiresWriterPermission": copy_requires_writer_permission
|
||||
"/drive:v3/File/createdTime": created_time
|
||||
"/drive:v3/File/description": description
|
||||
"/drive:v3/File/explicitlyTrashed": explicitly_trashed
|
||||
|
@ -56484,7 +56526,10 @@
|
|||
"/drive:v3/TeamDrive/backgroundImageLink": background_image_link
|
||||
"/drive:v3/TeamDrive/capabilities": capabilities
|
||||
"/drive:v3/TeamDrive/capabilities/canAddChildren": can_add_children
|
||||
"/drive:v3/TeamDrive/capabilities/canChangeCopyRequiresWriterPermissionRestriction": can_change_copy_requires_writer_permission_restriction
|
||||
"/drive:v3/TeamDrive/capabilities/canChangeDomainUsersOnlyRestriction": can_change_domain_users_only_restriction
|
||||
"/drive:v3/TeamDrive/capabilities/canChangeTeamDriveBackground": can_change_team_drive_background
|
||||
"/drive:v3/TeamDrive/capabilities/canChangeTeamMembersOnlyRestriction": can_change_team_members_only_restriction
|
||||
"/drive:v3/TeamDrive/capabilities/canComment": can_comment
|
||||
"/drive:v3/TeamDrive/capabilities/canCopy": can_copy
|
||||
"/drive:v3/TeamDrive/capabilities/canDeleteTeamDrive": can_delete_team_drive
|
||||
|
@ -56502,6 +56547,11 @@
|
|||
"/drive:v3/TeamDrive/id": id
|
||||
"/drive:v3/TeamDrive/kind": kind
|
||||
"/drive:v3/TeamDrive/name": name
|
||||
"/drive:v3/TeamDrive/restrictions": restrictions
|
||||
"/drive:v3/TeamDrive/restrictions/adminManagedRestrictions": admin_managed_restrictions
|
||||
"/drive:v3/TeamDrive/restrictions/copyRequiresWriterPermission": copy_requires_writer_permission
|
||||
"/drive:v3/TeamDrive/restrictions/domainUsersOnly": domain_users_only
|
||||
"/drive:v3/TeamDrive/restrictions/teamMembersOnly": team_members_only
|
||||
"/drive:v3/TeamDrive/themeId": theme_id
|
||||
"/drive:v3/TeamDriveList": team_drive_list
|
||||
"/drive:v3/TeamDriveList/kind": kind
|
||||
|
@ -56687,6 +56737,7 @@
|
|||
"/drive:v3/drive.teamdrives.list/useDomainAdminAccess": use_domain_admin_access
|
||||
"/drive:v3/drive.teamdrives.update": update_teamdrive
|
||||
"/drive:v3/drive.teamdrives.update/teamDriveId": team_drive_id
|
||||
"/drive:v3/drive.teamdrives.update/useDomainAdminAccess": use_domain_admin_access
|
||||
"/drive:v3/fields": fields
|
||||
"/drive:v3/key": key
|
||||
"/drive:v3/quotaUser": quota_user
|
||||
|
@ -70675,6 +70726,7 @@
|
|||
"/servicecontrol:v1/Resource/type": type
|
||||
"/servicecontrol:v1/ResourceInfo": resource_info
|
||||
"/servicecontrol:v1/ResourceInfo/resourceContainer": resource_container
|
||||
"/servicecontrol:v1/ResourceInfo/resourceLocation": resource_location
|
||||
"/servicecontrol:v1/ResourceInfo/resourceName": resource_name
|
||||
"/servicecontrol:v1/ResourceLocation": resource_location
|
||||
"/servicecontrol:v1/ResourceLocation/currentLocations": current_locations
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
|
||||
module Adexchangebuyer2V2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20180614'
|
||||
REVISION = '20180709'
|
||||
|
||||
# Manage your Ad Exchange buyer account configuration
|
||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||
|
|
|
@ -2077,11 +2077,19 @@ module Google
|
|||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
|
||||
attr_accessor :contexts
|
||||
|
||||
# @OutputOnly The reason and details for a disapproval.
|
||||
# Corresponds to the JSON property `disapproval`
|
||||
# @return [Google::Apis::Adexchangebuyer2V2beta1::Disapproval]
|
||||
attr_accessor :disapproval
|
||||
|
||||
# Any disapprovals bound to this restriction.
|
||||
# Only present if status=DISAPPROVED.
|
||||
# Can be used to filter the response of the
|
||||
# creatives.list
|
||||
# method.
|
||||
# Deprecated; please use
|
||||
# disapproval
|
||||
# field instead.
|
||||
# Corresponds to the JSON property `disapprovalReasons`
|
||||
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>]
|
||||
attr_accessor :disapproval_reasons
|
||||
|
@ -2099,6 +2107,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@contexts = args[:contexts] if args.key?(:contexts)
|
||||
@disapproval = args[:disapproval] if args.key?(:disapproval)
|
||||
@disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
end
|
||||
|
|
|
@ -919,6 +919,8 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
||||
|
||||
property :disapproval, as: 'disapproval', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
|
||||
|
||||
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
|
||||
|
||||
property :status, as: 'status'
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/cloudprofiler_v2/service.rb'
|
||||
require 'google/apis/cloudprofiler_v2/classes.rb'
|
||||
require 'google/apis/cloudprofiler_v2/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Stackdriver Profiler API
|
||||
#
|
||||
# Allows Google services manage the continuous profiling information.
|
||||
#
|
||||
# @see https://cloud.google.com/
|
||||
module CloudprofilerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View and write monitoring data for all of your Google and third-party Cloud and API projects
|
||||
AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
|
||||
|
||||
# Publish metric data to your Google Cloud projects
|
||||
AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,167 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module CloudprofilerV2
|
||||
|
||||
# CreateProfileRequest describes a profile resource online creation request.
|
||||
# The deployment field must be populated. The profile_type specifies the list
|
||||
# of profile types supported by the agent. The creation call will hang until a
|
||||
# profile of one of these types needs to be collected.
|
||||
class CreateProfileRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Deployment contains the deployment identification information.
|
||||
# Corresponds to the JSON property `deployment`
|
||||
# @return [Google::Apis::CloudprofilerV2::Deployment]
|
||||
attr_accessor :deployment
|
||||
|
||||
# Profile resource.
|
||||
# Corresponds to the JSON property `profile`
|
||||
# @return [Google::Apis::CloudprofilerV2::Profile]
|
||||
attr_accessor :profile
|
||||
|
||||
# One or more profile types that the agent is capable of providing.
|
||||
# Corresponds to the JSON property `profileType`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :profile_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@deployment = args[:deployment] if args.key?(:deployment)
|
||||
@profile = args[:profile] if args.key?(:profile)
|
||||
@profile_type = args[:profile_type] if args.key?(:profile_type)
|
||||
end
|
||||
end
|
||||
|
||||
# Deployment contains the deployment identification information.
|
||||
class Deployment
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Labels identify the deployment within the user universe and same target.
|
||||
# Validation regex for label names: `^[a-z0-9]([a-z0-9-]`0,61`[a-z0-9])?$`.
|
||||
# Value for an individual label must be <= 512 bytes, the total
|
||||
# size of all label names and values must be <= 1024 bytes.
|
||||
# Label named "language" can be used to record the programming language of
|
||||
# the profiled deployment. The standard choices for the value include "java",
|
||||
# "go", "python", "ruby", "nodejs", "php", "dotnet".
|
||||
# For deployments running on Google Cloud Platform, "zone" or "region" label
|
||||
# should be present describing the deployment location. An example of a zone
|
||||
# is "us-central1-a", an example of a region is "us-central1" or
|
||||
# "us-central".
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Project ID is the ID of a cloud project.
|
||||
# Validation regex: `^a-z`4,61`[a-z0-9]$`.
|
||||
# Corresponds to the JSON property `projectId`
|
||||
# @return [String]
|
||||
attr_accessor :project_id
|
||||
|
||||
# Target is the service name used to group related deployments:
|
||||
# * Service name for GAE Flex / Standard.
|
||||
# * Cluster and container name for GKE.
|
||||
# * User-specified string for direct GCE profiling (e.g. Java).
|
||||
# * Job name for Dataflow.
|
||||
# Validation regex: `^[a-z]([-a-z0-9_.]`0,253`[a-z0-9])?$`.
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@project_id = args[:project_id] if args.key?(:project_id)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
end
|
||||
end
|
||||
|
||||
# Profile resource.
|
||||
class Profile
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Deployment contains the deployment identification information.
|
||||
# Corresponds to the JSON property `deployment`
|
||||
# @return [Google::Apis::CloudprofilerV2::Deployment]
|
||||
attr_accessor :deployment
|
||||
|
||||
# Duration of the profiling session.
|
||||
# Input (for the offline mode) or output (for the online mode).
|
||||
# The field represents requested profiling duration. It may slightly differ
|
||||
# from the effective profiling duration, which is recorded in the profile
|
||||
# data, in case the profiling can't be stopped immediately (e.g. in case
|
||||
# stopping the profiling is handled asynchronously).
|
||||
# Corresponds to the JSON property `duration`
|
||||
# @return [String]
|
||||
attr_accessor :duration
|
||||
|
||||
# Input only. Labels associated to this specific profile. These labels will
|
||||
# get merged with the deployment labels for the final data set. See
|
||||
# documentation on deployment labels for validation rules and limits.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Output only. Opaque, server-assigned, unique ID for this profile.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Input only. Profile bytes, as a gzip compressed serialized proto, the
|
||||
# format is https://github.com/google/pprof/blob/master/proto/profile.proto.
|
||||
# Corresponds to the JSON property `profileBytes`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :profile_bytes
|
||||
|
||||
# Type of profile.
|
||||
# For offline mode, this must be specified when creating the profile. For
|
||||
# online mode it is assigned and returned by the server.
|
||||
# Corresponds to the JSON property `profileType`
|
||||
# @return [String]
|
||||
attr_accessor :profile_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@deployment = args[:deployment] if args.key?(:deployment)
|
||||
@duration = args[:duration] if args.key?(:duration)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@profile_bytes = args[:profile_bytes] if args.key?(:profile_bytes)
|
||||
@profile_type = args[:profile_type] if args.key?(:profile_type)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,77 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module CloudprofilerV2
|
||||
|
||||
class CreateProfileRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Deployment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Profile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateProfileRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deployment, as: 'deployment', class: Google::Apis::CloudprofilerV2::Deployment, decorator: Google::Apis::CloudprofilerV2::Deployment::Representation
|
||||
|
||||
property :profile, as: 'profile', class: Google::Apis::CloudprofilerV2::Profile, decorator: Google::Apis::CloudprofilerV2::Profile::Representation
|
||||
|
||||
collection :profile_type, as: 'profileType'
|
||||
end
|
||||
end
|
||||
|
||||
class Deployment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :labels, as: 'labels'
|
||||
property :project_id, as: 'projectId'
|
||||
property :target, as: 'target'
|
||||
end
|
||||
end
|
||||
|
||||
class Profile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :deployment, as: 'deployment', class: Google::Apis::CloudprofilerV2::Deployment, decorator: Google::Apis::CloudprofilerV2::Deployment::Representation
|
||||
|
||||
property :duration, as: 'duration'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :profile_bytes, :base64 => true, as: 'profileBytes'
|
||||
property :profile_type, as: 'profileType'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,179 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module CloudprofilerV2
|
||||
# Stackdriver Profiler API
|
||||
#
|
||||
# Allows Google services manage the continuous profiling information.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/cloudprofiler_v2'
|
||||
#
|
||||
# Cloudprofiler = Google::Apis::CloudprofilerV2 # Alias the module
|
||||
# service = Cloudprofiler::CloudProfilerService.new
|
||||
#
|
||||
# @see https://cloud.google.com/
|
||||
class CloudProfilerService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://cloudprofiler.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# CreateProfile creates a new profile resource in the online mode.
|
||||
# The server ensures that the new profiles are created at a constant rate per
|
||||
# deployment, so the creation request may hang for some time until the next
|
||||
# profile session is available.
|
||||
# The request may fail with ABORTED error if the creation is not available
|
||||
# within ~1m, the response will indicate the duration of the backoff the
|
||||
# client should take before attempting creating a profile again. The backoff
|
||||
# duration is returned in google.rpc.RetryInfo extension on the response
|
||||
# status. To a gRPC client, the extension will be return as a
|
||||
# binary-serialized proto in the trailing metadata item named
|
||||
# "google.rpc.retryinfo-bin".
|
||||
# @param [String] parent
|
||||
# Parent project to create the profile in.
|
||||
# @param [Google::Apis::CloudprofilerV2::CreateProfileRequest] create_profile_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::CloudprofilerV2::Profile] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudprofilerV2::Profile]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_profile(parent, create_profile_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v2/{+parent}/profiles', options)
|
||||
command.request_representation = Google::Apis::CloudprofilerV2::CreateProfileRequest::Representation
|
||||
command.request_object = create_profile_request_object
|
||||
command.response_representation = Google::Apis::CloudprofilerV2::Profile::Representation
|
||||
command.response_class = Google::Apis::CloudprofilerV2::Profile
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# CreateOfflineProfile creates a new profile resource in the offline mode.
|
||||
# The client provides the profile to create along with the profile bytes, the
|
||||
# server records it.
|
||||
# @param [String] parent
|
||||
# Parent project to create the profile in.
|
||||
# @param [Google::Apis::CloudprofilerV2::Profile] profile_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::CloudprofilerV2::Profile] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudprofilerV2::Profile]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_profile_offline(parent, profile_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v2/{+parent}/profiles:createOffline', options)
|
||||
command.request_representation = Google::Apis::CloudprofilerV2::Profile::Representation
|
||||
command.request_object = profile_object
|
||||
command.response_representation = Google::Apis::CloudprofilerV2::Profile::Representation
|
||||
command.response_class = Google::Apis::CloudprofilerV2::Profile
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# UpdateProfile updates the profile bytes and labels on the profile resource
|
||||
# created in the online mode. Updating the bytes for profiles created in the
|
||||
# offline mode is currently not supported: the profile content must be
|
||||
# provided at the time of the profile creation.
|
||||
# @param [String] name
|
||||
# Output only. Opaque, server-assigned, unique ID for this profile.
|
||||
# @param [Google::Apis::CloudprofilerV2::Profile] profile_object
|
||||
# @param [String] update_mask
|
||||
# Field mask used to specify the fields to be overwritten. Currently only
|
||||
# profile_bytes and labels fields are supported by UpdateProfile, so only
|
||||
# those fields can be specified in the mask. When no mask is provided, all
|
||||
# fields are overwritten.
|
||||
# @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::CloudprofilerV2::Profile] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudprofilerV2::Profile]
|
||||
#
|
||||
# @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_profile(name, profile_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v2/{+name}', options)
|
||||
command.request_representation = Google::Apis::CloudprofilerV2::Profile::Representation
|
||||
command.request_object = profile_object
|
||||
command.response_representation = Google::Apis::CloudprofilerV2::Profile::Representation
|
||||
command.response_class = Google::Apis::CloudprofilerV2::Profile
|
||||
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
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -2759,24 +2759,24 @@ module Google
|
|||
attr_accessor :additional_charge_summaries
|
||||
|
||||
# [required] Customer balance on this invoice. A positive amount means the
|
||||
# customer is paying, a negative one means the customer is receiving money. Note
|
||||
# that it must always be true that merchant_balance + customer_balance +
|
||||
# google_balance = 0.
|
||||
# customer is paying, a negative one means the customer is receiving money. Note:
|
||||
# the sum of merchant_balance, customer_balance and google_balance must always
|
||||
# be zero.
|
||||
# Corresponds to the JSON property `customerBalance`
|
||||
# @return [Google::Apis::ContentV2::Amount]
|
||||
attr_accessor :customer_balance
|
||||
|
||||
# [required] Google balance on this invoice. A positive amount means Google is
|
||||
# paying, a negative one means Google is receiving money. Note that it must
|
||||
# always be true that merchant_balance + customer_balance + google_balance = 0.
|
||||
# paying, a negative one means Google is receiving money. Note: the sum of
|
||||
# merchant_balance, customer_balance and google_balance must always be zero.
|
||||
# Corresponds to the JSON property `googleBalance`
|
||||
# @return [Google::Apis::ContentV2::Amount]
|
||||
attr_accessor :google_balance
|
||||
|
||||
# [required] Merchant balance on this invoice. A positive amount means the
|
||||
# merchant is paying, a negative one means the merchant is receiving money. Note
|
||||
# that it must always be true that merchant_balance + customer_balance +
|
||||
# google_balance = 0.
|
||||
# merchant is paying, a negative one means the merchant is receiving money. Note:
|
||||
# the sum of merchant_balance, customer_balance and google_balance must always
|
||||
# be zero.
|
||||
# Corresponds to the JSON property `merchantBalance`
|
||||
# @return [Google::Apis::ContentV2::Amount]
|
||||
attr_accessor :merchant_balance
|
||||
|
@ -5806,7 +5806,7 @@ module Google
|
|||
attr_accessor :carrier
|
||||
|
||||
# Date on which the shipment has been delivered, in ISO 8601 format. Optional
|
||||
# and can be provided only if
|
||||
# and can be provided only if status is delivered.
|
||||
# Corresponds to the JSON property `deliveryDate`
|
||||
# @return [String]
|
||||
attr_accessor :delivery_date
|
||||
|
@ -6686,7 +6686,7 @@ module Google
|
|||
attr_accessor :carrier
|
||||
|
||||
# Date on which the shipment has been delivered, in ISO 8601 format. Optional
|
||||
# and can be provided only if
|
||||
# and can be provided only if status is delivered.
|
||||
# Corresponds to the JSON property `deliveryDate`
|
||||
# @return [String]
|
||||
attr_accessor :delivery_date
|
||||
|
|
|
@ -119,24 +119,24 @@ module Google
|
|||
attr_accessor :additional_charge_summaries
|
||||
|
||||
# [required] Customer balance on this invoice. A positive amount means the
|
||||
# customer is paying, a negative one means the customer is receiving money. Note
|
||||
# that it must always be true that merchant_balance + customer_balance +
|
||||
# google_balance = 0.
|
||||
# customer is paying, a negative one means the customer is receiving money. Note:
|
||||
# the sum of merchant_balance, customer_balance and google_balance must always
|
||||
# be zero.
|
||||
# Corresponds to the JSON property `customerBalance`
|
||||
# @return [Google::Apis::ContentV2sandbox::Amount]
|
||||
attr_accessor :customer_balance
|
||||
|
||||
# [required] Google balance on this invoice. A positive amount means Google is
|
||||
# paying, a negative one means Google is receiving money. Note that it must
|
||||
# always be true that merchant_balance + customer_balance + google_balance = 0.
|
||||
# paying, a negative one means Google is receiving money. Note: the sum of
|
||||
# merchant_balance, customer_balance and google_balance must always be zero.
|
||||
# Corresponds to the JSON property `googleBalance`
|
||||
# @return [Google::Apis::ContentV2sandbox::Amount]
|
||||
attr_accessor :google_balance
|
||||
|
||||
# [required] Merchant balance on this invoice. A positive amount means the
|
||||
# merchant is paying, a negative one means the merchant is receiving money. Note
|
||||
# that it must always be true that merchant_balance + customer_balance +
|
||||
# google_balance = 0.
|
||||
# merchant is paying, a negative one means the merchant is receiving money. Note:
|
||||
# the sum of merchant_balance, customer_balance and google_balance must always
|
||||
# be zero.
|
||||
# Corresponds to the JSON property `merchantBalance`
|
||||
# @return [Google::Apis::ContentV2sandbox::Amount]
|
||||
attr_accessor :merchant_balance
|
||||
|
@ -2565,7 +2565,7 @@ module Google
|
|||
attr_accessor :carrier
|
||||
|
||||
# Date on which the shipment has been delivered, in ISO 8601 format. Optional
|
||||
# and can be provided only if
|
||||
# and can be provided only if status is delivered.
|
||||
# Corresponds to the JSON property `deliveryDate`
|
||||
# @return [String]
|
||||
attr_accessor :delivery_date
|
||||
|
@ -3445,7 +3445,7 @@ module Google
|
|||
attr_accessor :carrier
|
||||
|
||||
# Date on which the shipment has been delivered, in ISO 8601 format. Optional
|
||||
# and can be provided only if
|
||||
# and can be provided only if status is delivered.
|
||||
# Corresponds to the JSON property `deliveryDate`
|
||||
# @return [String]
|
||||
attr_accessor :delivery_date
|
||||
|
|
|
@ -1310,6 +1310,13 @@ module Google
|
|||
# @return [Google::Apis::DriveV2::File::Capabilities]
|
||||
attr_accessor :capabilities
|
||||
|
||||
# Whether the options to copy, print, or download this file, should be disabled
|
||||
# for readers and commenters.
|
||||
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
||||
# @return [Boolean]
|
||||
attr_accessor :copy_requires_writer_permission
|
||||
alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
|
||||
|
||||
# Deprecated: use capabilities/canCopy.
|
||||
# Corresponds to the JSON property `copyable`
|
||||
# @return [Boolean]
|
||||
|
@ -1685,6 +1692,7 @@ module Google
|
|||
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
||||
@can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
|
||||
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
||||
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
||||
@copyable = args[:copyable] if args.key?(:copyable)
|
||||
@created_date = args[:created_date] if args.key?(:created_date)
|
||||
@default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link)
|
||||
|
@ -1760,7 +1768,14 @@ module Google
|
|||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the current user can change the restricted download label of this file.
|
||||
# Whether the current user can change the copyRequiresWriterPermission
|
||||
# restriction of this file.
|
||||
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermission`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_copy_requires_writer_permission
|
||||
alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
|
||||
|
||||
# Deprecated
|
||||
# Corresponds to the JSON property `canChangeRestrictedDownload`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_restricted_download
|
||||
|
@ -1874,6 +1889,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
||||
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
|
||||
@can_change_restricted_download = args[:can_change_restricted_download] if args.key?(:can_change_restricted_download)
|
||||
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
||||
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
||||
|
@ -2101,8 +2117,7 @@ module Google
|
|||
attr_accessor :modified
|
||||
alias_method :modified?, :modified
|
||||
|
||||
# Whether viewers and commenters are prevented from downloading, printing, and
|
||||
# copying this file.
|
||||
# Deprecated - use copyRequiresWriterPermission instead.
|
||||
# Corresponds to the JSON property `restricted`
|
||||
# @return [Boolean]
|
||||
attr_accessor :restricted
|
||||
|
@ -2984,8 +2999,8 @@ module Google
|
|||
# @return [DateTime]
|
||||
attr_accessor :created_date
|
||||
|
||||
# The ID of this Team Drive which is also the ID of the top level folder for
|
||||
# this Team Drive.
|
||||
# The ID of this Team Drive which is also the ID of the top level folder of this
|
||||
# Team Drive.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
@ -3000,6 +3015,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A set of restrictions that apply to this Team Drive or items inside this Team
|
||||
# Drive.
|
||||
# Corresponds to the JSON property `restrictions`
|
||||
# @return [Google::Apis::DriveV2::TeamDrive::Restrictions]
|
||||
attr_accessor :restrictions
|
||||
|
||||
# The ID of the theme from which the background image and color will be set. The
|
||||
# set of possible teamDriveThemes can be retrieved from a drive.about.get
|
||||
# response. When not specified on a drive.teamdrives.insert request, a random
|
||||
|
@ -3024,6 +3045,7 @@ module Google
|
|||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
||||
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
||||
end
|
||||
|
||||
|
@ -3087,12 +3109,33 @@ module Google
|
|||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the current user can change the copyRequiresWriterPermission
|
||||
# restriction of this Team Drive.
|
||||
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_copy_requires_writer_permission_restriction
|
||||
alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
|
||||
|
||||
# Whether the current user can change the domainUsersOnly restriction of this
|
||||
# Team Drive.
|
||||
# Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_domain_users_only_restriction
|
||||
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
||||
|
||||
# Whether the current user can change the background of this Team Drive.
|
||||
# Corresponds to the JSON property `canChangeTeamDriveBackground`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_team_drive_background
|
||||
alias_method :can_change_team_drive_background?, :can_change_team_drive_background
|
||||
|
||||
# Whether the current user can change the teamMembersOnly restriction of this
|
||||
# Team Drive.
|
||||
# Corresponds to the JSON property `canChangeTeamMembersOnlyRestriction`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_team_members_only_restriction
|
||||
alias_method :can_change_team_members_only_restriction?, :can_change_team_members_only_restriction
|
||||
|
||||
# Whether the current user can comment on files in this Team Drive.
|
||||
# Corresponds to the JSON property `canComment`
|
||||
# @return [Boolean]
|
||||
|
@ -3175,7 +3218,10 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
||||
@can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
|
||||
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
||||
@can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
|
||||
@can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
|
||||
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
||||
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
||||
@can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
|
||||
|
@ -3190,6 +3236,56 @@ module Google
|
|||
@can_share = args[:can_share] if args.key?(:can_share)
|
||||
end
|
||||
end
|
||||
|
||||
# A set of restrictions that apply to this Team Drive or items inside this Team
|
||||
# Drive.
|
||||
class Restrictions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether administrative privileges on this Team Drive are required to modify
|
||||
# restrictions.
|
||||
# Corresponds to the JSON property `adminManagedRestrictions`
|
||||
# @return [Boolean]
|
||||
attr_accessor :admin_managed_restrictions
|
||||
alias_method :admin_managed_restrictions?, :admin_managed_restrictions
|
||||
|
||||
# Whether the options to copy, print, or download files inside this Team Drive,
|
||||
# should be disabled for readers and commenters. When this restriction is set to
|
||||
# true, it will override the similarly named field to true for any file inside
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
||||
# @return [Boolean]
|
||||
attr_accessor :copy_requires_writer_permission
|
||||
alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
|
||||
|
||||
# Whether access to this Team Drive and items inside this Team Drive is
|
||||
# restricted to users of the domain to which this Team Drive belongs. This
|
||||
# restriction may be overridden by other sharing policies controlled outside of
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `domainUsersOnly`
|
||||
# @return [Boolean]
|
||||
attr_accessor :domain_users_only
|
||||
alias_method :domain_users_only?, :domain_users_only
|
||||
|
||||
# Whether access to items inside this Team Drive is restricted to members of
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `teamMembersOnly`
|
||||
# @return [Boolean]
|
||||
attr_accessor :team_members_only
|
||||
alias_method :team_members_only?, :team_members_only
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
||||
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
||||
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
||||
@team_members_only = args[:team_members_only] if args.key?(:team_members_only)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# A list of Team Drives.
|
||||
|
|
|
@ -294,6 +294,12 @@ module Google
|
|||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Restrictions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
@ -632,6 +638,7 @@ module Google
|
|||
property :can_read_revisions, as: 'canReadRevisions'
|
||||
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::File::Capabilities, decorator: Google::Apis::DriveV2::File::Capabilities::Representation
|
||||
|
||||
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
||||
property :copyable, as: 'copyable'
|
||||
property :created_date, as: 'createdDate', type: DateTime
|
||||
|
||||
|
@ -719,6 +726,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_add_children, as: 'canAddChildren'
|
||||
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
|
||||
property :can_change_restricted_download, as: 'canChangeRestrictedDownload'
|
||||
property :can_comment, as: 'canComment'
|
||||
property :can_copy, as: 'canCopy'
|
||||
|
@ -996,6 +1004,8 @@ module Google
|
|||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV2::TeamDrive::Restrictions, decorator: Google::Apis::DriveV2::TeamDrive::Restrictions::Representation
|
||||
|
||||
property :theme_id, as: 'themeId'
|
||||
end
|
||||
|
||||
|
@ -1013,7 +1023,10 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_add_children, as: 'canAddChildren'
|
||||
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
||||
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
||||
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
||||
property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
|
||||
property :can_comment, as: 'canComment'
|
||||
property :can_copy, as: 'canCopy'
|
||||
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
||||
|
@ -1028,6 +1041,16 @@ module Google
|
|||
property :can_share, as: 'canShare'
|
||||
end
|
||||
end
|
||||
|
||||
class Restrictions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
||||
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
||||
property :domain_users_only, as: 'domainUsersOnly'
|
||||
property :team_members_only, as: 'teamMembersOnly'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class TeamDriveList
|
||||
|
|
|
@ -1742,9 +1742,9 @@ module Google
|
|||
# @param [Boolean] supports_team_drives
|
||||
# Whether the requesting application supports Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1784,9 +1784,9 @@ module Google
|
|||
# @param [Boolean] supports_team_drives
|
||||
# Whether the requesting application supports Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1865,9 +1865,9 @@ module Google
|
|||
# @param [Boolean] supports_team_drives
|
||||
# Whether the requesting application supports Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1917,9 +1917,9 @@ module Google
|
|||
# @param [Boolean] supports_team_drives
|
||||
# Whether the requesting application supports Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1968,9 +1968,9 @@ module Google
|
|||
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
||||
# Does nothing if the specified role is not 'owner'.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -2022,9 +2022,9 @@ module Google
|
|||
# Whether changing a role to 'owner' downgrades the current owners to writers.
|
||||
# Does nothing if the specified role is not 'owner'.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -2859,9 +2859,9 @@ module Google
|
|||
# @param [String] team_drive_id
|
||||
# The ID of the Team Drive
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the Team Drive belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the Team Drive belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -2941,9 +2941,8 @@ module Google
|
|||
# @param [String] q
|
||||
# Query string for searching Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then all Team Drives of the domain in which the
|
||||
# requester is an administrator are returned.
|
||||
# Issue the request as a domain administrator; if set to true, then all Team
|
||||
# Drives of the domain in which the requester is an administrator are returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -2981,6 +2980,9 @@ module Google
|
|||
# @param [String] team_drive_id
|
||||
# The ID of the Team Drive
|
||||
# @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Issue the request as a domain administrator; if set to true, then all Team
|
||||
# Drives of the domain in which the requester is an administrator are returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -3000,13 +3002,14 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def update_teamdrive(team_drive_id, team_drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
|
||||
command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
||||
command.request_object = team_drive_object
|
||||
command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
|
||||
command.response_class = Google::Apis::DriveV2::TeamDrive
|
||||
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
||||
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
|
|
|
@ -538,6 +538,13 @@ module Google
|
|||
# @return [Google::Apis::DriveV3::File::ContentHints]
|
||||
attr_accessor :content_hints
|
||||
|
||||
# Whether the options to copy, print, or download this file, should be disabled
|
||||
# for readers and commenters.
|
||||
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
||||
# @return [Boolean]
|
||||
attr_accessor :copy_requires_writer_permission
|
||||
alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
|
||||
|
||||
# The time at which the file was created (RFC 3339 date-time).
|
||||
# Corresponds to the JSON property `createdTime`
|
||||
# @return [DateTime]
|
||||
|
@ -817,8 +824,7 @@ module Google
|
|||
# @return [DateTime]
|
||||
attr_accessor :viewed_by_me_time
|
||||
|
||||
# Whether users with only reader or commenter permission can copy the file's
|
||||
# content. This affects copy, download, and print operations.
|
||||
# Deprecated - use copyRequiresWriterPermission instead.
|
||||
# Corresponds to the JSON property `viewersCanCopyContent`
|
||||
# @return [Boolean]
|
||||
attr_accessor :viewers_can_copy_content
|
||||
|
@ -851,6 +857,7 @@ module Google
|
|||
@app_properties = args[:app_properties] if args.key?(:app_properties)
|
||||
@capabilities = args[:capabilities] if args.key?(:capabilities)
|
||||
@content_hints = args[:content_hints] if args.key?(:content_hints)
|
||||
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
||||
@created_time = args[:created_time] if args.key?(:created_time)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
|
||||
|
@ -914,8 +921,14 @@ module Google
|
|||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the current user can change whether viewers can copy the contents of
|
||||
# this file.
|
||||
# Whether the current user can change the copyRequiresWriterPermission
|
||||
# restriction of this file.
|
||||
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermission`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_copy_requires_writer_permission
|
||||
alias_method :can_change_copy_requires_writer_permission?, :can_change_copy_requires_writer_permission
|
||||
|
||||
# Deprecated
|
||||
# Corresponds to the JSON property `canChangeViewersCanCopyContent`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_viewers_can_copy_content
|
||||
|
@ -1029,6 +1042,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
||||
@can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
|
||||
@can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
|
||||
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
||||
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
||||
|
@ -1883,8 +1897,8 @@ module Google
|
|||
# @return [DateTime]
|
||||
attr_accessor :created_time
|
||||
|
||||
# The ID of this Team Drive which is also the ID of the top level folder for
|
||||
# this Team Drive.
|
||||
# The ID of this Team Drive which is also the ID of the top level folder of this
|
||||
# Team Drive.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
@ -1900,6 +1914,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A set of restrictions that apply to this Team Drive or items inside this Team
|
||||
# Drive.
|
||||
# Corresponds to the JSON property `restrictions`
|
||||
# @return [Google::Apis::DriveV3::TeamDrive::Restrictions]
|
||||
attr_accessor :restrictions
|
||||
|
||||
# The ID of the theme from which the background image and color will be set. The
|
||||
# set of possible teamDriveThemes can be retrieved from a drive.about.get
|
||||
# response. When not specified on a drive.teamdrives.create request, a random
|
||||
|
@ -1924,6 +1944,7 @@ module Google
|
|||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@restrictions = args[:restrictions] if args.key?(:restrictions)
|
||||
@theme_id = args[:theme_id] if args.key?(:theme_id)
|
||||
end
|
||||
|
||||
|
@ -1987,12 +2008,33 @@ module Google
|
|||
attr_accessor :can_add_children
|
||||
alias_method :can_add_children?, :can_add_children
|
||||
|
||||
# Whether the current user can change the copyRequiresWriterPermission
|
||||
# restriction of this Team Drive.
|
||||
# Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_copy_requires_writer_permission_restriction
|
||||
alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
|
||||
|
||||
# Whether the current user can change the domainUsersOnly restriction of this
|
||||
# Team Drive.
|
||||
# Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_domain_users_only_restriction
|
||||
alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
|
||||
|
||||
# Whether the current user can change the background of this Team Drive.
|
||||
# Corresponds to the JSON property `canChangeTeamDriveBackground`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_team_drive_background
|
||||
alias_method :can_change_team_drive_background?, :can_change_team_drive_background
|
||||
|
||||
# Whether the current user can change the teamMembersOnly restriction of this
|
||||
# Team Drive.
|
||||
# Corresponds to the JSON property `canChangeTeamMembersOnlyRestriction`
|
||||
# @return [Boolean]
|
||||
attr_accessor :can_change_team_members_only_restriction
|
||||
alias_method :can_change_team_members_only_restriction?, :can_change_team_members_only_restriction
|
||||
|
||||
# Whether the current user can comment on files in this Team Drive.
|
||||
# Corresponds to the JSON property `canComment`
|
||||
# @return [Boolean]
|
||||
|
@ -2075,7 +2117,10 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@can_add_children = args[:can_add_children] if args.key?(:can_add_children)
|
||||
@can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
|
||||
@can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
|
||||
@can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
|
||||
@can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
|
||||
@can_comment = args[:can_comment] if args.key?(:can_comment)
|
||||
@can_copy = args[:can_copy] if args.key?(:can_copy)
|
||||
@can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
|
||||
|
@ -2090,6 +2135,56 @@ module Google
|
|||
@can_share = args[:can_share] if args.key?(:can_share)
|
||||
end
|
||||
end
|
||||
|
||||
# A set of restrictions that apply to this Team Drive or items inside this Team
|
||||
# Drive.
|
||||
class Restrictions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether administrative privileges on this Team Drive are required to modify
|
||||
# restrictions.
|
||||
# Corresponds to the JSON property `adminManagedRestrictions`
|
||||
# @return [Boolean]
|
||||
attr_accessor :admin_managed_restrictions
|
||||
alias_method :admin_managed_restrictions?, :admin_managed_restrictions
|
||||
|
||||
# Whether the options to copy, print, or download files inside this Team Drive,
|
||||
# should be disabled for readers and commenters. When this restriction is set to
|
||||
# true, it will override the similarly named field to true for any file inside
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `copyRequiresWriterPermission`
|
||||
# @return [Boolean]
|
||||
attr_accessor :copy_requires_writer_permission
|
||||
alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
|
||||
|
||||
# Whether access to this Team Drive and items inside this Team Drive is
|
||||
# restricted to users of the domain to which this Team Drive belongs. This
|
||||
# restriction may be overridden by other sharing policies controlled outside of
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `domainUsersOnly`
|
||||
# @return [Boolean]
|
||||
attr_accessor :domain_users_only
|
||||
alias_method :domain_users_only?, :domain_users_only
|
||||
|
||||
# Whether access to items inside this Team Drive is restricted to members of
|
||||
# this Team Drive.
|
||||
# Corresponds to the JSON property `teamMembersOnly`
|
||||
# @return [Boolean]
|
||||
attr_accessor :team_members_only
|
||||
alias_method :team_members_only?, :team_members_only
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
|
||||
@copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
|
||||
@domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
|
||||
@team_members_only = args[:team_members_only] if args.key?(:team_members_only)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# A list of Team Drives.
|
||||
|
|
|
@ -192,6 +192,12 @@ module Google
|
|||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Restrictions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
@ -348,6 +354,7 @@ module Google
|
|||
|
||||
property :content_hints, as: 'contentHints', class: Google::Apis::DriveV3::File::ContentHints, decorator: Google::Apis::DriveV3::File::ContentHints::Representation
|
||||
|
||||
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
||||
property :created_time, as: 'createdTime', type: DateTime
|
||||
|
||||
property :description, as: 'description'
|
||||
|
@ -416,6 +423,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_add_children, as: 'canAddChildren'
|
||||
property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
|
||||
property :can_change_viewers_can_copy_content, as: 'canChangeViewersCanCopyContent'
|
||||
property :can_comment, as: 'canComment'
|
||||
property :can_copy, as: 'canCopy'
|
||||
|
@ -639,6 +647,8 @@ module Google
|
|||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :name, as: 'name'
|
||||
property :restrictions, as: 'restrictions', class: Google::Apis::DriveV3::TeamDrive::Restrictions, decorator: Google::Apis::DriveV3::TeamDrive::Restrictions::Representation
|
||||
|
||||
property :theme_id, as: 'themeId'
|
||||
end
|
||||
|
||||
|
@ -656,7 +666,10 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :can_add_children, as: 'canAddChildren'
|
||||
property :can_change_copy_requires_writer_permission_restriction, as: 'canChangeCopyRequiresWriterPermissionRestriction'
|
||||
property :can_change_domain_users_only_restriction, as: 'canChangeDomainUsersOnlyRestriction'
|
||||
property :can_change_team_drive_background, as: 'canChangeTeamDriveBackground'
|
||||
property :can_change_team_members_only_restriction, as: 'canChangeTeamMembersOnlyRestriction'
|
||||
property :can_comment, as: 'canComment'
|
||||
property :can_copy, as: 'canCopy'
|
||||
property :can_delete_team_drive, as: 'canDeleteTeamDrive'
|
||||
|
@ -671,6 +684,16 @@ module Google
|
|||
property :can_share, as: 'canShare'
|
||||
end
|
||||
end
|
||||
|
||||
class Restrictions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :admin_managed_restrictions, as: 'adminManagedRestrictions'
|
||||
property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
|
||||
property :domain_users_only, as: 'domainUsersOnly'
|
||||
property :team_members_only, as: 'teamMembersOnly'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class TeamDriveList
|
||||
|
|
|
@ -997,9 +997,9 @@ module Google
|
|||
# owner to a writer. This parameter is required as an acknowledgement of the
|
||||
# side effect.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1045,9 +1045,9 @@ module Google
|
|||
# @param [Boolean] supports_team_drives
|
||||
# Whether the requesting application supports Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1087,9 +1087,9 @@ module Google
|
|||
# @param [Boolean] supports_team_drives
|
||||
# Whether the requesting application supports Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1136,9 +1136,9 @@ module Google
|
|||
# @param [Boolean] supports_team_drives
|
||||
# Whether the requesting application supports Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1188,9 +1188,9 @@ module Google
|
|||
# owner to a writer. This parameter is required as an acknowledgement of the
|
||||
# side effect.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the item belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the item belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1673,9 +1673,9 @@ module Google
|
|||
# @param [String] team_drive_id
|
||||
# The ID of the Team Drive
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then the requester will be granted access if
|
||||
# they are an administrator of the domain to which the Team Drive belongs.
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the Team Drive belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1715,9 +1715,8 @@ module Google
|
|||
# @param [String] q
|
||||
# Query string for searching Team Drives.
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Whether the request should be treated as if it was issued by a domain
|
||||
# administrator; if set to true, then all Team Drives of the domain in which the
|
||||
# requester is an administrator are returned.
|
||||
# Issue the request as a domain administrator; if set to true, then all Team
|
||||
# Drives of the domain in which the requester is an administrator are returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1755,6 +1754,10 @@ module Google
|
|||
# @param [String] team_drive_id
|
||||
# The ID of the Team Drive
|
||||
# @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
|
||||
# @param [Boolean] use_domain_admin_access
|
||||
# Issue the request as a domain administrator; if set to true, then the
|
||||
# requester will be granted access if they are an administrator of the domain to
|
||||
# which the Team Drive belongs.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -1774,13 +1777,14 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_teamdrive(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def update_teamdrive(team_drive_id, team_drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options)
|
||||
command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
||||
command.request_object = team_drive_object
|
||||
command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
|
||||
command.response_class = Google::Apis::DriveV3::TeamDrive
|
||||
command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
|
||||
command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/ml/
|
||||
module MlV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180619'
|
||||
REVISION = '20180709'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -394,11 +394,32 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :error_message
|
||||
|
||||
# `etag` is used for optimistic concurrency control as a way to help
|
||||
# prevent simultaneous updates of a job from overwriting each other.
|
||||
# It is strongly suggested that systems make use of the `etag` in the
|
||||
# read-modify-write cycle to perform job updates in order to avoid race
|
||||
# conditions: An `etag` is returned in the response to `GetJob`, and
|
||||
# systems are expected to put that etag in the request to `UpdateJob` to
|
||||
# ensure that their change will be applied to the same version of the job.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Required. The user-specified id of the job.
|
||||
# Corresponds to the JSON property `jobId`
|
||||
# @return [String]
|
||||
attr_accessor :job_id
|
||||
|
||||
# Optional. One or more labels that you can add, to organize your jobs.
|
||||
# Each label is a key-value pair, where both the key and the value are
|
||||
# arbitrary strings that you supply.
|
||||
# For more information, see the documentation on
|
||||
# <a href="/ml-engine/docs/tensorflow/resource-labels">using labels</a>.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Represents input parameters for a prediction job.
|
||||
# Corresponds to the JSON property `predictionInput`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1PredictionInput]
|
||||
|
@ -444,7 +465,9 @@ module Google
|
|||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@error_message = args[:error_message] if args.key?(:error_message)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@job_id = args[:job_id] if args.key?(:job_id)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@prediction_input = args[:prediction_input] if args.key?(:prediction_input)
|
||||
@prediction_output = args[:prediction_output] if args.key?(:prediction_output)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
|
@ -627,6 +650,27 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# `etag` is used for optimistic concurrency control as a way to help
|
||||
# prevent simultaneous updates of a model from overwriting each other.
|
||||
# It is strongly suggested that systems make use of the `etag` in the
|
||||
# read-modify-write cycle to perform model updates in order to avoid race
|
||||
# conditions: An `etag` is returned in the response to `GetModel`, and
|
||||
# systems are expected to put that etag in the request to `UpdateModel` to
|
||||
# ensure that their change will be applied to the model as intended.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Optional. One or more labels that you can add, to organize your models.
|
||||
# Each label is a key-value pair, where both the key and the value are
|
||||
# arbitrary strings that you supply.
|
||||
# For more information, see the documentation on
|
||||
# <a href="/ml-engine/docs/tensorflow/resource-labels">using labels</a>.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Required. The name specified for the model when it was created.
|
||||
# The model name must be unique within the project it is created in.
|
||||
# Corresponds to the JSON property `name`
|
||||
|
@ -663,6 +707,8 @@ module Google
|
|||
def update!(**args)
|
||||
@default_version = args[:default_version] if args.key?(:default_version)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@online_prediction_logging = args[:online_prediction_logging] if args.key?(:online_prediction_logging)
|
||||
@regions = args[:regions] if args.key?(:regions)
|
||||
|
@ -689,6 +735,12 @@ module Google
|
|||
attr_accessor :is_cancellation_requested
|
||||
alias_method :is_cancellation_requested?, :is_cancellation_requested
|
||||
|
||||
# The user labels, inherited from the model or the model version being
|
||||
# operated on.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Contains the name of the model associated with the operation.
|
||||
# Corresponds to the JSON property `modelName`
|
||||
# @return [String]
|
||||
|
@ -728,6 +780,7 @@ module Google
|
|||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@is_cancellation_requested = args[:is_cancellation_requested] if args.key?(:is_cancellation_requested)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@model_name = args[:model_name] if args.key?(:model_name)
|
||||
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
||||
@project_number = args[:project_number] if args.key?(:project_number)
|
||||
|
@ -1092,8 +1145,7 @@ module Google
|
|||
# </dd>
|
||||
# <dt>cloud_tpu</dt>
|
||||
# <dd>
|
||||
# A TPU VM including one Cloud TPU. The availability of Cloud TPU is in
|
||||
# <i>Beta</i> launch stage. See more about
|
||||
# A TPU VM including one Cloud TPU. See more about
|
||||
# <a href="/ml-engine/docs/tensorflow/using-tpus">using TPUs to train
|
||||
# your model</a>.
|
||||
# </dd>
|
||||
|
@ -1287,6 +1339,18 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :error_message
|
||||
|
||||
# `etag` is used for optimistic concurrency control as a way to help
|
||||
# prevent simultaneous updates of a model from overwriting each other.
|
||||
# It is strongly suggested that systems make use of the `etag` in the
|
||||
# read-modify-write cycle to perform model updates in order to avoid race
|
||||
# conditions: An `etag` is returned in the response to `GetVersion`, and
|
||||
# systems are expected to put that etag in the request to `UpdateVersion` to
|
||||
# ensure that their change will be applied to the model as intended.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
|
||||
# Optional. The machine learning framework Cloud ML Engine uses to train
|
||||
# this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`,
|
||||
# and `XGBOOST`. If you do not specify a framework, Cloud ML Engine uses
|
||||
|
@ -1306,6 +1370,15 @@ module Google
|
|||
attr_accessor :is_default
|
||||
alias_method :is_default?, :is_default
|
||||
|
||||
# Optional. One or more labels that you can add, to organize your model
|
||||
# versions. Each label is a key-value pair, where both the key and the value
|
||||
# are arbitrary strings that you supply.
|
||||
# For more information, see the documentation on
|
||||
# <a href="/ml-engine/docs/tensorflow/resource-labels">using labels</a>.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Output only. The time the version was last used for prediction.
|
||||
# Corresponds to the JSON property `lastUseTime`
|
||||
# @return [String]
|
||||
|
@ -1313,9 +1386,6 @@ module Google
|
|||
|
||||
# Optional. The type of machine on which to serve the model. Currently only
|
||||
# applies to online prediction service.
|
||||
# Naming design doc for CMLE online prediction Machine Types:
|
||||
# https://docs.google.com/document/d/
|
||||
# 1V3tko3VJ64PcpsmNxCXiPoPGccL9_K8gX1YjC8UofzQ/edit#heading=h.7lvy6owfx4eh.
|
||||
# The following are currently supported and will be deprecated in
|
||||
# Beta release.
|
||||
# mls1-highmem-1 1 core 2 Gb RAM
|
||||
|
@ -1367,8 +1437,10 @@ module Google
|
|||
@deployment_uri = args[:deployment_uri] if args.key?(:deployment_uri)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@error_message = args[:error_message] if args.key?(:error_message)
|
||||
@etag = args[:etag] if args.key?(:etag)
|
||||
@framework = args[:framework] if args.key?(:framework)
|
||||
@is_default = args[:is_default] if args.key?(:is_default)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@last_use_time = args[:last_use_time] if args.key?(:last_use_time)
|
||||
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
||||
@manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling)
|
||||
|
@ -1519,7 +1591,6 @@ module Google
|
|||
|
||||
# Role that is assigned to `members`.
|
||||
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
# Required
|
||||
# Corresponds to the JSON property `role`
|
||||
# @return [String]
|
||||
attr_accessor :role
|
||||
|
|
|
@ -333,7 +333,9 @@ module Google
|
|||
property :create_time, as: 'createTime'
|
||||
property :end_time, as: 'endTime'
|
||||
property :error_message, as: 'errorMessage'
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :job_id, as: 'jobId'
|
||||
hash :labels, as: 'labels'
|
||||
property :prediction_input, as: 'predictionInput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionInput::Representation
|
||||
|
||||
property :prediction_output, as: 'predictionOutput', class: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput, decorator: Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput::Representation
|
||||
|
@ -405,6 +407,8 @@ module Google
|
|||
property :default_version, as: 'defaultVersion', class: Google::Apis::MlV1::GoogleCloudMlV1Version, decorator: Google::Apis::MlV1::GoogleCloudMlV1Version::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :online_prediction_logging, as: 'onlinePredictionLogging'
|
||||
collection :regions, as: 'regions'
|
||||
|
@ -417,6 +421,7 @@ module Google
|
|||
property :create_time, as: 'createTime'
|
||||
property :end_time, as: 'endTime'
|
||||
property :is_cancellation_requested, as: 'isCancellationRequested'
|
||||
hash :labels, as: 'labels'
|
||||
property :model_name, as: 'modelName'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :project_number, :numeric_string => true, as: 'projectNumber'
|
||||
|
@ -521,8 +526,10 @@ module Google
|
|||
property :deployment_uri, as: 'deploymentUri'
|
||||
property :description, as: 'description'
|
||||
property :error_message, as: 'errorMessage'
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :framework, as: 'framework'
|
||||
property :is_default, as: 'isDefault'
|
||||
hash :labels, as: 'labels'
|
||||
property :last_use_time, as: 'lastUseTime'
|
||||
property :machine_type, as: 'machineType'
|
||||
property :manual_scaling, as: 'manualScaling', class: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling, decorator: Google::Apis::MlV1::GoogleCloudMlV1ManualScaling::Representation
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-control/
|
||||
module ServicecontrolV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180610'
|
||||
REVISION = '20180707'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1891,6 +1891,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :resource_container
|
||||
|
||||
# The location of the resource. If not empty, the resource will be checked
|
||||
# against location policy. The value must be a valid zone, region or
|
||||
# multiregion. For example: "europe-west4" or "northamerica-northeast1-a"
|
||||
# Corresponds to the JSON property `resourceLocation`
|
||||
# @return [String]
|
||||
attr_accessor :resource_location
|
||||
|
||||
# Name of the resource. This is used for auditing purposes.
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [String]
|
||||
|
@ -1903,6 +1910,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_container = args[:resource_container] if args.key?(:resource_container)
|
||||
@resource_location = args[:resource_location] if args.key?(:resource_location)
|
||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -682,6 +682,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_container, as: 'resourceContainer'
|
||||
property :resource_location, as: 'resourceLocation'
|
||||
property :resource_name, as: 'resourceName'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue