google-apis-networkservices_v1 0.5.0 → 0.8.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/OVERVIEW.md +1 -1
- data/lib/google/apis/networkservices_v1/classes.rb +82 -4
- 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 +258 -2
- 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: 348d1c28dcd9db70837de09f188d44e04eb098fc4f5f4078a7f05f209546ecca
|
4
|
+
data.tar.gz: 574c8f9a2f33d37fdf38086945c01c9dd06a9ae34776c891c5a97479f0e6fe21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08928a850125e375ecd11cebb22c7e565ffea6e1e1b09a02fa4d20da985ca47588997ac03422d17dfb6009837155bc1a9be1a6b95ec4205b36f04bf797da92b1'
|
7
|
+
data.tar.gz: 1a813f7ecbd7c7cc442bee7d95cea65bd230e59aef399155a8b27d3c6c1d6c12f2940fb2eab2b89335c39701d177d7e131883a952d599bd7961cf0d5230aec40
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-networkservices_v1
|
2
2
|
|
3
|
+
### v0.8.0 (2022-04-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220413
|
6
|
+
|
7
|
+
### v0.7.0 (2022-04-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220404
|
10
|
+
* Regenerated using generator version 0.4.1
|
11
|
+
|
12
|
+
### v0.6.0 (2021-12-14)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
3
16
|
### v0.5.0 (2021-11-14)
|
4
17
|
|
5
18
|
* Regenerated from discovery document revision 20211109
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/networkservices_v1"
|
|
51
51
|
client = Google::Apis::NetworkservicesV1::NetworkServicesService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -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.8.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 = "20220413"
|
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.
|
@@ -923,6 +923,262 @@ module Google
|
|
923
923
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
924
924
|
execute_or_queue_command(command, &block)
|
925
925
|
end
|
926
|
+
|
927
|
+
# Creates a new ServiceBinding in a given project and location.
|
928
|
+
# @param [String] parent
|
929
|
+
# Required. The parent resource of the ServiceBinding. Must be in the format `
|
930
|
+
# projects/*/locations/global`.
|
931
|
+
# @param [Google::Apis::NetworkservicesV1::ServiceBinding] service_binding_object
|
932
|
+
# @param [String] service_binding_id
|
933
|
+
# Required. Short name of the ServiceBinding resource to be created.
|
934
|
+
# @param [String] fields
|
935
|
+
# Selector specifying which fields to include in a partial response.
|
936
|
+
# @param [String] quota_user
|
937
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
938
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
939
|
+
# @param [Google::Apis::RequestOptions] options
|
940
|
+
# Request-specific options
|
941
|
+
#
|
942
|
+
# @yield [result, err] Result & error if block supplied
|
943
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
944
|
+
# @yieldparam err [StandardError] error object if request failed
|
945
|
+
#
|
946
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
947
|
+
#
|
948
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
949
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
950
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
951
|
+
def create_project_location_service_binding(parent, service_binding_object = nil, service_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
952
|
+
command = make_simple_command(:post, 'v1/{+parent}/serviceBindings', options)
|
953
|
+
command.request_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
|
954
|
+
command.request_object = service_binding_object
|
955
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
956
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
957
|
+
command.params['parent'] = parent unless parent.nil?
|
958
|
+
command.query['serviceBindingId'] = service_binding_id unless service_binding_id.nil?
|
959
|
+
command.query['fields'] = fields unless fields.nil?
|
960
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
961
|
+
execute_or_queue_command(command, &block)
|
962
|
+
end
|
963
|
+
|
964
|
+
# Deletes a single ServiceBinding.
|
965
|
+
# @param [String] name
|
966
|
+
# Required. A name of the ServiceBinding to delete. Must be in the format `
|
967
|
+
# projects/*/locations/global/serviceBindings/*`.
|
968
|
+
# @param [String] fields
|
969
|
+
# Selector specifying which fields to include in a partial response.
|
970
|
+
# @param [String] quota_user
|
971
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
972
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
973
|
+
# @param [Google::Apis::RequestOptions] options
|
974
|
+
# Request-specific options
|
975
|
+
#
|
976
|
+
# @yield [result, err] Result & error if block supplied
|
977
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
978
|
+
# @yieldparam err [StandardError] error object if request failed
|
979
|
+
#
|
980
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
981
|
+
#
|
982
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
983
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
984
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
985
|
+
def delete_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
|
986
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
987
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
988
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
989
|
+
command.params['name'] = name unless name.nil?
|
990
|
+
command.query['fields'] = fields unless fields.nil?
|
991
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
992
|
+
execute_or_queue_command(command, &block)
|
993
|
+
end
|
994
|
+
|
995
|
+
# Gets details of a single ServiceBinding.
|
996
|
+
# @param [String] name
|
997
|
+
# Required. A name of the ServiceBinding to get. Must be in the format `projects/
|
998
|
+
# */locations/global/serviceBindings/*`.
|
999
|
+
# @param [String] fields
|
1000
|
+
# Selector specifying which fields to include in a partial response.
|
1001
|
+
# @param [String] quota_user
|
1002
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1003
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1004
|
+
# @param [Google::Apis::RequestOptions] options
|
1005
|
+
# Request-specific options
|
1006
|
+
#
|
1007
|
+
# @yield [result, err] Result & error if block supplied
|
1008
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ServiceBinding] parsed result object
|
1009
|
+
# @yieldparam err [StandardError] error object if request failed
|
1010
|
+
#
|
1011
|
+
# @return [Google::Apis::NetworkservicesV1::ServiceBinding]
|
1012
|
+
#
|
1013
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1014
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1015
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1016
|
+
def get_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
|
1017
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1018
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ServiceBinding::Representation
|
1019
|
+
command.response_class = Google::Apis::NetworkservicesV1::ServiceBinding
|
1020
|
+
command.params['name'] = name unless name.nil?
|
1021
|
+
command.query['fields'] = fields unless fields.nil?
|
1022
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1023
|
+
execute_or_queue_command(command, &block)
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1027
|
+
# resource exists and does not have a policy set.
|
1028
|
+
# @param [String] resource
|
1029
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1030
|
+
# operation documentation for the appropriate value for this field.
|
1031
|
+
# @param [Fixnum] options_requested_policy_version
|
1032
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1033
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1034
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1035
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1036
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1037
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1038
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1039
|
+
# bindings, the response uses version 1. To learn which resources support
|
1040
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1041
|
+
# google.com/iam/help/conditions/resource-policies).
|
1042
|
+
# @param [String] fields
|
1043
|
+
# Selector specifying which fields to include in a partial response.
|
1044
|
+
# @param [String] quota_user
|
1045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1047
|
+
# @param [Google::Apis::RequestOptions] options
|
1048
|
+
# Request-specific options
|
1049
|
+
#
|
1050
|
+
# @yield [result, err] Result & error if block supplied
|
1051
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
1052
|
+
# @yieldparam err [StandardError] error object if request failed
|
1053
|
+
#
|
1054
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
1055
|
+
#
|
1056
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1057
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1058
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1059
|
+
def get_project_location_service_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1060
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1061
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
1062
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
1063
|
+
command.params['resource'] = resource unless resource.nil?
|
1064
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1065
|
+
command.query['fields'] = fields unless fields.nil?
|
1066
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1067
|
+
execute_or_queue_command(command, &block)
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# Lists ServiceBinding in a given project and location.
|
1071
|
+
# @param [String] parent
|
1072
|
+
# Required. The project and location from which the ServiceBindings should be
|
1073
|
+
# listed, specified in the format `projects/*/locations/global`.
|
1074
|
+
# @param [Fixnum] page_size
|
1075
|
+
# Maximum number of ServiceBindings to return per call.
|
1076
|
+
# @param [String] page_token
|
1077
|
+
# The value returned by the last `ListServiceBindingsResponse` Indicates that
|
1078
|
+
# this is a continuation of a prior `ListRouters` call, and that the system
|
1079
|
+
# should return the next page of data.
|
1080
|
+
# @param [String] fields
|
1081
|
+
# Selector specifying which fields to include in a partial response.
|
1082
|
+
# @param [String] quota_user
|
1083
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1084
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1085
|
+
# @param [Google::Apis::RequestOptions] options
|
1086
|
+
# Request-specific options
|
1087
|
+
#
|
1088
|
+
# @yield [result, err] Result & error if block supplied
|
1089
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse] parsed result object
|
1090
|
+
# @yieldparam err [StandardError] error object if request failed
|
1091
|
+
#
|
1092
|
+
# @return [Google::Apis::NetworkservicesV1::ListServiceBindingsResponse]
|
1093
|
+
#
|
1094
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1095
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1096
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1097
|
+
def list_project_location_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1098
|
+
command = make_simple_command(:get, 'v1/{+parent}/serviceBindings', options)
|
1099
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse::Representation
|
1100
|
+
command.response_class = Google::Apis::NetworkservicesV1::ListServiceBindingsResponse
|
1101
|
+
command.params['parent'] = parent unless parent.nil?
|
1102
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1103
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1104
|
+
command.query['fields'] = fields unless fields.nil?
|
1105
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1106
|
+
execute_or_queue_command(command, &block)
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1110
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1111
|
+
# PERMISSION_DENIED` errors.
|
1112
|
+
# @param [String] resource
|
1113
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1114
|
+
# operation documentation for the appropriate value for this field.
|
1115
|
+
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1116
|
+
# @param [String] fields
|
1117
|
+
# Selector specifying which fields to include in a partial response.
|
1118
|
+
# @param [String] quota_user
|
1119
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1120
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1121
|
+
# @param [Google::Apis::RequestOptions] options
|
1122
|
+
# Request-specific options
|
1123
|
+
#
|
1124
|
+
# @yield [result, err] Result & error if block supplied
|
1125
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
1126
|
+
# @yieldparam err [StandardError] error object if request failed
|
1127
|
+
#
|
1128
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
1129
|
+
#
|
1130
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1131
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1132
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1133
|
+
def set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1134
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1135
|
+
command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
|
1136
|
+
command.request_object = set_iam_policy_request_object
|
1137
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
1138
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
1139
|
+
command.params['resource'] = resource unless resource.nil?
|
1140
|
+
command.query['fields'] = fields unless fields.nil?
|
1141
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1142
|
+
execute_or_queue_command(command, &block)
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1146
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1147
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1148
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1149
|
+
# This operation may "fail open" without warning.
|
1150
|
+
# @param [String] resource
|
1151
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1152
|
+
# operation documentation for the appropriate value for this field.
|
1153
|
+
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1154
|
+
# @param [String] fields
|
1155
|
+
# Selector specifying which fields to include in a partial response.
|
1156
|
+
# @param [String] quota_user
|
1157
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1158
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1159
|
+
# @param [Google::Apis::RequestOptions] options
|
1160
|
+
# Request-specific options
|
1161
|
+
#
|
1162
|
+
# @yield [result, err] Result & error if block supplied
|
1163
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
|
1164
|
+
# @yieldparam err [StandardError] error object if request failed
|
1165
|
+
#
|
1166
|
+
# @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
|
1167
|
+
#
|
1168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1171
|
+
def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1172
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1173
|
+
command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
|
1174
|
+
command.request_object = test_iam_permissions_request_object
|
1175
|
+
command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
|
1176
|
+
command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
|
1177
|
+
command.params['resource'] = resource unless resource.nil?
|
1178
|
+
command.query['fields'] = fields unless fields.nil?
|
1179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1180
|
+
execute_or_queue_command(command, &block)
|
1181
|
+
end
|
926
1182
|
|
927
1183
|
protected
|
928
1184
|
|
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.8.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:
|
11
|
+
date: 2022-04-25 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.8.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.
|
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
|