google-apis-networkservices_v1 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/google/apis/networkservices_v1/classes.rb +84 -6
- data/lib/google/apis/networkservices_v1/gem_version.rb +3 -3
- data/lib/google/apis/networkservices_v1/representations.rb +33 -0
- data/lib/google/apis/networkservices_v1/service.rb +297 -26
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5256082719142f9cd9d308eee0c0f3a4fc9197beecc104905e4b5e2f82e2c959
|
4
|
+
data.tar.gz: cee45a5fa683e4d1fe5d79fcd8d48853ffd0c79ef1774a2768191a59ede07de6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12626d3c13a4193f209e4f89c498762eeff9d0c48250679e559ae3d70728eb31a013fd8483decc03d2d61338e0f289050dfd13ee7ebe840e955195ee2bbc8f51
|
7
|
+
data.tar.gz: cef0c3d87b8862c5fe3b558cc0f01be5630c672a15db73265955a64820408510c11c375c7e19570d73ed2f7b9297d39af04a1ff088284bdb786f0bcce65ed488
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-networkservices_v1
|
2
2
|
|
3
|
+
### v0.9.0 (2022-05-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220506
|
6
|
+
|
7
|
+
### v0.8.0 (2022-04-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220413
|
10
|
+
|
11
|
+
### v0.7.0 (2022-04-12)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220404
|
14
|
+
* Regenerated using generator version 0.4.1
|
15
|
+
|
3
16
|
### v0.6.0 (2021-12-14)
|
4
17
|
|
5
18
|
* Unspecified changes
|
@@ -35,8 +35,8 @@ module Google
|
|
35
35
|
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
36
36
|
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
37
37
|
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
38
|
-
# exempts jose@example.com from DATA_READ logging, and aliya@example.com
|
39
|
-
# DATA_WRITE logging.
|
38
|
+
# exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
|
39
|
+
# from DATA_WRITE logging.
|
40
40
|
class AuditConfig
|
41
41
|
include Google::Apis::Core::Hashable
|
42
42
|
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
# @return [Google::Apis::NetworkservicesV1::Expr]
|
117
117
|
attr_accessor :condition
|
118
118
|
|
119
|
-
# Specifies the principals requesting access for a Cloud
|
119
|
+
# Specifies the principals requesting access for a Google Cloud resource. `
|
120
120
|
# members` can have the following values: * `allUsers`: A special identifier
|
121
121
|
# that represents anyone who is on the internet; with or without a Google
|
122
122
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -180,8 +180,7 @@ module Google
|
|
180
180
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
181
181
|
# messages in your APIs. A typical example is to use it as the request or the
|
182
182
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
183
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
184
|
-
# `Empty` is empty JSON object ````.
|
183
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
185
184
|
class Empty
|
186
185
|
include Google::Apis::Core::Hashable
|
187
186
|
|
@@ -507,6 +506,33 @@ module Google
|
|
507
506
|
end
|
508
507
|
end
|
509
508
|
|
509
|
+
# Response returned by the ListServiceBindings method.
|
510
|
+
class ListServiceBindingsResponse
|
511
|
+
include Google::Apis::Core::Hashable
|
512
|
+
|
513
|
+
# If there might be more results than those appearing in this response, then `
|
514
|
+
# next_page_token` is included. To get the next set of results, call this method
|
515
|
+
# again using the value of `next_page_token` as `page_token`.
|
516
|
+
# Corresponds to the JSON property `nextPageToken`
|
517
|
+
# @return [String]
|
518
|
+
attr_accessor :next_page_token
|
519
|
+
|
520
|
+
# List of ServiceBinding resources.
|
521
|
+
# Corresponds to the JSON property `serviceBindings`
|
522
|
+
# @return [Array<Google::Apis::NetworkservicesV1::ServiceBinding>]
|
523
|
+
attr_accessor :service_bindings
|
524
|
+
|
525
|
+
def initialize(**args)
|
526
|
+
update!(**args)
|
527
|
+
end
|
528
|
+
|
529
|
+
# Update properties of this object
|
530
|
+
def update!(**args)
|
531
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
532
|
+
@service_bindings = args[:service_bindings] if args.key?(:service_bindings)
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
510
536
|
# A resource that represents Google Cloud Platform location.
|
511
537
|
class Location
|
512
538
|
include Google::Apis::Core::Hashable
|
@@ -770,6 +796,58 @@ module Google
|
|
770
796
|
end
|
771
797
|
end
|
772
798
|
|
799
|
+
# ServiceBinding is the resource that defines a Service Directory Service to be
|
800
|
+
# used in a BackendService resource.
|
801
|
+
class ServiceBinding
|
802
|
+
include Google::Apis::Core::Hashable
|
803
|
+
|
804
|
+
# Output only. The timestamp when the resource was created.
|
805
|
+
# Corresponds to the JSON property `createTime`
|
806
|
+
# @return [String]
|
807
|
+
attr_accessor :create_time
|
808
|
+
|
809
|
+
# Optional. A free-text description of the resource. Max length 1024 characters.
|
810
|
+
# Corresponds to the JSON property `description`
|
811
|
+
# @return [String]
|
812
|
+
attr_accessor :description
|
813
|
+
|
814
|
+
# Optional. Set of label tags associated with the ServiceBinding resource.
|
815
|
+
# Corresponds to the JSON property `labels`
|
816
|
+
# @return [Hash<String,String>]
|
817
|
+
attr_accessor :labels
|
818
|
+
|
819
|
+
# Required. Name of the ServiceBinding resource. It matches pattern `projects/*/
|
820
|
+
# locations/global/serviceBindings/service_binding_name>`.
|
821
|
+
# Corresponds to the JSON property `name`
|
822
|
+
# @return [String]
|
823
|
+
attr_accessor :name
|
824
|
+
|
825
|
+
# Required. The full service directory service name of the format /projects/*/
|
826
|
+
# locations/*/namespaces/*/services/*
|
827
|
+
# Corresponds to the JSON property `service`
|
828
|
+
# @return [String]
|
829
|
+
attr_accessor :service
|
830
|
+
|
831
|
+
# Output only. The timestamp when the resource was updated.
|
832
|
+
# Corresponds to the JSON property `updateTime`
|
833
|
+
# @return [String]
|
834
|
+
attr_accessor :update_time
|
835
|
+
|
836
|
+
def initialize(**args)
|
837
|
+
update!(**args)
|
838
|
+
end
|
839
|
+
|
840
|
+
# Update properties of this object
|
841
|
+
def update!(**args)
|
842
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
843
|
+
@description = args[:description] if args.key?(:description)
|
844
|
+
@labels = args[:labels] if args.key?(:labels)
|
845
|
+
@name = args[:name] if args.key?(:name)
|
846
|
+
@service = args[:service] if args.key?(:service)
|
847
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
848
|
+
end
|
849
|
+
end
|
850
|
+
|
773
851
|
# Request message for `SetIamPolicy` method.
|
774
852
|
class SetIamPolicyRequest
|
775
853
|
include Google::Apis::Core::Hashable
|
@@ -867,7 +945,7 @@ module Google
|
|
867
945
|
include Google::Apis::Core::Hashable
|
868
946
|
|
869
947
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
870
|
-
# (such as
|
948
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
871
949
|
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
872
950
|
# Corresponds to the JSON property `permissions`
|
873
951
|
# @return [Array<String>]
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkservicesV1
|
18
18
|
# Version of the google-apis-networkservices_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220506"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class ListServiceBindingsResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class Location
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -124,6 +130,12 @@ module Google
|
|
124
130
|
include Google::Apis::Core::JsonObjectSupport
|
125
131
|
end
|
126
132
|
|
133
|
+
class ServiceBinding
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
127
139
|
class SetIamPolicyRequest
|
128
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
141
|
|
@@ -274,6 +286,15 @@ module Google
|
|
274
286
|
end
|
275
287
|
end
|
276
288
|
|
289
|
+
class ListServiceBindingsResponse
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
property :next_page_token, as: 'nextPageToken'
|
293
|
+
collection :service_bindings, as: 'serviceBindings', class: Google::Apis::NetworkservicesV1::ServiceBinding, decorator: Google::Apis::NetworkservicesV1::ServiceBinding::Representation
|
294
|
+
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
277
298
|
class Location
|
278
299
|
# @private
|
279
300
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -322,6 +343,18 @@ module Google
|
|
322
343
|
end
|
323
344
|
end
|
324
345
|
|
346
|
+
class ServiceBinding
|
347
|
+
# @private
|
348
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
349
|
+
property :create_time, as: 'createTime'
|
350
|
+
property :description, as: 'description'
|
351
|
+
hash :labels, as: 'labels'
|
352
|
+
property :name, as: 'name'
|
353
|
+
property :service, as: 'service'
|
354
|
+
property :update_time, as: 'updateTime'
|
355
|
+
end
|
356
|
+
end
|
357
|
+
|
325
358
|
class SetIamPolicyRequest
|
326
359
|
# @private
|
327
360
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -84,8 +84,8 @@ module Google
|
|
84
84
|
# The resource that owns the locations collection, if applicable.
|
85
85
|
# @param [String] filter
|
86
86
|
# A filter to narrow down results to a preferred subset. The filtering language
|
87
|
-
# accepts strings like "displayName=tokyo"
|
88
|
-
# AIP-160](https://google.aip.dev/160).
|
87
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
88
|
+
# in [AIP-160](https://google.aip.dev/160).
|
89
89
|
# @param [Fixnum] page_size
|
90
90
|
# The maximum number of results to return. If not set, the service selects a
|
91
91
|
# default.
|
@@ -125,8 +125,9 @@ module Google
|
|
125
125
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
126
126
|
# resource exists and does not have a policy set.
|
127
127
|
# @param [String] resource
|
128
|
-
# REQUIRED: The resource for which the policy is being requested. See
|
129
|
-
#
|
128
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
129
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
130
|
+
# appropriate value for this field.
|
130
131
|
# @param [Fixnum] options_requested_policy_version
|
131
132
|
# Optional. The maximum policy version that will be used to format the policy.
|
132
133
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
@@ -170,8 +171,9 @@ module Google
|
|
170
171
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
171
172
|
# PERMISSION_DENIED` errors.
|
172
173
|
# @param [String] resource
|
173
|
-
# REQUIRED: The resource for which the policy is being specified. See
|
174
|
-
#
|
174
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
175
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
176
|
+
# appropriate value for this field.
|
175
177
|
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
176
178
|
# @param [String] fields
|
177
179
|
# Selector specifying which fields to include in a partial response.
|
@@ -208,8 +210,9 @@ module Google
|
|
208
210
|
# permission-aware UIs and command-line tools, not for authorization checking.
|
209
211
|
# This operation may "fail open" without warning.
|
210
212
|
# @param [String] resource
|
211
|
-
# REQUIRED: The resource for which the policy detail is being requested. See
|
212
|
-
#
|
213
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
214
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
215
|
+
# appropriate value for this field.
|
213
216
|
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
214
217
|
# @param [String] fields
|
215
218
|
# Selector specifying which fields to include in a partial response.
|
@@ -243,8 +246,9 @@ module Google
|
|
243
246
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
244
247
|
# resource exists and does not have a policy set.
|
245
248
|
# @param [String] resource
|
246
|
-
# REQUIRED: The resource for which the policy is being requested. See
|
247
|
-
#
|
249
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
250
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
251
|
+
# appropriate value for this field.
|
248
252
|
# @param [Fixnum] options_requested_policy_version
|
249
253
|
# Optional. The maximum policy version that will be used to format the policy.
|
250
254
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
@@ -288,8 +292,9 @@ module Google
|
|
288
292
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
289
293
|
# PERMISSION_DENIED` errors.
|
290
294
|
# @param [String] resource
|
291
|
-
# REQUIRED: The resource for which the policy is being specified. See
|
292
|
-
#
|
295
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
296
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
297
|
+
# appropriate value for this field.
|
293
298
|
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
294
299
|
# @param [String] fields
|
295
300
|
# Selector specifying which fields to include in a partial response.
|
@@ -326,8 +331,9 @@ module Google
|
|
326
331
|
# permission-aware UIs and command-line tools, not for authorization checking.
|
327
332
|
# This operation may "fail open" without warning.
|
328
333
|
# @param [String] resource
|
329
|
-
# REQUIRED: The resource for which the policy detail is being requested. See
|
330
|
-
#
|
334
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
335
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
336
|
+
# appropriate value for this field.
|
331
337
|
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
332
338
|
# @param [String] fields
|
333
339
|
# Selector specifying which fields to include in a partial response.
|
@@ -361,8 +367,9 @@ module Google
|
|
361
367
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
362
368
|
# resource exists and does not have a policy set.
|
363
369
|
# @param [String] resource
|
364
|
-
# REQUIRED: The resource for which the policy is being requested. See
|
365
|
-
#
|
370
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
371
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
372
|
+
# appropriate value for this field.
|
366
373
|
# @param [Fixnum] options_requested_policy_version
|
367
374
|
# Optional. The maximum policy version that will be used to format the policy.
|
368
375
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
@@ -406,8 +413,9 @@ module Google
|
|
406
413
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
407
414
|
# PERMISSION_DENIED` errors.
|
408
415
|
# @param [String] resource
|
409
|
-
# REQUIRED: The resource for which the policy is being specified. See
|
410
|
-
#
|
416
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
417
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
418
|
+
# appropriate value for this field.
|
411
419
|
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
412
420
|
# @param [String] fields
|
413
421
|
# Selector specifying which fields to include in a partial response.
|
@@ -444,8 +452,9 @@ module Google
|
|
444
452
|
# permission-aware UIs and command-line tools, not for authorization checking.
|
445
453
|
# This operation may "fail open" without warning.
|
446
454
|
# @param [String] resource
|
447
|
-
# REQUIRED: The resource for which the policy detail is being requested. See
|
448
|
-
#
|
455
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
456
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
457
|
+
# appropriate value for this field.
|
449
458
|
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
450
459
|
# @param [String] fields
|
451
460
|
# Selector specifying which fields to include in a partial response.
|
@@ -579,8 +588,9 @@ module Google
|
|
579
588
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
580
589
|
# resource exists and does not have a policy set.
|
581
590
|
# @param [String] resource
|
582
|
-
# REQUIRED: The resource for which the policy is being requested. See
|
583
|
-
#
|
591
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
592
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
593
|
+
# appropriate value for this field.
|
584
594
|
# @param [Fixnum] options_requested_policy_version
|
585
595
|
# Optional. The maximum policy version that will be used to format the policy.
|
586
596
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
@@ -704,8 +714,9 @@ module Google
|
|
704
714
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
705
715
|
# PERMISSION_DENIED` errors.
|
706
716
|
# @param [String] resource
|
707
|
-
# REQUIRED: The resource for which the policy is being specified. See
|
708
|
-
#
|
717
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
718
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
719
|
+
# appropriate value for this field.
|
709
720
|
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
710
721
|
# @param [String] fields
|
711
722
|
# Selector specifying which fields to include in a partial response.
|
@@ -742,8 +753,9 @@ module Google
|
|
742
753
|
# permission-aware UIs and command-line tools, not for authorization checking.
|
743
754
|
# This operation may "fail open" without warning.
|
744
755
|
# @param [String] resource
|
745
|
-
# REQUIRED: The resource for which the policy detail is being requested. See
|
746
|
-
#
|
756
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
757
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
758
|
+
# appropriate value for this field.
|
747
759
|
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
748
760
|
# @param [String] fields
|
749
761
|
# Selector specifying which fields to include in a partial response.
|
@@ -923,6 +935,265 @@ module Google
|
|
923
935
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
924
936
|
execute_or_queue_command(command, &block)
|
925
937
|
end
|
938
|
+
|
939
|
+
# Creates a new ServiceBinding in a given project and location.
|
940
|
+
# @param [String] parent
|
941
|
+
# Required. The parent resource of the ServiceBinding. Must be in the format `
|
942
|
+
# projects/*/locations/global`.
|
943
|
+
# @param [Google::Apis::NetworkservicesV1::ServiceBinding] service_binding_object
|
944
|
+
# @param [String] service_binding_id
|
945
|
+
# Required. Short name of the ServiceBinding resource to be created.
|
946
|
+
# @param [String] fields
|
947
|
+
# Selector specifying which fields to include in a partial response.
|
948
|
+
# @param [String] quota_user
|
949
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
950
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
951
|
+
# @param [Google::Apis::RequestOptions] options
|
952
|
+
# Request-specific options
|
953
|
+
#
|
954
|
+
# @yield [result, err] Result & error if block supplied
|
955
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
956
|
+
# @yieldparam err [StandardError] error object if request failed
|
957
|
+
#
|
958
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
959
|
+
#
|
960
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
961
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
962
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
963
|
+
def create_project_location_service_binding(parent, service_binding_object = nil, service_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
964
|
+
command = make_simple_command(:post, 'v1/{+parent}/serviceBindings', options)
|
965
|
+
command.request_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
|
966
|
+
command.request_object = service_binding_object
|
967
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
968
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
969
|
+
command.params['parent'] = parent unless parent.nil?
|
970
|
+
command.query['serviceBindingId'] = service_binding_id unless service_binding_id.nil?
|
971
|
+
command.query['fields'] = fields unless fields.nil?
|
972
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
973
|
+
execute_or_queue_command(command, &block)
|
974
|
+
end
|
975
|
+
|
976
|
+
# Deletes a single ServiceBinding.
|
977
|
+
# @param [String] name
|
978
|
+
# Required. A name of the ServiceBinding to delete. Must be in the format `
|
979
|
+
# projects/*/locations/global/serviceBindings/*`.
|
980
|
+
# @param [String] fields
|
981
|
+
# Selector specifying which fields to include in a partial response.
|
982
|
+
# @param [String] quota_user
|
983
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
984
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
985
|
+
# @param [Google::Apis::RequestOptions] options
|
986
|
+
# Request-specific options
|
987
|
+
#
|
988
|
+
# @yield [result, err] Result & error if block supplied
|
989
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
990
|
+
# @yieldparam err [StandardError] error object if request failed
|
991
|
+
#
|
992
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
993
|
+
#
|
994
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
995
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
996
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
997
|
+
def delete_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
|
998
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
999
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
1000
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
1001
|
+
command.params['name'] = name unless name.nil?
|
1002
|
+
command.query['fields'] = fields unless fields.nil?
|
1003
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1004
|
+
execute_or_queue_command(command, &block)
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# Gets details of a single ServiceBinding.
|
1008
|
+
# @param [String] name
|
1009
|
+
# Required. A name of the ServiceBinding to get. Must be in the format `projects/
|
1010
|
+
# */locations/global/serviceBindings/*`.
|
1011
|
+
# @param [String] fields
|
1012
|
+
# Selector specifying which fields to include in a partial response.
|
1013
|
+
# @param [String] quota_user
|
1014
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1015
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1016
|
+
# @param [Google::Apis::RequestOptions] options
|
1017
|
+
# Request-specific options
|
1018
|
+
#
|
1019
|
+
# @yield [result, err] Result & error if block supplied
|
1020
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ServiceBinding] parsed result object
|
1021
|
+
# @yieldparam err [StandardError] error object if request failed
|
1022
|
+
#
|
1023
|
+
# @return [Google::Apis::NetworkservicesV1::ServiceBinding]
|
1024
|
+
#
|
1025
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1026
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1027
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1028
|
+
def get_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
|
1029
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1030
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
|
1031
|
+
command.response_class = Google::Apis::NetworkservicesV1::ServiceBinding
|
1032
|
+
command.params['name'] = name unless name.nil?
|
1033
|
+
command.query['fields'] = fields unless fields.nil?
|
1034
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1035
|
+
execute_or_queue_command(command, &block)
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1039
|
+
# resource exists and does not have a policy set.
|
1040
|
+
# @param [String] resource
|
1041
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1042
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1043
|
+
# appropriate value for this field.
|
1044
|
+
# @param [Fixnum] options_requested_policy_version
|
1045
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1046
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1047
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1048
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1049
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1050
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1051
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1052
|
+
# bindings, the response uses version 1. To learn which resources support
|
1053
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1054
|
+
# google.com/iam/help/conditions/resource-policies).
|
1055
|
+
# @param [String] fields
|
1056
|
+
# Selector specifying which fields to include in a partial response.
|
1057
|
+
# @param [String] quota_user
|
1058
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1059
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1060
|
+
# @param [Google::Apis::RequestOptions] options
|
1061
|
+
# Request-specific options
|
1062
|
+
#
|
1063
|
+
# @yield [result, err] Result & error if block supplied
|
1064
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
1065
|
+
# @yieldparam err [StandardError] error object if request failed
|
1066
|
+
#
|
1067
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
1068
|
+
#
|
1069
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1070
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1071
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1072
|
+
def get_project_location_service_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1073
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1074
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
1075
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
1076
|
+
command.params['resource'] = resource unless resource.nil?
|
1077
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1078
|
+
command.query['fields'] = fields unless fields.nil?
|
1079
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1080
|
+
execute_or_queue_command(command, &block)
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# Lists ServiceBinding in a given project and location.
|
1084
|
+
# @param [String] parent
|
1085
|
+
# Required. The project and location from which the ServiceBindings should be
|
1086
|
+
# listed, specified in the format `projects/*/locations/global`.
|
1087
|
+
# @param [Fixnum] page_size
|
1088
|
+
# Maximum number of ServiceBindings to return per call.
|
1089
|
+
# @param [String] page_token
|
1090
|
+
# The value returned by the last `ListServiceBindingsResponse` Indicates that
|
1091
|
+
# this is a continuation of a prior `ListRouters` call, and that the system
|
1092
|
+
# should return the next page of data.
|
1093
|
+
# @param [String] fields
|
1094
|
+
# Selector specifying which fields to include in a partial response.
|
1095
|
+
# @param [String] quota_user
|
1096
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1097
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1098
|
+
# @param [Google::Apis::RequestOptions] options
|
1099
|
+
# Request-specific options
|
1100
|
+
#
|
1101
|
+
# @yield [result, err] Result & error if block supplied
|
1102
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse] parsed result object
|
1103
|
+
# @yieldparam err [StandardError] error object if request failed
|
1104
|
+
#
|
1105
|
+
# @return [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse]
|
1106
|
+
#
|
1107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1110
|
+
def list_project_location_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1111
|
+
command = make_simple_command(:get, 'v1/{+parent}/serviceBindings', options)
|
1112
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse::Representation
|
1113
|
+
command.response_class = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse
|
1114
|
+
command.params['parent'] = parent unless parent.nil?
|
1115
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1116
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1117
|
+
command.query['fields'] = fields unless fields.nil?
|
1118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1119
|
+
execute_or_queue_command(command, &block)
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1123
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1124
|
+
# PERMISSION_DENIED` errors.
|
1125
|
+
# @param [String] resource
|
1126
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1127
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1128
|
+
# appropriate value for this field.
|
1129
|
+
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1130
|
+
# @param [String] fields
|
1131
|
+
# Selector specifying which fields to include in a partial response.
|
1132
|
+
# @param [String] quota_user
|
1133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1135
|
+
# @param [Google::Apis::RequestOptions] options
|
1136
|
+
# Request-specific options
|
1137
|
+
#
|
1138
|
+
# @yield [result, err] Result & error if block supplied
|
1139
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
1140
|
+
# @yieldparam err [StandardError] error object if request failed
|
1141
|
+
#
|
1142
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
1143
|
+
#
|
1144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1147
|
+
def set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1148
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1149
|
+
command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
|
1150
|
+
command.request_object = set_iam_policy_request_object
|
1151
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
1152
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
1153
|
+
command.params['resource'] = resource unless resource.nil?
|
1154
|
+
command.query['fields'] = fields unless fields.nil?
|
1155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1156
|
+
execute_or_queue_command(command, &block)
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1160
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1161
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1162
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1163
|
+
# This operation may "fail open" without warning.
|
1164
|
+
# @param [String] resource
|
1165
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1166
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1167
|
+
# appropriate value for this field.
|
1168
|
+
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1169
|
+
# @param [String] fields
|
1170
|
+
# Selector specifying which fields to include in a partial response.
|
1171
|
+
# @param [String] quota_user
|
1172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1174
|
+
# @param [Google::Apis::RequestOptions] options
|
1175
|
+
# Request-specific options
|
1176
|
+
#
|
1177
|
+
# @yield [result, err] Result & error if block supplied
|
1178
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
|
1179
|
+
# @yieldparam err [StandardError] error object if request failed
|
1180
|
+
#
|
1181
|
+
# @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
|
1182
|
+
#
|
1183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1186
|
+
def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1187
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1188
|
+
command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
|
1189
|
+
command.request_object = test_iam_permissions_request_object
|
1190
|
+
command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
|
1191
|
+
command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
|
1192
|
+
command.params['resource'] = resource unless resource.nil?
|
1193
|
+
command.query['fields'] = fields unless fields.nil?
|
1194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1195
|
+
execute_or_queue_command(command, &block)
|
1196
|
+
end
|
926
1197
|
|
927
1198
|
protected
|
928
1199
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkservices_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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: 2022-
|
11
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.9.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Network Services API V1
|