2019-03-07 00:37:00 +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 AccesscontextmanagerV1
|
|
|
|
|
|
|
|
class AccessLevel
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class AccessPolicy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class BasicLevel
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class CancelOperationRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-02-22 00:38:44 +00:00
|
|
|
class CommitServicePerimetersRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class CommitServicePerimetersResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class Condition
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-01-16 00:37:07 +00:00
|
|
|
class CustomLevel
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class DevicePolicy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Empty
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-01-16 00:37:07 +00:00
|
|
|
class Expr
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class ListAccessLevelsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListAccessPoliciesResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListOperationsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListServicePerimetersResponse
|
|
|
|
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 OsConstraint
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2020-02-22 00:38:44 +00:00
|
|
|
class ReplaceAccessLevelsRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ReplaceAccessLevelsResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ReplaceServicePerimetersRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ReplaceServicePerimetersResponse
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class ServicePerimeter
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class ServicePerimeterConfig
|
|
|
|
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
|
|
|
|
|
2020-02-22 00:38:44 +00:00
|
|
|
class VpcAccessibleServices
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class AccessLevel
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :basic, as: 'basic', class: Google::Apis::AccesscontextmanagerV1::BasicLevel, decorator: Google::Apis::AccesscontextmanagerV1::BasicLevel::Representation
|
|
|
|
|
|
|
|
property :create_time, as: 'createTime'
|
2020-01-16 00:37:07 +00:00
|
|
|
property :custom, as: 'custom', class: Google::Apis::AccesscontextmanagerV1::CustomLevel, decorator: Google::Apis::AccesscontextmanagerV1::CustomLevel::Representation
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
property :description, as: 'description'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :title, as: 'title'
|
|
|
|
property :update_time, as: 'updateTime'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class AccessPolicy
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :create_time, as: 'createTime'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :parent, as: 'parent'
|
|
|
|
property :title, as: 'title'
|
|
|
|
property :update_time, as: 'updateTime'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class BasicLevel
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :combining_function, as: 'combiningFunction'
|
|
|
|
collection :conditions, as: 'conditions', class: Google::Apis::AccesscontextmanagerV1::Condition, decorator: Google::Apis::AccesscontextmanagerV1::Condition::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class CancelOperationRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-02-22 00:38:44 +00:00
|
|
|
class CommitServicePerimetersRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class CommitServicePerimetersResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :service_perimeters, as: 'servicePerimeters', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeter, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class Condition
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :device_policy, as: 'devicePolicy', class: Google::Apis::AccesscontextmanagerV1::DevicePolicy, decorator: Google::Apis::AccesscontextmanagerV1::DevicePolicy::Representation
|
|
|
|
|
|
|
|
collection :ip_subnetworks, as: 'ipSubnetworks'
|
|
|
|
collection :members, as: 'members'
|
|
|
|
property :negate, as: 'negate'
|
2019-03-08 00:37:10 +00:00
|
|
|
collection :regions, as: 'regions'
|
2019-03-07 00:37:00 +00:00
|
|
|
collection :required_access_levels, as: 'requiredAccessLevels'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-01-16 00:37:07 +00:00
|
|
|
class CustomLevel
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :expr, as: 'expr', class: Google::Apis::AccesscontextmanagerV1::Expr, decorator: Google::Apis::AccesscontextmanagerV1::Expr::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class DevicePolicy
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :allowed_device_management_levels, as: 'allowedDeviceManagementLevels'
|
|
|
|
collection :allowed_encryption_statuses, as: 'allowedEncryptionStatuses'
|
|
|
|
collection :os_constraints, as: 'osConstraints', class: Google::Apis::AccesscontextmanagerV1::OsConstraint, decorator: Google::Apis::AccesscontextmanagerV1::OsConstraint::Representation
|
|
|
|
|
2019-03-08 00:37:10 +00:00
|
|
|
property :require_admin_approval, as: 'requireAdminApproval'
|
|
|
|
property :require_corp_owned, as: 'requireCorpOwned'
|
2019-03-07 00:37:00 +00:00
|
|
|
property :require_screenlock, as: 'requireScreenlock'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Empty
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-01-16 00:37:07 +00:00
|
|
|
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
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class ListAccessLevelsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :access_levels, as: 'accessLevels', class: Google::Apis::AccesscontextmanagerV1::AccessLevel, decorator: Google::Apis::AccesscontextmanagerV1::AccessLevel::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListAccessPoliciesResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :access_policies, as: 'accessPolicies', class: Google::Apis::AccesscontextmanagerV1::AccessPolicy, decorator: Google::Apis::AccesscontextmanagerV1::AccessPolicy::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListOperationsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :operations, as: 'operations', class: Google::Apis::AccesscontextmanagerV1::Operation, decorator: Google::Apis::AccesscontextmanagerV1::Operation::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListServicePerimetersResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
collection :service_perimeters, as: 'servicePerimeters', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeter, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Operation
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :done, as: 'done'
|
|
|
|
property :error, as: 'error', class: Google::Apis::AccesscontextmanagerV1::Status, decorator: Google::Apis::AccesscontextmanagerV1::Status::Representation
|
|
|
|
|
|
|
|
hash :metadata, as: 'metadata'
|
|
|
|
property :name, as: 'name'
|
|
|
|
hash :response, as: 'response'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class OsConstraint
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :minimum_version, as: 'minimumVersion'
|
|
|
|
property :os_type, as: 'osType'
|
2019-03-08 00:37:10 +00:00
|
|
|
property :require_verified_chrome_os, as: 'requireVerifiedChromeOs'
|
2019-03-07 00:37:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-02-22 00:38:44 +00:00
|
|
|
class ReplaceAccessLevelsRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :access_levels, as: 'accessLevels', class: Google::Apis::AccesscontextmanagerV1::AccessLevel, decorator: Google::Apis::AccesscontextmanagerV1::AccessLevel::Representation
|
|
|
|
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ReplaceAccessLevelsResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :access_levels, as: 'accessLevels', class: Google::Apis::AccesscontextmanagerV1::AccessLevel, decorator: Google::Apis::AccesscontextmanagerV1::AccessLevel::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ReplaceServicePerimetersRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :etag, as: 'etag'
|
|
|
|
collection :service_perimeters, as: 'servicePerimeters', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeter, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ReplaceServicePerimetersResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :service_perimeters, as: 'servicePerimeters', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeter, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeter::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
class ServicePerimeter
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :create_time, as: 'createTime'
|
|
|
|
property :description, as: 'description'
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :perimeter_type, as: 'perimeterType'
|
2020-02-22 00:38:44 +00:00
|
|
|
property :spec, as: 'spec', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig::Representation
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
property :status, as: 'status', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig::Representation
|
|
|
|
|
|
|
|
property :title, as: 'title'
|
|
|
|
property :update_time, as: 'updateTime'
|
2020-02-22 00:38:44 +00:00
|
|
|
property :use_explicit_dry_run_spec, as: 'useExplicitDryRunSpec'
|
2019-03-07 00:37:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ServicePerimeterConfig
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :access_levels, as: 'accessLevels'
|
|
|
|
collection :resources, as: 'resources'
|
|
|
|
collection :restricted_services, as: 'restrictedServices'
|
2020-02-22 00:38:44 +00:00
|
|
|
property :vpc_accessible_services, as: 'vpcAccessibleServices', class: Google::Apis::AccesscontextmanagerV1::VpcAccessibleServices, decorator: Google::Apis::AccesscontextmanagerV1::VpcAccessibleServices::Representation
|
|
|
|
|
2019-03-07 00:37:00 +00:00
|
|
|
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
|
2020-02-22 00:38:44 +00:00
|
|
|
|
|
|
|
class VpcAccessibleServices
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :allowed_services, as: 'allowedServices'
|
|
|
|
property :enable_restriction, as: 'enableRestriction'
|
|
|
|
end
|
|
|
|
end
|
2019-03-07 00:37:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|