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

286 lines
9.5 KiB
Ruby
Raw Normal View History

2017-03-30 22:30:51 +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 SourcerepoV1
2017-03-31 19:53:27 +00:00
class TestIamPermissionsResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class ListReposResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Condition
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class CounterOptions
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class AuditLogConfig
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Rule
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class LogConfig
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class TestIamPermissionsRequest
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Policy
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class DataAccessOptions
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class AuditConfig
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class SetIamPolicyRequest
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class CloudAuditOptions
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Binding
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Empty
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class MirrorConfig
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class Repo
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-03-31 19:53:27 +00:00
class TestIamPermissionsResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
2017-03-31 19:53:27 +00:00
class ListReposResponse
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :repos, as: 'repos', class: Google::Apis::SourcerepoV1::Repo, decorator: Google::Apis::SourcerepoV1::Repo::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Condition
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :sys, as: 'sys'
property :value, as: 'value'
property :iam, as: 'iam'
collection :values, as: 'values'
property :op, as: 'op'
property :svc, as: 'svc'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class CounterOptions
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :metric, as: 'metric'
property :field, as: 'field'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class AuditLogConfig
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Rule
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :log_config, as: 'logConfig', class: Google::Apis::SourcerepoV1::LogConfig, decorator: Google::Apis::SourcerepoV1::LogConfig::Representation
collection :in, as: 'in'
collection :permissions, as: 'permissions'
property :action, as: 'action'
collection :not_in, as: 'notIn'
property :description, as: 'description'
collection :conditions, as: 'conditions', class: Google::Apis::SourcerepoV1::Condition, decorator: Google::Apis::SourcerepoV1::Condition::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class LogConfig
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :data_access, as: 'dataAccess', class: Google::Apis::SourcerepoV1::DataAccessOptions, decorator: Google::Apis::SourcerepoV1::DataAccessOptions::Representation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SourcerepoV1::CloudAuditOptions, decorator: Google::Apis::SourcerepoV1::CloudAuditOptions::Representation
property :counter, as: 'counter', class: Google::Apis::SourcerepoV1::CounterOptions, decorator: Google::Apis::SourcerepoV1::CounterOptions::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class TestIamPermissionsRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :permissions, as: 'permissions'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Policy
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::SourcerepoV1::Rule, decorator: Google::Apis::SourcerepoV1::Rule::Representation
property :version, as: 'version'
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SourcerepoV1::AuditConfig, decorator: Google::Apis::SourcerepoV1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::SourcerepoV1::Binding, decorator: Google::Apis::SourcerepoV1::Binding::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class DataAccessOptions
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-03-31 19:53:27 +00:00
class AuditConfig
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SourcerepoV1::AuditLogConfig, decorator: Google::Apis::SourcerepoV1::AuditLogConfig::Representation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class SetIamPolicyRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :update_mask, as: 'updateMask'
property :policy, as: 'policy', class: Google::Apis::SourcerepoV1::Policy, decorator: Google::Apis::SourcerepoV1::Policy::Representation
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class CloudAuditOptions
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-03-31 19:53:27 +00:00
class Binding
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
collection :members, as: 'members'
property :role, as: 'role'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Empty
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
2017-03-31 19:53:27 +00:00
class MirrorConfig
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :url, as: 'url'
property :webhook_id, as: 'webhookId'
property :deploy_key_id, as: 'deployKeyId'
2017-03-30 22:30:51 +00:00
end
end
2017-03-31 19:53:27 +00:00
class Repo
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-03-31 19:53:27 +00:00
property :url, as: 'url'
property :size, as: 'size'
property :name, as: 'name'
property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
2017-03-30 22:30:51 +00:00
end
end
end
end
end