google-cloud-assured_workloads-v1beta1 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/assured_workloads/v1beta1/assured_workloads_service/client.rb +4 -13
- data/lib/google/cloud/assured_workloads/v1beta1/assured_workloads_service/operations.rb +4 -4
- data/lib/google/cloud/assured_workloads/v1beta1/version.rb +1 -1
- data/lib/google/cloud/assuredworkloads/v1beta1/assuredworkloads_v1beta1_pb.rb +9 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/assuredworkloads/v1beta1/assuredworkloads_v1beta1.rb +30 -0
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 543b1ec5976569d2f60a6ded2af2e1f07a7bd9413cc28f0ec8512b9f1638ebd9
|
4
|
+
data.tar.gz: 2740abeb139903f288246b87be069b46d4e5bc64a3d58203e5794a15eccdd82e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 570185445778e03350e7c9b62c8ec174dd23a89329c2db40b55980d7ff369cf8b33e06bed8d8addcd8542bfb30147a513c522cbc68b93ebfe41e0038d8c28554
|
7
|
+
data.tar.gz: 871035585d9d48c9b2f96416aed4496232cc754e87c725ab8067c28e2a1eefe236a739d2bfc88d7b48db027babb56b5fcc165b757bbac265bbbd3dd0ee7ead9f
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-assured_workloads-v1beta1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `ASSURED_WORKLOADS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `ASSURED_WORKLOADS_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/assured_workloads/v1beta1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Cl
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/assured_workloads/v1beta1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Cl
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/assured_workloads/v1beta1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/assured_workloads/v1beta1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::AssuredWorkloads::V1beta1::CreateWorkloadRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_workload request
|
38
38
|
```
|
39
39
|
|
@@ -71,26 +71,17 @@ module Google
|
|
71
71
|
|
72
72
|
default_config.rpcs.delete_workload.timeout = 60.0
|
73
73
|
default_config.rpcs.delete_workload.retry_policy = {
|
74
|
-
initial_delay: 0.2,
|
75
|
-
max_delay: 30.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [14]
|
74
|
+
initial_delay: 0.2, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
78
75
|
}
|
79
76
|
|
80
77
|
default_config.rpcs.get_workload.timeout = 60.0
|
81
78
|
default_config.rpcs.get_workload.retry_policy = {
|
82
|
-
initial_delay: 0.2,
|
83
|
-
max_delay: 30.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [14]
|
79
|
+
initial_delay: 0.2, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
86
80
|
}
|
87
81
|
|
88
82
|
default_config.rpcs.list_workloads.timeout = 60.0
|
89
83
|
default_config.rpcs.list_workloads.retry_policy = {
|
90
|
-
initial_delay: 0.2,
|
91
|
-
max_delay: 30.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [14]
|
84
|
+
initial_delay: 0.2, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
94
85
|
}
|
95
86
|
|
96
87
|
default_config
|
@@ -161,7 +152,7 @@ module Google
|
|
161
152
|
!@config.endpoint.split(".").first.include?("-")
|
162
153
|
credentials ||= Credentials.default scope: @config.scope,
|
163
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
164
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
155
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
165
156
|
credentials = Credentials.new credentials, scope: @config.scope
|
166
157
|
end
|
167
158
|
@quota_project_id = @config.quota_project
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -396,9 +396,9 @@ module Google
|
|
396
396
|
end
|
397
397
|
|
398
398
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
399
|
+
# Waits until the specified long-running operation is done or reaches at most
|
400
|
+
# a specified timeout, returning the latest state. If the operation is
|
401
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
402
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
403
|
# timeout is used. If the server does not support this method, it returns
|
404
404
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -51,6 +51,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
51
51
|
map :labels, :string, :string, 10
|
52
52
|
optional :provisioned_resources_parent, :string, 13
|
53
53
|
optional :kms_settings, :message, 14, "google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings"
|
54
|
+
repeated :resource_settings, :message, 15, "google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings"
|
54
55
|
oneof :compliance_regime_settings do
|
55
56
|
optional :il4_settings, :message, 7, "google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings"
|
56
57
|
optional :cjis_settings, :message, 8, "google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings"
|
@@ -83,6 +84,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
84
|
add_message "google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings" do
|
84
85
|
optional :kms_settings, :message, 1, "google.cloud.assuredworkloads.v1beta1.Workload.KMSSettings"
|
85
86
|
end
|
87
|
+
add_message "google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings" do
|
88
|
+
optional :resource_id, :string, 1
|
89
|
+
optional :resource_type, :enum, 2, "google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfo.ResourceType"
|
90
|
+
end
|
86
91
|
add_enum "google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime" do
|
87
92
|
value :COMPLIANCE_REGIME_UNSPECIFIED, 0
|
88
93
|
value :IL4, 1
|
@@ -90,6 +95,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
90
95
|
value :FEDRAMP_HIGH, 3
|
91
96
|
value :FEDRAMP_MODERATE, 4
|
92
97
|
value :US_REGIONAL_ACCESS, 5
|
98
|
+
value :HIPAA, 6
|
99
|
+
value :HITRUST, 7
|
100
|
+
value :EU_REGIONS_AND_SUPPORT, 8
|
93
101
|
end
|
94
102
|
add_message "google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata" do
|
95
103
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
@@ -118,6 +126,7 @@ module Google
|
|
118
126
|
Workload::CJISSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings").msgclass
|
119
127
|
Workload::FedrampHighSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.FedrampHighSettings").msgclass
|
120
128
|
Workload::FedrampModerateSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.FedrampModerateSettings").msgclass
|
129
|
+
Workload::ResourceSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings").msgclass
|
121
130
|
Workload::ComplianceRegime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime").enummodule
|
122
131
|
CreateWorkloadOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata").msgclass
|
123
132
|
end
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -189,6 +189,11 @@ module Google
|
|
189
189
|
# Input only. Settings used to create a CMEK crypto key. When set a project with a KMS
|
190
190
|
# CMEK key is provisioned. This field is mandatory for a subset of Compliance
|
191
191
|
# Regimes.
|
192
|
+
# @!attribute [rw] resource_settings
|
193
|
+
# @return [::Array<::Google::Cloud::AssuredWorkloads::V1beta1::Workload::ResourceSettings>]
|
194
|
+
# Input only. Resource properties that are used to customize workload resources.
|
195
|
+
# These properties (such as custom project id) will be used to create
|
196
|
+
# workload resources if possible. This field is optional.
|
192
197
|
class Workload
|
193
198
|
include ::Google::Protobuf::MessageExts
|
194
199
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -269,6 +274,22 @@ module Google
|
|
269
274
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
270
275
|
end
|
271
276
|
|
277
|
+
# Represent the custom settings for the resources to be created.
|
278
|
+
# @!attribute [rw] resource_id
|
279
|
+
# @return [::String]
|
280
|
+
# Resource identifier.
|
281
|
+
# For a project this represents project_id. If the project is already
|
282
|
+
# taken, the workload creation will fail.
|
283
|
+
# @!attribute [rw] resource_type
|
284
|
+
# @return [::Google::Cloud::AssuredWorkloads::V1beta1::Workload::ResourceInfo::ResourceType]
|
285
|
+
# Indicates the type of resource. This field should be specified to
|
286
|
+
# correspond the id to the right project type (CONSUMER_PROJECT or
|
287
|
+
# ENCRYPTION_KEYS_PROJECT)
|
288
|
+
class ResourceSettings
|
289
|
+
include ::Google::Protobuf::MessageExts
|
290
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
291
|
+
end
|
292
|
+
|
272
293
|
# @!attribute [rw] key
|
273
294
|
# @return [::String]
|
274
295
|
# @!attribute [rw] value
|
@@ -297,6 +318,15 @@ module Google
|
|
297
318
|
|
298
319
|
# Assured Workloads For US Regions data protection controls
|
299
320
|
US_REGIONAL_ACCESS = 5
|
321
|
+
|
322
|
+
# Health Insurance Portability and Accountability Act controls
|
323
|
+
HIPAA = 6
|
324
|
+
|
325
|
+
# Health Information Trust Alliance controls
|
326
|
+
HITRUST = 7
|
327
|
+
|
328
|
+
# Assured Workloads For EU Regions and Support controls
|
329
|
+
EU_REGIONS_AND_SUPPORT = 8
|
300
330
|
end
|
301
331
|
end
|
302
332
|
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-assured_workloads-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
210
|
- !ruby/object:Gem::Version
|
205
211
|
version: '0'
|
206
212
|
requirements: []
|
207
|
-
rubygems_version: 3.2.
|
213
|
+
rubygems_version: 3.2.17
|
208
214
|
signing_key:
|
209
215
|
specification_version: 4
|
210
216
|
summary: API Client library for the Assured Workloads for Government V1beta1 API
|