google-cloud-service_management-v1 0.7.0 → 0.9.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: a08a9ec44748e0931fbe563ce32b7e2913602249d44c16d674deef3faba8b5f1
4
- data.tar.gz: b0cabe2f3ef319c1cd90324f245e0f9eef125a62a16456fa2f441ca9b459c049
3
+ metadata.gz: 61260a352ff840ad027f2b690554703d1e078e5f8ff59f19d6fa9dfcd0914676
4
+ data.tar.gz: 0bb371b2057faa51bb2705849f64bae817865776dd9fddac86c2bbd3860263cb
5
5
  SHA512:
6
- metadata.gz: ef5ea87d9edb1732473d522755778682e14e1fd4c8bc7c83e5ac48f4d0e25c8e23a86d44d7c5f140c7417547d15c0cb59cad3bca9f7d82203d4fb323af39382c
7
- data.tar.gz: 1e06d8fd90d182310b196a21aab8934346d75bbd7394212aa8e3a67e3be7f493a05be1dda1cddbac76603e8f4c470e82109deb94194ca6632344f7bab4707745
6
+ metadata.gz: 1ddd00adb0032e07a7a5b62e029dbb14caa3fa69516bd71ed285f32398843c5a38e114051a8d43bbcf7aaf0151eb0bf7c2633943ce9c8be50411ee6477f30d6f
7
+ data.tar.gz: d57dde3940cc90fdb13120b502d1f9f4585d5d497560e3b35147f8e4feeb41444b46b504467811496472a6dc71272967b20b26950a4febbfd1e4a1259b5fecfc
@@ -152,7 +152,8 @@ module Google
152
152
  credentials: credentials,
153
153
  endpoint: @config.endpoint,
154
154
  channel_args: @config.channel_args,
155
- interceptors: @config.interceptors
155
+ interceptors: @config.interceptors,
156
+ channel_pool_config: @config.channel_pool
156
157
  )
157
158
  end
158
159
 
@@ -1588,6 +1589,14 @@ module Google
1588
1589
  end
1589
1590
  end
1590
1591
 
1592
+ ##
1593
+ # Configuration for the channel pool
1594
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1595
+ #
1596
+ def channel_pool
1597
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1598
+ end
1599
+
1591
1600
  ##
1592
1601
  # Configuration RPC class for the ServiceManager API.
1593
1602
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -693,6 +694,14 @@ module Google
693
694
  end
694
695
  end
695
696
 
697
+ ##
698
+ # Configuration for the channel pool
699
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
700
+ #
701
+ def channel_pool
702
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
703
+ end
704
+
696
705
  ##
697
706
  # Configuration RPC class for the Operations API.
698
707
  #
@@ -207,6 +207,26 @@ module Google
207
207
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceManagement::V1::ManagedService>]
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
210
+ #
211
+ # @example Basic example
212
+ # require "google/cloud/service_management/v1"
213
+ #
214
+ # # Create a client object. The client can be reused for multiple calls.
215
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
216
+ #
217
+ # # Create a request. To set request fields, pass in keyword arguments.
218
+ # request = Google::Cloud::ServiceManagement::V1::ListServicesRequest.new
219
+ #
220
+ # # Call the list_services method.
221
+ # result = client.list_services request
222
+ #
223
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
224
+ # # over elements, and API calls will be issued to fetch pages as needed.
225
+ # result.each do |item|
226
+ # # Each element is of type ::Google::Cloud::ServiceManagement::V1::ManagedService.
227
+ # p item
228
+ # end
229
+ #
210
230
  def list_services request, options = nil
211
231
  raise ::ArgumentError, "request must be provided" if request.nil?
212
232
 
@@ -272,6 +292,22 @@ module Google
272
292
  # @return [::Google::Cloud::ServiceManagement::V1::ManagedService]
273
293
  #
