google-api-client 0.27.0 → 0.27.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -2
  5. data/generated/google/apis/admin_reports_v1.rb +1 -1
  6. data/generated/google/apis/admin_reports_v1/service.rb +15 -3
  7. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  8. data/generated/google/apis/alertcenter_v1beta1/classes.rb +74 -1
  9. data/generated/google/apis/alertcenter_v1beta1/representations.rb +42 -0
  10. data/generated/google/apis/alertcenter_v1beta1/service.rb +67 -0
  11. data/generated/google/apis/appengine_v1.rb +1 -1
  12. data/generated/google/apis/appengine_v1/classes.rb +6 -0
  13. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  14. data/generated/google/apis/appengine_v1beta.rb +1 -1
  15. data/generated/google/apis/appengine_v1beta/classes.rb +6 -0
  16. data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
  17. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  18. data/generated/google/apis/appengine_v1beta4/classes.rb +6 -0
  19. data/generated/google/apis/appengine_v1beta4/representations.rb +1 -0
  20. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  21. data/generated/google/apis/appengine_v1beta5/classes.rb +6 -0
  22. data/generated/google/apis/appengine_v1beta5/representations.rb +1 -0
  23. data/generated/google/apis/bigquery_v2.rb +1 -1
  24. data/generated/google/apis/bigquery_v2/classes.rb +44 -6
  25. data/generated/google/apis/bigquery_v2/representations.rb +17 -0
  26. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  27. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  28. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -2
  29. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  30. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +5 -2
  31. data/generated/google/apis/cloudidentity_v1.rb +31 -0
  32. data/generated/google/apis/cloudidentity_v1/classes.rb +495 -0
  33. data/generated/google/apis/cloudidentity_v1/representations.rb +197 -0
  34. data/generated/google/apis/cloudidentity_v1/service.rb +517 -0
  35. data/generated/google/apis/cloudidentity_v1beta1.rb +31 -0
  36. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +475 -0
  37. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +184 -0
  38. data/generated/google/apis/cloudidentity_v1beta1/service.rb +477 -0
  39. data/generated/google/apis/composer_v1beta1.rb +1 -1
  40. data/generated/google/apis/composer_v1beta1/classes.rb +2 -2
  41. data/generated/google/apis/composer_v1beta1/service.rb +10 -0
  42. data/generated/google/apis/datastore_v1.rb +1 -1
  43. data/generated/google/apis/datastore_v1/classes.rb +1 -2
  44. data/generated/google/apis/dialogflow_v2.rb +1 -1
  45. data/generated/google/apis/dialogflow_v2/classes.rb +7 -103
  46. data/generated/google/apis/dialogflow_v2/representations.rb +0 -30
  47. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  48. data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -103
  49. data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -30
  50. data/generated/google/apis/dialogflow_v2beta1/service.rb +0 -228
  51. data/generated/google/apis/dlp_v2.rb +1 -1
  52. data/generated/google/apis/dlp_v2/classes.rb +7 -0
  53. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  54. data/generated/google/apis/drive_v3.rb +1 -1
  55. data/generated/google/apis/drive_v3/classes.rb +12 -0
  56. data/generated/google/apis/drive_v3/representations.rb +2 -0
  57. data/generated/google/apis/logging_v2.rb +1 -1
  58. data/generated/google/apis/logging_v2/service.rb +3 -2
  59. data/generated/google/apis/logging_v2beta1.rb +1 -1
  60. data/generated/google/apis/logging_v2beta1/service.rb +3 -2
  61. data/generated/google/apis/monitoring_v1.rb +33 -0
  62. data/generated/google/apis/monitoring_v1/classes.rb +474 -0
  63. data/generated/google/apis/monitoring_v1/representations.rb +195 -0
  64. data/generated/google/apis/monitoring_v1/service.rb +211 -0
  65. data/generated/google/apis/pubsub_v1.rb +1 -1
  66. data/generated/google/apis/pubsub_v1/classes.rb +3 -2
  67. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  68. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -8
  69. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  70. data/generated/google/apis/servicecontrol_v1/classes.rb +10 -0
  71. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  72. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  73. data/generated/google/apis/servicenetworking_v1beta/classes.rb +22 -9
  74. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  75. data/generated/google/apis/servicenetworking_v1beta/service.rb +1 -1
  76. data/generated/google/apis/serviceusage_v1.rb +1 -1
  77. data/generated/google/apis/serviceusage_v1/classes.rb +12 -8
  78. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  79. data/generated/google/apis/serviceusage_v1beta1/classes.rb +12 -8
  80. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  81. data/lib/google/apis/version.rb +1 -1
  82. metadata +14 -2
