google-cloud-assured_workloads-v1beta1 0.13.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1a7f16f11752933c4bf50751f4515f9a98f78870822e14d8e9ceacec71a8b8b
4
- data.tar.gz: 0dc49f9f11791399c08584be899504afec018b6d294039ce9260a47af8222fd8
3
+ metadata.gz: e9192428be50f98014df9040c3adc35c203038b6824e5fdf1fbea9abe1ff7a51
4
+ data.tar.gz: 2a42cc63bc52dd12f03c183f1143bf7d4323e900839d2730bd1e43074a0f8aa4
5
5
  SHA512:
6
- metadata.gz: 3c500164e781fdc222a05b4f4d0fb01862cb134d206dcde2e5b9f484525d89eef0ae4ff72d16d4ffa2f8e1ea133d7e8e252e2ffcf40bfc2dd44e814db1ca9728
7
- data.tar.gz: 40f7f58f897631e35facdb45e746a341a99a17fc743e5ea8f78f149d851e053d1140d39f9b6a2a3d137698aef967c7659537255ba3c3940979a0aa5fd9b1c7db
6
+ metadata.gz: 7cf918f815848ef65d06aa41c8e07cd4c11bad26c4e87eaa90f1780b7b2e0e95076c415c2b164805119620173e722d7205bf8a0efa452a8ad199b30bf0639ccd
7
+ data.tar.gz: 337d25ec4b0c8c18bbbb6768fa8d7ff294b83a3f8208698df9b44dd14f20399ceded7fe910d667f71e1de8f9ab5b791fd6715e7fd091d1486cbbaf87663203ae
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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
 
@@ -147,7 +147,7 @@ module Google
147
147
  credentials = @config.credentials
148
148
  # Use self-signed JWT if the endpoint is unchanged from default,
149
149
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
150
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
151
151
  !@config.endpoint.split(".").first.include?("-")
152
152
  credentials ||= Credentials.default scope: @config.scope,
153
153
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -230,14 +230,14 @@ module Google
230
230
  # # Call the create_workload method.
231
231
  # result = client.create_workload request
232
232
  #
233
- # # The returned object is of type Gapic::Operation. You can use this
234
- # # object to check the status of an operation, cancel it, or wait
235
- # # for results. Here is how to block until completion:
233
+ # # The returned object is of type Gapic::Operation. You can use it to
234
+ # # check the status of an operation, cancel it, or wait for results.
235
+ # # Here is how to wait for a response.
236
236
  # result.wait_until_done! timeout: 60
237
237
  # if result.response?
238
238
  # p result.response
239
239
  # else
240
- # puts "Error!"
240
+ # puts "No response received."
241
241
  # end
242
242
  #
243
243
  def create_workload request, options = nil
@@ -786,13 +786,11 @@ module Google
786
786
  # # Call the list_workloads method.
787
787
  # result = client.list_workloads request
788
788
  #
789
- # # The returned object is of type Gapic::PagedEnumerable. You can
790
- # # iterate over all elements by calling #each, and the enumerable
791
- # # will lazily make API calls to fetch subsequent pages. Other
792
- # # methods are also available for managing paging directly.
793
- # 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|
794
792
  # # Each element is of type ::Google::Cloud::AssuredWorkloads::V1beta1::Workload.
795
- # p response
793
+ # p item
796
794
  # end
797
795
  #
798
796
  def list_workloads request, options = nil
@@ -867,9 +865,9 @@ module Google
867
865
  # * (`String`) The path to a service account key file in JSON format
868
866
  # * (`Hash`) A service account key as a Hash
869
867
  # * (`Google::Auth::Credentials`) A googleauth credentials object
870
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
868
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
871
869
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
872
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
870
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
873
871
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
874
872
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
875
873
  # * (`nil`) indicating no credentials
@@ -911,7 +909,9 @@ module Google
911
909
  class Configuration
912
910
  extend ::Gapic::Config
913
911
 
914
- config_attr :endpoint, "assuredworkloads.googleapis.com", ::String
912
+ DEFAULT_ENDPOINT = "assuredworkloads.googleapis.com"
913
+
914
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
915
915
  config_attr :credentials, nil do |value|
916
916
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
917
917
  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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- config_attr :endpoint, "assuredworkloads.googleapis.com", ::String
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