274
294
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/service_management/v1"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::ServiceManagement::V1::GetServiceRequest.new
304
+ #
305
+ # # Call the get_service method.
306
+ # result = client.get_service request
307
+ #
308
+ # # The returned object is of type Google::Cloud::ServiceManagement::V1::ManagedService.
309
+ # p result
310
+ #
275
311
  def get_service request, options = nil
276
312
  raise ::ArgumentError, "request must be provided" if request.nil?
277
313
 
@@ -344,6 +380,29 @@ module Google
344
380
  # @return [::Gapic::Operation]
345
381
  #
346
382
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
383
+ #
384
+ # @example Basic example
385
+ # require "google/cloud/service_management/v1"
386
+ #
387
+ # # Create a client object. The client can be reused for multiple calls.
388
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
389
+ #
390
+ # # Create a request. To set request fields, pass in keyword arguments.
391
+ # request = Google::Cloud::ServiceManagement::V1::CreateServiceRequest.new
392
+ #
393
+ # # Call the create_service method.
394
+ # result = client.create_service request
395
+ #
396
+ # # The returned object is of type Gapic::Operation. You can use it to
397
+ # # check the status of an operation, cancel it, or wait for results.
398
+ # # Here is how to wait for a response.
399
+ # result.wait_until_done! timeout: 60
400
+ # if result.response?
401
+ # p result.response
402
+ # else
403
+ # puts "No response received."
404
+ # end
405
+ #
347
406
  def create_service request, options = nil
348
407
  raise ::ArgumentError, "request must be provided" if request.nil?
349
408
 
@@ -416,6 +475,29 @@ module Google
416
475
  # @return [::Gapic::Operation]
417
476
  #
418
477
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
478
+ #
479
+ # @example Basic example
480
+ # require "google/cloud/service_management/v1"
481
+ #
482
+ # # Create a client object. The client can be reused for multiple calls.
483
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
484
+ #
485
+ # # Create a request. To set request fields, pass in keyword arguments.
486
+ # request = Google::Cloud::ServiceManagement::V1::DeleteServiceRequest.new
487
+ #
488
+ # # Call the delete_service method.
489
+ # result = client.delete_service request
490
+ #
491
+ # # The returned object is of type Gapic::Operation. You can use it to
492
+ # # check the status of an operation, cancel it, or wait for results.
493
+ # # Here is how to wait for a response.
494
+ # result.wait_until_done! timeout: 60
495
+ # if result.response?
496
+ # p result.response
497
+ # else
498
+ # puts "No response received."
499
+ # end
500
+ #
419
501
  def delete_service request, options = nil
420
502
  raise ::ArgumentError, "request must be provided" if request.nil?
421
503
 
@@ -486,6 +568,29 @@ module Google
486
568
  # @return [::Gapic::Operation]
487
569
  #
488
570
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
571
+ #
572
+ # @example Basic example
573
+ # require "google/cloud/service_management/v1"
574
+ #
575
+ # # Create a client object. The client can be reused for multiple calls.
576
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
577
+ #
578
+ # # Create a request. To set request fields, pass in keyword arguments.
579
+ # request = Google::Cloud::ServiceManagement::V1::UndeleteServiceRequest.new
580
+ #
581
+ # # Call the undelete_service method.
582
+ # result = client.undelete_service request
583
+ #
584
+ # # The returned object is of type Gapic::Operation. You can use it to
585
+ # # check the status of an operation, cancel it, or wait for results.
586
+ # # Here is how to wait for a response.
587
+ # result.wait_until_done! timeout: 60
588
+ # if result.response?
589
+ # p result.response
590
+ # else
591
+ # puts "No response received."
592
+ # end
593
+ #
489
594
  def undelete_service request, options = nil
490
595
  raise ::ArgumentError, "request must be provided" if request.nil?
491
596
 
@@ -557,6 +662,26 @@ module Google
557
662
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Api::Service>]
558
663
  #
