google-api-ruby-client/generated/google/apis/cloudkms_v1/representations.rb

468 lines
16 KiB
Ruby
Raw Normal View History

2017-03-10 21:11:09 +00:00
# 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 CloudkmsV1
2017-07-12 20:10:42 +00:00
class Condition
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class CounterOptions
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class AuditLogConfig
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class DecryptResponse
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class TestIamPermissionsRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class EncryptResponse
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class KeyRing
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class ListLocationsResponse
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class Policy
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class UpdateCryptoKeyPrimaryVersionRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class RestoreCryptoKeyVersionRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class DataAccessOptions
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class ListKeyRingsResponse
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class AuditConfig
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class CryptoKeyVersion
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class CloudAuditOptions
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class Binding
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class Expr
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class EncryptRequest
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class ListCryptoKeyVersionsResponse
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class TestIamPermissionsResponse
2017-03-10 21:11:09 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class DestroyCryptoKeyVersionRequest
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
2017-07-12 20:10:42 +00:00
class CryptoKey
2017-03-31 19:53:27 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
2017-03-10 21:11:09 +00:00
2017-03-31 19:53:27 +00:00
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
2017-07-12 20:10:42 +00:00
class Rule
2017-04-03 20:18:48 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
2017-07-12 20:10:42 +00:00
class LogConfig
2017-04-03 20:18:48 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
2017-07-12 20:10:42 +00:00
class SetIamPolicyRequest
2017-04-03 20:18:48 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
2017-07-12 20:10:42 +00:00
class DecryptRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
2017-07-12 20:10:42 +00:00
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
2017-03-10 21:11:09 +00:00
end
2017-07-12 20:10:42 +00:00
class ListCryptoKeysResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-07-12 20:10:42 +00:00
class Condition
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :svc, as: 'svc'
property :value, as: 'value'
property :sys, as: 'sys'
collection :values, as: 'values'
property :iam, as: 'iam'
property :op, as: 'op'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class CounterOptions
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :field, as: 'field'
property :metric, as: 'metric'
2017-04-03 20:18:48 +00:00
end
end
2017-07-12 20:10:42 +00:00
class AuditLogConfig
2017-04-03 20:18:48 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
2017-04-03 20:18:48 +00:00
end
end
2017-07-12 20:10:42 +00:00
class DecryptResponse
2017-04-03 20:18:48 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plaintext, :base64 => true, as: 'plaintext'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class TestIamPermissionsRequest
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class EncryptResponse
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :ciphertext, :base64 => true, as: 'ciphertext'
property :name, as: 'name'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class KeyRing
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :name, as: 'name'
2017-03-31 19:53:27 +00:00
end
end
2017-07-12 20:10:42 +00:00
class ListLocationsResponse
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
2017-07-12 20:10:42 +00:00
property :next_page_token, as: 'nextPageToken'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class Policy
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
2017-07-12 20:10:42 +00:00
collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
2017-07-12 20:10:42 +00:00
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class UpdateCryptoKeyPrimaryVersionRequest
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :crypto_key_version_id, as: 'cryptoKeyVersionId'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class RestoreCryptoKeyVersionRequest
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-07-12 20:10:42 +00:00
class DataAccessOptions
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-07-12 20:10:42 +00:00
class ListKeyRingsResponse
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
collection :key_rings, as: 'keyRings', class: Google::Apis::CloudkmsV1::KeyRing, decorator: Google::Apis::CloudkmsV1::KeyRing::Representation
2017-07-12 20:10:42 +00:00
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class AuditConfig
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class CryptoKeyVersion
2017-04-03 20:18:48 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :create_time, as: 'createTime'
property :state, as: 'state'
property :name, as: 'name'
property :destroy_event_time, as: 'destroyEventTime'
property :destroy_time, as: 'destroyTime'
2017-04-03 20:18:48 +00:00
end
end
2017-07-12 20:10:42 +00:00
class CloudAuditOptions
2017-03-27 22:14:47 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :log_name, as: 'logName'
2017-03-31 19:53:27 +00:00
end
end
2017-07-12 20:10:42 +00:00
class Binding
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :condition, as: 'condition', class: Google::Apis::CloudkmsV1::Expr, decorator: Google::Apis::CloudkmsV1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class Expr
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :location, as: 'location'
property :title, as: 'title'
property :description, as: 'description'
property :expression, as: 'expression'
2017-03-10 21:11:09 +00:00
end
end
2017-07-12 20:10:42 +00:00
class EncryptRequest
2017-03-10 21:11:09 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :plaintext, :base64 => true, as: 'plaintext'
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
end
end
2017-05-26 16:44:32 +00:00
2017-07-12 20:10:42 +00:00
class ListCryptoKeyVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
2017-03-10 21:11:09 +00:00
end
end
2017-03-31 19:53:27 +00:00
2017-07-12 20:10:42 +00:00
class TestIamPermissionsResponse
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
collection :permissions, as: 'permissions'
2017-03-31 19:53:27 +00:00
end
end
2017-07-12 20:10:42 +00:00
class DestroyCryptoKeyVersionRequest
2017-03-31 19:53:27 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-04-03 20:18:48 +00:00
2017-07-12 20:10:42 +00:00
class CryptoKey
2017-04-03 20:18:48 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :name, as: 'name'
property :purpose, as: 'purpose'
property :next_rotation_time, as: 'nextRotationTime'
property :create_time, as: 'createTime'
property :rotation_period, as: 'rotationPeriod'
property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
2017-04-03 20:18:48 +00:00
end
end
2017-07-12 20:10:42 +00:00
class Rule
2017-04-03 20:18:48 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :description, as: 'description'
collection :conditions, as: 'conditions', class: Google::Apis::CloudkmsV1::Condition, decorator: Google::Apis::CloudkmsV1::Condition::Representation
collection :log_config, as: 'logConfig', class: Google::Apis::CloudkmsV1::LogConfig, decorator: Google::Apis::CloudkmsV1::LogConfig::Representation
collection :in, as: 'in'
collection :permissions, as: 'permissions'
property :action, as: 'action'
collection :not_in, as: 'notIn'
2017-05-26 16:44:32 +00:00
end
end
2017-07-12 20:10:42 +00:00
class LogConfig
2017-05-26 16:44:32 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :counter, as: 'counter', class: Google::Apis::CloudkmsV1::CounterOptions, decorator: Google::Apis::CloudkmsV1::CounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::CloudkmsV1::DataAccessOptions, decorator: Google::Apis::CloudkmsV1::DataAccessOptions::Representation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudkmsV1::CloudAuditOptions, decorator: Google::Apis::CloudkmsV1::CloudAuditOptions::Representation
2017-04-03 20:18:48 +00:00
end
end
2017-07-12 20:10:42 +00:00
class SetIamPolicyRequest
2017-04-03 20:18:48 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
2017-07-12 20:10:42 +00:00
property :update_mask, as: 'updateMask'
end
end
2017-07-12 20:10:42 +00:00
class DecryptRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
property :ciphertext, :base64 => true, as: 'ciphertext'
end
end
2017-07-12 20:10:42 +00:00
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-07-12 20:10:42 +00:00
hash :labels, as: 'labels'
property :name, as: 'name'
2017-07-12 20:10:42 +00:00
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
end
end
class ListCryptoKeysResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :total_size, as: 'totalSize'
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::CloudkmsV1::CryptoKey, decorator: Google::Apis::CloudkmsV1::CryptoKey::Representation
2017-04-03 20:18:48 +00:00
end
end
2017-03-10 21:11:09 +00:00
end
end
end