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