google-apis-kmsinventory_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/kmsinventory_v1/classes.rb +556 -0
- data/lib/google/apis/kmsinventory_v1/gem_version.rb +28 -0
- data/lib/google/apis/kmsinventory_v1/representations.rb +207 -0
- data/lib/google/apis/kmsinventory_v1/service.rb +181 -0
- data/lib/google/apis/kmsinventory_v1.rb +36 -0
- data/lib/google-apis-kmsinventory_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,207 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module KmsinventoryV1
|
24
|
+
|
25
|
+
class GoogleCloudKmsInventoryV1ListCryptoKeysResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class GoogleCloudKmsInventoryV1ProtectedResource
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GoogleCloudKmsInventoryV1ProtectedResourcesSummary
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GoogleCloudKmsV1CryptoKey
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GoogleCloudKmsV1CryptoKeyVersion
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class GoogleCloudKmsV1CryptoKeyVersionTemplate
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GoogleCloudKmsV1ExternalProtectionLevelOptions
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class GoogleCloudKmsV1KeyOperationAttestation
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleCloudKmsV1KeyOperationAttestationCertificateChains
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleCloudKmsInventoryV1ListCryptoKeysResponse
|
86
|
+
# @private
|
87
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
88
|
+
collection :crypto_keys, as: 'cryptoKeys', class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKey, decorator: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKey::Representation
|
89
|
+
|
90
|
+
property :next_page_token, as: 'nextPageToken'
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
class GoogleCloudKmsInventoryV1ProtectedResource
|
95
|
+
# @private
|
96
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
97
|
+
property :cloud_product, as: 'cloudProduct'
|
98
|
+
property :create_time, as: 'createTime'
|
99
|
+
property :crypto_key_version, as: 'cryptoKeyVersion'
|
100
|
+
hash :labels, as: 'labels'
|
101
|
+
property :location, as: 'location'
|
102
|
+
property :name, as: 'name'
|
103
|
+
property :project, as: 'project'
|
104
|
+
property :project_id, as: 'projectId'
|
105
|
+
property :resource_type, as: 'resourceType'
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleCloudKmsInventoryV1ProtectedResourcesSummary
|
110
|
+
# @private
|
111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
+
hash :cloud_products, as: 'cloudProducts'
|
113
|
+
hash :locations, as: 'locations'
|
114
|
+
property :name, as: 'name'
|
115
|
+
property :project_count, as: 'projectCount'
|
116
|
+
property :resource_count, :numeric_string => true, as: 'resourceCount'
|
117
|
+
hash :resource_types, as: 'resourceTypes'
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
class GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse
|
122
|
+
# @private
|
123
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
+
property :next_page_token, as: 'nextPageToken'
|
125
|
+
collection :protected_resources, as: 'protectedResources', class: Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResource, decorator: Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResource::Representation
|
126
|
+
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
class GoogleCloudKmsV1CryptoKey
|
131
|
+
# @private
|
132
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
133
|
+
property :create_time, as: 'createTime'
|
134
|
+
property :crypto_key_backend, as: 'cryptoKeyBackend'
|
135
|
+
property :destroy_scheduled_duration, as: 'destroyScheduledDuration'
|
136
|
+
property :import_only, as: 'importOnly'
|
137
|
+
hash :labels, as: 'labels'
|
138
|
+
property :name, as: 'name'
|
139
|
+
property :next_rotation_time, as: 'nextRotationTime'
|
140
|
+
property :primary, as: 'primary', class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKeyVersion, decorator: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKeyVersion::Representation
|
141
|
+
|
142
|
+
property :purpose, as: 'purpose'
|
143
|
+
property :rotation_period, as: 'rotationPeriod'
|
144
|
+
property :version_template, as: 'versionTemplate', class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKeyVersionTemplate, decorator: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1CryptoKeyVersionTemplate::Representation
|
145
|
+
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class GoogleCloudKmsV1CryptoKeyVersion
|
150
|
+
# @private
|
151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
152
|
+
property :algorithm, as: 'algorithm'
|
153
|
+
property :attestation, as: 'attestation', class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1KeyOperationAttestation, decorator: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1KeyOperationAttestation::Representation
|
154
|
+
|
155
|
+
property :create_time, as: 'createTime'
|
156
|
+
property :destroy_event_time, as: 'destroyEventTime'
|
157
|
+
property :destroy_time, as: 'destroyTime'
|
158
|
+
property :external_protection_level_options, as: 'externalProtectionLevelOptions', class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1ExternalProtectionLevelOptions, decorator: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1ExternalProtectionLevelOptions::Representation
|
159
|
+
|
160
|
+
property :generate_time, as: 'generateTime'
|
161
|
+
property :import_failure_reason, as: 'importFailureReason'
|
162
|
+
property :import_job, as: 'importJob'
|
163
|
+
property :import_time, as: 'importTime'
|
164
|
+
property :name, as: 'name'
|
165
|
+
property :protection_level, as: 'protectionLevel'
|
166
|
+
property :reimport_eligible, as: 'reimportEligible'
|
167
|
+
property :state, as: 'state'
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
class GoogleCloudKmsV1CryptoKeyVersionTemplate
|
172
|
+
# @private
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
+
property :algorithm, as: 'algorithm'
|
175
|
+
property :protection_level, as: 'protectionLevel'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class GoogleCloudKmsV1ExternalProtectionLevelOptions
|
180
|
+
# @private
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
+
property :ekm_connection_key_path, as: 'ekmConnectionKeyPath'
|
183
|
+
property :external_key_uri, as: 'externalKeyUri'
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
class GoogleCloudKmsV1KeyOperationAttestation
|
188
|
+
# @private
|
189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
190
|
+
property :cert_chains, as: 'certChains', class: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1KeyOperationAttestationCertificateChains, decorator: Google::Apis::KmsinventoryV1::GoogleCloudKmsV1KeyOperationAttestationCertificateChains::Representation
|
191
|
+
|
192
|
+
property :content, :base64 => true, as: 'content'
|
193
|
+
property :format, as: 'format'
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class GoogleCloudKmsV1KeyOperationAttestationCertificateChains
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
collection :cavium_certs, as: 'caviumCerts'
|
201
|
+
collection :google_card_certs, as: 'googleCardCerts'
|
202
|
+
collection :google_partition_certs, as: 'googlePartitionCerts'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module KmsinventoryV1
|
23
|
+
# KMS Inventory API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/kmsinventory_v1'
|
29
|
+
#
|
30
|
+
# Kmsinventory = Google::Apis::KmsinventoryV1 # Alias the module
|
31
|
+
# service = Kmsinventory::KmsinventoryService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/kms/
|
34
|
+
class KmsinventoryService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://kmsinventory.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-kmsinventory_v1',
|
48
|
+
client_version: Google::Apis::KmsinventoryV1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Returns metadata about the resources protected by the given Cloud KMS
|
53
|
+
# CryptoKey in the given Cloud organization.
|
54
|
+
# @param [String] scope
|
55
|
+
# Required. Resource name of the organization. Example: organizations/123
|
56
|
+
# @param [String] crypto_key
|
57
|
+
# Required. The resource name of the CryptoKey.
|
58
|
+
# @param [Fixnum] page_size
|
59
|
+
# The maximum number of resources to return. The service may return fewer than
|
60
|
+
# this value. If unspecified, at most 500 resources will be returned. The
|
61
|
+
# maximum value is 500; values above 500 will be coerced to 500.
|
62
|
+
# @param [String] page_token
|
63
|
+
# A page token, received from a previous KeyTrackingService.
|
64
|
+
# SearchProtectedResources call. Provide this to retrieve the subsequent page.
|
65
|
+
# When paginating, all other parameters provided to KeyTrackingService.
|
66
|
+
# SearchProtectedResources must match the call that provided the page token.
|
67
|
+
# @param [String] fields
|
68
|
+
# Selector specifying which fields to include in a partial response.
|
69
|
+
# @param [String] quota_user
|
70
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
71
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
72
|
+
# @param [Google::Apis::RequestOptions] options
|
73
|
+
# Request-specific options
|
74
|
+
#
|
75
|
+
# @yield [result, err] Result & error if block supplied
|
76
|
+
# @yieldparam result [Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse] parsed result object
|
77
|
+
# @yieldparam err [StandardError] error object if request failed
|
78
|
+
#
|
79
|
+
# @return [Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse]
|
80
|
+
#
|
81
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
82
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
83
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
84
|
+
def search_organization_protected_resources(scope, crypto_key: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
85
|
+
command = make_simple_command(:get, 'v1/{+scope}/protectedResources:search', options)
|
86
|
+
command.response_representation = Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse::Representation
|
87
|
+
command.response_class = Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1SearchProtectedResourcesResponse
|
88
|
+
command.params['scope'] = scope unless scope.nil?
|
89
|
+
command.query['cryptoKey'] = crypto_key unless crypto_key.nil?
|
90
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
91
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
92
|
+
command.query['fields'] = fields unless fields.nil?
|
93
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
94
|
+
execute_or_queue_command(command, &block)
|
95
|
+
end
|
96
|
+
|
97
|
+
# Returns cryptographic keys managed by Cloud KMS in a given Cloud project. Note
|
98
|
+
# that this data is sourced from snapshots, meaning it may not completely
|
99
|
+
# reflect the actual state of key metadata at call time.
|
100
|
+
# @param [String] parent
|
101
|
+
# Required. The Google Cloud project for which to retrieve key metadata, in the
|
102
|
+
# format `projects/*`
|
103
|
+
# @param [Fixnum] page_size
|
104
|
+
# Optional. The maximum number of keys to return. The service may return fewer
|
105
|
+
# than this value. If unspecified, at most 1000 keys will be returned. The
|
106
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
107
|
+
# @param [String] page_token
|
108
|
+
# Optional. Pass this into a subsequent request in order to receive the next
|
109
|
+
# page of results.
|
110
|
+
# @param [String] fields
|
111
|
+
# Selector specifying which fields to include in a partial response.
|
112
|
+
# @param [String] quota_user
|
113
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
114
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
115
|
+
# @param [Google::Apis::RequestOptions] options
|
116
|
+
# Request-specific options
|
117
|
+
#
|
118
|
+
# @yield [result, err] Result & error if block supplied
|
119
|
+
# @yieldparam result [Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ListCryptoKeysResponse] parsed result object
|
120
|
+
# @yieldparam err [StandardError] error object if request failed
|
121
|
+
#
|
122
|
+
# @return [Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ListCryptoKeysResponse]
|
123
|
+
#
|
124
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
125
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
126
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
127
|
+
def list_project_crypto_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
128
|
+
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
|
129
|
+
command.response_representation = Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ListCryptoKeysResponse::Representation
|
130
|
+
command.response_class = Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ListCryptoKeysResponse
|
131
|
+
command.params['parent'] = parent unless parent.nil?
|
132
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
133
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
134
|
+
command.query['fields'] = fields unless fields.nil?
|
135
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
136
|
+
execute_or_queue_command(command, &block)
|
137
|
+
end
|
138
|
+
|
139
|
+
# Returns aggregate information about the resources protected by the given Cloud
|
140
|
+
# KMS CryptoKey. Only resources within the same Cloud organization as the key
|
141
|
+
# will be returned. The project that holds the key must be part of an
|
142
|
+
# organization in order for this call to succeed.
|
143
|
+
# @param [String] name
|
144
|
+
# Required. The resource name of the CryptoKey.
|
145
|
+
# @param [String] fields
|
146
|
+
# Selector specifying which fields to include in a partial response.
|
147
|
+
# @param [String] quota_user
|
148
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
149
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
150
|
+
# @param [Google::Apis::RequestOptions] options
|
151
|
+
# Request-specific options
|
152
|
+
#
|
153
|
+
# @yield [result, err] Result & error if block supplied
|
154
|
+
# @yieldparam result [Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResourcesSummary] parsed result object
|
155
|
+
# @yieldparam err [StandardError] error object if request failed
|
156
|
+
#
|
157
|
+
# @return [Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResourcesSummary]
|
158
|
+
#
|
159
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
160
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
161
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
162
|
+
def get_project_location_key_ring_crypto_key_protected_resources_summary(name, fields: nil, quota_user: nil, options: nil, &block)
|
163
|
+
command = make_simple_command(:get, 'v1/{+name}/protectedResourcesSummary', options)
|
164
|
+
command.response_representation = Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResourcesSummary::Representation
|
165
|
+
command.response_class = Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResourcesSummary
|
166
|
+
command.params['name'] = name unless name.nil?
|
167
|
+
command.query['fields'] = fields unless fields.nil?
|
168
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
169
|
+
execute_or_queue_command(command, &block)
|
170
|
+
end
|
171
|
+
|
172
|
+
protected
|
173
|
+
|
174
|
+
def apply_command_defaults(command)
|
175
|
+
command.query['key'] = key unless key.nil?
|
176
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/kmsinventory_v1/service.rb'
|
16
|
+
require 'google/apis/kmsinventory_v1/classes.rb'
|
17
|
+
require 'google/apis/kmsinventory_v1/representations.rb'
|
18
|
+
require 'google/apis/kmsinventory_v1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# KMS Inventory API
|
23
|
+
#
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# @see https://cloud.google.com/kms/
|
27
|
+
module KmsinventoryV1
|
28
|
+
# Version of the KMS Inventory API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1'
|
31
|
+
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "google/apis/kmsinventory_v1"
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-apis-kmsinventory_v1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-apis-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.9.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.9.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.a
|
33
|
+
description: This is the simple REST client for KMS Inventory API V1. Simple REST
|
34
|
+
clients are Ruby client libraries that provide access to Google services via their
|
35
|
+
HTTP REST API endpoints. These libraries are generated and updated automatically
|
36
|
+
based on the discovery documents published by the service, and they handle most
|
37
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
38
|
+
use this client to access the KMS Inventory API, but note that some services may
|
39
|
+
provide a separate modern client that is easier to use.
|
40
|
+
email: googleapis-packages@google.com
|
41
|
+
executables: []
|
42
|
+
extensions: []
|
43
|
+
extra_rdoc_files: []
|
44
|
+
files:
|
45
|
+
- ".yardopts"
|
46
|
+
- CHANGELOG.md
|
47
|
+
- LICENSE.md
|
48
|
+
- OVERVIEW.md
|
49
|
+
- lib/google-apis-kmsinventory_v1.rb
|
50
|
+
- lib/google/apis/kmsinventory_v1.rb
|
51
|
+
- lib/google/apis/kmsinventory_v1/classes.rb
|
52
|
+
- lib/google/apis/kmsinventory_v1/gem_version.rb
|
53
|
+
- lib/google/apis/kmsinventory_v1/representations.rb
|
54
|
+
- lib/google/apis/kmsinventory_v1/service.rb
|
55
|
+
homepage: https://github.com/google/google-api-ruby-client
|
56
|
+
licenses:
|
57
|
+
- Apache-2.0
|
58
|
+
metadata:
|
59
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-kmsinventory_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-kmsinventory_v1/v0.1.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-kmsinventory_v1
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2.5'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
requirements: []
|
78
|
+
rubygems_version: 3.4.2
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: Simple REST client for KMS Inventory API V1
|
82
|
+
test_files: []
|