google-api-client 0.51.0 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release-please.yml +23 -45
- data/CHANGELOG.md +100 -0
- data/README.md +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
- data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
- data/generated/google/apis/admin_directory_v1.rb +2 -2
- data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
- data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
- data/generated/google/apis/admin_directory_v1/service.rb +323 -183
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
- data/generated/google/apis/admin_reports_v1/service.rb +198 -179
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +5 -12
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +11 -11
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/apigateway_v1beta.rb +1 -1
- data/generated/google/apis/apigateway_v1beta/classes.rb +3 -9
- data/generated/google/apis/apigateway_v1beta/representations.rb +0 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +71 -0
- data/generated/google/apis/apigee_v1/representations.rb +42 -0
- data/generated/google/apis/apigee_v1/service.rb +206 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +7 -0
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +2 -2
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
- data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta2/classes.rb +2 -2
- data/generated/google/apis/artifactregistry_v1beta2/service.rb +4 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
- data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +202 -2
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -6
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -0
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +64 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +18 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1071 -341
- data/generated/google/apis/compute_alpha/representations.rb +248 -19
- data/generated/google/apis/compute_alpha/service.rb +291 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +926 -283
- data/generated/google/apis/compute_beta/representations.rb +221 -18
- data/generated/google/apis/compute_beta/service.rb +24 -15
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +419 -158
- data/generated/google/apis/compute_v1/representations.rb +55 -0
- data/generated/google/apis/compute_v1/service.rb +9 -7
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +48 -9
- data/generated/google/apis/container_v1/representations.rb +17 -0
- data/generated/google/apis/container_v1/service.rb +4 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +24 -13
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/container_v1beta1/service.rb +6 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +16 -7
- data/generated/google/apis/content_v2_1/representations.rb +1 -0
- data/generated/google/apis/datamigration_v1beta1.rb +1 -1
- data/generated/google/apis/datamigration_v1beta1/classes.rb +0 -6
- data/generated/google/apis/datamigration_v1beta1/representations.rb +0 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
- data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/service.rb +5 -25
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +8 -40
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +692 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +326 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +692 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +326 -0
- data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
- data/generated/google/apis/dialogflow_v3/classes.rb +8943 -0
- data/generated/google/apis/dialogflow_v3/representations.rb +3773 -0
- data/generated/google/apis/dialogflow_v3/service.rb +3006 -0
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +784 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +360 -0
- data/generated/google/apis/dialogflow_v3beta1/service.rb +173 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/service.rb +294 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +65 -0
- data/generated/google/apis/dns_v1/representations.rb +32 -0
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2/classes.rb +220 -102
- data/generated/google/apis/documentai_v1beta2/representations.rb +105 -9
- data/generated/google/apis/documentai_v1beta3.rb +1 -1
- data/generated/google/apis/documentai_v1beta3/classes.rb +241 -117
- data/generated/google/apis/documentai_v1beta3/representations.rb +105 -9
- data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
- data/generated/google/apis/eventarc_v1beta1.rb +1 -1
- data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
- data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +61 -0
- data/generated/google/apis/file_v1/representations.rb +19 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +11 -7
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +0 -6
- data/generated/google/apis/healthcare_v1/representations.rb +0 -1
- data/generated/google/apis/healthcare_v1/service.rb +13 -12
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +45 -19
- data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +37 -37
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +0 -6
- data/generated/google/apis/iap_v1/representations.rb +0 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -6
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
- data/generated/google/apis/metastore_v1beta.rb +35 -0
- data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
- data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
- data/generated/google/apis/metastore_v1beta/service.rb +800 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +51 -18
- data/generated/google/apis/ml_v1/representations.rb +16 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +8 -4
- data/generated/google/apis/privateca_v1beta1.rb +1 -1
- data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +37 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +18 -0
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +2 -2
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +2 -2
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
- data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
- data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +11 -10
- data/generated/google/apis/servicecontrol_v1.rb +3 -3
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v2.rb +3 -3
- data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
- data/generated/google/apis/servicedirectory_v1.rb +35 -0
- data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
- data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
- data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +11 -10
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -10
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +9 -3
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +0 -22
- data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/trafficdirector_v2.rb +2 -2
- data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
- data/generated/google/apis/transcoder_v1beta1.rb +1 -1
- data/generated/google/apis/transcoder_v1beta1/classes.rb +12 -2
- data/generated/google/apis/transcoder_v1beta1/representations.rb +1 -0
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +1 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
- data/generated/google/apis/workflows_v1beta.rb +1 -1
- data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -7
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
@@ -0,0 +1,304 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ServicedirectoryV1
|
24
|
+
|
25
|
+
class Binding
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Empty
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Endpoint
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Expr
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GetIamPolicyRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GetPolicyOptions
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ListEndpointsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class ListLocationsResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListNamespacesResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListServicesResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class Location
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class Namespace
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class Policy
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ResolveServiceRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class ResolveServiceResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class Service
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class SetIamPolicyRequest
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class TestIamPermissionsRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class TestIamPermissionsResponse
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class Binding
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
property :condition, as: 'condition', class: Google::Apis::ServicedirectoryV1::Expr, decorator: Google::Apis::ServicedirectoryV1::Expr::Representation
|
143
|
+
|
144
|
+
collection :members, as: 'members'
|
145
|
+
property :role, as: 'role'
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class Empty
|
150
|
+
# @private
|
151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class Endpoint
|
156
|
+
# @private
|
157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
158
|
+
property :address, as: 'address'
|
159
|
+
hash :annotations, as: 'annotations'
|
160
|
+
property :name, as: 'name'
|
161
|
+
property :port, as: 'port'
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class Expr
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
property :description, as: 'description'
|
169
|
+
property :expression, as: 'expression'
|
170
|
+
property :location, as: 'location'
|
171
|
+
property :title, as: 'title'
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
class GetIamPolicyRequest
|
176
|
+
# @private
|
177
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
+
property :options, as: 'options', class: Google::Apis::ServicedirectoryV1::GetPolicyOptions, decorator: Google::Apis::ServicedirectoryV1::GetPolicyOptions::Representation
|
179
|
+
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
class GetPolicyOptions
|
184
|
+
# @private
|
185
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
186
|
+
property :requested_policy_version, as: 'requestedPolicyVersion'
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class ListEndpointsResponse
|
191
|
+
# @private
|
192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
+
collection :endpoints, as: 'endpoints', class: Google::Apis::ServicedirectoryV1::Endpoint, decorator: Google::Apis::ServicedirectoryV1::Endpoint::Representation
|
194
|
+
|
195
|
+
property :next_page_token, as: 'nextPageToken'
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
class ListLocationsResponse
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
collection :locations, as: 'locations', class: Google::Apis::ServicedirectoryV1::Location, decorator: Google::Apis::ServicedirectoryV1::Location::Representation
|
203
|
+
|
204
|
+
property :next_page_token, as: 'nextPageToken'
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
class ListNamespacesResponse
|
209
|
+
# @private
|
210
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
211
|
+
collection :namespaces, as: 'namespaces', class: Google::Apis::ServicedirectoryV1::Namespace, decorator: Google::Apis::ServicedirectoryV1::Namespace::Representation
|
212
|
+
|
213
|
+
property :next_page_token, as: 'nextPageToken'
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
class ListServicesResponse
|
218
|
+
# @private
|
219
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
220
|
+
property :next_page_token, as: 'nextPageToken'
|
221
|
+
collection :services, as: 'services', class: Google::Apis::ServicedirectoryV1::Service, decorator: Google::Apis::ServicedirectoryV1::Service::Representation
|
222
|
+
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
class Location
|
227
|
+
# @private
|
228
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
229
|
+
property :display_name, as: 'displayName'
|
230
|
+
hash :labels, as: 'labels'
|
231
|
+
property :location_id, as: 'locationId'
|
232
|
+
hash :metadata, as: 'metadata'
|
233
|
+
property :name, as: 'name'
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
class Namespace
|
238
|
+
# @private
|
239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
240
|
+
hash :labels, as: 'labels'
|
241
|
+
property :name, as: 'name'
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
class Policy
|
246
|
+
# @private
|
247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
248
|
+
collection :bindings, as: 'bindings', class: Google::Apis::ServicedirectoryV1::Binding, decorator: Google::Apis::ServicedirectoryV1::Binding::Representation
|
249
|
+
|
250
|
+
property :etag, :base64 => true, as: 'etag'
|
251
|
+
property :version, as: 'version'
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
class ResolveServiceRequest
|
256
|
+
# @private
|
257
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
258
|
+
property :endpoint_filter, as: 'endpointFilter'
|
259
|
+
property :max_endpoints, as: 'maxEndpoints'
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
class ResolveServiceResponse
|
264
|
+
# @private
|
265
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
266
|
+
property :service, as: 'service', class: Google::Apis::ServicedirectoryV1::Service, decorator: Google::Apis::ServicedirectoryV1::Service::Representation
|
267
|
+
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
class Service
|
272
|
+
# @private
|
273
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
274
|
+
hash :annotations, as: 'annotations'
|
275
|
+
collection :endpoints, as: 'endpoints', class: Google::Apis::ServicedirectoryV1::Endpoint, decorator: Google::Apis::ServicedirectoryV1::Endpoint::Representation
|
276
|
+
|
277
|
+
property :name, as: 'name'
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class SetIamPolicyRequest
|
282
|
+
# @private
|
283
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
284
|
+
property :policy, as: 'policy', class: Google::Apis::ServicedirectoryV1::Policy, decorator: Google::Apis::ServicedirectoryV1::Policy::Representation
|
285
|
+
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
class TestIamPermissionsRequest
|
290
|
+
# @private
|
291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
+
collection :permissions, as: 'permissions'
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
296
|
+
class TestIamPermissionsResponse
|
297
|
+
# @private
|
298
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
299
|
+
collection :permissions, as: 'permissions'
|
300
|
+
end
|
301
|
+
end
|
302
|
+
end
|
303
|
+
end
|
304
|
+
end
|
@@ -0,0 +1,957 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module ServicedirectoryV1
|
23
|
+
# Service Directory API
|
24
|
+
#
|
25
|
+
# Service Directory is a platform for discovering, publishing, and connecting
|
26
|
+
# services.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/servicedirectory_v1'
|
30
|
+
#
|
31
|
+
# Servicedirectory = Google::Apis::ServicedirectoryV1 # Alias the module
|
32
|
+
# service = Servicedirectory::ServiceDirectoryService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/service-directory
|
35
|
+
class ServiceDirectoryService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://servicedirectory.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
49
|
+
end
|
50
|
+
|
51
|
+
# Gets information about a location.
|
52
|
+
# @param [String] name
|
53
|
+
# Resource name for the location.
|
54
|
+
# @param [String] fields
|
55
|
+
# Selector specifying which fields to include in a partial response.
|
56
|
+
# @param [String] quota_user
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
58
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
59
|
+
# @param [Google::Apis::RequestOptions] options
|
60
|
+
# Request-specific options
|
61
|
+
#
|
62
|
+
# @yield [result, err] Result & error if block supplied
|
63
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Location] parsed result object
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
65
|
+
#
|
66
|
+
# @return [Google::Apis::ServicedirectoryV1::Location]
|
67
|
+
#
|
68
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
69
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
70
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
71
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
72
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
73
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Location::Representation
|
74
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Location
|
75
|
+
command.params['name'] = name unless name.nil?
|
76
|
+
command.query['fields'] = fields unless fields.nil?
|
77
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
78
|
+
execute_or_queue_command(command, &block)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Lists information about the supported locations for this service.
|
82
|
+
# @param [String] name
|
83
|
+
# The resource that owns the locations collection, if applicable.
|
84
|
+
# @param [String] filter
|
85
|
+
# The standard list filter.
|
86
|
+
# @param [Fixnum] page_size
|
87
|
+
# The standard list page size.
|
88
|
+
# @param [String] page_token
|
89
|
+
# The standard list page token.
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::ListLocationsResponse] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::ServicedirectoryV1::ListLocationsResponse]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
109
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::ListLocationsResponse::Representation
|
110
|
+
command.response_class = Google::Apis::ServicedirectoryV1::ListLocationsResponse
|
111
|
+
command.params['name'] = name unless name.nil?
|
112
|
+
command.query['filter'] = filter unless filter.nil?
|
113
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
114
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Creates a namespace, and returns the new Namespace.
|
121
|
+
# @param [String] parent
|
122
|
+
# Required. The resource name of the project and location the namespace will be
|
123
|
+
# created in.
|
124
|
+
# @param [Google::Apis::ServicedirectoryV1::Namespace] namespace_object
|
125
|
+
# @param [String] namespace_id
|
126
|
+
# Required. The Resource ID must be 1-63 characters long, and comply with
|
127
|
+
# RFC1035. Specifically, the name must be 1-63 characters long and match the
|
128
|
+
# regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
|
129
|
+
# character must be a lowercase letter, and all following characters must be a
|
130
|
+
# dash, lowercase letter, or digit, except the last character, which cannot be a
|
131
|
+
# dash.
|
132
|
+
# @param [String] fields
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
134
|
+
# @param [String] quota_user
|
135
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
136
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
137
|
+
# @param [Google::Apis::RequestOptions] options
|
138
|
+
# Request-specific options
|
139
|
+
#
|
140
|
+
# @yield [result, err] Result & error if block supplied
|
141
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Namespace] parsed result object
|
142
|
+
# @yieldparam err [StandardError] error object if request failed
|
143
|
+
#
|
144
|
+
# @return [Google::Apis::ServicedirectoryV1::Namespace]
|
145
|
+
#
|
146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
149
|
+
def create_project_location_namespace(parent, namespace_object = nil, namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
150
|
+
command = make_simple_command(:post, 'v1/{+parent}/namespaces', options)
|
151
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
|
152
|
+
command.request_object = namespace_object
|
153
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
|
154
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Namespace
|
155
|
+
command.params['parent'] = parent unless parent.nil?
|
156
|
+
command.query['namespaceId'] = namespace_id unless namespace_id.nil?
|
157
|
+
command.query['fields'] = fields unless fields.nil?
|
158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
159
|
+
execute_or_queue_command(command, &block)
|
160
|
+
end
|
161
|
+
|
162
|
+
# Deletes a namespace. This also deletes all services and endpoints in the
|
163
|
+
# namespace.
|
164
|
+
# @param [String] name
|
165
|
+
# Required. The name of the namespace to delete.
|
166
|
+
# @param [String] fields
|
167
|
+
# Selector specifying which fields to include in a partial response.
|
168
|
+
# @param [String] quota_user
|
169
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
170
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
171
|
+
# @param [Google::Apis::RequestOptions] options
|
172
|
+
# Request-specific options
|
173
|
+
#
|
174
|
+
# @yield [result, err] Result & error if block supplied
|
175
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Empty] parsed result object
|
176
|
+
# @yieldparam err [StandardError] error object if request failed
|
177
|
+
#
|
178
|
+
# @return [Google::Apis::ServicedirectoryV1::Empty]
|
179
|
+
#
|
180
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
181
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
182
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
183
|
+
def delete_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
|
184
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
185
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Empty::Representation
|
186
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Empty
|
187
|
+
command.params['name'] = name unless name.nil?
|
188
|
+
command.query['fields'] = fields unless fields.nil?
|
189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
190
|
+
execute_or_queue_command(command, &block)
|
191
|
+
end
|
192
|
+
|
193
|
+
# Gets a namespace.
|
194
|
+
# @param [String] name
|
195
|
+
# Required. The name of the namespace to retrieve.
|
196
|
+
# @param [String] fields
|
197
|
+
# Selector specifying which fields to include in a partial response.
|
198
|
+
# @param [String] quota_user
|
199
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
200
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
201
|
+
# @param [Google::Apis::RequestOptions] options
|
202
|
+
# Request-specific options
|
203
|
+
#
|
204
|
+
# @yield [result, err] Result & error if block supplied
|
205
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Namespace] parsed result object
|
206
|
+
# @yieldparam err [StandardError] error object if request failed
|
207
|
+
#
|
208
|
+
# @return [Google::Apis::ServicedirectoryV1::Namespace]
|
209
|
+
#
|
210
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
211
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
212
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
213
|
+
def get_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
|
214
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
215
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
|
216
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Namespace
|
217
|
+
command.params['name'] = name unless name.nil?
|
218
|
+
command.query['fields'] = fields unless fields.nil?
|
219
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
220
|
+
execute_or_queue_command(command, &block)
|
221
|
+
end
|
222
|
+
|
223
|
+
# Gets the IAM Policy for a resource (namespace or service only).
|
224
|
+
# @param [String] resource
|
225
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
226
|
+
# operation documentation for the appropriate value for this field.
|
227
|
+
# @param [Google::Apis::ServicedirectoryV1::GetIamPolicyRequest] get_iam_policy_request_object
|
228
|
+
# @param [String] fields
|
229
|
+
# Selector specifying which fields to include in a partial response.
|
230
|
+
# @param [String] quota_user
|
231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
233
|
+
# @param [Google::Apis::RequestOptions] options
|
234
|
+
# Request-specific options
|
235
|
+
#
|
236
|
+
# @yield [result, err] Result & error if block supplied
|
237
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
|
238
|
+
# @yieldparam err [StandardError] error object if request failed
|
239
|
+
#
|
240
|
+
# @return [Google::Apis::ServicedirectoryV1::Policy]
|
241
|
+
#
|
242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
245
|
+
def get_namespace_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
246
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
247
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::GetIamPolicyRequest::Representation
|
248
|
+
command.request_object = get_iam_policy_request_object
|
249
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
|
250
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Policy
|
251
|
+
command.params['resource'] = resource unless resource.nil?
|
252
|
+
command.query['fields'] = fields unless fields.nil?
|
253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
254
|
+
execute_or_queue_command(command, &block)
|
255
|
+
end
|
256
|
+
|
257
|
+
# Lists all namespaces.
|
258
|
+
# @param [String] parent
|
259
|
+
# Required. The resource name of the project and location whose namespaces we'd
|
260
|
+
# like to list.
|
261
|
+
# @param [String] filter
|
262
|
+
# Optional. The filter to list result by. General filter string syntax: () can
|
263
|
+
# be "name", or "labels." for map field. can be "<, >, <=, >=, !=, =, :". Of
|
264
|
+
# which ":" means HAS, and is roughly the same as "=". must be the same data
|
265
|
+
# type as field. can be "AND, OR, NOT". Examples of valid filters: * "labels.
|
266
|
+
# owner" returns Namespaces that have a label with the key "owner" this is the
|
267
|
+
# same as "labels:owner". * "labels.protocol=gRPC" returns Namespaces that have
|
268
|
+
# key/value "protocol=gRPC". * "name>projects/my-project/locations/us-east/
|
269
|
+
# namespaces/namespace-c" returns Namespaces that have name that is
|
270
|
+
# alphabetically later than the string, so "namespace-e" will be returned but "
|
271
|
+
# namespace-a" will not be. * "labels.owner!=sd AND labels.foo=bar" returns
|
272
|
+
# Namespaces that have "owner" in label key but value is not "sd" AND have key/
|
273
|
+
# value foo=bar. * "doesnotexist.foo=bar" returns an empty list. Note that
|
274
|
+
# Namespace doesn't have a field called "doesnotexist". Since the filter does
|
275
|
+
# not match any Namespaces, it returns no results.
|
276
|
+
# @param [String] order_by
|
277
|
+
# Optional. The order to list result by. General order by string syntax: () (,)
|
278
|
+
# allows values `"name"` ascending or descending order by . If this is left
|
279
|
+
# blank, "asc" is used. Note that an empty order_by string result in default
|
280
|
+
# order, which is order by name in ascending order.
|
281
|
+
# @param [Fixnum] page_size
|
282
|
+
# Optional. The maximum number of items to return.
|
283
|
+
# @param [String] page_token
|
284
|
+
# Optional. The next_page_token value returned from a previous List request, if
|
285
|
+
# any.
|
286
|
+
# @param [String] fields
|
287
|
+
# Selector specifying which fields to include in a partial response.
|
288
|
+
# @param [String] quota_user
|
289
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
290
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
291
|
+
# @param [Google::Apis::RequestOptions] options
|
292
|
+
# Request-specific options
|
293
|
+
#
|
294
|
+
# @yield [result, err] Result & error if block supplied
|
295
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::ListNamespacesResponse] parsed result object
|
296
|
+
# @yieldparam err [StandardError] error object if request failed
|
297
|
+
#
|
298
|
+
# @return [Google::Apis::ServicedirectoryV1::ListNamespacesResponse]
|
299
|
+
#
|
300
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
301
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
302
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
303
|
+
def list_project_location_namespaces(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
304
|
+
command = make_simple_command(:get, 'v1/{+parent}/namespaces', options)
|
305
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::ListNamespacesResponse::Representation
|
306
|
+
command.response_class = Google::Apis::ServicedirectoryV1::ListNamespacesResponse
|
307
|
+
command.params['parent'] = parent unless parent.nil?
|
308
|
+
command.query['filter'] = filter unless filter.nil?
|
309
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
310
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
311
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
312
|
+
command.query['fields'] = fields unless fields.nil?
|
313
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
314
|
+
execute_or_queue_command(command, &block)
|
315
|
+
end
|
316
|
+
|
317
|
+
# Updates a namespace.
|
318
|
+
# @param [String] name
|
319
|
+
# Immutable. The resource name for the namespace in the format 'projects/*/
|
320
|
+
# locations/*/namespaces/*'.
|
321
|
+
# @param [Google::Apis::ServicedirectoryV1::Namespace] namespace_object
|
322
|
+
# @param [String] update_mask
|
323
|
+
# Required. List of fields to be updated in this request.
|
324
|
+
# @param [String] fields
|
325
|
+
# Selector specifying which fields to include in a partial response.
|
326
|
+
# @param [String] quota_user
|
327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
329
|
+
# @param [Google::Apis::RequestOptions] options
|
330
|
+
# Request-specific options
|
331
|
+
#
|
332
|
+
# @yield [result, err] Result & error if block supplied
|
333
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Namespace] parsed result object
|
334
|
+
# @yieldparam err [StandardError] error object if request failed
|
335
|
+
#
|
336
|
+
# @return [Google::Apis::ServicedirectoryV1::Namespace]
|
337
|
+
#
|
338
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
339
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
340
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
341
|
+
def patch_project_location_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
342
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
343
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
|
344
|
+
command.request_object = namespace_object
|
345
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Namespace::Representation
|
346
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Namespace
|
347
|
+
command.params['name'] = name unless name.nil?
|
348
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
349
|
+
command.query['fields'] = fields unless fields.nil?
|
350
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
351
|
+
execute_or_queue_command(command, &block)
|
352
|
+
end
|
353
|
+
|
354
|
+
# Sets the IAM Policy for a resource (namespace or service only).
|
355
|
+
# @param [String] resource
|
356
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
357
|
+
# operation documentation for the appropriate value for this field.
|
358
|
+
# @param [Google::Apis::ServicedirectoryV1::SetIamPolicyRequest] set_iam_policy_request_object
|
359
|
+
# @param [String] fields
|
360
|
+
# Selector specifying which fields to include in a partial response.
|
361
|
+
# @param [String] quota_user
|
362
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
363
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
364
|
+
# @param [Google::Apis::RequestOptions] options
|
365
|
+
# Request-specific options
|
366
|
+
#
|
367
|
+
# @yield [result, err] Result & error if block supplied
|
368
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
|
369
|
+
# @yieldparam err [StandardError] error object if request failed
|
370
|
+
#
|
371
|
+
# @return [Google::Apis::ServicedirectoryV1::Policy]
|
372
|
+
#
|
373
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
374
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
375
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
376
|
+
def set_namespace_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
377
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
378
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::SetIamPolicyRequest::Representation
|
379
|
+
command.request_object = set_iam_policy_request_object
|
380
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
|
381
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Policy
|
382
|
+
command.params['resource'] = resource unless resource.nil?
|
383
|
+
command.query['fields'] = fields unless fields.nil?
|
384
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
385
|
+
execute_or_queue_command(command, &block)
|
386
|
+
end
|
387
|
+
|
388
|
+
# Tests IAM permissions for a resource (namespace or service only).
|
389
|
+
# @param [String] resource
|
390
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
391
|
+
# operation documentation for the appropriate value for this field.
|
392
|
+
# @param [Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
393
|
+
# @param [String] fields
|
394
|
+
# Selector specifying which fields to include in a partial response.
|
395
|
+
# @param [String] quota_user
|
396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
398
|
+
# @param [Google::Apis::RequestOptions] options
|
399
|
+
# Request-specific options
|
400
|
+
#
|
401
|
+
# @yield [result, err] Result & error if block supplied
|
402
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse] parsed result object
|
403
|
+
# @yieldparam err [StandardError] error object if request failed
|
404
|
+
#
|
405
|
+
# @return [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse]
|
406
|
+
#
|
407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
410
|
+
def test_namespace_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
411
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
412
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest::Representation
|
413
|
+
command.request_object = test_iam_permissions_request_object
|
414
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse::Representation
|
415
|
+
command.response_class = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse
|
416
|
+
command.params['resource'] = resource unless resource.nil?
|
417
|
+
command.query['fields'] = fields unless fields.nil?
|
418
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
419
|
+
execute_or_queue_command(command, &block)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Creates a service, and returns the new Service.
|
423
|
+
# @param [String] parent
|
424
|
+
# Required. The resource name of the namespace this service will belong to.
|
425
|
+
# @param [Google::Apis::ServicedirectoryV1::Service] service_object
|
426
|
+
# @param [String] service_id
|
427
|
+
# Required. The Resource ID must be 1-63 characters long, and comply with
|
428
|
+
# RFC1035. Specifically, the name must be 1-63 characters long and match the
|
429
|
+
# regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
|
430
|
+
# character must be a lowercase letter, and all following characters must be a
|
431
|
+
# dash, lowercase letter, or digit, except the last character, which cannot be a
|
432
|
+
# dash.
|
433
|
+
# @param [String] fields
|
434
|
+
# Selector specifying which fields to include in a partial response.
|
435
|
+
# @param [String] quota_user
|
436
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
437
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
438
|
+
# @param [Google::Apis::RequestOptions] options
|
439
|
+
# Request-specific options
|
440
|
+
#
|
441
|
+
# @yield [result, err] Result & error if block supplied
|
442
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Service] parsed result object
|
443
|
+
# @yieldparam err [StandardError] error object if request failed
|
444
|
+
#
|
445
|
+
# @return [Google::Apis::ServicedirectoryV1::Service]
|
446
|
+
#
|
447
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
448
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
449
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
450
|
+
def create_project_location_namespace_service(parent, service_object = nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
451
|
+
command = make_simple_command(:post, 'v1/{+parent}/services', options)
|
452
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::Service::Representation
|
453
|
+
command.request_object = service_object
|
454
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Service::Representation
|
455
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Service
|
456
|
+
command.params['parent'] = parent unless parent.nil?
|
457
|
+
command.query['serviceId'] = service_id unless service_id.nil?
|
458
|
+
command.query['fields'] = fields unless fields.nil?
|
459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
460
|
+
execute_or_queue_command(command, &block)
|
461
|
+
end
|
462
|
+
|
463
|
+
# Deletes a service. This also deletes all endpoints associated with the service.
|
464
|
+
# @param [String] name
|
465
|
+
# Required. The name of the service to delete.
|
466
|
+
# @param [String] fields
|
467
|
+
# Selector specifying which fields to include in a partial response.
|
468
|
+
# @param [String] quota_user
|
469
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
470
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
471
|
+
# @param [Google::Apis::RequestOptions] options
|
472
|
+
# Request-specific options
|
473
|
+
#
|
474
|
+
# @yield [result, err] Result & error if block supplied
|
475
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Empty] parsed result object
|
476
|
+
# @yieldparam err [StandardError] error object if request failed
|
477
|
+
#
|
478
|
+
# @return [Google::Apis::ServicedirectoryV1::Empty]
|
479
|
+
#
|
480
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
481
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
482
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
483
|
+
def delete_project_location_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
|
484
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
485
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Empty::Representation
|
486
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Empty
|
487
|
+
command.params['name'] = name unless name.nil?
|
488
|
+
command.query['fields'] = fields unless fields.nil?
|
489
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
490
|
+
execute_or_queue_command(command, &block)
|
491
|
+
end
|
492
|
+
|
493
|
+
# Gets a service.
|
494
|
+
# @param [String] name
|
495
|
+
# Required. The name of the service to get.
|
496
|
+
# @param [String] fields
|
497
|
+
# Selector specifying which fields to include in a partial response.
|
498
|
+
# @param [String] quota_user
|
499
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
500
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
501
|
+
# @param [Google::Apis::RequestOptions] options
|
502
|
+
# Request-specific options
|
503
|
+
#
|
504
|
+
# @yield [result, err] Result & error if block supplied
|
505
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Service] parsed result object
|
506
|
+
# @yieldparam err [StandardError] error object if request failed
|
507
|
+
#
|
508
|
+
# @return [Google::Apis::ServicedirectoryV1::Service]
|
509
|
+
#
|
510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
513
|
+
def get_project_location_namespace_service(name, fields: nil, quota_user: nil, options: nil, &block)
|
514
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
515
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Service::Representation
|
516
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Service
|
517
|
+
command.params['name'] = name unless name.nil?
|
518
|
+
command.query['fields'] = fields unless fields.nil?
|
519
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
520
|
+
execute_or_queue_command(command, &block)
|
521
|
+
end
|
522
|
+
|
523
|
+
# Gets the IAM Policy for a resource (namespace or service only).
|
524
|
+
# @param [String] resource
|
525
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
526
|
+
# operation documentation for the appropriate value for this field.
|
527
|
+
# @param [Google::Apis::ServicedirectoryV1::GetIamPolicyRequest] get_iam_policy_request_object
|
528
|
+
# @param [String] fields
|
529
|
+
# Selector specifying which fields to include in a partial response.
|
530
|
+
# @param [String] quota_user
|
531
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
532
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
533
|
+
# @param [Google::Apis::RequestOptions] options
|
534
|
+
# Request-specific options
|
535
|
+
#
|
536
|
+
# @yield [result, err] Result & error if block supplied
|
537
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
|
538
|
+
# @yieldparam err [StandardError] error object if request failed
|
539
|
+
#
|
540
|
+
# @return [Google::Apis::ServicedirectoryV1::Policy]
|
541
|
+
#
|
542
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
543
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
544
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
545
|
+
def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
546
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
547
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::GetIamPolicyRequest::Representation
|
548
|
+
command.request_object = get_iam_policy_request_object
|
549
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
|
550
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Policy
|
551
|
+
command.params['resource'] = resource unless resource.nil?
|
552
|
+
command.query['fields'] = fields unless fields.nil?
|
553
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
554
|
+
execute_or_queue_command(command, &block)
|
555
|
+
end
|
556
|
+
|
557
|
+
# Lists all services belonging to a namespace.
|
558
|
+
# @param [String] parent
|
559
|
+
# Required. The resource name of the namespace whose services we'd like to list.
|
560
|
+
# @param [String] filter
|
561
|
+
# Optional. The filter to list result by. General filter string syntax: () can
|
562
|
+
# be "name", or "metadata." for map field. can be "<, >, <=, >=, !=, =, :". Of
|
563
|
+
# which ":" means HAS, and is roughly the same as "=". must be the same data
|
564
|
+
# type as field. can be "AND, OR, NOT". Examples of valid filters: * "metadata.
|
565
|
+
# owner" returns Services that have a label with the key "owner" this is the
|
566
|
+
# same as "metadata:owner". * "metadata.protocol=gRPC" returns Services that
|
567
|
+
# have key/value "protocol=gRPC". * "name>projects/my-project/locations/us-east/
|
568
|
+
# namespaces/my-namespace/services/service-c" returns Services that have name
|
569
|
+
# that is alphabetically later than the string, so "service-e" will be returned
|
570
|
+
# but "service-a" will not be. * "metadata.owner!=sd AND metadata.foo=bar"
|
571
|
+
# returns Services that have "owner" in label key but value is not "sd" AND have
|
572
|
+
# key/value foo=bar. * "doesnotexist.foo=bar" returns an empty list. Note that
|
573
|
+
# Service doesn't have a field called "doesnotexist". Since the filter does not
|
574
|
+
# match any Services, it returns no results.
|
575
|
+
# @param [String] order_by
|
576
|
+
# Optional. The order to list result by.
|
577
|
+
# @param [Fixnum] page_size
|
578
|
+
# Optional. The maximum number of items to return.
|
579
|
+
# @param [String] page_token
|
580
|
+
# Optional. The next_page_token value returned from a previous List request, if
|
581
|
+
# any.
|
582
|
+
# @param [String] fields
|
583
|
+
# Selector specifying which fields to include in a partial response.
|
584
|
+
# @param [String] quota_user
|
585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
587
|
+
# @param [Google::Apis::RequestOptions] options
|
588
|
+
# Request-specific options
|
589
|
+
#
|
590
|
+
# @yield [result, err] Result & error if block supplied
|
591
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::ListServicesResponse] parsed result object
|
592
|
+
# @yieldparam err [StandardError] error object if request failed
|
593
|
+
#
|
594
|
+
# @return [Google::Apis::ServicedirectoryV1::ListServicesResponse]
|
595
|
+
#
|
596
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
597
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
598
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
599
|
+
def list_project_location_namespace_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
600
|
+
command = make_simple_command(:get, 'v1/{+parent}/services', options)
|
601
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::ListServicesResponse::Representation
|
602
|
+
command.response_class = Google::Apis::ServicedirectoryV1::ListServicesResponse
|
603
|
+
command.params['parent'] = parent unless parent.nil?
|
604
|
+
command.query['filter'] = filter unless filter.nil?
|
605
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
606
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
607
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
608
|
+
command.query['fields'] = fields unless fields.nil?
|
609
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
610
|
+
execute_or_queue_command(command, &block)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Updates a service.
|
614
|
+
# @param [String] name
|
615
|
+
# Immutable. The resource name for the service in the format 'projects/*/
|
616
|
+
# locations/*/namespaces/*/services/*'.
|
617
|
+
# @param [Google::Apis::ServicedirectoryV1::Service] service_object
|
618
|
+
# @param [String] update_mask
|
619
|
+
# Required. List of fields to be updated in this request.
|
620
|
+
# @param [String] fields
|
621
|
+
# Selector specifying which fields to include in a partial response.
|
622
|
+
# @param [String] quota_user
|
623
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
624
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
625
|
+
# @param [Google::Apis::RequestOptions] options
|
626
|
+
# Request-specific options
|
627
|
+
#
|
628
|
+
# @yield [result, err] Result & error if block supplied
|
629
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Service] parsed result object
|
630
|
+
# @yieldparam err [StandardError] error object if request failed
|
631
|
+
#
|
632
|
+
# @return [Google::Apis::ServicedirectoryV1::Service]
|
633
|
+
#
|
634
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
635
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
636
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
637
|
+
def patch_project_location_namespace_service(name, service_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
638
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
639
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::Service::Representation
|
640
|
+
command.request_object = service_object
|
641
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Service::Representation
|
642
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Service
|
643
|
+
command.params['name'] = name unless name.nil?
|
644
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
645
|
+
command.query['fields'] = fields unless fields.nil?
|
646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
647
|
+
execute_or_queue_command(command, &block)
|
648
|
+
end
|
649
|
+
|
650
|
+
# Returns a service and its associated endpoints. Resolving a service is not
|
651
|
+
# considered an active developer method.
|
652
|
+
# @param [String] name
|
653
|
+
# Required. The name of the service to resolve.
|
654
|
+
# @param [Google::Apis::ServicedirectoryV1::ResolveServiceRequest] resolve_service_request_object
|
655
|
+
# @param [String] fields
|
656
|
+
# Selector specifying which fields to include in a partial response.
|
657
|
+
# @param [String] quota_user
|
658
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
659
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
660
|
+
# @param [Google::Apis::RequestOptions] options
|
661
|
+
# Request-specific options
|
662
|
+
#
|
663
|
+
# @yield [result, err] Result & error if block supplied
|
664
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::ResolveServiceResponse] parsed result object
|
665
|
+
# @yieldparam err [StandardError] error object if request failed
|
666
|
+
#
|
667
|
+
# @return [Google::Apis::ServicedirectoryV1::ResolveServiceResponse]
|
668
|
+
#
|
669
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
670
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
671
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
672
|
+
def resolve_service(name, resolve_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
673
|
+
command = make_simple_command(:post, 'v1/{+name}:resolve', options)
|
674
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::ResolveServiceRequest::Representation
|
675
|
+
command.request_object = resolve_service_request_object
|
676
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::ResolveServiceResponse::Representation
|
677
|
+
command.response_class = Google::Apis::ServicedirectoryV1::ResolveServiceResponse
|
678
|
+
command.params['name'] = name unless name.nil?
|
679
|
+
command.query['fields'] = fields unless fields.nil?
|
680
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
681
|
+
execute_or_queue_command(command, &block)
|
682
|
+
end
|
683
|
+
|
684
|
+
# Sets the IAM Policy for a resource (namespace or service only).
|
685
|
+
# @param [String] resource
|
686
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
687
|
+
# operation documentation for the appropriate value for this field.
|
688
|
+
# @param [Google::Apis::ServicedirectoryV1::SetIamPolicyRequest] set_iam_policy_request_object
|
689
|
+
# @param [String] fields
|
690
|
+
# Selector specifying which fields to include in a partial response.
|
691
|
+
# @param [String] quota_user
|
692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
694
|
+
# @param [Google::Apis::RequestOptions] options
|
695
|
+
# Request-specific options
|
696
|
+
#
|
697
|
+
# @yield [result, err] Result & error if block supplied
|
698
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Policy] parsed result object
|
699
|
+
# @yieldparam err [StandardError] error object if request failed
|
700
|
+
#
|
701
|
+
# @return [Google::Apis::ServicedirectoryV1::Policy]
|
702
|
+
#
|
703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
706
|
+
def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
707
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
708
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::SetIamPolicyRequest::Representation
|
709
|
+
command.request_object = set_iam_policy_request_object
|
710
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Policy::Representation
|
711
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Policy
|
712
|
+
command.params['resource'] = resource unless resource.nil?
|
713
|
+
command.query['fields'] = fields unless fields.nil?
|
714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
715
|
+
execute_or_queue_command(command, &block)
|
716
|
+
end
|
717
|
+
|
718
|
+
# Tests IAM permissions for a resource (namespace or service only).
|
719
|
+
# @param [String] resource
|
720
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
721
|
+
# operation documentation for the appropriate value for this field.
|
722
|
+
# @param [Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
723
|
+
# @param [String] fields
|
724
|
+
# Selector specifying which fields to include in a partial response.
|
725
|
+
# @param [String] quota_user
|
726
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
727
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
728
|
+
# @param [Google::Apis::RequestOptions] options
|
729
|
+
# Request-specific options
|
730
|
+
#
|
731
|
+
# @yield [result, err] Result & error if block supplied
|
732
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse] parsed result object
|
733
|
+
# @yieldparam err [StandardError] error object if request failed
|
734
|
+
#
|
735
|
+
# @return [Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse]
|
736
|
+
#
|
737
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
738
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
739
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
740
|
+
def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
741
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
742
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsRequest::Representation
|
743
|
+
command.request_object = test_iam_permissions_request_object
|
744
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse::Representation
|
745
|
+
command.response_class = Google::Apis::ServicedirectoryV1::TestIamPermissionsResponse
|
746
|
+
command.params['resource'] = resource unless resource.nil?
|
747
|
+
command.query['fields'] = fields unless fields.nil?
|
748
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
749
|
+
execute_or_queue_command(command, &block)
|
750
|
+
end
|
751
|
+
|
752
|
+
# Creates a endpoint, and returns the new Endpoint.
|
753
|
+
# @param [String] parent
|
754
|
+
# Required. The resource name of the service that this endpoint provides.
|
755
|
+
# @param [Google::Apis::ServicedirectoryV1::Endpoint] endpoint_object
|
756
|
+
# @param [String] endpoint_id
|
757
|
+
# Required. The Resource ID must be 1-63 characters long, and comply with
|
758
|
+
# RFC1035. Specifically, the name must be 1-63 characters long and match the
|
759
|
+
# regular expression `[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?` which means the first
|
760
|
+
# character must be a lowercase letter, and all following characters must be a
|
761
|
+
# dash, lowercase letter, or digit, except the last character, which cannot be a
|
762
|
+
# dash.
|
763
|
+
# @param [String] fields
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
765
|
+
# @param [String] quota_user
|
766
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
767
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
768
|
+
# @param [Google::Apis::RequestOptions] options
|
769
|
+
# Request-specific options
|
770
|
+
#
|
771
|
+
# @yield [result, err] Result & error if block supplied
|
772
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Endpoint] parsed result object
|
773
|
+
# @yieldparam err [StandardError] error object if request failed
|
774
|
+
#
|
775
|
+
# @return [Google::Apis::ServicedirectoryV1::Endpoint]
|
776
|
+
#
|
777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
780
|
+
def create_project_location_namespace_service_endpoint(parent, endpoint_object = nil, endpoint_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
781
|
+
command = make_simple_command(:post, 'v1/{+parent}/endpoints', options)
|
782
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
|
783
|
+
command.request_object = endpoint_object
|
784
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
|
785
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Endpoint
|
786
|
+
command.params['parent'] = parent unless parent.nil?
|
787
|
+
command.query['endpointId'] = endpoint_id unless endpoint_id.nil?
|
788
|
+
command.query['fields'] = fields unless fields.nil?
|
789
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
790
|
+
execute_or_queue_command(command, &block)
|
791
|
+
end
|
792
|
+
|
793
|
+
# Deletes a endpoint.
|
794
|
+
# @param [String] name
|
795
|
+
# Required. The name of the endpoint to delete.
|
796
|
+
# @param [String] fields
|
797
|
+
# Selector specifying which fields to include in a partial response.
|
798
|
+
# @param [String] quota_user
|
799
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
800
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
801
|
+
# @param [Google::Apis::RequestOptions] options
|
802
|
+
# Request-specific options
|
803
|
+
#
|
804
|
+
# @yield [result, err] Result & error if block supplied
|
805
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Empty] parsed result object
|
806
|
+
# @yieldparam err [StandardError] error object if request failed
|
807
|
+
#
|
808
|
+
# @return [Google::Apis::ServicedirectoryV1::Empty]
|
809
|
+
#
|
810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
813
|
+
def delete_project_location_namespace_service_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
|
814
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
815
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Empty::Representation
|
816
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Empty
|
817
|
+
command.params['name'] = name unless name.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
execute_or_queue_command(command, &block)
|
821
|
+
end
|
822
|
+
|
823
|
+
# Gets a endpoint.
|
824
|
+
# @param [String] name
|
825
|
+
# Required. The name of the endpoint to get.
|
826
|
+
# @param [String] fields
|
827
|
+
# Selector specifying which fields to include in a partial response.
|
828
|
+
# @param [String] quota_user
|
829
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
830
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
831
|
+
# @param [Google::Apis::RequestOptions] options
|
832
|
+
# Request-specific options
|
833
|
+
#
|
834
|
+
# @yield [result, err] Result & error if block supplied
|
835
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Endpoint] parsed result object
|
836
|
+
# @yieldparam err [StandardError] error object if request failed
|
837
|
+
#
|
838
|
+
# @return [Google::Apis::ServicedirectoryV1::Endpoint]
|
839
|
+
#
|
840
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
841
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
842
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
843
|
+
def get_project_location_namespace_service_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
|
844
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
845
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
|
846
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Endpoint
|
847
|
+
command.params['name'] = name unless name.nil?
|
848
|
+
command.query['fields'] = fields unless fields.nil?
|
849
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
850
|
+
execute_or_queue_command(command, &block)
|
851
|
+
end
|
852
|
+
|
853
|
+
# Lists all endpoints.
|
854
|
+
# @param [String] parent
|
855
|
+
# Required. The resource name of the service whose endpoints we'd like to list.
|
856
|
+
# @param [String] filter
|
857
|
+
# Optional. The filter to list result by. General filter string syntax: () can
|
858
|
+
# be "name", "address", "port" or "metadata." for map field. can be "<, >, <=, >=
|
859
|
+
# , !=, =, :". Of which ":" means HAS, and is roughly the same as "=". must be
|
860
|
+
# the same data type as field. can be "AND, OR, NOT". Examples of valid filters:
|
861
|
+
# * "metadata.owner" returns Endpoints that have a label with the key "owner"
|
862
|
+
# this is the same as "metadata:owner". * "metadata.protocol=gRPC" returns
|
863
|
+
# Endpoints that have key/value "protocol=gRPC". * "address=192.108.1.105"
|
864
|
+
# returns Endpoints that have this address. * "port>8080" returns Endpoints that
|
865
|
+
# have port number larger than 8080. * "name>projects/my-project/locations/us-
|
866
|
+
# east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c" returns
|
867
|
+
# Endpoints that have name that is alphabetically later than the string, so "
|
868
|
+
# endpoint-e" will be returned but "endpoint-a" will not be. * "metadata.owner!=
|
869
|
+
# sd AND metadata.foo=bar" returns Endpoints that have "owner" in label key but
|
870
|
+
# value is not "sd" AND have key/value foo=bar. * "doesnotexist.foo=bar" returns
|
871
|
+
# an empty list. Note that Endpoint doesn't have a field called "doesnotexist".
|
872
|
+
# Since the filter does not match any Endpoints, it returns no results.
|
873
|
+
# @param [String] order_by
|
874
|
+
# Optional. The order to list result by.
|
875
|
+
# @param [Fixnum] page_size
|
876
|
+
# Optional. The maximum number of items to return.
|
877
|
+
# @param [String] page_token
|
878
|
+
# Optional. The next_page_token value returned from a previous List request, if
|
879
|
+
# any.
|
880
|
+
# @param [String] fields
|
881
|
+
# Selector specifying which fields to include in a partial response.
|
882
|
+
# @param [String] quota_user
|
883
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
884
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
885
|
+
# @param [Google::Apis::RequestOptions] options
|
886
|
+
# Request-specific options
|
887
|
+
#
|
888
|
+
# @yield [result, err] Result & error if block supplied
|
889
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::ListEndpointsResponse] parsed result object
|
890
|
+
# @yieldparam err [StandardError] error object if request failed
|
891
|
+
#
|
892
|
+
# @return [Google::Apis::ServicedirectoryV1::ListEndpointsResponse]
|
893
|
+
#
|
894
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
895
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
896
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
897
|
+
def list_project_location_namespace_service_endpoints(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
898
|
+
command = make_simple_command(:get, 'v1/{+parent}/endpoints', options)
|
899
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::ListEndpointsResponse::Representation
|
900
|
+
command.response_class = Google::Apis::ServicedirectoryV1::ListEndpointsResponse
|
901
|
+
command.params['parent'] = parent unless parent.nil?
|
902
|
+
command.query['filter'] = filter unless filter.nil?
|
903
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
904
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
905
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
906
|
+
command.query['fields'] = fields unless fields.nil?
|
907
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
908
|
+
execute_or_queue_command(command, &block)
|
909
|
+
end
|
910
|
+
|
911
|
+
# Updates a endpoint.
|
912
|
+
# @param [String] name
|
913
|
+
# Immutable. The resource name for the endpoint in the format 'projects/*/
|
914
|
+
# locations/*/namespaces/*/services/*/endpoints/*'.
|
915
|
+
# @param [Google::Apis::ServicedirectoryV1::Endpoint] endpoint_object
|
916
|
+
# @param [String] update_mask
|
917
|
+
# Required. List of fields to be updated in this request.
|
918
|
+
# @param [String] fields
|
919
|
+
# Selector specifying which fields to include in a partial response.
|
920
|
+
# @param [String] quota_user
|
921
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
922
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
923
|
+
# @param [Google::Apis::RequestOptions] options
|
924
|
+
# Request-specific options
|
925
|
+
#
|
926
|
+
# @yield [result, err] Result & error if block supplied
|
927
|
+
# @yieldparam result [Google::Apis::ServicedirectoryV1::Endpoint] parsed result object
|
928
|
+
# @yieldparam err [StandardError] error object if request failed
|
929
|
+
#
|
930
|
+
# @return [Google::Apis::ServicedirectoryV1::Endpoint]
|
931
|
+
#
|
932
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
933
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
934
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
935
|
+
def patch_project_location_namespace_service_endpoint(name, endpoint_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
936
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
937
|
+
command.request_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
|
938
|
+
command.request_object = endpoint_object
|
939
|
+
command.response_representation = Google::Apis::ServicedirectoryV1::Endpoint::Representation
|
940
|
+
command.response_class = Google::Apis::ServicedirectoryV1::Endpoint
|
941
|
+
command.params['name'] = name unless name.nil?
|
942
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
943
|
+
command.query['fields'] = fields unless fields.nil?
|
944
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
945
|
+
execute_or_queue_command(command, &block)
|
946
|
+
end
|
947
|
+
|
948
|
+
protected
|
949
|
+
|
950
|
+
def apply_command_defaults(command)
|
951
|
+
command.query['key'] = key unless key.nil?
|
952
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
953
|
+
end
|
954
|
+
end
|
955
|
+
end
|
956
|
+
end
|
957
|
+
end
|