google-cloud-assured_workloads-v1beta1 0.6.0 → 0.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9785e037645adcc43a5a5fe3f3016c29935856a52ea8b01b558e76ec39df482c
4
- data.tar.gz: 6aea2fbb3e66e452ce0a753268cb0013bbcd97d65d03c63ccafe743169e30876
3
+ metadata.gz: 72ef07a10796f9c323b45f864d27ca2b8f54e6485ae31426afe70fc13825216b
4
+ data.tar.gz: 3fc1da1968b381cebed12267ba404238c34c66d20ba0d15bf3b5d5473d1bf56c
5
5
  SHA512:
6
- metadata.gz: 3ca330110b83d1ca7a03133e34502910e3e72b7898c720e7b7c2e0f36427b17b409d5914664fdd10257ac60457cc7af91c74a4def2b2fa462099be8721a15e51
7
- data.tar.gz: e99f935ec8b568d04ca08cff4b411e410e25e233f60607024c64a9a53676a758cbba5b9102e4e6b91b98ceb998d81c2c3850c2ee3908719385b41caa940da269
6
+ metadata.gz: 577dd42db891db5d39fdf002ae9584fe7ca1bd2437f48bc462a993567c105b6e0233b6cd7921fbc114c6c5c067d9f22fd4a7890f2a16efe63b20c6ac2706dd3a
7
+ data.tar.gz: 1282ea17cfa7b4743f0ee62aefa53088ba80ba84085c7f20a01eee5123d4ae2a57cc3a27e6392a0a055fa935d8bda7e16328f0ab81e9d72f1b8c83c2e2cb6e89
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
- 1. `ASSURED_WORKLOADS_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `ASSURED_WORKLOADS_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
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 placing them in
86
- environment variables. Either on an individual client initialization:
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 configured globally for all clients:
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 = my_create_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
 
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all AssuredWorkloadsService clients:
47
- #
48
- # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all AssuredWorkloadsService clients
47
+ # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -71,26 +70,17 @@ module Google
71
70
 
72
71
  default_config.rpcs.delete_workload.timeout = 60.0
73
72
  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]
73
+ initial_delay: 0.2, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
78
74
  }
79
75
 
80
76
  default_config.rpcs.get_workload.timeout = 60.0
81
77
  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]
78
+ initial_delay: 0.2, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
86
79
  }
87
80
 
88
81
  default_config.rpcs.list_workloads.timeout = 60.0
89
82
  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]
83
+ initial_delay: 0.2, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
94
84
  }
95
85
 
96
86
  default_config
@@ -122,19 +112,15 @@ module Google
122
112
  ##
123
113
  # Create a new AssuredWorkloadsService client object.
124
114
  #
125
- # ## Examples
126
- #
127
- # To create a new AssuredWorkloadsService client with the default
128
- # configuration:
129
- #
130
- # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
115
+ # @example
131
116
  #
132
- # To create a new AssuredWorkloadsService client with a custom
133
- # configuration:
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
134
119
  #
135
- # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
136
- # config.timeout = 10.0
137
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
138
124
  #
139
125
  # @yield [config] Configure the AssuredWorkloadsService client.
140
126
  # @yieldparam config [Client::Configuration]
@@ -154,14 +140,13 @@ module Google
154
140
 
155
141
  # Create credentials
156
142
  credentials = @config.credentials
157
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
158
144
  # but only if the default endpoint does not have a region prefix.
159
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
160
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
161
146
  !@config.endpoint.split(".").first.include?("-")
162
147
  credentials ||= Credentials.default scope: @config.scope,
163
148
  enable_self_signed_jwt: enable_self_signed_jwt
164
- if credentials.is_a?(String) || credentials.is_a?(Hash)
149
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
165
150
  credentials = Credentials.new credentials, scope: @config.scope
166
151
  end
167
152
  @quota_project_id = @config.quota_project
@@ -253,7 +238,9 @@ module Google
253
238
  options.apply_defaults timeout: @config.rpcs.create_workload.timeout,
254
239
  metadata: metadata,
255
240
  retry_policy: @config.rpcs.create_workload.retry_policy
256
- options.apply_defaults metadata: @config.metadata,
241
+
242
+ options.apply_defaults timeout: @config.timeout,
243
+ metadata: @config.metadata,
257
244
  retry_policy: @config.retry_policy
258
245
 
259
246
  @assured_workloads_service_stub.call_rpc :create_workload, request, options: options do |response, operation|
@@ -328,7 +315,9 @@ module Google
328
315
  options.apply_defaults timeout: @config.rpcs.update_workload.timeout,
329
316
  metadata: metadata,
330
317
  retry_policy: @config.rpcs.update_workload.retry_policy