559
664
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
665
+ #
666
+ # @example Basic example
667
+ # require "google/cloud/service_management/v1"
668
+ #
669
+ # # Create a client object. The client can be reused for multiple calls.
670
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
671
+ #
672
+ # # Create a request. To set request fields, pass in keyword arguments.
673
+ # request = Google::Cloud::ServiceManagement::V1::ListServiceConfigsRequest.new
674
+ #
675
+ # # Call the list_service_configs method.
676
+ # result = client.list_service_configs request
677
+ #
678
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
679
+ # # over elements, and API calls will be issued to fetch pages as needed.
680
+ # result.each do |item|
681
+ # # Each element is of type ::Google::Api::Service.
682
+ # p item
683
+ # end
684
+ #
560
685
  def list_service_configs request, options = nil
561
686
  raise ::ArgumentError, "request must be provided" if request.nil?
562
687
 
@@ -630,6 +755,22 @@ module Google
630
755
  # @return [::Google::Api::Service]
631
756
  #
632
757
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
758
+ #
759
+ # @example Basic example
760
+ # require "google/cloud/service_management/v1"
761
+ #
762
+ # # Create a client object. The client can be reused for multiple calls.
763
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
764
+ #
765
+ # # Create a request. To set request fields, pass in keyword arguments.
766
+ # request = Google::Cloud::ServiceManagement::V1::GetServiceConfigRequest.new
767
+ #
768
+ # # Call the get_service_config method.
769
+ # result = client.get_service_config request
770
+ #
771
+ # # The returned object is of type Google::Api::Service.
772
+ # p result
773
+ #
633
774
  def get_service_config request, options = nil
634
775
  raise ::ArgumentError, "request must be provided" if request.nil?
635
776
 
@@ -703,6 +844,22 @@ module Google
703
844
  # @return [::Google::Api::Service]
704
845
  #
705
846
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
847
+ #
848
+ # @example Basic example
849
+ # require "google/cloud/service_management/v1"
850
+ #
851
+ # # Create a client object. The client can be reused for multiple calls.
852
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
853
+ #
854
+ # # Create a request. To set request fields, pass in keyword arguments.
855
+ # request = Google::Cloud::ServiceManagement::V1::CreateServiceConfigRequest.new
856
+ #
857
+ # # Call the create_service_config method.
858
+ # result = client.create_service_config request
859
+ #
860
+ # # The returned object is of type Google::Api::Service.
861
+ # p result
862
+ #
706
863
  def create_service_config request, options = nil
707
864
  raise ::ArgumentError, "request must be provided" if request.nil?
708
865
 
@@ -786,6 +943,29 @@ module Google
786
943
  # @return [::Gapic::Operation]
787
944
  #
788
945
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
946
+ #
947
+ # @example Basic example
948
+ # require "google/cloud/service_management/v1"
949
+ #
950
+ # # Create a client object. The client can be reused for multiple calls.
951
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
952
+ #
953
+ # # Create a request. To set request fields, pass in keyword arguments.
954
+ # request = Google::Cloud::ServiceManagement::V1::SubmitConfigSourceRequest.new
955
+ #
956
+ # # Call the submit_config_source method.
957
+ # result = client.submit_config_source request
958
+ #
959
+ # # The returned object is of type Gapic::Operation. You can use it to
960
+ # # check the status of an operation, cancel it, or wait for results.
961
+ # # Here is how to wait for a response.
962
+ # result.wait_until_done! timeout: 60
963
+ # if result.response?
964
+ # p result.response
965
+ # else
966
+ # puts "No response received."
967
+ # end
968
+ #
789
969
  def submit_config_source request, options = nil
790
970
  raise ::ArgumentError, "request must be provided" if request.nil?
791
971
 
@@ -868,6 +1048,26 @@ module Google
868
1048
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceManagement::V1::Rollout>]
869
1049
  #