@@ -0,0 +1,197 @@
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 CloudidentityV1
24
+
25
+ class EntityKey
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Group
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ListGroupsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ListMembershipsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class LookupGroupNameResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class LookupMembershipNameResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Membership
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class MembershipRole
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Operation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class SearchGroupsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Status
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class EntityKey
92
+ # @private
93
+ class Representation < Google::Apis::Core::JsonRepresentation
94
+ property :id, as: 'id'
95
+ property :namespace, as: 'namespace'
96
+ end
97
+ end
98
+
99
+ class Group
100
+ # @private
101
+ class Representation < Google::Apis::Core::JsonRepresentation
102
+ property :create_time, as: 'createTime'
103
+ property :description, as: 'description'
104
+ property :display_name, as: 'displayName'
105
+ property :group_key, as: 'groupKey', class: Google::Apis::CloudidentityV1::EntityKey, decorator: Google::Apis::CloudidentityV1::EntityKey::Representation
106
+
107
+ hash :labels, as: 'labels'
108
+ property :name, as: 'name'
109
+ property :parent, as: 'parent'
110
+ property :update_time, as: 'updateTime'
111
+ end
112
+ end
113
+
114
+ class ListGroupsResponse
115
+ # @private
116
+ class Representation < Google::Apis::Core::JsonRepresentation
117
+ collection :groups, as: 'groups', class: Google::Apis::CloudidentityV1::Group, decorator: Google::Apis::CloudidentityV1::Group::Representation
118
+
119
+ property :next_page_token, as: 'nextPageToken'
120
+ end
121
+ end
122
+
123
+ class ListMembershipsResponse
124
+ # @private
125
+ class Representation < Google::Apis::Core::JsonRepresentation
126
+ collection :memberships, as: 'memberships', class: Google::Apis::CloudidentityV1::Membership, decorator: Google::Apis::CloudidentityV1::Membership::Representation
127
+
128
+ property :next_page_token, as: 'nextPageToken'
129
+ end
130
+ end
131
+
132
+ class LookupGroupNameResponse
133
+ # @private
134
+ class Representation < Google::Apis::Core::JsonRepresentation
135
+ property :name, as: 'name'
136
+ end
137
+ end
138
+
139
+ class LookupMembershipNameResponse
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :name, as: 'name'
143
+ end
144
+ end
145
+
146
+ class Membership
147
+ # @private
148
+ class Representation < Google::Apis::Core::JsonRepresentation
149
+ property :create_time, as: 'createTime'
150
+ property :name, as: 'name'
151
+ property :preferred_member_key, as: 'preferredMemberKey', class: Google::Apis::CloudidentityV1::EntityKey, decorator: Google::Apis::CloudidentityV1::EntityKey::Representation
152
+
153
+ collection :roles, as: 'roles', class: Google::Apis::CloudidentityV1::MembershipRole, decorator: Google::Apis::CloudidentityV1::MembershipRole::Representation
154
+
155
+ property :update_time, as: 'updateTime'
156
+ end
157
+ end
158
+
159
+ class MembershipRole
160
+ # @private
161
+ class Representation < Google::Apis::Core::JsonRepresentation
162
+ property :name, as: 'name'
163
+ end
164
+ end
165
+
166
+ class Operation
167
+ # @private
168
+ class Representation < Google::Apis::Core::JsonRepresentation
169
+ property :done, as: 'done'
170
+ property :error, as: 'error', class: Google::Apis::CloudidentityV1::Status, decorator: Google::Apis::CloudidentityV1::Status::Representation
171
+
172
+ hash :metadata, as: 'metadata'
173
+ property :name, as: 'name'
174
+ hash :response, as: 'response'
175
+ end
176
+ end
177
+
178
+ class SearchGroupsResponse
179
+ # @private
180
+ class Representation < Google::Apis::Core::JsonRepresentation
181
+ collection :groups, as: 'groups', class: Google::Apis::CloudidentityV1::Group, decorator: Google::Apis::CloudidentityV1::Group::Representation
182
+
183
+ property :next_page_token, as: 'nextPageToken'
184
+ end
185
+ end
186
+
187
+ class Status
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :code, as: 'code'
191
+ collection :details, as: 'details'
192
+ property :message, as: 'message'
193
+ end
194
+ end
195
+ end
196
+ end
197
+ end
@@ -0,0 +1,517 @@
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 CloudidentityV1
23
+ # Cloud Identity API
24
+ #
25
+ # API for provisioning and managing identity resources.
26
+ #
27
+ # @example
28
+ # require 'google/apis/cloudidentity_v1'
29
+ #
30
+ # Cloudidentity = Google::Apis::CloudidentityV1 # Alias the module
31
+ # service = Cloudidentity::CloudIdentityService.new
32
+ #
33
+ # @see https://cloud.google.com/identity/
34
+ class CloudIdentityService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://cloudidentity.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Creates a Group.
51
+ # @param [Google::Apis::CloudidentityV1::Group] group_object
52
+ # @param [String] fields
53
+ # Selector specifying which fields to include in a partial response.
54
+ # @param [String] quota_user
55
+ # Available to use for quota purposes for server-side applications. Can be any
56
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
57
+ # @param [Google::Apis::RequestOptions] options
58
+ # Request-specific options
59
+ #
60
+ # @yield [result, err] Result & error if block supplied
61
+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
62
+ # @yieldparam err [StandardError] error object if request failed
63
+ #
64
+ # @return [Google::Apis::CloudidentityV1::Operation]
65
+ #
66
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
67
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
68
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
69
+ def create_group(group_object = nil, fields: nil, quota_user: nil, options: nil, &block)
70
+ command = make_simple_command(:post, 'v1/groups', options)
71
+ command.request_representation = Google::Apis::CloudidentityV1::Group::Representation
72
+ command.request_object = group_object
73
+ command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
74
+ command.response_class = Google::Apis::CloudidentityV1::Operation
75
+ command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
80
+ # Deletes a Group.
81
+ # @param [String] name
82
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
83
+ # Group in the format: `groups/`group_id``, where `group_id` is the unique ID
84
+ # assigned to the Group.
85
+ # @param [String] fields
86
+ # Selector specifying which fields to include in a partial response.
87
+ # @param [String] quota_user
88
+ # Available to use for quota purposes for server-side applications. Can be any
89
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ # @param [Google::Apis::RequestOptions] options
91
+ # Request-specific options
92
+ #
93
+ # @yield [result, err] Result & error if block supplied
94
+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
95
+ # @yieldparam err [StandardError] error object if request failed
96
+ #
97
+ # @return [Google::Apis::CloudidentityV1::Operation]
98
+ #
99
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
100
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
101
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
102
+ def delete_group(name, fields: nil, quota_user: nil, options: nil, &block)
103
+ command = make_simple_command(:delete, 'v1/{+name}', options)
104
+ command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
105
+ command.response_class = Google::Apis::CloudidentityV1::Operation
106
+ command.params['name'] = name unless name.nil?
107
+ command.query['fields'] = fields unless fields.nil?
108
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
109
+ execute_or_queue_command(command, &block)
110
+ end
111
+
112
+ # Retrieves a Group.
113
+ # @param [String] name
114
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
115
+ # Group in the format: `groups/`group_id``, where `group_id` is the unique ID
116
+ # assigned to the Group.
117
+ # @param [String] fields
118
+ # Selector specifying which fields to include in a partial response.
119
+ # @param [String] quota_user
120
+ # Available to use for quota purposes for server-side applications. Can be any
121
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
122
+ # @param [Google::Apis::RequestOptions] options
123
+ # Request-specific options
124
+ #
125
+ # @yield [result, err] Result & error if block supplied
126
+ # @yieldparam result [Google::Apis::CloudidentityV1::Group] parsed result object
127
+ # @yieldparam err [StandardError] error object if request failed
128
+ #
129
+ # @return [Google::Apis::CloudidentityV1::Group]
130
+ #
131
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
132
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
133
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
134
+ def get_group(name, fields: nil, quota_user: nil, options: nil, &block)
135
+ command = make_simple_command(:get, 'v1/{+name}', options)
136
+ command.response_representation = Google::Apis::CloudidentityV1::Group::Representation
137
+ command.response_class = Google::Apis::CloudidentityV1::Group
138
+ command.params['name'] = name unless name.nil?
139
+ command.query['fields'] = fields unless fields.nil?
140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
141
+ execute_or_queue_command(command, &block)
142
+ end
143
+
144
+ # List groups within a customer or a domain.
145
+ # @param [Fixnum] page_size
146
+ # Maximum number of Groups to return.
147
+ # View | Default | Maximum
148
+ # -----|---------|--------
149
+ # BASIC | 200 | 1000
150
+ # FULL | 50 | 500
151
+ # @param [String] page_token
152
+ # The next_page_token value returned from a previous list request, if any.
153
+ # @param [String] parent
154
+ # `Required`. May be made Optional in the future.
155
+ # Customer ID to list all groups from.
156
+ # @param [String] view
157
+ # Group resource view to be returned. Defaults to [View.BASIC]().
158
+ # @param [String] fields
159
+ # Selector specifying which fields to include in a partial response.
160
+ # @param [String] quota_user
161
+ # Available to use for quota purposes for server-side applications. Can be any
162
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [Google::Apis::RequestOptions] options
164
+ # Request-specific options
165
+ #
166
+ # @yield [result, err] Result & error if block supplied
167
+ # @yieldparam result [Google::Apis::CloudidentityV1::ListGroupsResponse] parsed result object
168
+ # @yieldparam err [StandardError] error object if request failed
169
+ #
170
+ # @return [Google::Apis::CloudidentityV1::ListGroupsResponse]
171
+ #
172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
174
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
175
+ def list_groups(page_size: nil, page_token: nil, parent: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
176
+ command = make_simple_command(:get, 'v1/groups', options)
177
+ command.response_representation = Google::Apis::CloudidentityV1::ListGroupsResponse::Representation
178
+ command.response_class = Google::Apis::CloudidentityV1::ListGroupsResponse
179
+ command.query['pageSize'] = page_size unless page_size.nil?
180
+ command.query['pageToken'] = page_token unless page_token.nil?
181
+ command.query['parent'] = parent unless parent.nil?
182
+ command.query['view'] = view unless view.nil?
183
+ command.query['fields'] = fields unless fields.nil?
184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
185
+ execute_or_queue_command(command, &block)
186
+ end
187
+
188
+ # Looks up [resource
189
+ # name](https://cloud.google.com/apis/design/resource_names) of a Group by
190
+ # its EntityKey.
191
+ # @param [String] group_key_id
192
+ # The ID of the entity within the given namespace. The ID must be unique
193
+ # within its namespace.
194
+ # @param [String] group_key_namespace
195
+ # Namespaces provide isolation for IDs, so an ID only needs to be unique
196
+ # within its namespace.
197
+ # Namespaces are currently only created as part of IdentitySource creation
198
+ # from Admin Console. A namespace `"identitysources/`identity_source_id`"` is
199
+ # created corresponding to every Identity Source `identity_source_id`.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::CloudidentityV1::LookupGroupNameResponse] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::CloudidentityV1::LookupGroupNameResponse]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def lookup_group(group_key_id: nil, group_key_namespace: nil, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:get, 'v1/groups:lookup', options)
219
+ command.response_representation = Google::Apis::CloudidentityV1::LookupGroupNameResponse::Representation
220
+ command.response_class = Google::Apis::CloudidentityV1::LookupGroupNameResponse
221
+ command.query['groupKey.id'] = group_key_id unless group_key_id.nil?
222
+ command.query['groupKey.namespace'] = group_key_namespace unless group_key_namespace.nil?
223
+ command.query['fields'] = fields unless fields.nil?
224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
225
+ execute_or_queue_command(command, &block)
226
+ end
227
+
228
+ # Updates a Group.
229
+ # @param [String] name
230
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
231
+ # Group in the format: `groups/`group_id``, where group_id is the unique ID
232
+ # assigned to the Group.
233
+ # Must be left blank while creating a Group.
234
+ # @param [Google::Apis::CloudidentityV1::Group] group_object
235
+ # @param [String] update_mask
236
+ # Editable fields: `display_name`, `description`
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::CloudidentityV1::Operation]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def patch_group(name, group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
255
+ command = make_simple_command(:patch, 'v1/{+name}', options)
256
+ command.request_representation = Google::Apis::CloudidentityV1::Group::Representation
257
+ command.request_object = group_object
258
+ command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
259
+ command.response_class = Google::Apis::CloudidentityV1::Operation
260
+ command.params['name'] = name unless name.nil?
261
+ command.query['updateMask'] = update_mask unless update_mask.nil?
262
+ command.query['fields'] = fields unless fields.nil?
263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
264
+ execute_or_queue_command(command, &block)
265
+ end
266
+
267
+ # Searches for Groups.
268
+ # @param [Fixnum] page_size
269
+ # Maximum number of Groups to return.
270
+ # View | Default | Maximum
271
+ # -----|---------|--------
272
+ # BASIC | 200 | 1000
273
+ # FULL | 50 | 500
274
+ # @param [String] page_token
275
+ # The next_page_token value returned from a previous search request, if any.
276
+ # @param [String] query
277
+ # `Required`. Query string for performing search on groups. Users can search
278
+ # on parent and label attributes of groups.
279
+ # EXACT match ('==') is supported on parent, and CONTAINS match ('in') is
280
+ # supported on labels.
281
+ # @param [String] view
282
+ # Group resource view to be returned. Defaults to [View.BASIC]().
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
+ # @param [String] quota_user
286
+ # Available to use for quota purposes for server-side applications. Can be any
287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
288
+ # @param [Google::Apis::RequestOptions] options
289
+ # Request-specific options
290
+ #
291
+ # @yield [result, err] Result & error if block supplied
292
+ # @yieldparam result [Google::Apis::CloudidentityV1::SearchGroupsResponse] parsed result object
293
+ # @yieldparam err [StandardError] error object if request failed
294
+ #
295
+ # @return [Google::Apis::CloudidentityV1::SearchGroupsResponse]
296
+ #
297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
300
+ def search_groups(page_size: nil, page_token: nil, query: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
301
+ command = make_simple_command(:get, 'v1/groups:search', options)
302
+ command.response_representation = Google::Apis::CloudidentityV1::SearchGroupsResponse::Representation
303
+ command.response_class = Google::Apis::CloudidentityV1::SearchGroupsResponse
304
+ command.query['pageSize'] = page_size unless page_size.nil?
305
+ command.query['pageToken'] = page_token unless page_token.nil?
306
+ command.query['query'] = query unless query.nil?
307
+ command.query['view'] = view unless view.nil?
308
+ command.query['fields'] = fields unless fields.nil?
309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Creates a Membership.
314
+ # @param [String] parent
315
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
316
+ # Group to create Membership within. Format: `groups/`group_id``, where
317
+ # `group_id` is the unique ID assigned to the Group.
318
+ # @param [Google::Apis::CloudidentityV1::Membership] membership_object
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::CloudidentityV1::Operation]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def create_group_membership(parent, membership_object = nil, fields: nil, quota_user: nil, options: nil, &block)
337
+ command = make_simple_command(:post, 'v1/{+parent}/memberships', options)
338
+ command.request_representation = Google::Apis::CloudidentityV1::Membership::Representation
339
+ command.request_object = membership_object
340
+ command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
341
+ command.response_class = Google::Apis::CloudidentityV1::Operation
342
+ command.params['parent'] = parent unless parent.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ execute_or_queue_command(command, &block)
346
+ end
347
+
348
+ # Deletes a Membership.
349
+ # @param [String] name
350
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
351
+ # Membership to be deleted.
352
+ # Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is
353
+ # the unique ID assigned to the Group to which Membership belongs to, and
354
+ # member_id is the unique ID assigned to the member.
355
+ # @param [String] fields
356
+ # Selector specifying which fields to include in a partial response.
357
+ # @param [String] quota_user
358
+ # Available to use for quota purposes for server-side applications. Can be any
359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
360
+ # @param [Google::Apis::RequestOptions] options
361
+ # Request-specific options
362
+ #
363
+ # @yield [result, err] Result & error if block supplied
364
+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
365
+ # @yieldparam err [StandardError] error object if request failed
366
+ #
367
+ # @return [Google::Apis::CloudidentityV1::Operation]
368
+ #
369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
372
+ def delete_group_membership(name, fields: nil, quota_user: nil, options: nil, &block)
373
+ command = make_simple_command(:delete, 'v1/{+name}', options)
374
+ command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
375
+ command.response_class = Google::Apis::CloudidentityV1::Operation
376
+ command.params['name'] = name unless name.nil?
377
+ command.query['fields'] = fields unless fields.nil?
378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
379
+ execute_or_queue_command(command, &block)
380
+ end
381
+
382
+ # Retrieves a Membership.
383
+ # @param [String] name
384
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
385
+ # Membership to be retrieved.
386
+ # Format: `groups/`group_id`/memberships/`member_id``, where `group_id` is
387
+ # the unique id assigned to the Group to which Membership belongs to, and
388
+ # `member_id` is the unique ID assigned to the member.
389
+ # @param [String] fields
390
+ # Selector specifying which fields to include in a partial response.
391
+ # @param [String] quota_user
392
+ # Available to use for quota purposes for server-side applications. Can be any
393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
394
+ # @param [Google::Apis::RequestOptions] options
395
+ # Request-specific options
396
+ #
397
+ # @yield [result, err] Result & error if block supplied
398
+ # @yieldparam result [Google::Apis::CloudidentityV1::Membership] parsed result object
399
+ # @yieldparam err [StandardError] error object if request failed
400
+ #
401
+ # @return [Google::Apis::CloudidentityV1::Membership]
402
+ #
403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
406
+ def get_group_membership(name, fields: nil, quota_user: nil, options: nil, &block)
407
+ command = make_simple_command(:get, 'v1/{+name}', options)
408
+ command.response_representation = Google::Apis::CloudidentityV1::Membership::Representation
409
+ command.response_class = Google::Apis::CloudidentityV1::Membership
410
+ command.params['name'] = name unless name.nil?
411
+ command.query['fields'] = fields unless fields.nil?
412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ execute_or_queue_command(command, &block)
414
+ end
415
+
416
+ # List Memberships within a Group.
417
+ # @param [String] parent
418
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
419
+ # Group to list Memberships within.
420
+ # Format: `groups/`group_id``, where `group_id` is the unique ID assigned to
421
+ # the Group.
422
+ # @param [Fixnum] page_size
423
+ # Maximum number of Memberships to return.
424
+ # View | Default | Maximum
425
+ # -----|---------|--------
426
+ # BASIC | 200 | 1000
427
+ # FULL | 50 | 500
428
+ # @param [String] page_token
429
+ # The next_page_token value returned from a previous list request, if any.
430
+ # @param [String] view
431
+ # Membership resource view to be returned. Defaults to View.BASIC.
432
+ # @param [String] fields
433
+ # Selector specifying which fields to include in a partial response.
434
+ # @param [String] quota_user
435
+ # Available to use for quota purposes for server-side applications. Can be any
436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
437
+ # @param [Google::Apis::RequestOptions] options
438
+ # Request-specific options
439
+ #
440
+ # @yield [result, err] Result & error if block supplied
441
+ # @yieldparam result [Google::Apis::CloudidentityV1::ListMembershipsResponse] parsed result object
442
+ # @yieldparam err [StandardError] error object if request failed
443
+ #
444
+ # @return [Google::Apis::CloudidentityV1::ListMembershipsResponse]
445
+ #
446
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
447
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
448
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
449
+ def list_group_memberships(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
450
+ command = make_simple_command(:get, 'v1/{+parent}/memberships', options)
451
+ command.response_representation = Google::Apis::CloudidentityV1::ListMembershipsResponse::Representation
452
+ command.response_class = Google::Apis::CloudidentityV1::ListMembershipsResponse
453
+ command.params['parent'] = parent unless parent.nil?
454
+ command.query['pageSize'] = page_size unless page_size.nil?
455
+ command.query['pageToken'] = page_token unless page_token.nil?
456
+ command.query['view'] = view unless view.nil?
457
+ command.query['fields'] = fields unless fields.nil?
458
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
459
+ execute_or_queue_command(command, &block)
460
+ end
461
+
462
+ # Looks up [resource
463
+ # name](https://cloud.google.com/apis/design/resource_names) of a Membership
464
+ # within a Group by member's EntityKey.
465
+ # @param [String] parent
466
+ # [Resource name](https://cloud.google.com/apis/design/resource_names) of the
467
+ # Group to lookup Membership within.
468
+ # Format: `groups/`group_id``, where `group_id` is the unique ID assigned to
469
+ # the Group.
470
+ # @param [String] member_key_id
471
+ # The ID of the entity within the given namespace. The ID must be unique
472
+ # within its namespace.
473
+ # @param [String] member_key_namespace
474
+ # Namespaces provide isolation for IDs, so an ID only needs to be unique
475
+ # within its namespace.
476
+ # Namespaces are currently only created as part of IdentitySource creation
477
+ # from Admin Console. A namespace `"identitysources/`identity_source_id`"` is
478
+ # created corresponding to every Identity Source `identity_source_id`.
479
+ # @param [String] fields
480
+ # Selector specifying which fields to include in a partial response.
481
+ # @param [String] quota_user
482
+ # Available to use for quota purposes for server-side applications. Can be any
483
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
484
+ # @param [Google::Apis::RequestOptions] options
485
+ # Request-specific options
486
+ #
487
+ # @yield [result, err] Result & error if block supplied
488
+ # @yieldparam result [Google::Apis::CloudidentityV1::LookupMembershipNameResponse] parsed result object
489
+ # @yieldparam err [StandardError] error object if request failed
490
+ #
491
+ # @return [Google::Apis::CloudidentityV1::LookupMembershipNameResponse]
492
+ #
493
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
496
+ def lookup_group_membership(parent, member_key_id: nil, member_key_namespace: nil, fields: nil, quota_user: nil, options: nil, &block)
497
+ command = make_simple_command(:get, 'v1/{+parent}/memberships:lookup', options)
498
+ command.response_representation = Google::Apis::CloudidentityV1::LookupMembershipNameResponse::Representation
499
+ command.response_class = Google::Apis::CloudidentityV1::LookupMembershipNameResponse
500
+ command.params['parent'] = parent unless parent.nil?
501
+ command.query['memberKey.id'] = member_key_id unless member_key_id.nil?
502
+ command.query['memberKey.namespace'] = member_key_namespace unless member_key_namespace.nil?
503
+ command.query['fields'] = fields unless fields.nil?
504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
505
+ execute_or_queue_command(command, &block)
506
+ end
507
+
508
+ protected
509
+
510
+ def apply_command_defaults(command)
511
+ command.query['key'] = key unless key.nil?
512
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
513
+ end
514
+ end
515
+ end
516
+ end
517
+ end