google-api-client 0.37.1 → 0.37.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +105 -0
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +2 -2
- data/generated/google/apis/accesscontextmanager_v1/service.rb +10 -8
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -38
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -16
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +193 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +89 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +15 -14
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +86 -0
- data/generated/google/apis/books_v1/representations.rb +37 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +0 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +12 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +30 -26
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +30 -26
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +25 -37
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +2 -15
- data/generated/google/apis/datacatalog_v1beta1/service.rb +0 -43
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +15 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -7
- data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +20 -231
- data/generated/google/apis/dialogflow_v2/representations.rb +1 -95
- data/generated/google/apis/dialogflow_v2/service.rb +26 -390
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +23 -235
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -95
- data/generated/google/apis/dialogflow_v2beta1/service.rb +68 -804
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1.rb +38 -0
- data/generated/google/apis/displayvideo_v1/classes.rb +382 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +167 -0
- data/generated/google/apis/displayvideo_v1/service.rb +176 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +31 -0
- data/generated/google/apis/dlp_v2/representations.rb +5 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +22 -0
- data/generated/google/apis/docs_v1/representations.rb +3 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +13 -9
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +22 -35
- data/generated/google/apis/logging_v2/representations.rb +0 -2
- data/generated/google/apis/logging_v2/service.rb +14 -14
- data/generated/google/apis/managedidentities_v1.rb +35 -0
- data/generated/google/apis/managedidentities_v1/classes.rb +1662 -0
- data/generated/google/apis/managedidentities_v1/representations.rb +576 -0
- data/generated/google/apis/managedidentities_v1/service.rb +779 -0
- data/generated/google/apis/managedidentities_v1alpha1.rb +35 -0
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1661 -0
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +576 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
- data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +1659 -0
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +576 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +23 -43
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/classes.rb +0 -68
- data/generated/google/apis/oauth2_v2/representations.rb +0 -32
- data/generated/google/apis/oauth2_v2/service.rb +0 -30
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +16 -12
- data/generated/google/apis/pubsub_v1/service.rb +22 -21
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +48 -0
- data/generated/google/apis/run_v1/representations.rb +17 -0
- data/generated/google/apis/run_v1/service.rb +208 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +431 -280
- data/generated/google/apis/run_v1alpha1/representations.rb +156 -105
- data/generated/google/apis/run_v1alpha1/service.rb +874 -448
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1.rb +3 -3
- data/generated/google/apis/secretmanager_v1/service.rb +2 -2
- data/generated/google/apis/secretmanager_v1beta1.rb +3 -3
- data/generated/google/apis/secretmanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +98 -98
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +37 -37
- data/generated/google/apis/securitycenter_v1beta1/service.rb +36 -36
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +56 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +56 -0
- data/generated/google/apis/servicenetworking_v1/representations.rb +17 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +56 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +17 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +56 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +17 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +56 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +17 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +38 -11
- data/generated/google/apis/spanner_v1/representations.rb +15 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v2beta1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1.rb +1 -1
- data/generated/google/apis/toolresults_v1/service.rb +1 -1
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +6 -0
- data/generated/google/apis/websecurityscanner_v1/representations.rb +1 -0
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +6 -0
- data/generated/google/apis/websecurityscanner_v1beta/representations.rb +1 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +72 -33
- data/generated/google/apis/youtube_v3/representations.rb +32 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +19 -3
@@ -0,0 +1,778 @@
|
|
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 ManagedidentitiesV1beta1
|
23
|
+
# Managed Service for Microsoft Active Directory API
|
24
|
+
#
|
25
|
+
# The Managed Service for Microsoft Active Directory API is used for managing a
|
26
|
+
# highly available, hardened service running Microsoft Active Directory (AD).
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/managedidentities_v1beta1'
|
30
|
+
#
|
31
|
+
# Managedidentities = Google::Apis::ManagedidentitiesV1beta1 # Alias the module
|
32
|
+
# service = Managedidentities::ManagedServiceforMicrosoftActiveDirectoryConsumerAPIService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/managed-microsoft-ad/
|
35
|
+
class ManagedServiceforMicrosoftActiveDirectoryConsumerAPIService < 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://managedidentities.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::ManagedidentitiesV1beta1::Location] parsed result object
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
65
|
+
#
|
66
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::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, 'v1beta1/{+name}', options)
|
73
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Location::Representation
|
74
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::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 [Boolean] include_unrevealed_locations
|
87
|
+
# If true, the returned list will include locations which are not yet
|
88
|
+
# revealed.
|
89
|
+
# @param [Fixnum] page_size
|
90
|
+
# The standard list page size.
|
91
|
+
# @param [String] page_token
|
92
|
+
# The standard list page token.
|
93
|
+
# @param [String] fields
|
94
|
+
# Selector specifying which fields to include in a partial response.
|
95
|
+
# @param [String] quota_user
|
96
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
97
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
98
|
+
# @param [Google::Apis::RequestOptions] options
|
99
|
+
# Request-specific options
|
100
|
+
#
|
101
|
+
# @yield [result, err] Result & error if block supplied
|
102
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::ListLocationsResponse] parsed result object
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
104
|
+
#
|
105
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::ListLocationsResponse]
|
106
|
+
#
|
107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
+
def list_project_locations(name, filter: nil, include_unrevealed_locations: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
111
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
112
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::ListLocationsResponse::Representation
|
113
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::ListLocationsResponse
|
114
|
+
command.params['name'] = name unless name.nil?
|
115
|
+
command.query['filter'] = filter unless filter.nil?
|
116
|
+
command.query['includeUnrevealedLocations'] = include_unrevealed_locations unless include_unrevealed_locations.nil?
|
117
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
118
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
121
|
+
execute_or_queue_command(command, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Adds an AD trust to a domain.
|
125
|
+
# @param [String] name
|
126
|
+
# Required. The resource domain name, project name and location using the form:
|
127
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``
|
128
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::AttachTrustRequest] attach_trust_request_object
|
129
|
+
# @param [String] fields
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
135
|
+
# Request-specific options
|
136
|
+
#
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
138
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
140
|
+
#
|
141
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
142
|
+
#
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
+
def attach_domain_trust(name, attach_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:attachTrust', options)
|
148
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::AttachTrustRequest::Representation
|
149
|
+
command.request_object = attach_trust_request_object
|
150
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
151
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
152
|
+
command.params['name'] = name unless name.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Creates a Microsoft AD domain.
|
159
|
+
# @param [String] parent
|
160
|
+
# Required. The resource project name and location using the form:
|
161
|
+
# `projects/`project_id`/locations/global`
|
162
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::Domain] domain_object
|
163
|
+
# @param [String] domain_name
|
164
|
+
# Required. A domain name, e.g. mydomain.myorg.com, with the following
|
165
|
+
# restrictions:
|
166
|
+
# * Must contain only lowercase letters, numbers, periods and hyphens.
|
167
|
+
# * Must start with a letter.
|
168
|
+
# * Must contain between 2-64 characters.
|
169
|
+
# * Must end with a number or a letter.
|
170
|
+
# * Must not start with period.
|
171
|
+
# * First segement length (mydomain form example above) shouldn't exceed
|
172
|
+
# 15 chars.
|
173
|
+
# * The last segment cannot be fully numeric.
|
174
|
+
# * Must be unique within the customer project.
|
175
|
+
# @param [String] fields
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
177
|
+
# @param [String] quota_user
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def create_project_location_global_domain(parent, domain_object = nil, domain_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/domains', options)
|
194
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::Domain::Representation
|
195
|
+
command.request_object = domain_object
|
196
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
197
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
198
|
+
command.params['parent'] = parent unless parent.nil?
|
199
|
+
command.query['domainName'] = domain_name unless domain_name.nil?
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
202
|
+
execute_or_queue_command(command, &block)
|
203
|
+
end
|
204
|
+
|
205
|
+
# Deletes a domain.
|
206
|
+
# @param [String] name
|
207
|
+
# Required. The domain resource name using the form:
|
208
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``
|
209
|
+
# @param [String] fields
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
211
|
+
# @param [String] quota_user
|
212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
215
|
+
# Request-specific options
|
216
|
+
#
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
218
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
220
|
+
#
|
221
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
222
|
+
#
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
226
|
+
def delete_project_location_global_domain(name, fields: nil, quota_user: nil, options: nil, &block)
|
227
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
228
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
229
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
230
|
+
command.params['name'] = name unless name.nil?
|
231
|
+
command.query['fields'] = fields unless fields.nil?
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
+
execute_or_queue_command(command, &block)
|
234
|
+
end
|
235
|
+
|
236
|
+
# Removes an AD trust.
|
237
|
+
# @param [String] name
|
238
|
+
# Required. The resource domain name, project name, and location using the form:
|
239
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``
|
240
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::DetachTrustRequest] detach_trust_request_object
|
241
|
+
# @param [String] fields
|
242
|
+
# Selector specifying which fields to include in a partial response.
|
243
|
+
# @param [String] quota_user
|
244
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
245
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
246
|
+
# @param [Google::Apis::RequestOptions] options
|
247
|
+
# Request-specific options
|
248
|
+
#
|
249
|
+
# @yield [result, err] Result & error if block supplied
|
250
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
251
|
+
# @yieldparam err [StandardError] error object if request failed
|
252
|
+
#
|
253
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
254
|
+
#
|
255
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
256
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
257
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
258
|
+
def detach_domain_trust(name, detach_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
259
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:detachTrust', options)
|
260
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::DetachTrustRequest::Representation
|
261
|
+
command.request_object = detach_trust_request_object
|
262
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
263
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
264
|
+
command.params['name'] = name unless name.nil?
|
265
|
+
command.query['fields'] = fields unless fields.nil?
|
266
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
267
|
+
execute_or_queue_command(command, &block)
|
268
|
+
end
|
269
|
+
|
270
|
+
# Gets information about a domain.
|
271
|
+
# @param [String] name
|
272
|
+
# Required. The domain resource name using the form:
|
273
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``
|
274
|
+
# @param [String] fields
|
275
|
+
# Selector specifying which fields to include in a partial response.
|
276
|
+
# @param [String] quota_user
|
277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
279
|
+
# @param [Google::Apis::RequestOptions] options
|
280
|
+
# Request-specific options
|
281
|
+
#
|
282
|
+
# @yield [result, err] Result & error if block supplied
|
283
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Domain] parsed result object
|
284
|
+
# @yieldparam err [StandardError] error object if request failed
|
285
|
+
#
|
286
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Domain]
|
287
|
+
#
|
288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
291
|
+
def get_project_location_global_domain(name, fields: nil, quota_user: nil, options: nil, &block)
|
292
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
293
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Domain::Representation
|
294
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Domain
|
295
|
+
command.params['name'] = name unless name.nil?
|
296
|
+
command.query['fields'] = fields unless fields.nil?
|
297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
298
|
+
execute_or_queue_command(command, &block)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Gets the access control policy for a resource.
|
302
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
303
|
+
# set.
|
304
|
+
# @param [String] resource
|
305
|
+
# REQUIRED: The resource for which the policy is being requested.
|
306
|
+
# See the operation documentation for the appropriate value for this field.
|
307
|
+
# @param [Fixnum] options_requested_policy_version
|
308
|
+
# Optional. The policy format version to be returned.
|
309
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
310
|
+
# rejected.
|
311
|
+
# Requests for policies with any conditional bindings must specify version 3.
|
312
|
+
# Policies without any conditional bindings may specify any valid value or
|
313
|
+
# leave the field unset.
|
314
|
+
# @param [String] fields
|
315
|
+
# Selector specifying which fields to include in a partial response.
|
316
|
+
# @param [String] quota_user
|
317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
319
|
+
# @param [Google::Apis::RequestOptions] options
|
320
|
+
# Request-specific options
|
321
|
+
#
|
322
|
+
# @yield [result, err] Result & error if block supplied
|
323
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Policy] parsed result object
|
324
|
+
# @yieldparam err [StandardError] error object if request failed
|
325
|
+
#
|
326
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Policy]
|
327
|
+
#
|
328
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
329
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
330
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
331
|
+
def get_project_location_global_domain_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
332
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
333
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Policy::Representation
|
334
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Policy
|
335
|
+
command.params['resource'] = resource unless resource.nil?
|
336
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.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
|
+
# Lists domains in a project.
|
343
|
+
# @param [String] parent
|
344
|
+
# Required. The resource name of the domain location using the form:
|
345
|
+
# `projects/`project_id`/locations/global`
|
346
|
+
# @param [String] filter
|
347
|
+
# Optional. A filter specifying constraints of a list operation.
|
348
|
+
# For example, `Domain.fqdn="mydomain.myorginization"`.
|
349
|
+
# @param [String] order_by
|
350
|
+
# Optional. Specifies the ordering of results. See
|
351
|
+
# [Sorting
|
352
|
+
# order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
|
353
|
+
# for more information.
|
354
|
+
# @param [Fixnum] page_size
|
355
|
+
# Optional. The maximum number of items to return.
|
356
|
+
# If not specified, a default value of 1000 will be used.
|
357
|
+
# Regardless of the page_size value, the response may include a partial list.
|
358
|
+
# Callers should rely on a response's
|
359
|
+
# next_page_token
|
360
|
+
# to determine if there are additional results to list.
|
361
|
+
# @param [String] page_token
|
362
|
+
# The `next_page_token` value returned from a previous ListDomainsRequest
|
363
|
+
# request, if any.
|
364
|
+
# @param [String] fields
|
365
|
+
# Selector specifying which fields to include in a partial response.
|
366
|
+
# @param [String] quota_user
|
367
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
368
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
369
|
+
# @param [Google::Apis::RequestOptions] options
|
370
|
+
# Request-specific options
|
371
|
+
#
|
372
|
+
# @yield [result, err] Result & error if block supplied
|
373
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::ListDomainsResponse] parsed result object
|
374
|
+
# @yieldparam err [StandardError] error object if request failed
|
375
|
+
#
|
376
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::ListDomainsResponse]
|
377
|
+
#
|
378
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
379
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
380
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
381
|
+
def list_project_location_global_domains(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
382
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/domains', options)
|
383
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::ListDomainsResponse::Representation
|
384
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::ListDomainsResponse
|
385
|
+
command.params['parent'] = parent unless parent.nil?
|
386
|
+
command.query['filter'] = filter unless filter.nil?
|
387
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
388
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
389
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
390
|
+
command.query['fields'] = fields unless fields.nil?
|
391
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
392
|
+
execute_or_queue_command(command, &block)
|
393
|
+
end
|
394
|
+
|
395
|
+
# Updates the metadata and configuration of a domain.
|
396
|
+
# @param [String] name
|
397
|
+
# Output only. The unique name of the domain using the form:
|
398
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``.
|
399
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::Domain] domain_object
|
400
|
+
# @param [String] update_mask
|
401
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
402
|
+
# field. The elements of the repeated paths field may only include
|
403
|
+
# fields from Domain:
|
404
|
+
# * `labels`
|
405
|
+
# * `locations`
|
406
|
+
# * `authorized_networks`
|
407
|
+
# @param [String] fields
|
408
|
+
# Selector specifying which fields to include in a partial response.
|
409
|
+
# @param [String] quota_user
|
410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
412
|
+
# @param [Google::Apis::RequestOptions] options
|
413
|
+
# Request-specific options
|
414
|
+
#
|
415
|
+
# @yield [result, err] Result & error if block supplied
|
416
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
417
|
+
# @yieldparam err [StandardError] error object if request failed
|
418
|
+
#
|
419
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
420
|
+
#
|
421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
424
|
+
def patch_project_location_global_domain(name, domain_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
425
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
426
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::Domain::Representation
|
427
|
+
command.request_object = domain_object
|
428
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
429
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
430
|
+
command.params['name'] = name unless name.nil?
|
431
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
432
|
+
command.query['fields'] = fields unless fields.nil?
|
433
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
434
|
+
execute_or_queue_command(command, &block)
|
435
|
+
end
|
436
|
+
|
437
|
+
# Updates the DNS conditional forwarder.
|
438
|
+
# @param [String] name
|
439
|
+
# Required. The resource domain name, project name and location using the form:
|
440
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``
|
441
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::ReconfigureTrustRequest] reconfigure_trust_request_object
|
442
|
+
# @param [String] fields
|
443
|
+
# Selector specifying which fields to include in a partial response.
|
444
|
+
# @param [String] quota_user
|
445
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
446
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
447
|
+
# @param [Google::Apis::RequestOptions] options
|
448
|
+
# Request-specific options
|
449
|
+
#
|
450
|
+
# @yield [result, err] Result & error if block supplied
|
451
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
452
|
+
# @yieldparam err [StandardError] error object if request failed
|
453
|
+
#
|
454
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
455
|
+
#
|
456
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
457
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
458
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
459
|
+
def reconfigure_domain_trust(name, reconfigure_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
460
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:reconfigureTrust', options)
|
461
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::ReconfigureTrustRequest::Representation
|
462
|
+
command.request_object = reconfigure_trust_request_object
|
463
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
464
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
465
|
+
command.params['name'] = name unless name.nil?
|
466
|
+
command.query['fields'] = fields unless fields.nil?
|
467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
|
+
execute_or_queue_command(command, &block)
|
469
|
+
end
|
470
|
+
|
471
|
+
# Resets a domain's administrator password.
|
472
|
+
# @param [String] name
|
473
|
+
# Required. The domain resource name using the form:
|
474
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``
|
475
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::ResetAdminPasswordRequest] reset_admin_password_request_object
|
476
|
+
# @param [String] fields
|
477
|
+
# Selector specifying which fields to include in a partial response.
|
478
|
+
# @param [String] quota_user
|
479
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
480
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
481
|
+
# @param [Google::Apis::RequestOptions] options
|
482
|
+
# Request-specific options
|
483
|
+
#
|
484
|
+
# @yield [result, err] Result & error if block supplied
|
485
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::ResetAdminPasswordResponse] parsed result object
|
486
|
+
# @yieldparam err [StandardError] error object if request failed
|
487
|
+
#
|
488
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::ResetAdminPasswordResponse]
|
489
|
+
#
|
490
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
491
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
492
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
493
|
+
def reset_domain_admin_password(name, reset_admin_password_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
494
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:resetAdminPassword', options)
|
495
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::ResetAdminPasswordRequest::Representation
|
496
|
+
command.request_object = reset_admin_password_request_object
|
497
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::ResetAdminPasswordResponse::Representation
|
498
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::ResetAdminPasswordResponse
|
499
|
+
command.params['name'] = name unless name.nil?
|
500
|
+
command.query['fields'] = fields unless fields.nil?
|
501
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
502
|
+
execute_or_queue_command(command, &block)
|
503
|
+
end
|
504
|
+
|
505
|
+
# Sets the access control policy on the specified resource. Replaces any
|
506
|
+
# existing policy.
|
507
|
+
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
508
|
+
# @param [String] resource
|
509
|
+
# REQUIRED: The resource for which the policy is being specified.
|
510
|
+
# See the operation documentation for the appropriate value for this field.
|
511
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
512
|
+
# @param [String] fields
|
513
|
+
# Selector specifying which fields to include in a partial response.
|
514
|
+
# @param [String] quota_user
|
515
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
516
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
517
|
+
# @param [Google::Apis::RequestOptions] options
|
518
|
+
# Request-specific options
|
519
|
+
#
|
520
|
+
# @yield [result, err] Result & error if block supplied
|
521
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Policy] parsed result object
|
522
|
+
# @yieldparam err [StandardError] error object if request failed
|
523
|
+
#
|
524
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Policy]
|
525
|
+
#
|
526
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
527
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
528
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
529
|
+
def set_domain_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
530
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
531
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::SetIamPolicyRequest::Representation
|
532
|
+
command.request_object = set_iam_policy_request_object
|
533
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Policy::Representation
|
534
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Policy
|
535
|
+
command.params['resource'] = resource unless resource.nil?
|
536
|
+
command.query['fields'] = fields unless fields.nil?
|
537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
|
+
execute_or_queue_command(command, &block)
|
539
|
+
end
|
540
|
+
|
541
|
+
# Returns permissions that a caller has on the specified resource.
|
542
|
+
# If the resource does not exist, this will return an empty set of
|
543
|
+
# permissions, not a NOT_FOUND error.
|
544
|
+
# Note: This operation is designed to be used for building permission-aware
|
545
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
546
|
+
# may "fail open" without warning.
|
547
|
+
# @param [String] resource
|
548
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
549
|
+
# See the operation documentation for the appropriate value for this field.
|
550
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
551
|
+
# @param [String] fields
|
552
|
+
# Selector specifying which fields to include in a partial response.
|
553
|
+
# @param [String] quota_user
|
554
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
555
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
556
|
+
# @param [Google::Apis::RequestOptions] options
|
557
|
+
# Request-specific options
|
558
|
+
#
|
559
|
+
# @yield [result, err] Result & error if block supplied
|
560
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::TestIamPermissionsResponse] parsed result object
|
561
|
+
# @yieldparam err [StandardError] error object if request failed
|
562
|
+
#
|
563
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::TestIamPermissionsResponse]
|
564
|
+
#
|
565
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
566
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
567
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
568
|
+
def test_domain_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
569
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
570
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::TestIamPermissionsRequest::Representation
|
571
|
+
command.request_object = test_iam_permissions_request_object
|
572
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::TestIamPermissionsResponse::Representation
|
573
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::TestIamPermissionsResponse
|
574
|
+
command.params['resource'] = resource unless resource.nil?
|
575
|
+
command.query['fields'] = fields unless fields.nil?
|
576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
577
|
+
execute_or_queue_command(command, &block)
|
578
|
+
end
|
579
|
+
|
580
|
+
# Validates a trust state, that the target domain is reachable, and that the
|
581
|
+
# target domain is able to accept incoming trust requests.
|
582
|
+
# @param [String] name
|
583
|
+
# Required. The resource domain name, project name, and location using the form:
|
584
|
+
# `projects/`project_id`/locations/global/domains/`domain_name``
|
585
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::ValidateTrustRequest] validate_trust_request_object
|
586
|
+
# @param [String] fields
|
587
|
+
# Selector specifying which fields to include in a partial response.
|
588
|
+
# @param [String] quota_user
|
589
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
590
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
591
|
+
# @param [Google::Apis::RequestOptions] options
|
592
|
+
# Request-specific options
|
593
|
+
#
|
594
|
+
# @yield [result, err] Result & error if block supplied
|
595
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
596
|
+
# @yieldparam err [StandardError] error object if request failed
|
597
|
+
#
|
598
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
599
|
+
#
|
600
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
601
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
602
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
603
|
+
def validate_domain_trust(name, validate_trust_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
604
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:validateTrust', options)
|
605
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::ValidateTrustRequest::Representation
|
606
|
+
command.request_object = validate_trust_request_object
|
607
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
608
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
609
|
+
command.params['name'] = name unless name.nil?
|
610
|
+
command.query['fields'] = fields unless fields.nil?
|
611
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
612
|
+
execute_or_queue_command(command, &block)
|
613
|
+
end
|
614
|
+
|
615
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
616
|
+
# makes a best effort to cancel the operation, but success is not
|
617
|
+
# guaranteed. If the server doesn't support this method, it returns
|
618
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
619
|
+
# Operations.GetOperation or
|
620
|
+
# other methods to check whether the cancellation succeeded or whether the
|
621
|
+
# operation completed despite cancellation. On successful cancellation,
|
622
|
+
# the operation is not deleted; instead, it becomes an operation with
|
623
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
624
|
+
# corresponding to `Code.CANCELLED`.
|
625
|
+
# @param [String] name
|
626
|
+
# The name of the operation resource to be cancelled.
|
627
|
+
# @param [Google::Apis::ManagedidentitiesV1beta1::CancelOperationRequest] cancel_operation_request_object
|
628
|
+
# @param [String] fields
|
629
|
+
# Selector specifying which fields to include in a partial response.
|
630
|
+
# @param [String] quota_user
|
631
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
632
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
633
|
+
# @param [Google::Apis::RequestOptions] options
|
634
|
+
# Request-specific options
|
635
|
+
#
|
636
|
+
# @yield [result, err] Result & error if block supplied
|
637
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Empty] parsed result object
|
638
|
+
# @yieldparam err [StandardError] error object if request failed
|
639
|
+
#
|
640
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Empty]
|
641
|
+
#
|
642
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
643
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
644
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
645
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
646
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
647
|
+
command.request_representation = Google::Apis::ManagedidentitiesV1beta1::CancelOperationRequest::Representation
|
648
|
+
command.request_object = cancel_operation_request_object
|
649
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Empty::Representation
|
650
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Empty
|
651
|
+
command.params['name'] = name unless name.nil?
|
652
|
+
command.query['fields'] = fields unless fields.nil?
|
653
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
654
|
+
execute_or_queue_command(command, &block)
|
655
|
+
end
|
656
|
+
|
657
|
+
# Deletes a long-running operation. This method indicates that the client is
|
658
|
+
# no longer interested in the operation result. It does not cancel the
|
659
|
+
# operation. If the server doesn't support this method, it returns
|
660
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
661
|
+
# @param [String] name
|
662
|
+
# The name of the operation resource to be deleted.
|
663
|
+
# @param [String] fields
|
664
|
+
# Selector specifying which fields to include in a partial response.
|
665
|
+
# @param [String] quota_user
|
666
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
667
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
668
|
+
# @param [Google::Apis::RequestOptions] options
|
669
|
+
# Request-specific options
|
670
|
+
#
|
671
|
+
# @yield [result, err] Result & error if block supplied
|
672
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Empty] parsed result object
|
673
|
+
# @yieldparam err [StandardError] error object if request failed
|
674
|
+
#
|
675
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Empty]
|
676
|
+
#
|
677
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
678
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
679
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
680
|
+
def delete_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
681
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
682
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Empty::Representation
|
683
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Empty
|
684
|
+
command.params['name'] = name unless name.nil?
|
685
|
+
command.query['fields'] = fields unless fields.nil?
|
686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
687
|
+
execute_or_queue_command(command, &block)
|
688
|
+
end
|
689
|
+
|
690
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
691
|
+
# method to poll the operation result at intervals as recommended by the API
|
692
|
+
# service.
|
693
|
+
# @param [String] name
|
694
|
+
# The name of the operation resource.
|
695
|
+
# @param [String] fields
|
696
|
+
# Selector specifying which fields to include in a partial response.
|
697
|
+
# @param [String] quota_user
|
698
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
699
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
700
|
+
# @param [Google::Apis::RequestOptions] options
|
701
|
+
# Request-specific options
|
702
|
+
#
|
703
|
+
# @yield [result, err] Result & error if block supplied
|
704
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
|
705
|
+
# @yieldparam err [StandardError] error object if request failed
|
706
|
+
#
|
707
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
|
708
|
+
#
|
709
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
710
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
711
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
712
|
+
def get_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
713
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
714
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
|
715
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
|
716
|
+
command.params['name'] = name unless name.nil?
|
717
|
+
command.query['fields'] = fields unless fields.nil?
|
718
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
719
|
+
execute_or_queue_command(command, &block)
|
720
|
+
end
|
721
|
+
|
722
|
+
# Lists operations that match the specified filter in the request. If the
|
723
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
724
|
+
# NOTE: the `name` binding allows API services to override the binding
|
725
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
726
|
+
# override the binding, API services can add a binding such as
|
727
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
728
|
+
# For backwards compatibility, the default name includes the operations
|
729
|
+
# collection id, however overriding users must ensure the name binding
|
730
|
+
# is the parent resource, without the operations collection id.
|
731
|
+
# @param [String] name
|
732
|
+
# The name of the operation's parent resource.
|
733
|
+
# @param [String] filter
|
734
|
+
# The standard list filter.
|
735
|
+
# @param [Fixnum] page_size
|
736
|
+
# The standard list page size.
|
737
|
+
# @param [String] page_token
|
738
|
+
# The standard list page token.
|
739
|
+
# @param [String] fields
|
740
|
+
# Selector specifying which fields to include in a partial response.
|
741
|
+
# @param [String] quota_user
|
742
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
743
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
744
|
+
# @param [Google::Apis::RequestOptions] options
|
745
|
+
# Request-specific options
|
746
|
+
#
|
747
|
+
# @yield [result, err] Result & error if block supplied
|
748
|
+
# @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::ListOperationsResponse] parsed result object
|
749
|
+
# @yieldparam err [StandardError] error object if request failed
|
750
|
+
#
|
751
|
+
# @return [Google::Apis::ManagedidentitiesV1beta1::ListOperationsResponse]
|
752
|
+
#
|
753
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
754
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
755
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
756
|
+
def list_project_location_global_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
757
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
758
|
+
command.response_representation = Google::Apis::ManagedidentitiesV1beta1::ListOperationsResponse::Representation
|
759
|
+
command.response_class = Google::Apis::ManagedidentitiesV1beta1::ListOperationsResponse
|
760
|
+
command.params['name'] = name unless name.nil?
|
761
|
+
command.query['filter'] = filter unless filter.nil?
|
762
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
763
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
764
|
+
command.query['fields'] = fields unless fields.nil?
|
765
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
766
|
+
execute_or_queue_command(command, &block)
|
767
|
+
end
|
768
|
+
|
769
|
+
protected
|
770
|
+
|
771
|
+
def apply_command_defaults(command)
|
772
|
+
command.query['key'] = key unless key.nil?
|
773
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
774
|
+
end
|
775
|
+
end
|
776
|
+
end
|
777
|
+
end
|
778
|
+
end
|