870
1050
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1051
+ #
1052
+ # @example Basic example
1053
+ # require "google/cloud/service_management/v1"
1054
+ #
1055
+ # # Create a client object. The client can be reused for multiple calls.
1056
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
1057
+ #
1058
+ # # Create a request. To set request fields, pass in keyword arguments.
1059
+ # request = Google::Cloud::ServiceManagement::V1::ListServiceRolloutsRequest.new
1060
+ #
1061
+ # # Call the list_service_rollouts method.
1062
+ # result = client.list_service_rollouts request
1063
+ #
1064
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1065
+ # # over elements, and API calls will be issued to fetch pages as needed.
1066
+ # result.each do |item|
1067
+ # # Each element is of type ::Google::Cloud::ServiceManagement::V1::Rollout.
1068
+ # p item
1069
+ # end
1070
+ #
871
1071
  def list_service_rollouts request, options = nil
872
1072
  raise ::ArgumentError, "request must be provided" if request.nil?
873
1073
 
@@ -936,6 +1136,22 @@ module Google
936
1136
  # @return [::Google::Cloud::ServiceManagement::V1::Rollout]
937
1137
  #
938
1138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1139
+ #
1140
+ # @example Basic example
1141
+ # require "google/cloud/service_management/v1"
1142
+ #
1143
+ # # Create a client object. The client can be reused for multiple calls.
1144
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
1145
+ #
1146
+ # # Create a request. To set request fields, pass in keyword arguments.
1147
+ # request = Google::Cloud::ServiceManagement::V1::GetServiceRolloutRequest.new
1148
+ #
1149
+ # # Call the get_service_rollout method.
1150
+ # result = client.get_service_rollout request
1151
+ #
1152
+ # # The returned object is of type Google::Cloud::ServiceManagement::V1::Rollout.
1153
+ # p result
1154
+ #
939
1155
  def get_service_rollout request, options = nil
940
1156
  raise ::ArgumentError, "request must be provided" if request.nil?
941
1157
 
@@ -1015,6 +1231,29 @@ module Google
1015
1231
  # @return [::Gapic::Operation]
1016
1232
  #
1017
1233
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1234
+ #
1235
+ # @example Basic example
1236
+ # require "google/cloud/service_management/v1"
1237
+ #
1238
+ # # Create a client object. The client can be reused for multiple calls.
1239
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
1240
+ #
1241
+ # # Create a request. To set request fields, pass in keyword arguments.
1242
+ # request = Google::Cloud::ServiceManagement::V1::CreateServiceRolloutRequest.new
1243
+ #
1244
+ # # Call the create_service_rollout method.
1245
+ # result = client.create_service_rollout request
1246
+ #
1247
+ # # The returned object is of type Gapic::Operation. You can use it to
1248
+ # # check the status of an operation, cancel it, or wait for results.
1249
+ # # Here is how to wait for a response.
1250
+ # result.wait_until_done! timeout: 60
1251
+ # if result.response?
1252
+ # p result.response
1253
+ # else
1254
+ # puts "No response received."
1255
+ # end
1256
+ #
1018
1257
  def create_service_rollout request, options = nil
1019
1258
  raise ::ArgumentError, "request must be provided" if request.nil?
1020
1259
 
@@ -1098,6 +1337,22 @@ module Google
1098
1337
  # @return [::Google::Cloud::ServiceManagement::V1::GenerateConfigReportResponse]
1099
1338
  #
1100
1339
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1340
+ #
1341
+ # @example Basic example
1342
+ # require "google/cloud/service_management/v1"
1343
+ #
1344
+ # # Create a client object. The client can be reused for multiple calls.
1345
+ # client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
1346
+ #
1347
+ # # Create a request. To set request fields, pass in keyword arguments.
1348
+ # request = Google::Cloud::ServiceManagement::V1::GenerateConfigReportRequest.new
1349
+ #
1350
+ # # Call the generate_config_report method.
1351
+ # result = client.generate_config_report request
1352
+ #
1353
+ # # The returned object is of type Google::Cloud::ServiceManagement::V1::GenerateConfigReportResponse.
1354
+ # p result
1355
+ #
1101
1356
  def generate_config_report request, options = nil
