2016-03-11 22:41:20 +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 IamV1
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TestIamPermissionsResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ListServiceAccountKeysResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ServiceAccountKey
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class CreateServiceAccountKeyRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TestIamPermissionsRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignBlobResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignJwtResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignJwtRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Policy
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class AuditData
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class BindingDelta
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class PolicyDelta
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ListServiceAccountsResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class CreateServiceAccountRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class QueryGrantableRolesResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignBlobRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Role
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SetIamPolicyRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Binding
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ServiceAccount
|
2016-03-11 22:41:20 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Empty
|
2017-02-03 19:29:28 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-03-11 22:41:20 +00:00
|
|
|
|
2017-02-03 19:29:28 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class QueryGrantableRolesRequest
|
2017-02-03 19:29:28 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2016-03-11 22:41:20 +00:00
|
|
|
|
2017-02-03 19:29:28 +00:00
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TestIamPermissionsResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
collection :permissions, as: 'permissions'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ListServiceAccountKeysResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
|
2017-02-13 23:28:52 +00:00
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ServiceAccountKey
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
|
|
|
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :valid_before_time, as: 'validBeforeTime'
|
|
|
|
property :key_algorithm, as: 'keyAlgorithm'
|
|
|
|
property :private_key_type, as: 'privateKeyType'
|
|
|
|
property :valid_after_time, as: 'validAfterTime'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class CreateServiceAccountKeyRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :key_algorithm, as: 'keyAlgorithm'
|
|
|
|
property :private_key_type, as: 'privateKeyType'
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class TestIamPermissionsRequest
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
collection :permissions, as: 'permissions'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignBlobResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :key_id, as: 'keyId'
|
|
|
|
property :signature, :base64 => true, as: 'signature'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignJwtResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :key_id, as: 'keyId'
|
|
|
|
property :signed_jwt, as: 'signedJwt'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignJwtRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :payload, as: 'payload'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Policy
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :etag, :base64 => true, as: 'etag'
|
|
|
|
property :version, as: 'version'
|
|
|
|
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class AuditData
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class BindingDelta
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :role, as: 'role'
|
|
|
|
property :action, as: 'action'
|
|
|
|
property :member, as: 'member'
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class PolicyDelta
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ListServiceAccountsResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class CreateServiceAccountRequest
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
|
|
|
|
|
|
|
property :account_id, as: 'accountId'
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class QueryGrantableRolesResponse
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SignBlobRequest
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Role
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :title, as: 'title'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :description, as: 'description'
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
|
|
|
end
|
2016-10-04 00:27:26 +00:00
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class SetIamPolicyRequest
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
|
|
|
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Binding
|
2016-03-11 22:41:20 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :role, as: 'role'
|
|
|
|
collection :members, as: 'members'
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class ServiceAccount
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :project_id, as: 'projectId'
|
|
|
|
property :unique_id, as: 'uniqueId'
|
|
|
|
property :oauth2_client_id, as: 'oauth2ClientId'
|
|
|
|
property :display_name, as: 'displayName'
|
|
|
|
property :etag, :base64 => true, as: 'etag'
|
|
|
|
property :email, as: 'email'
|
|
|
|
property :name, as: 'name'
|
2017-02-03 19:29:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class Empty
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-10 21:11:09 +00:00
|
|
|
class QueryGrantableRolesRequest
|
2017-02-03 19:29:28 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-10 21:11:09 +00:00
|
|
|
property :full_resource_name, as: 'fullResourceName'
|
2016-03-11 22:41:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|