google-cloud-assured_workloads-v1 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/README.md +2 -2
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/client.rb +18 -20
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/operations.rb +17 -17
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest/client.rb +756 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest/operations.rb +795 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest/service_stub.rb +405 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service/rest.rb +53 -0
- data/lib/google/cloud/assured_workloads/v1/assured_workloads_service.rb +7 -1
- data/lib/google/cloud/assured_workloads/v1/rest.rb +37 -0
- data/lib/google/cloud/assured_workloads/v1/version.rb +1 -1
- data/lib/google/cloud/assured_workloads/v1.rb +7 -2
- data/lib/google/cloud/assuredworkloads/v1/assuredworkloads_pb.rb +27 -195
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 291fb39aa2ce472ab807ce411c8249f200a2ab372f46dde3caddf7fadfc9b92b
|
4
|
+
data.tar.gz: fce8f0cdc9854d932311f470411c141270a57ee51a44da9e4c182421dee9bcb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b529950f99835ae96f490cb7a5239e82fb1d302fda1134b8f7a5563e65e98286af60601fee27767777b2272fd96cbe1842bc886304418f55cb7b32df311af16a
|
7
|
+
data.tar.gz: 05b17fddf4d80abe14be762d881b9b8c3b9fa90e8660452a4cde8f35afb6cba595b4cd603fbf219cf0bb0db0cb1b37a47b02c5e965faebe726bb53e7609e6e80
|
data/README.md
CHANGED
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
credentials = @config.credentials
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -208,14 +208,14 @@ module Google
|
|
208
208
|
# # Call the create_workload method.
|
209
209
|
# result = client.create_workload request
|
210
210
|
#
|
211
|
-
# # The returned object is of type Gapic::Operation. You can use
|
212
|
-
# #
|
213
|
-
# #
|
211
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
212
|
+
# # check the status of an operation, cancel it, or wait for results.
|
213
|
+
# # Here is how to wait for a response.
|
214
214
|
# result.wait_until_done! timeout: 60
|
215
215
|
# if result.response?
|
216
216
|
# p result.response
|
217
217
|
# else
|
218
|
-
# puts "
|
218
|
+
# puts "No response received."
|
219
219
|
# end
|
220
220
|
#
|
221
221
|
def create_workload request, options = nil
|
@@ -681,13 +681,11 @@ module Google
|
|
681
681
|
# # Call the list_workloads method.
|
682
682
|
# result = client.list_workloads request
|
683
683
|
#
|
684
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
685
|
-
# #
|
686
|
-
#
|
687
|
-
# # methods are also available for managing paging directly.
|
688
|
-
# result.each do |response|
|
684
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
685
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
686
|
+
# result.each do |item|
|
689
687
|
# # Each element is of type ::Google::Cloud::AssuredWorkloads::V1::Workload.
|
690
|
-
# p
|
688
|
+
# p item
|
691
689
|
# end
|
692
690
|
#
|
693
691
|
def list_workloads request, options = nil
|
@@ -788,13 +786,11 @@ module Google
|
|
788
786
|
# # Call the list_violations method.
|
789
787
|
# result = client.list_violations request
|
790
788
|
#
|
791
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
792
|
-
# #
|
793
|
-
#
|
794
|
-
# # methods are also available for managing paging directly.
|
795
|
-
# result.each do |response|
|
789
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
790
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
791
|
+
# result.each do |item|
|
796
792
|
# # Each element is of type ::Google::Cloud::AssuredWorkloads::V1::Violation.
|
797
|
-
# p
|
793
|
+
# p item
|
798
794
|
# end
|
799
795
|
#
|
800
796
|
def list_violations request, options = nil
|
@@ -1040,9 +1036,9 @@ module Google
|
|
1040
1036
|
# * (`String`) The path to a service account key file in JSON format
|
1041
1037
|
# * (`Hash`) A service account key as a Hash
|
1042
1038
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1043
|
-
# (see the [googleauth docs](https://
|
1039
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1044
1040
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1045
|
-
# (see the [signet docs](https://
|
1041
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1046
1042
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1047
1043
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1048
1044
|
# * (`nil`) indicating no credentials
|
@@ -1084,7 +1080,9 @@ module Google
|
|
1084
1080
|
class Configuration
|
1085
1081
|
extend ::Gapic::Config
|
1086
1082
|
|
1087
|
-
|
1083
|
+
DEFAULT_ENDPOINT = "assuredworkloads.googleapis.com"
|
1084
|
+
|
1085
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1088
1086
|
config_attr :credentials, nil do |value|
|
1089
1087
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1090
1088
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +664,9 @@ module Google
|
|
666
664
|
class Configuration
|
667
665
|
extend ::Gapic::Config
|
668
666
|
|
669
|
-
|
667
|
+
DEFAULT_ENDPOINT = "assuredworkloads.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
670
|
config_attr :credentials, nil do |value|
|
671
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|