594 lines
19 KiB
Ruby
594 lines
19 KiB
Ruby
|
# Copyright 2020 Google LLC
|
||
|
#
|
||
|
# 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 CloudresourcemanagerV2
|
||
|
|
||
|
class AuditConfig
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class AuditLogConfig
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class Binding
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class CreateFolderMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class CreateProjectMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class CreateTagKeyMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class CreateTagValueMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class DeleteFolderMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class DeleteOrganizationMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class DeleteProjectMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class DeleteTagKeyMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class DeleteTagValueMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class Expr
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class Folder
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class FolderOperation
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class FolderOperationError
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class GetIamPolicyRequest
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class GetPolicyOptions
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class ListFoldersResponse
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class MoveFolderMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class MoveFolderRequest
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class MoveProjectMetadata
|
||
|
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 Policy
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class ProjectCreationStatus
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class SearchFoldersRequest
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class SearchFoldersResponse
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class SetIamPolicyRequest
|
||
|
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 TestIamPermissionsRequest
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class TestIamPermissionsResponse
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UndeleteFolderMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UndeleteFolderRequest
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UndeleteOrganizationMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UndeleteProjectMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UpdateFolderMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UpdateProjectMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UpdateTagKeyMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class UpdateTagValueMetadata
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||
|
|
||
|
include Google::Apis::Core::JsonObjectSupport
|
||
|
end
|
||
|
|
||
|
class AuditConfig
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV2::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV2::AuditLogConfig::Representation
|
||
|
|
||
|
property :service, as: 'service'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class AuditLogConfig
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
collection :exempted_members, as: 'exemptedMembers'
|
||
|
property :log_type, as: 'logType'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Binding
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2::Expr, decorator: Google::Apis::CloudresourcemanagerV2::Expr::Representation
|
||
|
|
||
|
collection :members, as: 'members'
|
||
|
property :role, as: 'role'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :destination_parent, as: 'destinationParent'
|
||
|
property :display_name, as: 'displayName'
|
||
|
property :operation_type, as: 'operationType'
|
||
|
property :source_parent, as: 'sourceParent'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :destination_parent, as: 'destinationParent'
|
||
|
property :display_name, as: 'displayName'
|
||
|
property :operation_type, as: 'operationType'
|
||
|
property :source_parent, as: 'sourceParent'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class CreateFolderMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :display_name, as: 'displayName'
|
||
|
property :parent, as: 'parent'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class CreateProjectMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :create_time, as: 'createTime'
|
||
|
property :gettable, as: 'gettable'
|
||
|
property :ready, as: 'ready'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class CreateTagKeyMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class CreateTagValueMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class DeleteFolderMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class DeleteOrganizationMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class DeleteProjectMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class DeleteTagKeyMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class DeleteTagValueMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Expr
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :description, as: 'description'
|
||
|
property :expression, as: 'expression'
|
||
|
property :location, as: 'location'
|
||
|
property :title, as: 'title'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Folder
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :create_time, as: 'createTime'
|
||
|
property :display_name, as: 'displayName'
|
||
|
property :lifecycle_state, as: 'lifecycleState'
|
||
|
property :name, as: 'name'
|
||
|
property :parent, as: 'parent'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class FolderOperation
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :destination_parent, as: 'destinationParent'
|
||
|
property :display_name, as: 'displayName'
|
||
|
property :operation_type, as: 'operationType'
|
||
|
property :source_parent, as: 'sourceParent'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class FolderOperationError
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :error_message_id, as: 'errorMessageId'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class GetIamPolicyRequest
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :options, as: 'options', class: Google::Apis::CloudresourcemanagerV2::GetPolicyOptions, decorator: Google::Apis::CloudresourcemanagerV2::GetPolicyOptions::Representation
|
||
|
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class GetPolicyOptions
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :requested_policy_version, as: 'requestedPolicyVersion'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class ListFoldersResponse
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
collection :folders, as: 'folders', class: Google::Apis::CloudresourcemanagerV2::Folder, decorator: Google::Apis::CloudresourcemanagerV2::Folder::Representation
|
||
|
|
||
|
property :next_page_token, as: 'nextPageToken'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class MoveFolderMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :destination_parent, as: 'destinationParent'
|
||
|
property :display_name, as: 'displayName'
|
||
|
property :source_parent, as: 'sourceParent'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class MoveFolderRequest
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :destination_parent, as: 'destinationParent'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class MoveProjectMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Operation
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :done, as: 'done'
|
||
|
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV2::Status, decorator: Google::Apis::CloudresourcemanagerV2::Status::Representation
|
||
|
|
||
|
hash :metadata, as: 'metadata'
|
||
|
property :name, as: 'name'
|
||
|
hash :response, as: 'response'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Policy
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV2::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV2::AuditConfig::Representation
|
||
|
|
||
|
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV2::Binding, decorator: Google::Apis::CloudresourcemanagerV2::Binding::Representation
|
||
|
|
||
|
property :etag, :base64 => true, as: 'etag'
|
||
|
property :version, as: 'version'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class ProjectCreationStatus
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :create_time, as: 'createTime'
|
||
|
property :gettable, as: 'gettable'
|
||
|
property :ready, as: 'ready'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class SearchFoldersRequest
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :page_size, as: 'pageSize'
|
||
|
property :page_token, as: 'pageToken'
|
||
|
property :query, as: 'query'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class SearchFoldersResponse
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
collection :folders, as: 'folders', class: Google::Apis::CloudresourcemanagerV2::Folder, decorator: Google::Apis::CloudresourcemanagerV2::Folder::Representation
|
||
|
|
||
|
property :next_page_token, as: 'nextPageToken'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class SetIamPolicyRequest
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV2::Policy, decorator: Google::Apis::CloudresourcemanagerV2::Policy::Representation
|
||
|
|
||
|
property :update_mask, as: 'updateMask'
|
||
|
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
|
||
|
|
||
|
class TestIamPermissionsRequest
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
collection :permissions, as: 'permissions'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class TestIamPermissionsResponse
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
collection :permissions, as: 'permissions'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UndeleteFolderMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UndeleteFolderRequest
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UndeleteOrganizationMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UndeleteProjectMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UpdateFolderMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UpdateProjectMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UpdateTagKeyMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class UpdateTagValueMetadata
|
||
|
# @private
|
||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|