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
class TestIamPermissionsRequest
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 DataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +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-04-03 20:18:48 +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-04-03 20:18:48 +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-04-03 20:18:48 +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-04-03 20:18:48 +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-04-03 20:18:48 +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
class TestIamPermissionsResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListReposResponse
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition
2017-03-30 22:30:51 +00:00
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
2017-04-03 20:18:48 +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-04-03 20:18:48 +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-04-03 20:18:48 +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-04-03 20:18:48 +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-04-03 20:18:48 +00:00
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
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
2017-03-30 22:30:51 +00:00
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
end
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SourcerepoV1::AuditLogConfig, decorator: Google::Apis::SourcerepoV1::AuditLogConfig::Representation
2017-03-30 22:30:51 +00:00
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
2017-03-30 22:30:51 +00:00
end
2017-04-03 20:18:48 +00:00
class SetIamPolicyRequest
2017-03-30 22:30:51 +00:00
# @private
class Representation < Google::Apis::Core::JsonRepresentation
2017-04-03 20:18:48 +00:00
property :policy, as: 'policy', class: Google::Apis::SourcerepoV1::Policy, decorator: Google::Apis::SourcerepoV1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class CloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class MirrorConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deploy_key_id, as: 'deployKeyId'
property :url, as: 'url'
property :webhook_id, as: 'webhookId'
2017-04-03 20:18:48 +00:00
end
end
class Repo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
property :size, :numeric_string => true, as: 'size'
property :name, as: 'name'
property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
2017-03-30 22:30:51 +00:00
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
property :value, as: 'value'
property :sys, as: 'sys'
2017-04-03 20:18:48 +00:00
property :iam, as: 'iam'
collection :values, as: 'values'
2017-03-31 19:53:27 +00:00
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-04-03 20:18:48 +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-04-03 20:18:48 +00:00
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-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'
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 :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
property :data_access, as: 'dataAccess', class: Google::Apis::SourcerepoV1::DataAccessOptions, decorator: Google::Apis::SourcerepoV1::DataAccessOptions::Representation
2017-03-31 19:53:27 +00:00
2017-03-30 22:30:51 +00:00
end
end
end
end
end