1102
1357
  raise ::ArgumentError, "request must be provided" if request.nil?
1103
1358
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceManagement
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -30,6 +30,9 @@ module Google
30
30
  # The service controller environment to use. If empty, no control plane
31
31
  # feature (like quota and billing) will be enabled. The recommended value for
32
32
  # most services is servicecontrol.googleapis.com
33
+ # @!attribute [rw] method_policies
34
+ # @return [::Array<::Google::Api::MethodPolicy>]
35
+ # Defines policies applying to the API methods of the service.
33
36
  class Control
34
37
  include ::Google::Protobuf::MessageExts
35
38
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # Google API Policy Annotation
23
+ #
24
+ # This message defines a simple API policy annotation that can be used to
25
+ # annotate API request and response message fields with applicable policies.
26
+ # One field may have multiple applicable policies that must all be satisfied
27
+ # before a request can be processed. This policy annotation is used to
28
+ # generate the overall policy that will be used for automatic runtime
29
+ # policy enforcement and documentation generation.
30
+ # @!attribute [rw] selector
31
+ # @return [::String]
32
+ # Selects one or more request or response message fields to apply this
33
+ # `FieldPolicy`.
34
+ #
35
+ # When a `FieldPolicy` is used in proto annotation, the selector must
36
+ # be left as empty. The service config generator will automatically fill
37
+ # the correct value.
38
+ #
39
+ # When a `FieldPolicy` is used in service config, the selector must be a
40
+ # comma-separated string with valid request or response field paths,
41
+ # such as "foo.bar" or "foo.bar,foo.baz".
42
+ # @!attribute [rw] resource_permission
43
+ # @return [::String]
44
+ # Specifies the required permission(s) for the resource referred to by the
45
+ # field. It requires the field contains a valid resource reference, and
46
+ # the request must pass the permission checks to proceed. For example,
47
+ # "resourcemanager.projects.get".
48
+ # @!attribute [rw] resource_type
49
+ # @return [::String]
50
+ # Specifies the resource type for the resource referred to by the field.
51
+ class FieldPolicy
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
+ end
55
+
56
+ # Defines policies applying to an RPC method.
57
+ # @!attribute [rw] selector
58
+ # @return [::String]
59
+ # Selects a method to which these policies should be enforced, for example,
60
+ # "google.pubsub.v1.Subscriber.CreateSubscription".
61
+ #
62
+ # Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
63
+ # details.
64
+ #
65
+ # NOTE: This field must not be set in the proto annotation. It will be
66
+ # automatically filled by the service config compiler .
67
+ # @!attribute [rw] request_policies
68
+ # @return [::Array<::Google::Api::FieldPolicy>]
69
+ # Policies that are applicable to the request message.
70
+ class MethodPolicy
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+ end
74
+ end
75
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_management-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.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: 2023-06-27 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -224,6 +224,7 @@ files:
224
224
  - proto_docs/google/api/metric.rb
225
225
  - proto_docs/google/api/monitored_resource.rb
226
226
  - proto_docs/google/api/monitoring.rb
227
+ - proto_docs/google/api/policy.rb
227
228
  - proto_docs/google/api/quota.rb
228
229
  - proto_docs/google/api/resource.rb
229
230
  - proto_docs/google/api/service.rb
@@ -264,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
265
  - !ruby/object:Gem::Version
265
266
  version: '0'
266
267
  requirements: []
267
- rubygems_version: 3.4.2
268
+ rubygems_version: 3.4.19
268
269
  signing_key:
269
270
  specification_version: 4
270
271
  summary: Google Service Management allows service producers to publish their services