Autogenerated update (2019-03-07)
Update: - accesscontextmanager_v1beta - bigtableadmin_v2 - cloudbuild_v1 - cloudbuild_v1alpha1 - cloudresourcemanager_v1beta1 - cloudscheduler_v1beta1 - container_v1beta1 - firebasedynamiclinks_v1 - runtimeconfig_v1beta1 - serviceconsumermanagement_v1 - servicenetworking_v1beta - serviceusage_v1 - serviceusage_v1beta1 - streetviewpublish_v1 - youtube_partner_v1
This commit is contained in:
parent
47e36d604f
commit
a61f1b43a3
|
@ -37,6 +37,144 @@
|
|||
"/acceleratedmobilepageurl:v1/fields": fields
|
||||
"/acceleratedmobilepageurl:v1/key": key
|
||||
"/acceleratedmobilepageurl:v1/quotaUser": quota_user
|
||||
"/accesscontextmanager:v1/AccessLevel": access_level
|
||||
"/accesscontextmanager:v1/AccessLevel/basic": basic
|
||||
"/accesscontextmanager:v1/AccessLevel/createTime": create_time
|
||||
"/accesscontextmanager:v1/AccessLevel/description": description
|
||||
"/accesscontextmanager:v1/AccessLevel/name": name
|
||||
"/accesscontextmanager:v1/AccessLevel/title": title
|
||||
"/accesscontextmanager:v1/AccessLevel/updateTime": update_time
|
||||
"/accesscontextmanager:v1/AccessPolicy": access_policy
|
||||
"/accesscontextmanager:v1/AccessPolicy/createTime": create_time
|
||||
"/accesscontextmanager:v1/AccessPolicy/name": name
|
||||
"/accesscontextmanager:v1/AccessPolicy/parent": parent
|
||||
"/accesscontextmanager:v1/AccessPolicy/title": title
|
||||
"/accesscontextmanager:v1/AccessPolicy/updateTime": update_time
|
||||
"/accesscontextmanager:v1/BasicLevel": basic_level
|
||||
"/accesscontextmanager:v1/BasicLevel/combiningFunction": combining_function
|
||||
"/accesscontextmanager:v1/BasicLevel/conditions": conditions
|
||||
"/accesscontextmanager:v1/BasicLevel/conditions/condition": condition
|
||||
"/accesscontextmanager:v1/CancelOperationRequest": cancel_operation_request
|
||||
"/accesscontextmanager:v1/Condition": condition
|
||||
"/accesscontextmanager:v1/Condition/devicePolicy": device_policy
|
||||
"/accesscontextmanager:v1/Condition/ipSubnetworks": ip_subnetworks
|
||||
"/accesscontextmanager:v1/Condition/ipSubnetworks/ip_subnetwork": ip_subnetwork
|
||||
"/accesscontextmanager:v1/Condition/members": members
|
||||
"/accesscontextmanager:v1/Condition/members/member": member
|
||||
"/accesscontextmanager:v1/Condition/negate": negate
|
||||
"/accesscontextmanager:v1/Condition/requiredAccessLevels": required_access_levels
|
||||
"/accesscontextmanager:v1/Condition/requiredAccessLevels/required_access_level": required_access_level
|
||||
"/accesscontextmanager:v1/DevicePolicy": device_policy
|
||||
"/accesscontextmanager:v1/DevicePolicy/allowedDeviceManagementLevels": allowed_device_management_levels
|
||||
"/accesscontextmanager:v1/DevicePolicy/allowedDeviceManagementLevels/allowed_device_management_level": allowed_device_management_level
|
||||
"/accesscontextmanager:v1/DevicePolicy/allowedEncryptionStatuses": allowed_encryption_statuses
|
||||
"/accesscontextmanager:v1/DevicePolicy/allowedEncryptionStatuses/allowed_encryption_status": allowed_encryption_status
|
||||
"/accesscontextmanager:v1/DevicePolicy/osConstraints": os_constraints
|
||||
"/accesscontextmanager:v1/DevicePolicy/osConstraints/os_constraint": os_constraint
|
||||
"/accesscontextmanager:v1/DevicePolicy/requireScreenlock": require_screenlock
|
||||
"/accesscontextmanager:v1/Empty": empty
|
||||
"/accesscontextmanager:v1/ListAccessLevelsResponse": list_access_levels_response
|
||||
"/accesscontextmanager:v1/ListAccessLevelsResponse/accessLevels": access_levels
|
||||
"/accesscontextmanager:v1/ListAccessLevelsResponse/accessLevels/access_level": access_level
|
||||
"/accesscontextmanager:v1/ListAccessLevelsResponse/nextPageToken": next_page_token
|
||||
"/accesscontextmanager:v1/ListAccessPoliciesResponse": list_access_policies_response
|
||||
"/accesscontextmanager:v1/ListAccessPoliciesResponse/accessPolicies": access_policies
|
||||
"/accesscontextmanager:v1/ListAccessPoliciesResponse/accessPolicies/access_policy": access_policy
|
||||
"/accesscontextmanager:v1/ListAccessPoliciesResponse/nextPageToken": next_page_token
|
||||
"/accesscontextmanager:v1/ListOperationsResponse": list_operations_response
|
||||
"/accesscontextmanager:v1/ListOperationsResponse/nextPageToken": next_page_token
|
||||
"/accesscontextmanager:v1/ListOperationsResponse/operations": operations
|
||||
"/accesscontextmanager:v1/ListOperationsResponse/operations/operation": operation
|
||||
"/accesscontextmanager:v1/ListServicePerimetersResponse": list_service_perimeters_response
|
||||
"/accesscontextmanager:v1/ListServicePerimetersResponse/nextPageToken": next_page_token
|
||||
"/accesscontextmanager:v1/ListServicePerimetersResponse/servicePerimeters": service_perimeters
|
||||
"/accesscontextmanager:v1/ListServicePerimetersResponse/servicePerimeters/service_perimeter": service_perimeter
|
||||
"/accesscontextmanager:v1/Operation": operation
|
||||
"/accesscontextmanager:v1/Operation/done": done
|
||||
"/accesscontextmanager:v1/Operation/error": error
|
||||
"/accesscontextmanager:v1/Operation/metadata": metadata
|
||||
"/accesscontextmanager:v1/Operation/metadata/metadatum": metadatum
|
||||
"/accesscontextmanager:v1/Operation/name": name
|
||||
"/accesscontextmanager:v1/Operation/response": response
|
||||
"/accesscontextmanager:v1/Operation/response/response": response
|
||||
"/accesscontextmanager:v1/OsConstraint": os_constraint
|
||||
"/accesscontextmanager:v1/OsConstraint/minimumVersion": minimum_version
|
||||
"/accesscontextmanager:v1/OsConstraint/osType": os_type
|
||||
"/accesscontextmanager:v1/ServicePerimeter": service_perimeter
|
||||
"/accesscontextmanager:v1/ServicePerimeter/createTime": create_time
|
||||
"/accesscontextmanager:v1/ServicePerimeter/description": description
|
||||
"/accesscontextmanager:v1/ServicePerimeter/name": name
|
||||
"/accesscontextmanager:v1/ServicePerimeter/perimeterType": perimeter_type
|
||||
"/accesscontextmanager:v1/ServicePerimeter/status": status
|
||||
"/accesscontextmanager:v1/ServicePerimeter/title": title
|
||||
"/accesscontextmanager:v1/ServicePerimeter/updateTime": update_time
|
||||
"/accesscontextmanager:v1/ServicePerimeterConfig": service_perimeter_config
|
||||
"/accesscontextmanager:v1/ServicePerimeterConfig/accessLevels": access_levels
|
||||
"/accesscontextmanager:v1/ServicePerimeterConfig/accessLevels/access_level": access_level
|
||||
"/accesscontextmanager:v1/ServicePerimeterConfig/resources": resources
|
||||
"/accesscontextmanager:v1/ServicePerimeterConfig/resources/resource": resource
|
||||
"/accesscontextmanager:v1/ServicePerimeterConfig/restrictedServices": restricted_services
|
||||
"/accesscontextmanager:v1/ServicePerimeterConfig/restrictedServices/restricted_service": restricted_service
|
||||
"/accesscontextmanager:v1/Status": status
|
||||
"/accesscontextmanager:v1/Status/code": code
|
||||
"/accesscontextmanager:v1/Status/details": details
|
||||
"/accesscontextmanager:v1/Status/details/detail": detail
|
||||
"/accesscontextmanager:v1/Status/details/detail/detail": detail
|
||||
"/accesscontextmanager:v1/Status/message": message
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.create": create_access_policy_access_level
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.create/parent": parent
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.delete": delete_access_policy_access_level
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.delete/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.get": get_access_policy_access_level
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.get/accessLevelFormat": access_level_format
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.get/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.list": list_access_policy_access_levels
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.list/accessLevelFormat": access_level_format
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.list/pageSize": page_size
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.list/pageToken": page_token
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.list/parent": parent
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.patch": patch_access_policy_access_level
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.patch/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.accessLevels.patch/updateMask": update_mask
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.create": create_access_policy
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.delete": delete_access_policy
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.delete/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.get": get_access_policy
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.get/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.list": list_access_policies
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.list/pageSize": page_size
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.list/pageToken": page_token
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.list/parent": parent
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.patch": patch_access_policy
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.patch/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.patch/updateMask": update_mask
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.create": create_access_policy_service_perimeter
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.create/parent": parent
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.delete": delete_access_policy_service_perimeter
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.delete/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.get": get_access_policy_service_perimeter
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.get/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.list": list_access_policy_service_perimeters
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.list/pageSize": page_size
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.list/pageToken": page_token
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.list/parent": parent
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.patch": patch_access_policy_service_perimeter
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.patch/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.accessPolicies.servicePerimeters.patch/updateMask": update_mask
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.cancel": cancel_operation
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.cancel/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.delete": delete_operation
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.delete/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.get": get_operation
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.get/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.list": list_operations
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.list/filter": filter
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.list/name": name
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.list/pageSize": page_size
|
||||
"/accesscontextmanager:v1/accesscontextmanager.operations.list/pageToken": page_token
|
||||
"/accesscontextmanager:v1/fields": fields
|
||||
"/accesscontextmanager:v1/key": key
|
||||
"/accesscontextmanager:v1/quotaUser": quota_user
|
||||
"/accesscontextmanager:v1beta/AccessLevel": access_level
|
||||
"/accesscontextmanager:v1beta/AccessLevel/basic": basic
|
||||
"/accesscontextmanager:v1beta/AccessLevel/createTime": create_time
|
||||
|
@ -15103,6 +15241,7 @@
|
|||
"/cloudbuild:v1/BuildTrigger/description": description
|
||||
"/cloudbuild:v1/BuildTrigger/disabled": disabled
|
||||
"/cloudbuild:v1/BuildTrigger/filename": filename
|
||||
"/cloudbuild:v1/BuildTrigger/github": github
|
||||
"/cloudbuild:v1/BuildTrigger/id": id
|
||||
"/cloudbuild:v1/BuildTrigger/ignoredFiles": ignored_files
|
||||
"/cloudbuild:v1/BuildTrigger/ignoredFiles/ignored_file": ignored_file
|
||||
|
@ -15117,10 +15256,18 @@
|
|||
"/cloudbuild:v1/BuiltImage/pushTiming": push_timing
|
||||
"/cloudbuild:v1/CancelBuildRequest": cancel_build_request
|
||||
"/cloudbuild:v1/CancelOperationRequest": cancel_operation_request
|
||||
"/cloudbuild:v1/CheckSuiteFilter": check_suite_filter
|
||||
"/cloudbuild:v1/Empty": empty
|
||||
"/cloudbuild:v1/FileHashes": file_hashes
|
||||
"/cloudbuild:v1/FileHashes/fileHash": file_hash
|
||||
"/cloudbuild:v1/FileHashes/fileHash/file_hash": file_hash
|
||||
"/cloudbuild:v1/GitHubEventsConfig": git_hub_events_config
|
||||
"/cloudbuild:v1/GitHubEventsConfig/checkSuite": check_suite
|
||||
"/cloudbuild:v1/GitHubEventsConfig/installationId": installation_id
|
||||
"/cloudbuild:v1/GitHubEventsConfig/name": name
|
||||
"/cloudbuild:v1/GitHubEventsConfig/owner": owner
|
||||
"/cloudbuild:v1/GitHubEventsConfig/pullRequest": pull_request
|
||||
"/cloudbuild:v1/GitHubEventsConfig/push": push
|
||||
"/cloudbuild:v1/Hash": hash_prop
|
||||
"/cloudbuild:v1/Hash/type": type
|
||||
"/cloudbuild:v1/Hash/value": value
|
||||
|
@ -15143,6 +15290,12 @@
|
|||
"/cloudbuild:v1/Operation/name": name
|
||||
"/cloudbuild:v1/Operation/response": response
|
||||
"/cloudbuild:v1/Operation/response/response": response
|
||||
"/cloudbuild:v1/PullRequestFilter": pull_request_filter
|
||||
"/cloudbuild:v1/PullRequestFilter/branch": branch
|
||||
"/cloudbuild:v1/PullRequestFilter/commentControl": comment_control
|
||||
"/cloudbuild:v1/PushFilter": push_filter
|
||||
"/cloudbuild:v1/PushFilter/branch": branch
|
||||
"/cloudbuild:v1/PushFilter/tag": tag
|
||||
"/cloudbuild:v1/RepoSource": repo_source
|
||||
"/cloudbuild:v1/RepoSource/branchName": branch_name
|
||||
"/cloudbuild:v1/RepoSource/commitSha": commit_sha
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# 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/accesscontextmanager_v1/service.rb'
|
||||
require 'google/apis/accesscontextmanager_v1/classes.rb'
|
||||
require 'google/apis/accesscontextmanager_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Access Context Manager API
|
||||
#
|
||||
# An API for setting attribute based access control to requests to GCP services.
|
||||
#
|
||||
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
|
||||
module AccesscontextmanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190306'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,724 @@
|
|||
# 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 AccesscontextmanagerV1
|
||||
|
||||
# An `AccessLevel` is a label that can be applied to requests to GCP services,
|
||||
# along with a list of requirements necessary for the label to be applied.
|
||||
class AccessLevel
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# `BasicLevel` is an `AccessLevel` using a set of recommended features.
|
||||
# Corresponds to the JSON property `basic`
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::BasicLevel]
|
||||
attr_accessor :basic
|
||||
|
||||
# Output only. Time the `AccessLevel` was created in UTC.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Description of the `AccessLevel` and its use. Does not affect behavior.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Required. Resource name for the Access Level. The `short_name` component
|
||||
# must begin with a letter and only include alphanumeric and '_'. Format:
|
||||
# `accessPolicies/`policy_id`/accessLevels/`short_name``
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Human readable title. Must be unique within the Policy.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# Output only. Time the `AccessLevel` was updated in UTC.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
# @return [String]
|
||||
attr_accessor :update_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@basic = args[:basic] if args.key?(:basic)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
end
|
||||
end
|
||||
|
||||
# `AccessPolicy` is a container for `AccessLevels` (which define the necessary
|
||||
# attributes to use GCP services) and `ServicePerimeters` (which define regions
|
||||
# of services able to freely pass data within a perimeter). An access policy is
|
||||
# globally visible within an organization, and the restrictions it specifies
|
||||
# apply to all projects within an organization.
|
||||
class AccessPolicy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. Time the `AccessPolicy` was created in UTC.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Output only. Resource name of the `AccessPolicy`. Format:
|
||||
# `accessPolicies/`policy_id``
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Required. The parent of this `AccessPolicy` in the Cloud Resource
|
||||
# Hierarchy. Currently immutable once created. Format:
|
||||
# `organizations/`organization_id``
|
||||
# Corresponds to the JSON property `parent`
|
||||
# @return [String]
|
||||
attr_accessor :parent
|
||||
|
||||
# Required. Human readable title. Does not affect behavior.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# Output only. Time the `AccessPolicy` was updated in UTC.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
# @return [String]
|
||||
attr_accessor :update_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@parent = args[:parent] if args.key?(:parent)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
end
|
||||
end
|
||||
|
||||
# `BasicLevel` is an `AccessLevel` using a set of recommended features.
|
||||
class BasicLevel
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# How the `conditions` list should be combined to determine if a request is
|
||||
# granted this `AccessLevel`. If AND is used, each `Condition` in
|
||||
# `conditions` must be satisfied for the `AccessLevel` to be applied. If OR
|
||||
# is used, at least one `Condition` in `conditions` must be satisfied for the
|
||||
# `AccessLevel` to be applied. Default behavior is AND.
|
||||
# Corresponds to the JSON property `combiningFunction`
|
||||
# @return [String]
|
||||
attr_accessor :combining_function
|
||||
|
||||
# Required. A list of requirements for the `AccessLevel` to be granted.
|
||||
# Corresponds to the JSON property `conditions`
|
||||
# @return [Array<Google::Apis::AccesscontextmanagerV1::Condition>]
|
||||
attr_accessor :conditions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@combining_function = args[:combining_function] if args.key?(:combining_function)
|
||||
@conditions = args[:conditions] if args.key?(:conditions)
|
||||
end
|
||||
end
|
||||
|
||||
# The request message for Operations.CancelOperation.
|
||||
class CancelOperationRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A condition necessary for an `AccessLevel` to be granted. The Condition is an
|
||||
# AND over its fields. So a Condition is true if: 1) the request IP is from one
|
||||
# of the listed subnetworks AND 2) the originating device complies with the
|
||||
# listed device policy AND 3) all listed access levels are granted AND 4) the
|
||||
# request was sent at a time allowed by the DateTimeRestriction.
|
||||
class Condition
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# `DevicePolicy` specifies device specific restrictions necessary to acquire a
|
||||
# given access level. A `DevicePolicy` specifies requirements for requests from
|
||||
# devices to be granted access levels, it does not do any enforcement on the
|
||||
# device. `DevicePolicy` acts as an AND over all specified fields, and each
|
||||
# repeated field is an OR over its elements. Any unset fields are ignored. For
|
||||
# example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type :
|
||||
# DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be
|
||||
# true for requests originating from encrypted Linux desktops and encrypted
|
||||
# Windows desktops.
|
||||
# Corresponds to the JSON property `devicePolicy`
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::DevicePolicy]
|
||||
attr_accessor :device_policy
|
||||
|
||||
# CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for
|
||||
# a CIDR IP address block, the specified IP address portion must be properly
|
||||
# truncated (i.e. all the host bits must be zero) or the input is considered
|
||||
# malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is
|
||||
# not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas
|
||||
# "2001:db8::1/32" is not. The originating IP of a request must be in one of
|
||||
# the listed subnets in order for this Condition to be true. If empty, all IP
|
||||
# addresses are allowed.
|
||||
# Corresponds to the JSON property `ipSubnetworks`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ip_subnetworks
|
||||
|
||||
# The request must be made by one of the provided user or service
|
||||
# accounts. Groups are not supported.
|
||||
# Syntax:
|
||||
# `user:`emailid``
|
||||
# `serviceAccount:`emailid``
|
||||
# If not specified, a request may come from any user.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :members
|
||||
|
||||
# Whether to negate the Condition. If true, the Condition becomes a NAND over
|
||||
# its non-empty fields, each field must be false for the Condition overall to
|
||||
# be satisfied. Defaults to false.
|
||||
# Corresponds to the JSON property `negate`
|
||||
# @return [Boolean]
|
||||
attr_accessor :negate
|
||||
alias_method :negate?, :negate
|
||||
|
||||
# A list of other access levels defined in the same `Policy`, referenced by
|
||||
# resource name. Referencing an `AccessLevel` which does not exist is an
|
||||
# error. All access levels listed must be granted for the Condition
|
||||
# to be true. Example:
|
||||
# "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`
|
||||
# Corresponds to the JSON property `requiredAccessLevels`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :required_access_levels
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@device_policy = args[:device_policy] if args.key?(:device_policy)
|
||||
@ip_subnetworks = args[:ip_subnetworks] if args.key?(:ip_subnetworks)
|
||||
@members = args[:members] if args.key?(:members)
|
||||
@negate = args[:negate] if args.key?(:negate)
|
||||
@required_access_levels = args[:required_access_levels] if args.key?(:required_access_levels)
|
||||
end
|
||||
end
|
||||
|
||||
# `DevicePolicy` specifies device specific restrictions necessary to acquire a
|
||||
# given access level. A `DevicePolicy` specifies requirements for requests from
|
||||
# devices to be granted access levels, it does not do any enforcement on the
|
||||
# device. `DevicePolicy` acts as an AND over all specified fields, and each
|
||||
# repeated field is an OR over its elements. Any unset fields are ignored. For
|
||||
# example, if the proto is ` os_type : DESKTOP_WINDOWS, os_type :
|
||||
# DESKTOP_LINUX, encryption_status: ENCRYPTED`, then the DevicePolicy will be
|
||||
# true for requests originating from encrypted Linux desktops and encrypted
|
||||
# Windows desktops.
|
||||
class DevicePolicy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Allowed device management levels, an empty list allows all management
|
||||
# levels.
|
||||
# Corresponds to the JSON property `allowedDeviceManagementLevels`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :allowed_device_management_levels
|
||||
|
||||
# Allowed encryptions statuses, an empty list allows all statuses.
|
||||
# Corresponds to the JSON property `allowedEncryptionStatuses`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :allowed_encryption_statuses
|
||||
|
||||
# Allowed OS versions, an empty list allows all types and all versions.
|
||||
# Corresponds to the JSON property `osConstraints`
|
||||
# @return [Array<Google::Apis::AccesscontextmanagerV1::OsConstraint>]
|
||||
attr_accessor :os_constraints
|
||||
|
||||
# Whether or not screenlock is required for the DevicePolicy to be true.
|
||||
# Defaults to `false`.
|
||||
# Corresponds to the JSON property `requireScreenlock`
|
||||
# @return [Boolean]
|
||||
attr_accessor :require_screenlock
|
||||
alias_method :require_screenlock?, :require_screenlock
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@allowed_device_management_levels = args[:allowed_device_management_levels] if args.key?(:allowed_device_management_levels)
|
||||
@allowed_encryption_statuses = args[:allowed_encryption_statuses] if args.key?(:allowed_encryption_statuses)
|
||||
@os_constraints = args[:os_constraints] if args.key?(:os_constraints)
|
||||
@require_screenlock = args[:require_screenlock] if args.key?(:require_screenlock)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
# service Foo `
|
||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
# `
|
||||
# The JSON representation for `Empty` is empty JSON object ````.
|
||||
class Empty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A response to `ListAccessLevelsRequest`.
|
||||
class ListAccessLevelsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of the Access Level instances.
|
||||
# Corresponds to the JSON property `accessLevels`
|
||||
# @return [Array<Google::Apis::AccesscontextmanagerV1::AccessLevel>]
|
||||
attr_accessor :access_levels
|
||||
|
||||
# The pagination token to retrieve the next page of results. If the value is
|
||||
# empty, no further results remain.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_levels = args[:access_levels] if args.key?(:access_levels)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# A response to `ListAccessPoliciesRequest`.
|
||||
class ListAccessPoliciesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of the AccessPolicy instances.
|
||||
# Corresponds to the JSON property `accessPolicies`
|
||||
# @return [Array<Google::Apis::AccesscontextmanagerV1::AccessPolicy>]
|
||||
attr_accessor :access_policies
|
||||
|
||||
# The pagination token to retrieve the next page of results. If the value is
|
||||
# empty, no further results remain.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_policies = args[:access_policies] if args.key?(:access_policies)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::AccesscontextmanagerV1::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# A response to `ListServicePerimetersRequest`.
|
||||
class ListServicePerimetersResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The pagination token to retrieve the next page of results. If the value is
|
||||
# empty, no further results remain.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# List of the Service Perimeter instances.
|
||||
# Corresponds to the JSON property `servicePerimeters`
|
||||
# @return [Array<Google::Apis::AccesscontextmanagerV1::ServicePerimeter>]
|
||||
attr_accessor :service_perimeters
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@service_perimeters = args[:service_perimeters] if args.key?(:service_perimeters)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the value is `false`, it means the operation is still in progress.
|
||||
# If `true`, the operation is completed, and either `error` or `response` is
|
||||
# available.
|
||||
# Corresponds to the JSON property `done`
|
||||
# @return [Boolean]
|
||||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Status]
|
||||
attr_accessor :error
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# A restriction on the OS type and version of devices making requests.
|
||||
class OsConstraint
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The minimum allowed OS version. If not set, any version of this OS
|
||||
# satisfies the constraint. Format: `"major.minor.patch"`.
|
||||
# Examples: `"10.5.301"`, `"9.2.1"`.
|
||||
# Corresponds to the JSON property `minimumVersion`
|
||||
# @return [String]
|
||||
attr_accessor :minimum_version
|
||||
|
||||
# Required. The allowed OS type.
|
||||
# Corresponds to the JSON property `osType`
|
||||
# @return [String]
|
||||
attr_accessor :os_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@minimum_version = args[:minimum_version] if args.key?(:minimum_version)
|
||||
@os_type = args[:os_type] if args.key?(:os_type)
|
||||
end
|
||||
end
|
||||
|
||||
# `ServicePerimeter` describes a set of GCP resources which can freely import
|
||||
# and export data amongst themselves, but not export outside of the
|
||||
# `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
|
||||
# has a target outside of the `ServicePerimeter`, the request will be blocked.
|
||||
# Otherwise the request is allowed. There are two types of Service Perimeter -
|
||||
# Regular and Bridge. Regular Service Perimeters cannot overlap, a single GCP
|
||||
# project can only belong to a single regular Service Perimeter. Service
|
||||
# Perimeter Bridges can contain only GCP projects as members, a single GCP
|
||||
# project may belong to multiple Service Perimeter Bridges.
|
||||
class ServicePerimeter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only. Time the `ServicePerimeter` was created in UTC.
|
||||
# Corresponds to the JSON property `createTime`
|
||||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Description of the `ServicePerimeter` and its use. Does not affect
|
||||
# behavior.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Required. Resource name for the ServicePerimeter. The `short_name`
|
||||
# component must begin with a letter and only include alphanumeric and '_'.
|
||||
# Format: `accessPolicies/`policy_id`/servicePerimeters/`short_name``
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Perimeter type indicator. A single project is
|
||||
# allowed to be a member of single regular perimeter, but multiple service
|
||||
# perimeter bridges. A project cannot be a included in a perimeter bridge
|
||||
# without being included in regular perimeter. For perimeter bridges,
|
||||
# the restricted service list as well as access level lists must be
|
||||
# empty.
|
||||
# Corresponds to the JSON property `perimeterType`
|
||||
# @return [String]
|
||||
attr_accessor :perimeter_type
|
||||
|
||||
# `ServicePerimeterConfig` specifies a set of GCP resources that describe
|
||||
# specific Service Perimeter configuration.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig]
|
||||
attr_accessor :status
|
||||
|
||||
# Human readable title. Must be unique within the Policy.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# Output only. Time the `ServicePerimeter` was updated in UTC.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
# @return [String]
|
||||
attr_accessor :update_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@perimeter_type = args[:perimeter_type] if args.key?(:perimeter_type)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
end
|
||||
end
|
||||
|
||||
# `ServicePerimeterConfig` specifies a set of GCP resources that describe
|
||||
# specific Service Perimeter configuration.
|
||||
class ServicePerimeterConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of `AccessLevel` resource names that allow resources within the
|
||||
# `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
|
||||
# must be in the same policy as this `ServicePerimeter`. Referencing a
|
||||
# nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
|
||||
# listed, resources within the perimeter can only be accessed via GCP calls
|
||||
# with request origins within the perimeter. Example:
|
||||
# `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`.
|
||||
# For Service Perimeter Bridge, must be empty.
|
||||
# Corresponds to the JSON property `accessLevels`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :access_levels
|
||||
|
||||
# A list of GCP resources that are inside of the service perimeter.
|
||||
# Currently only projects are allowed. Format: `projects/`project_number``
|
||||
# Corresponds to the JSON property `resources`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :resources
|
||||
|
||||
# GCP services that are subject to the Service Perimeter restrictions. For
|
||||
# example, if `storage.googleapis.com` is specified, access to the storage
|
||||
# buckets inside the perimeter must meet the perimeter's access restrictions.
|
||||
# Corresponds to the JSON property `restrictedServices`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :restricted_services
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@access_levels = args[:access_levels] if args.key?(:access_levels)
|
||||
@resources = args[:resources] if args.key?(:resources)
|
||||
@restricted_services = args[:restricted_services] if args.key?(:restricted_services)
|
||||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status code, which should be an enum value of google.rpc.Code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :code
|
||||
|
||||
# A list of messages that carry the error details. There is a common set of
|
||||
# message types for APIs to use.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Hash<String,Object>>]
|
||||
attr_accessor :details
|
||||
|
||||
# A developer-facing error message, which should be in English. Any
|
||||
# user-facing error message should be localized and sent in the
|
||||
# google.rpc.Status.details field, or localized by the client.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,278 @@
|
|||
# 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 AccesscontextmanagerV1
|
||||
|
||||
class AccessLevel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AccessPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BasicLevel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Condition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DevicePolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListAccessLevelsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListAccessPoliciesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListServicePerimetersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OsConstraint
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServicePerimeter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServicePerimeterConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AccessLevel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :basic, as: 'basic', class: Google::Apis::AccesscontextmanagerV1::BasicLevel, decorator: Google::Apis::AccesscontextmanagerV1::BasicLevel::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
property :description, as: 'description'
|
||||
property :name, as: 'name'
|
||||
property :title, as: 'title'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class AccessPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :name, as: 'name'
|
||||
property :parent, as: 'parent'
|
||||
property :title, as: 'title'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class BasicLevel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :combining_function, as: 'combiningFunction'
|
||||
collection :conditions, as: 'conditions', class: Google::Apis::AccesscontextmanagerV1::Condition, decorator: Google::Apis::AccesscontextmanagerV1::Condition::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Condition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :device_policy, as: 'devicePolicy', class: Google::Apis::AccesscontextmanagerV1::DevicePolicy, decorator: Google::Apis::AccesscontextmanagerV1::DevicePolicy::Representation
|
||||
|
||||
collection :ip_subnetworks, as: 'ipSubnetworks'
|
||||
collection :members, as: 'members'
|
||||
property :negate, as: 'negate'
|
||||
collection :required_access_levels, as: 'requiredAccessLevels'
|
||||
end
|
||||
end
|
||||
|
||||
class DevicePolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :allowed_device_management_levels, as: 'allowedDeviceManagementLevels'
|
||||
collection :allowed_encryption_statuses, as: 'allowedEncryptionStatuses'
|
||||
collection :os_constraints, as: 'osConstraints', class: Google::Apis::AccesscontextmanagerV1::OsConstraint, decorator: Google::Apis::AccesscontextmanagerV1::OsConstraint::Representation
|
||||
|
||||
property :require_screenlock, as: 'requireScreenlock'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ListAccessLevelsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :access_levels, as: 'accessLevels', class: Google::Apis::AccesscontextmanagerV1::AccessLevel, decorator: Google::Apis::AccesscontextmanagerV1::AccessLevel::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListAccessPoliciesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :access_policies, as: 'accessPolicies', class: Google::Apis::AccesscontextmanagerV1::AccessPolicy, decorator: Google::Apis::AccesscontextmanagerV1::AccessPolicy::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::AccesscontextmanagerV1::Operation, decorator: Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListServicePerimetersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :service_perimeters, as: 'servicePerimeters', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeter, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::AccesscontextmanagerV1::Status, decorator: Google::Apis::AccesscontextmanagerV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class OsConstraint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :minimum_version, as: 'minimumVersion'
|
||||
property :os_type, as: 'osType'
|
||||
end
|
||||
end
|
||||
|
||||
class ServicePerimeter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :description, as: 'description'
|
||||
property :name, as: 'name'
|
||||
property :perimeter_type, as: 'perimeterType'
|
||||
property :status, as: 'status', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig::Representation
|
||||
|
||||
property :title, as: 'title'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class ServicePerimeterConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :access_levels, as: 'accessLevels'
|
||||
collection :resources, as: 'resources'
|
||||
collection :restricted_services, as: 'restrictedServices'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,788 @@
|
|||
# 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 AccesscontextmanagerV1
|
||||
# Access Context Manager API
|
||||
#
|
||||
# An API for setting attribute based access control to requests to GCP services.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/accesscontextmanager_v1'
|
||||
#
|
||||
# Accesscontextmanager = Google::Apis::AccesscontextmanagerV1 # Alias the module
|
||||
# service = Accesscontextmanager::AccessContextManagerService.new
|
||||
#
|
||||
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
|
||||
class AccessContextManagerService < 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://accesscontextmanager.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Create an `AccessPolicy`. Fails if this organization already has a
|
||||
# `AccessPolicy`. The longrunning Operation will have a successful status
|
||||
# once the `AccessPolicy` has propagated to long-lasting storage.
|
||||
# Syntactic and basic semantic errors will be returned in `metadata` as a
|
||||
# BadRequest proto.
|
||||
# @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_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::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @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_access_policy(access_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/accessPolicies', options)
|
||||
command.request_representation = Google::Apis::AccesscontextmanagerV1::AccessPolicy::Representation
|
||||
command.request_object = access_policy_object
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Delete an AccessPolicy by resource
|
||||
# name. The longrunning Operation will have a successful status once the
|
||||
# AccessPolicy
|
||||
# has been removed from long-lasting storage.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the access policy to delete.
|
||||
# Format `accessPolicies/`policy_id``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_access_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get an AccessPolicy by name.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the access policy to get.
|
||||
# Format `accessPolicies/`policy_id``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::AccessPolicy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::AccessPolicy]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_access_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::AccessPolicy::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::AccessPolicy
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List all AccessPolicies under a
|
||||
# container.
|
||||
# @param [Fixnum] page_size
|
||||
# Number of AccessPolicy instances to include in the list. Default 100.
|
||||
# @param [String] page_token
|
||||
# Next page token for the next batch of AccessPolicy instances. Defaults to
|
||||
# the first page of results.
|
||||
# @param [String] parent
|
||||
# Required. Resource name for the container to list AccessPolicy instances
|
||||
# from.
|
||||
# Format:
|
||||
# `organizations/`org_id``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::ListAccessPoliciesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::ListAccessPoliciesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_access_policies(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/accessPolicies', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::ListAccessPoliciesResponse::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::ListAccessPoliciesResponse
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['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
|
||||
|
||||
# Update an AccessPolicy. The
|
||||
# longrunning Operation from this RPC will have a successful status once the
|
||||
# changes to the AccessPolicy have propagated
|
||||
# to long-lasting storage. Syntactic and basic semantic errors will be
|
||||
# returned in `metadata` as a BadRequest proto.
|
||||
# @param [String] name
|
||||
# Output only. Resource name of the `AccessPolicy`. Format:
|
||||
# `accessPolicies/`policy_id``
|
||||
# @param [Google::Apis::AccesscontextmanagerV1::AccessPolicy] access_policy_object
|
||||
# @param [String] update_mask
|
||||
# Required. Mask to control which fields get updated. Must be non-empty.
|
||||
# @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::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @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_access_policy(name, access_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::AccesscontextmanagerV1::AccessPolicy::Representation
|
||||
command.request_object = access_policy_object
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
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
|
||||
|
||||
# Create an Access Level. The longrunning
|
||||
# operation from this RPC will have a successful status once the Access
|
||||
# Level has
|
||||
# propagated to long-lasting storage. Access Levels containing
|
||||
# errors will result in an error response for the first error encountered.
|
||||
# @param [String] parent
|
||||
# Required. Resource name for the access policy which owns this Access
|
||||
# Level.
|
||||
# Format: `accessPolicies/`policy_id``
|
||||
# @param [Google::Apis::AccesscontextmanagerV1::AccessLevel] access_level_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::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @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_access_policy_access_level(parent, access_level_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/accessLevels', options)
|
||||
command.request_representation = Google::Apis::AccesscontextmanagerV1::AccessLevel::Representation
|
||||
command.request_object = access_level_object
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
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
|
||||
|
||||
# Delete an Access Level by resource
|
||||
# name. The longrunning operation from this RPC will have a successful status
|
||||
# once the Access Level has been removed
|
||||
# from long-lasting storage.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the Access Level.
|
||||
# Format:
|
||||
# `accessPolicies/`policy_id`/accessLevels/`access_level_id``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_access_policy_access_level(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get an Access Level by resource
|
||||
# name.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the Access Level.
|
||||
# Format:
|
||||
# `accessPolicies/`policy_id`/accessLevels/`access_level_id``
|
||||
# @param [String] access_level_format
|
||||
# Whether to return `BasicLevels` in the Cloud Common Expression
|
||||
# Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where
|
||||
# Access Levels
|
||||
# are returned as `BasicLevels` or `CustomLevels` based on how they were
|
||||
# created. If set to CEL, all Access Levels are returned as
|
||||
# `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent
|
||||
# `CustomLevels`.
|
||||
# @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::AccesscontextmanagerV1::AccessLevel] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::AccessLevel]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_access_policy_access_level(name, access_level_format: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::AccessLevel::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::AccessLevel
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['accessLevelFormat'] = access_level_format unless access_level_format.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List all Access Levels for an access
|
||||
# policy.
|
||||
# @param [String] parent
|
||||
# Required. Resource name for the access policy to list Access Levels from.
|
||||
# Format:
|
||||
# `accessPolicies/`policy_id``
|
||||
# @param [String] access_level_format
|
||||
# Whether to return `BasicLevels` in the Cloud Common Expression language, as
|
||||
# `CustomLevels`, rather than as `BasicLevels`. Defaults to returning
|
||||
# `AccessLevels` in the format they were defined.
|
||||
# @param [Fixnum] page_size
|
||||
# Number of Access Levels to include in
|
||||
# the list. Default 100.
|
||||
# @param [String] page_token
|
||||
# Next page token for the next batch of Access Level instances.
|
||||
# Defaults to the first page of results.
|
||||
# @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::AccesscontextmanagerV1::ListAccessLevelsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::ListAccessLevelsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_access_policy_access_levels(parent, access_level_format: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/accessLevels', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::ListAccessLevelsResponse::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::ListAccessLevelsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['accessLevelFormat'] = access_level_format unless access_level_format.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Update an Access Level. The longrunning
|
||||
# operation from this RPC will have a successful status once the changes to
|
||||
# the Access Level have propagated
|
||||
# to long-lasting storage. Access Levels containing
|
||||
# errors will result in an error response for the first error encountered.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the Access Level. The `short_name` component
|
||||
# must begin with a letter and only include alphanumeric and '_'. Format:
|
||||
# `accessPolicies/`policy_id`/accessLevels/`short_name``
|
||||
# @param [Google::Apis::AccesscontextmanagerV1::AccessLevel] access_level_object
|
||||
# @param [String] update_mask
|
||||
# Required. Mask to control which fields get updated. Must be non-empty.
|
||||
# @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::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @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_access_policy_access_level(name, access_level_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::AccesscontextmanagerV1::AccessLevel::Representation
|
||||
command.request_object = access_level_object
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
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
|
||||
|
||||
# Create an Service Perimeter. The
|
||||
# longrunning operation from this RPC will have a successful status once the
|
||||
# Service Perimeter has
|
||||
# propagated to long-lasting storage. Service Perimeters containing
|
||||
# errors will result in an error response for the first error encountered.
|
||||
# @param [String] parent
|
||||
# Required. Resource name for the access policy which owns this Service
|
||||
# Perimeter.
|
||||
# Format: `accessPolicies/`policy_id``
|
||||
# @param [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] service_perimeter_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::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @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_access_policy_service_perimeter(parent, service_perimeter_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/servicePerimeters', options)
|
||||
command.request_representation = Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
||||
command.request_object = service_perimeter_object
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
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
|
||||
|
||||
# Delete an Service Perimeter by resource
|
||||
# name. The longrunning operation from this RPC will have a successful status
|
||||
# once the Service Perimeter has been
|
||||
# removed from long-lasting storage.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the Service Perimeter.
|
||||
# Format:
|
||||
# `accessPolicies/`policy_id`/servicePerimeters/`service_perimeter_id``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_access_policy_service_perimeter(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get an Service Perimeter by resource
|
||||
# name.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the Service Perimeter.
|
||||
# Format:
|
||||
# `accessPolicies/`policy_id`/servicePerimeters/`service_perimeters_id``
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::ServicePerimeter]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_access_policy_service_perimeter(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::ServicePerimeter
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List all Service Perimeters for an
|
||||
# access policy.
|
||||
# @param [String] parent
|
||||
# Required. Resource name for the access policy to list Service Perimeters from.
|
||||
# Format:
|
||||
# `accessPolicies/`policy_id``
|
||||
# @param [Fixnum] page_size
|
||||
# Number of Service Perimeters to include
|
||||
# in the list. Default 100.
|
||||
# @param [String] page_token
|
||||
# Next page token for the next batch of Service Perimeter instances.
|
||||
# Defaults to the first page of results.
|
||||
# @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::AccesscontextmanagerV1::ListServicePerimetersResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::ListServicePerimetersResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_access_policy_service_perimeters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/servicePerimeters', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::ListServicePerimetersResponse::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::ListServicePerimetersResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Update an Service Perimeter. The
|
||||
# longrunning operation from this RPC will have a successful status once the
|
||||
# changes to the Service Perimeter have
|
||||
# propagated to long-lasting storage. Service Perimeter containing
|
||||
# errors will result in an error response for the first error encountered.
|
||||
# @param [String] name
|
||||
# Required. Resource name for the ServicePerimeter. The `short_name`
|
||||
# component must begin with a letter and only include alphanumeric and '_'.
|
||||
# Format: `accessPolicies/`policy_id`/servicePerimeters/`short_name``
|
||||
# @param [Google::Apis::AccesscontextmanagerV1::ServicePerimeter] service_perimeter_object
|
||||
# @param [String] update_mask
|
||||
# Required. Mask to control which fields get updated. Must be non-empty.
|
||||
# @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::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @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_access_policy_service_perimeter(name, service_perimeter_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
||||
command.request_object = service_perimeter_object
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
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
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::AccesscontextmanagerV1::CancelOperationRequest] cancel_operation_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::AccesscontextmanagerV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::AccesscontextmanagerV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Empty::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a long-running operation. This method indicates that the client is
|
||||
# no longer interested in the operation result. It does not cancel the
|
||||
# operation. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be deleted.
|
||||
# @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::AccesscontextmanagerV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Empty::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::AccesscontextmanagerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::AccesscontextmanagerV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AccesscontextmanagerV1::ListOperationsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::AccesscontextmanagerV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::AccesscontextmanagerV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
|
||||
module AccesscontextmanagerV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20190204'
|
||||
REVISION = '20190306'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -572,33 +572,18 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :resources
|
||||
|
||||
# GCP services that are subject to the Service Perimeter restrictions. May
|
||||
# contain a list of services or a single wildcard "*". For example, if
|
||||
# GCP services that are subject to the Service Perimeter restrictions. Must
|
||||
# contain a list of services. For example, if
|
||||
# `storage.googleapis.com` is specified, access to the storage buckets
|
||||
# inside the perimeter must meet the perimeter's access restrictions.
|
||||
# Wildcard means that unless explicitly specified by "unrestricted_services"
|
||||
# list, any service is treated as restricted. One of the fields
|
||||
# "restricted_services", "unrestricted_services" must contain a wildcard "*",
|
||||
# otherwise the Service Perimeter specification is invalid. It also means
|
||||
# that both field being empty is invalid as well. "restricted_services" can
|
||||
# be empty if and only if "unrestricted_services" list contains a "*"
|
||||
# wildcard.
|
||||
# Corresponds to the JSON property `restrictedServices`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :restricted_services
|
||||
|
||||
# GCP services that are not subject to the Service Perimeter restrictions.
|
||||
# May contain a list of services or a single wildcard "*". For example, if
|
||||
# `logging.googleapis.com` is unrestricted, users can access logs inside the
|
||||
# perimeter as if the perimeter doesn't exist, and it also means VMs inside
|
||||
# the perimeter can access logs outside the perimeter.
|
||||
# GCP services that are not subject to the Service Perimeter
|
||||
# restrictions. Deprecated. Must be set to a single wildcard "*".
|
||||
# The wildcard means that unless explicitly specified by
|
||||
# "restricted_services" list, any service is treated as unrestricted. One of
|
||||
# the fields "restricted_services", "unrestricted_services" must contain a
|
||||
# wildcard "*", otherwise the Service Perimeter specification is invalid. It
|
||||
# also means that both field being empty is invalid as well.
|
||||
# "unrestricted_services" can be empty if and only if "restricted_services"
|
||||
# list contains a "*" wildcard.
|
||||
# "restricted_services" list, any service is treated as unrestricted.
|
||||
# Corresponds to the JSON property `unrestrictedServices`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :unrestricted_services
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigtable/
|
||||
module BigtableadminV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190207'
|
||||
REVISION = '20190222'
|
||||
|
||||
# Administer your Cloud Bigtable tables and clusters
|
||||
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
||||
|
|
|
@ -220,7 +220,7 @@ module Google
|
|||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
# * `group:`emailid``: An email address that represents a Google group.
|
||||
# For example, `admins@example.com`.
|
||||
# * `domain:`domain``: A Google Apps domain name that represents all the
|
||||
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
||||
# users of that domain. For example, `google.com` or `example.com`.
|
||||
# Corresponds to the JSON property `members`
|
||||
# @return [Array<String>]
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190116'
|
||||
REVISION = '20190306'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -615,6 +615,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :filename
|
||||
|
||||
# GitHubEventsConfig describes the configuration of a trigger that creates a
|
||||
# build whenever a GitHub event is received.
|
||||
# This message is experimental.
|
||||
# Corresponds to the JSON property `github`
|
||||
# @return [Google::Apis::CloudbuildV1::GitHubEventsConfig]
|
||||
attr_accessor :github
|
||||
|
||||
# Output only. Unique identifier of the trigger.
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
|
@ -663,6 +670,7 @@ module Google
|
|||
@description = args[:description] if args.key?(:description)
|
||||
@disabled = args[:disabled] if args.key?(:disabled)
|
||||
@filename = args[:filename] if args.key?(:filename)
|
||||
@github = args[:github] if args.key?(:github)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@ignored_files = args[:ignored_files] if args.key?(:ignored_files)
|
||||
@included_files = args[:included_files] if args.key?(:included_files)
|
||||
|
@ -729,6 +737,20 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A CheckSuiteFilter is a filter that indicates that we should build on all
|
||||
# check suite events.
|
||||
class CheckSuiteFilter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
|
@ -768,6 +790,59 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# GitHubEventsConfig describes the configuration of a trigger that creates a
|
||||
# build whenever a GitHub event is received.
|
||||
# This message is experimental.
|
||||
class GitHubEventsConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A CheckSuiteFilter is a filter that indicates that we should build on all
|
||||
# check suite events.
|
||||
# Corresponds to the JSON property `checkSuite`
|
||||
# @return [Google::Apis::CloudbuildV1::CheckSuiteFilter]
|
||||
attr_accessor :check_suite
|
||||
|
||||
# The installationID that emmits the GitHub event.
|
||||
# Corresponds to the JSON property `installationId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :installation_id
|
||||
|
||||
# Name of the repository.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Owner of the repository.
|
||||
# Corresponds to the JSON property `owner`
|
||||
# @return [String]
|
||||
attr_accessor :owner
|
||||
|
||||
# PullRequestFilter contains filter properties for matching GitHub Pull
|
||||
# Requests.
|
||||
# Corresponds to the JSON property `pullRequest`
|
||||
# @return [Google::Apis::CloudbuildV1::PullRequestFilter]
|
||||
attr_accessor :pull_request
|
||||
|
||||
# Push contains filter properties for matching GitHub git pushes.
|
||||
# Corresponds to the JSON property `push`
|
||||
# @return [Google::Apis::CloudbuildV1::PushFilter]
|
||||
attr_accessor :push
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@check_suite = args[:check_suite] if args.key?(:check_suite)
|
||||
@installation_id = args[:installation_id] if args.key?(:installation_id)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@owner = args[:owner] if args.key?(:owner)
|
||||
@pull_request = args[:pull_request] if args.key?(:pull_request)
|
||||
@push = args[:push] if args.key?(:push)
|
||||
end
|
||||
end
|
||||
|
||||
# Container message for hash values.
|
||||
class HashProp
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -876,14 +951,14 @@ module Google
|
|||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
|
@ -960,6 +1035,64 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# PullRequestFilter contains filter properties for matching GitHub Pull
|
||||
# Requests.
|
||||
class PullRequestFilter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Regex of branches to match.
|
||||
# The syntax of the regular expressions accepted is the syntax accepted by
|
||||
# RE2 and described at https://github.com/google/re2/wiki/Syntax
|
||||
# Corresponds to the JSON property `branch`
|
||||
# @return [String]
|
||||
attr_accessor :branch
|
||||
|
||||
# Whether to block builds on a "/gcbrun" comment from a repository owner or
|
||||
# collaborator.
|
||||
# Corresponds to the JSON property `commentControl`
|
||||
# @return [String]
|
||||
attr_accessor :comment_control
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@branch = args[:branch] if args.key?(:branch)
|
||||
@comment_control = args[:comment_control] if args.key?(:comment_control)
|
||||
end
|
||||
end
|
||||
|
||||
# Push contains filter properties for matching GitHub git pushes.
|
||||
class PushFilter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Regexes of branches to match.
|
||||
# The syntax of the regular expressions accepted is the syntax accepted by
|
||||
# RE2 and described at https://github.com/google/re2/wiki/Syntax
|
||||
# Corresponds to the JSON property `branch`
|
||||
# @return [String]
|
||||
attr_accessor :branch
|
||||
|
||||
# Regexes of tags to match.
|
||||
# The syntax of the regular expressions accepted is the syntax accepted by
|
||||
# RE2 and described at https://github.com/google/re2/wiki/Syntax
|
||||
# Corresponds to the JSON property `tag`
|
||||
# @return [String]
|
||||
attr_accessor :tag
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@branch = args[:branch] if args.key?(:branch)
|
||||
@tag = args[:tag] if args.key?(:tag)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in a Google Cloud Source Repository.
|
||||
class RepoSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1168,14 +1301,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for different
|
||||
# programming environments, including REST APIs and RPC APIs. It is used by
|
||||
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error message,
|
||||
# and error details. The error code should be an enum value of
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
|
|
|
@ -88,6 +88,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CheckSuiteFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -100,6 +106,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GitHubEventsConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HashProp
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -130,6 +142,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PullRequestFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PushFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -311,6 +335,8 @@ module Google
|
|||
property :description, as: 'description'
|
||||
property :disabled, as: 'disabled'
|
||||
property :filename, as: 'filename'
|
||||
property :github, as: 'github', class: Google::Apis::CloudbuildV1::GitHubEventsConfig, decorator: Google::Apis::CloudbuildV1::GitHubEventsConfig::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
collection :ignored_files, as: 'ignoredFiles'
|
||||
collection :included_files, as: 'includedFiles'
|
||||
|
@ -342,6 +368,12 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CheckSuiteFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -356,6 +388,21 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class GitHubEventsConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :check_suite, as: 'checkSuite', class: Google::Apis::CloudbuildV1::CheckSuiteFilter, decorator: Google::Apis::CloudbuildV1::CheckSuiteFilter::Representation
|
||||
|
||||
property :installation_id, :numeric_string => true, as: 'installationId'
|
||||
property :name, as: 'name'
|
||||
property :owner, as: 'owner'
|
||||
property :pull_request, as: 'pullRequest', class: Google::Apis::CloudbuildV1::PullRequestFilter, decorator: Google::Apis::CloudbuildV1::PullRequestFilter::Representation
|
||||
|
||||
property :push, as: 'push', class: Google::Apis::CloudbuildV1::PushFilter, decorator: Google::Apis::CloudbuildV1::PushFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -402,6 +449,22 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class PullRequestFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :branch, as: 'branch'
|
||||
property :comment_control, as: 'commentControl'
|
||||
end
|
||||
end
|
||||
|
||||
class PushFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :branch, as: 'branch'
|
||||
property :tag, as: 'tag'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190127'
|
||||
REVISION = '20190306'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -81,7 +81,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a `WorkerPool` by its project ID and WorkerPool ID.
|
||||
# Deletes a `WorkerPool` by its project ID and WorkerPool name.
|
||||
# This API is experimental.
|
||||
# @param [String] name
|
||||
# The field will contain name of the resource requested, for example:
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190227'
|
||||
REVISION = '20190304'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/scheduler/
|
||||
module CloudschedulerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20181228'
|
||||
REVISION = '20190302'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -36,14 +36,18 @@ module Google
|
|||
|
||||
# App Engine Routing.
|
||||
# For more information about services, versions, and instances see
|
||||
# [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
|
||||
# overview-of-app-engine),
|
||||
# [Microservices Architecture on Google App Engine](https://cloud.google.com/
|
||||
# appengine/docs/python/microservices-on-app-engine),
|
||||
# [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
|
||||
# standard/python/how-requests-are-routed), and
|
||||
# [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
|
||||
# flexible/python/how-requests-are-routed).
|
||||
# [An Overview of App
|
||||
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
||||
# engine),
|
||||
# [Microservices Architecture on Google App
|
||||
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
||||
# engine),
|
||||
# [App Engine Standard request
|
||||
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
||||
# are-routed),
|
||||
# and [App Engine Flex request
|
||||
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
||||
# are-routed).
|
||||
# Corresponds to the JSON property `appEngineRouting`
|
||||
# @return [Google::Apis::CloudschedulerV1beta1::AppEngineRouting]
|
||||
attr_accessor :app_engine_routing
|
||||
|
@ -67,8 +71,8 @@ module Google
|
|||
# `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
|
||||
# modified `User-Agent`.
|
||||
# * `X-CloudScheduler`: This header will be set to true.
|
||||
# If the job has an body, Cloud Scheduler sets the
|
||||
# following headers:
|
||||
# If the job has an body, Cloud Scheduler sets
|
||||
# the following headers:
|
||||
# * `Content-Type`: By default, the `Content-Type` header is set to
|
||||
# `"application/octet-stream"`. The default can be overridden by explictly
|
||||
# setting `Content-Type` to a particular media type when the job is
|
||||
|
@ -116,14 +120,18 @@ module Google
|
|||
|
||||
# App Engine Routing.
|
||||
# For more information about services, versions, and instances see
|
||||
# [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-
|
||||
# overview-of-app-engine),
|
||||
# [Microservices Architecture on Google App Engine](https://cloud.google.com/
|
||||
# appengine/docs/python/microservices-on-app-engine),
|
||||
# [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
|
||||
# standard/python/how-requests-are-routed), and
|
||||
# [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
|
||||
# flexible/python/how-requests-are-routed).
|
||||
# [An Overview of App
|
||||
# Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
||||
# engine),
|
||||
# [Microservices Architecture on Google App
|
||||
# Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-
|
||||
# engine),
|
||||
# [App Engine Standard request
|
||||
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
||||
# are-routed),
|
||||
# and [App Engine Flex request
|
||||
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
||||
# are-routed).
|
||||
class AppEngineRouting
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -177,14 +185,16 @@ module Google
|
|||
# By default, the job is sent to an instance which is available when
|
||||
# the job is attempted.
|
||||
# Requests can only be sent to a specific instance if
|
||||
# [manual scaling is used in App Engine Standard](https://cloud.google.com/
|
||||
# appengine/docs/python/an-overview-of-app-engine?hl=en_US#
|
||||
# scaling_types_and_instance_classes).
|
||||
# [manual scaling is used in App Engine
|
||||
# Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-
|
||||
# engine?hl=en_US#scaling_types_and_instance_classes).
|
||||
# App Engine Flex does not support instances. For more information, see
|
||||
# [App Engine Standard request routing](https://cloud.google.com/appengine/docs/
|
||||
# standard/python/how-requests-are-routed) and
|
||||
# [App Engine Flex request routing](https://cloud.google.com/appengine/docs/
|
||||
# flexible/python/how-requests-are-routed).
|
||||
# [App Engine Standard request
|
||||
# routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-
|
||||
# are-routed)
|
||||
# and [App Engine Flex request
|
||||
# routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-
|
||||
# are-routed).
|
||||
# Corresponds to the JSON property `instance`
|
||||
# @return [String]
|
||||
attr_accessor :instance
|
||||
|
@ -317,6 +327,8 @@ module Google
|
|||
# @return [Google::Apis::CloudschedulerV1beta1::AppEngineHttpTarget]
|
||||
attr_accessor :app_engine_http_target
|
||||
|
||||
# Optionally caller-specified in CreateJob or
|
||||
# UpdateJob.
|
||||
# A human-readable description for the job. This string must not contain
|
||||
# more than 500 characters.
|
||||
# Corresponds to the JSON property `description`
|
||||
|
@ -338,13 +350,16 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :last_attempt_time
|
||||
|
||||
# Optionally caller-specified in CreateJob, after
|
||||
# which it becomes output only.
|
||||
# The job name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
||||
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
||||
# hyphens (-), colons (:), or periods (.).
|
||||
# For more information, see
|
||||
# [Identifying projects](https://cloud.google.com/resource-manager/docs/
|
||||
# creating-managing-projects#identifying_projects)
|
||||
# [Identifying
|
||||
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
||||
# projects#identifying_projects)
|
||||
# * `LOCATION_ID` is the canonical ID for the job's location.
|
||||
# The list of available locations can be obtained by calling
|
||||
# ListLocations.
|
||||
|
@ -369,8 +384,13 @@ module Google
|
|||
# @return [Google::Apis::CloudschedulerV1beta1::RetryConfig]
|
||||
attr_accessor :retry_config
|
||||
|
||||
# Required.
|
||||
# Required, except when used with UpdateJob.
|
||||
# Describes the schedule on which the job will be executed.
|
||||
# The schedule can be either of the following types:
|
||||
# * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
|
||||
# * English-like
|
||||
# [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-
|
||||
# schedules)
|
||||
# As a general rule, execution `n + 1` of a job will not begin
|
||||
# until execution `n` has finished. Cloud Scheduler will never
|
||||
# allow two simultaneously outstanding executions. For example,
|
||||
|
@ -383,10 +403,6 @@ module Google
|
|||
# the job will be tried a total of retry_count
|
||||
# times, with exponential backoff, until the next scheduled start
|
||||
# time.
|
||||
# The schedule can be either of the following types:
|
||||
# * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
|
||||
# * English-like [schedule](https://cloud.google.com/scheduler/docs/configuring/
|
||||
# cron-job-schedules)
|
||||
# Corresponds to the JSON property `schedule`
|
||||
# @return [String]
|
||||
attr_accessor :schedule
|
||||
|
@ -744,8 +760,8 @@ module Google
|
|||
|
||||
# The time limit for retrying a failed job, measured from time when an
|
||||
# execution was first attempted. If specified with
|
||||
# retry_count, the job will be retried until both limits are
|
||||
# reached.
|
||||
# retry_count, the job will be retried until both
|
||||
# limits are reached.
|
||||
# The default value for max_retry_duration is zero, which means retry
|
||||
# duration is unlimited.
|
||||
# Corresponds to the JSON property `maxRetryDuration`
|
||||
|
|
|
@ -271,13 +271,16 @@ module Google
|
|||
# not be executed. If this happens, retry the UpdateJob request
|
||||
# until a successful response is received.
|
||||
# @param [String] name
|
||||
# Optionally caller-specified in CreateJob, after
|
||||
# which it becomes output only.
|
||||
# The job name. For example:
|
||||
# `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
|
||||
# * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
|
||||
# hyphens (-), colons (:), or periods (.).
|
||||
# For more information, see
|
||||
# [Identifying projects](https://cloud.google.com/resource-manager/docs/
|
||||
# creating-managing-projects#identifying_projects)
|
||||
# [Identifying
|
||||
# projects](https://cloud.google.com/resource-manager/docs/creating-managing-
|
||||
# projects#identifying_projects)
|
||||
# * `LOCATION_ID` is the canonical ID for the job's location.
|
||||
# The list of available locations can be obtained by calling
|
||||
# ListLocations.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190206'
|
||||
REVISION = '20190227'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -103,34 +103,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Configuration for returning group information from authenticators.
|
||||
class AuthenticatorGroupsConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether this cluster should return group membership lookups
|
||||
# during authentication using a group of security groups.
|
||||
# Corresponds to the JSON property `enabled`
|
||||
# @return [Boolean]
|
||||
attr_accessor :enabled
|
||||
alias_method :enabled?, :enabled
|
||||
|
||||
# The name of the security group-of-groups to be used. Only relevant
|
||||
# if enabled = true.
|
||||
# Corresponds to the JSON property `securityGroup`
|
||||
# @return [String]
|
||||
attr_accessor :security_group
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@enabled = args[:enabled] if args.key?(:enabled)
|
||||
@security_group = args[:security_group] if args.key?(:security_group)
|
||||
end
|
||||
end
|
||||
|
||||
# AutoUpgradeOptions defines the set of options for the user to control how
|
||||
# the Auto Upgrades will proceed.
|
||||
class AutoUpgradeOptions
|
||||
|
@ -318,11 +290,6 @@ module Google
|
|||
# @return [Google::Apis::ContainerV1beta1::AddonsConfig]
|
||||
attr_accessor :addons_config
|
||||
|
||||
# Configuration for returning group information from authenticators.
|
||||
# Corresponds to the JSON property `authenticatorGroupsConfig`
|
||||
# @return [Google::Apis::ContainerV1beta1::AuthenticatorGroupsConfig]
|
||||
attr_accessor :authenticator_groups_config
|
||||
|
||||
# ClusterAutoscaling contains global, per-cluster information
|
||||
# required by Cluster Autoscaler to automatically adjust
|
||||
# the size of the cluster and create/delete
|
||||
|
@ -674,7 +641,6 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
||||
@authenticator_groups_config = args[:authenticator_groups_config] if args.key?(:authenticator_groups_config)
|
||||
@autoscaling = args[:autoscaling] if args.key?(:autoscaling)
|
||||
@binary_authorization = args[:binary_authorization] if args.key?(:binary_authorization)
|
||||
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
||||
|
|
|
@ -34,12 +34,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuthenticatorGroupsConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AutoUpgradeOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -510,14 +504,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class AuthenticatorGroupsConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :enabled, as: 'enabled'
|
||||
property :security_group, as: 'securityGroup'
|
||||
end
|
||||
end
|
||||
|
||||
class AutoUpgradeOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -577,8 +563,6 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1beta1::AddonsConfig, decorator: Google::Apis::ContainerV1beta1::AddonsConfig::Representation
|
||||
|
||||
property :authenticator_groups_config, as: 'authenticatorGroupsConfig', class: Google::Apis::ContainerV1beta1::AuthenticatorGroupsConfig, decorator: Google::Apis::ContainerV1beta1::AuthenticatorGroupsConfig::Representation
|
||||
|
||||
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1beta1::ClusterAutoscaling, decorator: Google::Apis::ContainerV1beta1::ClusterAutoscaling::Representation
|
||||
|
||||
property :binary_authorization, as: 'binaryAuthorization', class: Google::Apis::ContainerV1beta1::BinaryAuthorization, decorator: Google::Apis::ContainerV1beta1::BinaryAuthorization::Representation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://firebase.google.com/docs/dynamic-links/
|
||||
module FirebasedynamiclinksV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190211'
|
||||
REVISION = '20190304'
|
||||
|
||||
# View and administer all your Firebase data and settings
|
||||
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
|
||||
|
|
|
@ -27,8 +27,9 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Parameters for Google Play Campaign Measurements.
|
||||
# [Learn more](https://developers.google.com/analytics/devguides/collection/
|
||||
# android/v4/campaigns#campaign-params)
|
||||
# [Learn
|
||||
# more](https://developers.google.com/analytics/devguides/collection/android/v4/
|
||||
# campaigns#campaign-params)
|
||||
# Corresponds to the JSON property `googlePlayAnalytics`
|
||||
# @return [Google::Apis::FirebasedynamiclinksV1::GooglePlayAnalytics]
|
||||
attr_accessor :google_play_analytics
|
||||
|
@ -377,8 +378,9 @@ module Google
|
|||
attr_accessor :domain_uri_prefix
|
||||
|
||||
# Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl
|
||||
# [Learn more](https://firebase.google.com/docs/dynamic-links/android/receive)
|
||||
# on how to set up Dynamic Link domain associated with your Firebase project.
|
||||
# [Learn
|
||||
# more](https://firebase.google.com/docs/dynamic-links/android/receive) on
|
||||
# how to set up Dynamic Link domain associated with your Firebase project.
|
||||
# Required if missing domain_uri_prefix.
|
||||
# Corresponds to the JSON property `dynamicLinkDomain`
|
||||
# @return [String]
|
||||
|
@ -764,15 +766,16 @@ module Google
|
|||
end
|
||||
|
||||
# Parameters for Google Play Campaign Measurements.
|
||||
# [Learn more](https://developers.google.com/analytics/devguides/collection/
|
||||
# android/v4/campaigns#campaign-params)
|
||||
# [Learn
|
||||
# more](https://developers.google.com/analytics/devguides/collection/android/v4/
|
||||
# campaigns#campaign-params)
|
||||
class GooglePlayAnalytics
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [AdWords autotagging parameter](https://support.google.com/analytics/answer/
|
||||
# 1033981?hl=en);
|
||||
# used to measure Google AdWords ads. This value is generated dynamically
|
||||
# and should never be modified.
|
||||
# [AdWords autotagging
|
||||
# parameter](https://support.google.com/analytics/answer/1033981?hl=en); used
|
||||
# to measure Google AdWords ads. This value is generated dynamically and
|
||||
# should never be modified.
|
||||
# Corresponds to the JSON property `gclid`
|
||||
# @return [String]
|
||||
attr_accessor :gclid
|
||||
|
|
|
@ -28,7 +28,7 @@ module Google
|
|||
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
|
||||
module RuntimeconfigV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190225'
|
||||
REVISION = '20190305'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -697,9 +697,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Output only. The current state of the variable. The variable state indicates
|
||||
# the outcome of the `variables().watch` call and is visible through the
|
||||
# `get` and `list` calls.
|
||||
# Output only. The current state of the variable. The variable state
|
||||
# indicates the outcome of the `variables().watch` call and is visible
|
||||
# through the `get` and `list` calls.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
@ -741,17 +741,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# A Waiter resource waits for some end condition within a RuntimeConfig resource
|
||||
# to be met before it returns. For example, assume you have a distributed
|
||||
# system where each node writes to a Variable resource indicating the node's
|
||||
# readiness as part of the startup process.
|
||||
# A Waiter resource waits for some end condition within a RuntimeConfig
|
||||
# resource to be met before it returns. For example, assume you have a
|
||||
# distributed system where each node writes to a Variable resource indicating
|
||||
# the node's readiness as part of the startup process.
|
||||
# You then configure a Waiter resource with the success condition set to wait
|
||||
# until some number of nodes have checked in. Afterwards, your application
|
||||
# runs some arbitrary code after the condition has been met and the waiter
|
||||
# returns successfully.
|
||||
# Once created, a Waiter resource is immutable.
|
||||
# To learn more about using waiters, read the
|
||||
# [Creating a Waiter](/deployment-manager/runtime-configurator/creating-a-waiter)
|
||||
# [Creating a
|
||||
# Waiter](/deployment-manager/runtime-configurator/creating-a-waiter)
|
||||
# documentation.
|
||||
class Waiter
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
||||
module ServiceconsumermanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190227'
|
||||
REVISION = '20190305'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -198,8 +198,8 @@ module Google
|
|||
end
|
||||
|
||||
# Configuration for an anthentication provider, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthProvider
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -243,15 +243,16 @@ module Google
|
|||
attr_accessor :issuer
|
||||
|
||||
# URL of the provider's public key set to validate signature of the JWT. See
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# ProviderMetadata).
|
||||
# Optional if the key set document:
|
||||
# - can be retrieved from
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
|
||||
# html
|
||||
# of the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google service
|
||||
# account).
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of
|
||||
# the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
# service account).
|
||||
# Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
# Corresponds to the JSON property `jwksUri`
|
||||
# @return [String]
|
||||
|
@ -272,8 +273,8 @@ module Google
|
|||
end
|
||||
|
||||
# User-defined authentication requirements, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthRequirement
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -952,8 +953,8 @@ module Google
|
|||
class DocumentationRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Deprecation description of the selected element(s). It can be provided if an
|
||||
# element is marked as `deprecated`.
|
||||
# Deprecation description of the selected element(s). It can be provided if
|
||||
# an element is marked as `deprecated`.
|
||||
# Corresponds to the JSON property `deprecationDescription`
|
||||
# @return [String]
|
||||
attr_accessor :deprecation_description
|
||||
|
@ -1051,10 +1052,10 @@ module Google
|
|||
attr_accessor :name
|
||||
|
||||
# The specification of an Internet routable address of API frontend that will
|
||||
# handle requests to this [API Endpoint](https://cloud.google.com/apis/design/
|
||||
# glossary).
|
||||
# It should be either a valid IPv4 address or a fully-qualified domain name.
|
||||
# For example, "8.8.8.8" or "myservice.appspot.com".
|
||||
# handle requests to this [API
|
||||
# Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
# either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
# "8.8.8.8" or "myservice.appspot.com".
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
@ -2482,9 +2483,8 @@ module Google
|
|||
class Page
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Markdown content of the page. You can use <code>(== include `path` ==&#
|
||||
# 41;</code>
|
||||
# to include content from a Markdown file.
|
||||
# The Markdown content of the page. You can use <code>(== include `path`
|
||||
# ==)</code> to include content from a Markdown file.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [String]
|
||||
attr_accessor :content
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
|
||||
module ServicenetworkingV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20190227'
|
||||
REVISION = '20190305'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -184,8 +184,8 @@ module Google
|
|||
end
|
||||
|
||||
# Configuration for an anthentication provider, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthProvider
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -229,15 +229,16 @@ module Google
|
|||
attr_accessor :issuer
|
||||
|
||||
# URL of the provider's public key set to validate signature of the JWT. See
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# ProviderMetadata).
|
||||
# Optional if the key set document:
|
||||
# - can be retrieved from
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
|
||||
# html
|
||||
# of the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google service
|
||||
# account).
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of
|
||||
# the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
# service account).
|
||||
# Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
# Corresponds to the JSON property `jwksUri`
|
||||
# @return [String]
|
||||
|
@ -258,8 +259,8 @@ module Google
|
|||
end
|
||||
|
||||
# User-defined authentication requirements, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthRequirement
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -932,8 +933,8 @@ module Google
|
|||
class DocumentationRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Deprecation description of the selected element(s). It can be provided if an
|
||||
# element is marked as `deprecated`.
|
||||
# Deprecation description of the selected element(s). It can be provided if
|
||||
# an element is marked as `deprecated`.
|
||||
# Corresponds to the JSON property `deprecationDescription`
|
||||
# @return [String]
|
||||
attr_accessor :deprecation_description
|
||||
|
@ -1012,10 +1013,10 @@ module Google
|
|||
attr_accessor :name
|
||||
|
||||
# The specification of an Internet routable address of API frontend that will
|
||||
# handle requests to this [API Endpoint](https://cloud.google.com/apis/design/
|
||||
# glossary).
|
||||
# It should be either a valid IPv4 address or a fully-qualified domain name.
|
||||
# For example, "8.8.8.8" or "myservice.appspot.com".
|
||||
# handle requests to this [API
|
||||
# Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
# either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
# "8.8.8.8" or "myservice.appspot.com".
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
@ -2456,9 +2457,8 @@ module Google
|
|||
class Page
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Markdown content of the page. You can use <code>(== include `path` ==&#
|
||||
# 41;</code>
|
||||
# to include content from a Markdown file.
|
||||
# The Markdown content of the page. You can use <code>(== include `path`
|
||||
# ==)</code> to include content from a Markdown file.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [String]
|
||||
attr_accessor :content
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-usage/
|
||||
module ServiceusageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190227'
|
||||
REVISION = '20190305'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -103,8 +103,8 @@ module Google
|
|||
end
|
||||
|
||||
# Configuration for an anthentication provider, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthProvider
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -148,15 +148,16 @@ module Google
|
|||
attr_accessor :issuer
|
||||
|
||||
# URL of the provider's public key set to validate signature of the JWT. See
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# ProviderMetadata).
|
||||
# Optional if the key set document:
|
||||
# - can be retrieved from
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
|
||||
# html
|
||||
# of the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google service
|
||||
# account).
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of
|
||||
# the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
# service account).
|
||||
# Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
# Corresponds to the JSON property `jwksUri`
|
||||
# @return [String]
|
||||
|
@ -177,8 +178,8 @@ module Google
|
|||
end
|
||||
|
||||
# User-defined authentication requirements, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthRequirement
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -913,8 +914,8 @@ module Google
|
|||
class DocumentationRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Deprecation description of the selected element(s). It can be provided if an
|
||||
# element is marked as `deprecated`.
|
||||
# Deprecation description of the selected element(s). It can be provided if
|
||||
# an element is marked as `deprecated`.
|
||||
# Corresponds to the JSON property `deprecationDescription`
|
||||
# @return [String]
|
||||
attr_accessor :deprecation_description
|
||||
|
@ -1071,10 +1072,10 @@ module Google
|
|||
attr_accessor :name
|
||||
|
||||
# The specification of an Internet routable address of API frontend that will
|
||||
# handle requests to this [API Endpoint](https://cloud.google.com/apis/design/
|
||||
# glossary).
|
||||
# It should be either a valid IPv4 address or a fully-qualified domain name.
|
||||
# For example, "8.8.8.8" or "myservice.appspot.com".
|
||||
# handle requests to this [API
|
||||
# Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
# either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
# "8.8.8.8" or "myservice.appspot.com".
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
@ -3121,9 +3122,8 @@ module Google
|
|||
class Page
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Markdown content of the page. You can use <code>(== include `path` ==&#
|
||||
# 41;</code>
|
||||
# to include content from a Markdown file.
|
||||
# The Markdown content of the page. You can use <code>(== include `path`
|
||||
# ==)</code> to include content from a Markdown file.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [String]
|
||||
attr_accessor :content
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-usage/
|
||||
module ServiceusageV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190227'
|
||||
REVISION = '20190305'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -103,8 +103,8 @@ module Google
|
|||
end
|
||||
|
||||
# Configuration for an anthentication provider, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthProvider
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -148,15 +148,16 @@ module Google
|
|||
attr_accessor :issuer
|
||||
|
||||
# URL of the provider's public key set to validate signature of the JWT. See
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
|
||||
# ProviderMetadata).
|
||||
# Optional if the key set document:
|
||||
# - can be retrieved from
|
||||
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
|
||||
# html
|
||||
# of the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google service
|
||||
# account).
|
||||
# [OpenID
|
||||
# Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of
|
||||
# the issuer.
|
||||
# - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
# service account).
|
||||
# Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
# Corresponds to the JSON property `jwksUri`
|
||||
# @return [String]
|
||||
|
@ -177,8 +178,8 @@ module Google
|
|||
end
|
||||
|
||||
# User-defined authentication requirements, including support for
|
||||
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
|
||||
# token-32).
|
||||
# [JSON Web Token
|
||||
# (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
class AuthRequirement
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -889,8 +890,8 @@ module Google
|
|||
class DocumentationRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Deprecation description of the selected element(s). It can be provided if an
|
||||
# element is marked as `deprecated`.
|
||||
# Deprecation description of the selected element(s). It can be provided if
|
||||
# an element is marked as `deprecated`.
|
||||
# Corresponds to the JSON property `deprecationDescription`
|
||||
# @return [String]
|
||||
attr_accessor :deprecation_description
|
||||
|
@ -1047,10 +1048,10 @@ module Google
|
|||
attr_accessor :name
|
||||
|
||||
# The specification of an Internet routable address of API frontend that will
|
||||
# handle requests to this [API Endpoint](https://cloud.google.com/apis/design/
|
||||
# glossary).
|
||||
# It should be either a valid IPv4 address or a fully-qualified domain name.
|
||||
# For example, "8.8.8.8" or "myservice.appspot.com".
|
||||
# handle requests to this [API
|
||||
# Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
# either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
# "8.8.8.8" or "myservice.appspot.com".
|
||||
# Corresponds to the JSON property `target`
|
||||
# @return [String]
|
||||
attr_accessor :target
|
||||
|
@ -3097,9 +3098,8 @@ module Google
|
|||
class Page
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The Markdown content of the page. You can use <code>(== include `path` ==&#
|
||||
# 41;</code>
|
||||
# to include content from a Markdown file.
|
||||
# The Markdown content of the page. You can use <code>(== include `path`
|
||||
# ==)</code> to include content from a Markdown file.
|
||||
# Corresponds to the JSON property `content`
|
||||
# @return [String]
|
||||
attr_accessor :content
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://developers.google.com/streetview/publish/
|
||||
module StreetviewpublishV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190304'
|
||||
REVISION = '20190305'
|
||||
|
||||
# Publish and manage your 360 photos on Google Street View
|
||||
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'
|
||||
|
|
|
@ -376,7 +376,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :download_url
|
||||
|
||||
# Output only. Status in Google Maps, whether this photo was published, or
|
||||
# Output only. Status in Google Maps, whether this photo was published or
|
||||
# rejected.
|
||||
# Corresponds to the JSON property `mapsPublishStatus`
|
||||
# @return [String]
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/youtube/partner/
|
||||
module YoutubePartnerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190211'
|
||||
REVISION = '20190303'
|
||||
|
||||
# View and manage your assets and associated content on YouTube
|
||||
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
||||
|
|
Loading…
Reference in New Issue