331
- options.apply_defaults metadata: @config.metadata,
318
+
319
+ options.apply_defaults timeout: @config.timeout,
320
+ metadata: @config.metadata,
332
321
  retry_policy: @config.retry_policy
333
322
 
334
323
  @assured_workloads_service_stub.call_rpc :update_workload, request, options: options do |response, operation|
@@ -401,7 +390,9 @@ module Google
401
390
  options.apply_defaults timeout: @config.rpcs.delete_workload.timeout,
402
391
  metadata: metadata,
403
392
  retry_policy: @config.rpcs.delete_workload.retry_policy
404
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
405
396
  retry_policy: @config.retry_policy
406
397
 
407
398
  @assured_workloads_service_stub.call_rpc :delete_workload, request, options: options do |response, operation|
@@ -471,7 +462,9 @@ module Google
471
462
  options.apply_defaults timeout: @config.rpcs.get_workload.timeout,
472
463
  metadata: metadata,
473
464
  retry_policy: @config.rpcs.get_workload.retry_policy
474
- options.apply_defaults metadata: @config.metadata,
465
+
466
+ options.apply_defaults timeout: @config.timeout,
467
+ metadata: @config.metadata,
475
468
  retry_policy: @config.retry_policy
476
469
 
477
470
  @assured_workloads_service_stub.call_rpc :get_workload, request, options: options do |response, operation|
@@ -547,7 +540,9 @@ module Google
547
540
  options.apply_defaults timeout: @config.rpcs.list_workloads.timeout,
548
541
  metadata: metadata,
549
542
  retry_policy: @config.rpcs.list_workloads.retry_policy
550
- options.apply_defaults metadata: @config.metadata,
543
+
544
+ options.apply_defaults timeout: @config.timeout,
545
+ metadata: @config.metadata,
551
546
  retry_policy: @config.retry_policy
552
547
 
553
548
  @assured_workloads_service_stub.call_rpc :list_workloads, request, options: options do |response, operation|
@@ -572,22 +567,21 @@ module Google
572
567
  # Configuration can be applied globally to all clients, or to a single client
573
568
  # on construction.
574
569
  #
575
- # # Examples
576
- #
577
- # To modify the global config, setting the timeout for create_workload
578
- # to 20 seconds, and all remaining timeouts to 10 seconds:
579
- #
580
- # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
581
- # config.timeout = 10.0
582
- # config.rpcs.create_workload.timeout = 20.0
583
- # end
584
- #
585
- # To apply the above configuration only to a new client:
586
- #
587
- # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
588
- # config.timeout = 10.0
589
- # config.rpcs.create_workload.timeout = 20.0
590
- # end
570
+ # @example
571
+ #
572
+ # # Modify the global config, setting the timeout for
573
+ # # create_workload to 20 seconds,
574
+ # # and all remaining timeouts to 10 seconds.
575
+ # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
576
+ # config.timeout = 10.0
577
+ # config.rpcs.create_workload.timeout = 20.0
578
+ # end
579
+ #
580
+ # # Apply the above configuration only to a new client.
581
+ # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
582
+ # config.timeout = 10.0
583
+ # config.rpcs.create_workload.timeout = 20.0
584
+ # end
591
585
  #
592
586
  # @!attribute [rw] endpoint
593
587
  # The hostname or hostname:port of the service endpoint.
@@ -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
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -396,9 +404,9 @@ module Google
396
404
  end
397
405
 
398
406
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
407
+ # Waits until the specified long-running operation is done or reaches at most
408
+ # a specified timeout, returning the latest state. If the operation is
409
+ # already done, the latest state is immediately returned. If the timeout
402
410
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
411
  # timeout is used. If the server does not support this method, it returns
404
412
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AssuredWorkloads
23
23
  module V1beta1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.1"
25
25
  end
26
26
  end
27
27
  end
@@ -97,6 +97,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
97
97
  value :US_REGIONAL_ACCESS, 5
98
98
  value :HIPAA, 6
99
99
  value :HITRUST, 7
100
+ value :EU_REGIONS_AND_SUPPORT, 8
100
101
  end
101
102
  add_message "google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata" do
102
103
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
@@ -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 order, rather than the order the user originally
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
@@ -324,6 +324,9 @@ module Google
324
324
 
325
325
  # Health Information Trust Alliance controls
326
326
  HITRUST = 7
327
+
328
+ # Assured Workloads For EU Regions and Support controls
329
+ EU_REGIONS_AND_SUPPORT = 8
327
330
  end
328
331
  end
329
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.6.0
4
+ version: 0.7.1
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-03-30 00:00:00.000000000 Z
11
+ date: 2021-08-11 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.7'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.4'
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.7'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.4'
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.13
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