google-api-client 0.25.0 → 0.26.0
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/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
- data/.kokoro/build.bat +8 -0
- data/.kokoro/build.sh +36 -0
- data/.kokoro/common.cfg +22 -0
- data/.kokoro/continuous/common.cfg +20 -0
- data/.kokoro/continuous/linux.cfg +15 -0
- data/.kokoro/continuous/osx.cfg +3 -0
- data/.kokoro/continuous/windows.cfg +3 -0
- data/.kokoro/osx.sh +35 -0
- data/.kokoro/presubmit/common.cfg +19 -0
- data/.kokoro/presubmit/linux.cfg +14 -0
- data/.kokoro/presubmit/osx.cfg +3 -0
- data/.kokoro/presubmit/windows.cfg +3 -0
- data/.kokoro/trampoline.sh +24 -0
- data/.kokoro/windows.sh +32 -0
- data/CHANGELOG.md +83 -0
- data/Gemfile +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +87 -29
- data/generated/google/apis/bigquery_v2/representations.rb +21 -0
- data/generated/google/apis/bigquery_v2/service.rb +7 -9
- data/generated/google/apis/calendar_v3.rb +2 -2
- data/generated/google/apis/calendar_v3/classes.rb +14 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
- data/generated/google/apis/cloudiot_v1/service.rb +172 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +107 -0
- data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
- data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +9 -0
- data/generated/google/apis/composer_v1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +938 -117
- data/generated/google/apis/compute_alpha/representations.rb +310 -2
- data/generated/google/apis/compute_alpha/service.rb +1203 -245
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1175 -219
- data/generated/google/apis/compute_beta/representations.rb +375 -2
- data/generated/google/apis/compute_beta/service.rb +907 -139
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1485 -143
- data/generated/google/apis/compute_v1/representations.rb +503 -0
- data/generated/google/apis/compute_v1/service.rb +1375 -85
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +99 -6
- data/generated/google/apis/container_v1/representations.rb +39 -0
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +3 -3
- data/generated/google/apis/container_v1beta1/classes.rb +162 -9
- data/generated/google/apis/container_v1beta1/representations.rb +80 -0
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +40 -32
- data/generated/google/apis/content_v2/representations.rb +0 -1
- data/generated/google/apis/content_v2/service.rb +3 -3
- data/generated/google/apis/content_v2_1.rb +35 -0
- data/generated/google/apis/content_v2_1/classes.rb +9104 -0
- data/generated/google/apis/content_v2_1/representations.rb +3967 -0
- data/generated/google/apis/content_v2_1/service.rb +3463 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -1
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
- data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
- data/generated/google/apis/dialogflow_v2/service.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +4 -4
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
- data/generated/google/apis/dns_v1beta2/service.rb +246 -0
- data/generated/google/apis/drive_v2.rb +3 -3
- data/generated/google/apis/drive_v3.rb +3 -3
- data/generated/google/apis/driveactivity_v2.rb +37 -0
- data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
- data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
- data/generated/google/apis/driveactivity_v2/service.rb +89 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +2225 -520
- data/generated/google/apis/firestore_v1/representations.rb +800 -33
- data/generated/google/apis/firestore_v1/service.rb +526 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -2
- data/generated/google/apis/fitness_v1/service.rb +7 -3
- data/generated/google/apis/games_management_v1management.rb +1 -4
- data/generated/google/apis/games_v1.rb +1 -4
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/iap_v1.rb +34 -0
- data/generated/google/apis/iap_v1/classes.rb +308 -0
- data/generated/google/apis/iap_v1/representations.rb +126 -0
- data/generated/google/apis/iap_v1/service.rb +725 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +8 -9
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +6 -6
- data/generated/google/apis/jobs_v3/service.rb +8 -8
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
- data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -7
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +0 -365
- data/generated/google/apis/pagespeedonline_v5.rb +32 -0
- data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
- data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
- data/generated/google/apis/people_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -12
- data/generated/google/apis/pubsub_v1/representations.rb +15 -0
- data/generated/google/apis/pubsub_v1/service.rb +26 -18
- data/generated/google/apis/redis_v1.rb +2 -3
- data/generated/google/apis/redis_v1/service.rb +1 -2
- data/generated/google/apis/redis_v1beta1.rb +2 -3
- data/generated/google/apis/redis_v1beta1/service.rb +1 -2
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
- data/generated/google/apis/script_v1.rb +24 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +187 -2
- data/generated/google/apis/slides_v1/representations.rb +67 -0
- data/generated/google/apis/slides_v1/service.rb +4 -3
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +58 -10
- data/generated/google/apis/speech_v1/representations.rb +29 -1
- data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
- data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
- data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +54 -0
- data/generated/google/apis/storage_v1/representations.rb +31 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +49 -19
- data/generated/google/apis/testing_v1/representations.rb +20 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +78 -7
- data/generated/google/apis/vault_v1/representations.rb +34 -1
- data/generated/google/apis/vault_v1/service.rb +141 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +33 -0
- data/generated/google/apis/vision_v1/representations.rb +16 -0
- data/generated/google/apis/vision_v1/service.rb +2 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +1 -1
- data/lib/google/api_client/auth/installed_app.rb +17 -2
- data/lib/google/api_client/client_secrets.rb +1 -1
- data/lib/google/apis/core/download.rb +2 -2
- data/lib/google/apis/errors.rb +9 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +46 -17
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
- data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
- data/generated/google/apis/dfareporting_v3_0.rb +0 -40
- data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
- data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
- data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -0,0 +1,126 @@
|
|
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 IapV1
|
24
|
+
|
25
|
+
class Binding
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Expr
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GetIamPolicyRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Policy
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class SetIamPolicyRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class TestIamPermissionsRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class TestIamPermissionsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Binding
|
68
|
+
# @private
|
69
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
70
|
+
property :condition, as: 'condition', class: Google::Apis::IapV1::Expr, decorator: Google::Apis::IapV1::Expr::Representation
|
71
|
+
|
72
|
+
collection :members, as: 'members'
|
73
|
+
property :role, as: 'role'
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
class Expr
|
78
|
+
# @private
|
79
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
80
|
+
property :description, as: 'description'
|
81
|
+
property :expression, as: 'expression'
|
82
|
+
property :location, as: 'location'
|
83
|
+
property :title, as: 'title'
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
class GetIamPolicyRequest
|
88
|
+
# @private
|
89
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
class Policy
|
94
|
+
# @private
|
95
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
96
|
+
collection :bindings, as: 'bindings', class: Google::Apis::IapV1::Binding, decorator: Google::Apis::IapV1::Binding::Representation
|
97
|
+
|
98
|
+
property :etag, :base64 => true, as: 'etag'
|
99
|
+
property :version, as: 'version'
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
class SetIamPolicyRequest
|
104
|
+
# @private
|
105
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
106
|
+
property :policy, as: 'policy', class: Google::Apis::IapV1::Policy, decorator: Google::Apis::IapV1::Policy::Representation
|
107
|
+
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
class TestIamPermissionsRequest
|
112
|
+
# @private
|
113
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
114
|
+
collection :permissions, as: 'permissions'
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
class TestIamPermissionsResponse
|
119
|
+
# @private
|
120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
121
|
+
collection :permissions, as: 'permissions'
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,725 @@
|
|
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 IapV1
|
23
|
+
# Cloud Identity-Aware Proxy API
|
24
|
+
#
|
25
|
+
# Controls access to cloud applications running on Google Cloud Platform.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/iap_v1'
|
29
|
+
#
|
30
|
+
# Iap = Google::Apis::IapV1 # Alias the module
|
31
|
+
# service = Iap::CloudIAPService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/iap
|
34
|
+
class CloudIAPService < 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://iap.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Gets the access control policy for an Identity-Aware Proxy protected
|
51
|
+
# resource.
|
52
|
+
# More information about managing access via IAP can be found at:
|
53
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
54
|
+
# @param [String] resource
|
55
|
+
# REQUIRED: The resource for which the policy is being requested.
|
56
|
+
# See the operation documentation for the appropriate value for this field.
|
57
|
+
# @param [Google::Apis::IapV1::GetIamPolicyRequest] get_iam_policy_request_object
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::IapV1::Policy]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def get_iap_tunnel_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
77
|
+
command.request_representation = Google::Apis::IapV1::GetIamPolicyRequest::Representation
|
78
|
+
command.request_object = get_iam_policy_request_object
|
79
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
80
|
+
command.response_class = Google::Apis::IapV1::Policy
|
81
|
+
command.params['resource'] = resource unless resource.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Sets the access control policy for an Identity-Aware Proxy protected
|
88
|
+
# resource. Replaces any existing policy.
|
89
|
+
# More information about managing access via IAP can be found at:
|
90
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
91
|
+
# @param [String] resource
|
92
|
+
# REQUIRED: The resource for which the policy is being specified.
|
93
|
+
# See the operation documentation for the appropriate value for this field.
|
94
|
+
# @param [Google::Apis::IapV1::SetIamPolicyRequest] set_iam_policy_request_object
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::IapV1::Policy]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def set_iap_tunnel_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
114
|
+
command.request_representation = Google::Apis::IapV1::SetIamPolicyRequest::Representation
|
115
|
+
command.request_object = set_iam_policy_request_object
|
116
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
117
|
+
command.response_class = Google::Apis::IapV1::Policy
|
118
|
+
command.params['resource'] = resource unless resource.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
|
+
# Returns permissions that a caller has on the Identity-Aware Proxy protected
|
125
|
+
# resource.
|
126
|
+
# More information about managing access via IAP can be found at:
|
127
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
128
|
+
# @param [String] resource
|
129
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
130
|
+
# See the operation documentation for the appropriate value for this field.
|
131
|
+
# @param [Google::Apis::IapV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
132
|
+
# @param [String] fields
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
134
|
+
# @param [String] quota_user
|
135
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
136
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
137
|
+
# @param [Google::Apis::RequestOptions] options
|
138
|
+
# Request-specific options
|
139
|
+
#
|
140
|
+
# @yield [result, err] Result & error if block supplied
|
141
|
+
# @yieldparam result [Google::Apis::IapV1::TestIamPermissionsResponse] parsed result object
|
142
|
+
# @yieldparam err [StandardError] error object if request failed
|
143
|
+
#
|
144
|
+
# @return [Google::Apis::IapV1::TestIamPermissionsResponse]
|
145
|
+
#
|
146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
149
|
+
def test_iap_tunnel_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
150
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
151
|
+
command.request_representation = Google::Apis::IapV1::TestIamPermissionsRequest::Representation
|
152
|
+
command.request_object = test_iam_permissions_request_object
|
153
|
+
command.response_representation = Google::Apis::IapV1::TestIamPermissionsResponse::Representation
|
154
|
+
command.response_class = Google::Apis::IapV1::TestIamPermissionsResponse
|
155
|
+
command.params['resource'] = resource unless resource.nil?
|
156
|
+
command.query['fields'] = fields unless fields.nil?
|
157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
158
|
+
execute_or_queue_command(command, &block)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Gets the access control policy for an Identity-Aware Proxy protected
|
162
|
+
# resource.
|
163
|
+
# More information about managing access via IAP can be found at:
|
164
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
165
|
+
# @param [String] resource
|
166
|
+
# REQUIRED: The resource for which the policy is being requested.
|
167
|
+
# See the operation documentation for the appropriate value for this field.
|
168
|
+
# @param [Google::Apis::IapV1::GetIamPolicyRequest] get_iam_policy_request_object
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::IapV1::Policy]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def get_zone_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
188
|
+
command.request_representation = Google::Apis::IapV1::GetIamPolicyRequest::Representation
|
189
|
+
command.request_object = get_iam_policy_request_object
|
190
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
191
|
+
command.response_class = Google::Apis::IapV1::Policy
|
192
|
+
command.params['resource'] = resource unless resource.nil?
|
193
|
+
command.query['fields'] = fields unless fields.nil?
|
194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
195
|
+
execute_or_queue_command(command, &block)
|
196
|
+
end
|
197
|
+
|
198
|
+
# Sets the access control policy for an Identity-Aware Proxy protected
|
199
|
+
# resource. Replaces any existing policy.
|
200
|
+
# More information about managing access via IAP can be found at:
|
201
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
202
|
+
# @param [String] resource
|
203
|
+
# REQUIRED: The resource for which the policy is being specified.
|
204
|
+
# See the operation documentation for the appropriate value for this field.
|
205
|
+
# @param [Google::Apis::IapV1::SetIamPolicyRequest] set_iam_policy_request_object
|
206
|
+
# @param [String] fields
|
207
|
+
# Selector specifying which fields to include in a partial response.
|
208
|
+
# @param [String] quota_user
|
209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
211
|
+
# @param [Google::Apis::RequestOptions] options
|
212
|
+
# Request-specific options
|
213
|
+
#
|
214
|
+
# @yield [result, err] Result & error if block supplied
|
215
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
216
|
+
# @yieldparam err [StandardError] error object if request failed
|
217
|
+
#
|
218
|
+
# @return [Google::Apis::IapV1::Policy]
|
219
|
+
#
|
220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
223
|
+
def set_zone_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
224
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
225
|
+
command.request_representation = Google::Apis::IapV1::SetIamPolicyRequest::Representation
|
226
|
+
command.request_object = set_iam_policy_request_object
|
227
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
228
|
+
command.response_class = Google::Apis::IapV1::Policy
|
229
|
+
command.params['resource'] = resource unless resource.nil?
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
232
|
+
execute_or_queue_command(command, &block)
|
233
|
+
end
|
234
|
+
|
235
|
+
# Returns permissions that a caller has on the Identity-Aware Proxy protected
|
236
|
+
# resource.
|
237
|
+
# More information about managing access via IAP can be found at:
|
238
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
239
|
+
# @param [String] resource
|
240
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
241
|
+
# See the operation documentation for the appropriate value for this field.
|
242
|
+
# @param [Google::Apis::IapV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
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::IapV1::TestIamPermissionsResponse] parsed result object
|
253
|
+
# @yieldparam err [StandardError] error object if request failed
|
254
|
+
#
|
255
|
+
# @return [Google::Apis::IapV1::TestIamPermissionsResponse]
|
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 test_zone_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
261
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
262
|
+
command.request_representation = Google::Apis::IapV1::TestIamPermissionsRequest::Representation
|
263
|
+
command.request_object = test_iam_permissions_request_object
|
264
|
+
command.response_representation = Google::Apis::IapV1::TestIamPermissionsResponse::Representation
|
265
|
+
command.response_class = Google::Apis::IapV1::TestIamPermissionsResponse
|
266
|
+
command.params['resource'] = resource unless resource.nil?
|
267
|
+
command.query['fields'] = fields unless fields.nil?
|
268
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
269
|
+
execute_or_queue_command(command, &block)
|
270
|
+
end
|
271
|
+
|
272
|
+
# Gets the access control policy for an Identity-Aware Proxy protected
|
273
|
+
# resource.
|
274
|
+
# More information about managing access via IAP can be found at:
|
275
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
276
|
+
# @param [String] resource
|
277
|
+
# REQUIRED: The resource for which the policy is being requested.
|
278
|
+
# See the operation documentation for the appropriate value for this field.
|
279
|
+
# @param [Google::Apis::IapV1::GetIamPolicyRequest] get_iam_policy_request_object
|
280
|
+
# @param [String] fields
|
281
|
+
# Selector specifying which fields to include in a partial response.
|
282
|
+
# @param [String] quota_user
|
283
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
284
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
285
|
+
# @param [Google::Apis::RequestOptions] options
|
286
|
+
# Request-specific options
|
287
|
+
#
|
288
|
+
# @yield [result, err] Result & error if block supplied
|
289
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
290
|
+
# @yieldparam err [StandardError] error object if request failed
|
291
|
+
#
|
292
|
+
# @return [Google::Apis::IapV1::Policy]
|
293
|
+
#
|
294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
297
|
+
def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
298
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
299
|
+
command.request_representation = Google::Apis::IapV1::GetIamPolicyRequest::Representation
|
300
|
+
command.request_object = get_iam_policy_request_object
|
301
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
302
|
+
command.response_class = Google::Apis::IapV1::Policy
|
303
|
+
command.params['resource'] = resource unless resource.nil?
|
304
|
+
command.query['fields'] = fields unless fields.nil?
|
305
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
306
|
+
execute_or_queue_command(command, &block)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Sets the access control policy for an Identity-Aware Proxy protected
|
310
|
+
# resource. Replaces any existing policy.
|
311
|
+
# More information about managing access via IAP can be found at:
|
312
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
313
|
+
# @param [String] resource
|
314
|
+
# REQUIRED: The resource for which the policy is being specified.
|
315
|
+
# See the operation documentation for the appropriate value for this field.
|
316
|
+
# @param [Google::Apis::IapV1::SetIamPolicyRequest] set_iam_policy_request_object
|
317
|
+
# @param [String] fields
|
318
|
+
# Selector specifying which fields to include in a partial response.
|
319
|
+
# @param [String] quota_user
|
320
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
321
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
322
|
+
# @param [Google::Apis::RequestOptions] options
|
323
|
+
# Request-specific options
|
324
|
+
#
|
325
|
+
# @yield [result, err] Result & error if block supplied
|
326
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
327
|
+
# @yieldparam err [StandardError] error object if request failed
|
328
|
+
#
|
329
|
+
# @return [Google::Apis::IapV1::Policy]
|
330
|
+
#
|
331
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
332
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
333
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
334
|
+
def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
335
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
336
|
+
command.request_representation = Google::Apis::IapV1::SetIamPolicyRequest::Representation
|
337
|
+
command.request_object = set_iam_policy_request_object
|
338
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
339
|
+
command.response_class = Google::Apis::IapV1::Policy
|
340
|
+
command.params['resource'] = resource unless resource.nil?
|
341
|
+
command.query['fields'] = fields unless fields.nil?
|
342
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
343
|
+
execute_or_queue_command(command, &block)
|
344
|
+
end
|
345
|
+
|
346
|
+
# Returns permissions that a caller has on the Identity-Aware Proxy protected
|
347
|
+
# resource.
|
348
|
+
# More information about managing access via IAP can be found at:
|
349
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
350
|
+
# @param [String] resource
|
351
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
352
|
+
# See the operation documentation for the appropriate value for this field.
|
353
|
+
# @param [Google::Apis::IapV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
354
|
+
# @param [String] fields
|
355
|
+
# Selector specifying which fields to include in a partial response.
|
356
|
+
# @param [String] quota_user
|
357
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
358
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
359
|
+
# @param [Google::Apis::RequestOptions] options
|
360
|
+
# Request-specific options
|
361
|
+
#
|
362
|
+
# @yield [result, err] Result & error if block supplied
|
363
|
+
# @yieldparam result [Google::Apis::IapV1::TestIamPermissionsResponse] parsed result object
|
364
|
+
# @yieldparam err [StandardError] error object if request failed
|
365
|
+
#
|
366
|
+
# @return [Google::Apis::IapV1::TestIamPermissionsResponse]
|
367
|
+
#
|
368
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
369
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
370
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
371
|
+
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
372
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
373
|
+
command.request_representation = Google::Apis::IapV1::TestIamPermissionsRequest::Representation
|
374
|
+
command.request_object = test_iam_permissions_request_object
|
375
|
+
command.response_representation = Google::Apis::IapV1::TestIamPermissionsResponse::Representation
|
376
|
+
command.response_class = Google::Apis::IapV1::TestIamPermissionsResponse
|
377
|
+
command.params['resource'] = resource unless resource.nil?
|
378
|
+
command.query['fields'] = fields unless fields.nil?
|
379
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
380
|
+
execute_or_queue_command(command, &block)
|
381
|
+
end
|
382
|
+
|
383
|
+
# Gets the access control policy for an Identity-Aware Proxy protected
|
384
|
+
# resource.
|
385
|
+
# More information about managing access via IAP can be found at:
|
386
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
387
|
+
# @param [String] resource
|
388
|
+
# REQUIRED: The resource for which the policy is being requested.
|
389
|
+
# See the operation documentation for the appropriate value for this field.
|
390
|
+
# @param [Google::Apis::IapV1::GetIamPolicyRequest] get_iam_policy_request_object
|
391
|
+
# @param [String] fields
|
392
|
+
# Selector specifying which fields to include in a partial response.
|
393
|
+
# @param [String] quota_user
|
394
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
395
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
396
|
+
# @param [Google::Apis::RequestOptions] options
|
397
|
+
# Request-specific options
|
398
|
+
#
|
399
|
+
# @yield [result, err] Result & error if block supplied
|
400
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
401
|
+
# @yieldparam err [StandardError] error object if request failed
|
402
|
+
#
|
403
|
+
# @return [Google::Apis::IapV1::Policy]
|
404
|
+
#
|
405
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
406
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
|
+
def get_iap_web_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
409
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
410
|
+
command.request_representation = Google::Apis::IapV1::GetIamPolicyRequest::Representation
|
411
|
+
command.request_object = get_iam_policy_request_object
|
412
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
413
|
+
command.response_class = Google::Apis::IapV1::Policy
|
414
|
+
command.params['resource'] = resource unless resource.nil?
|
415
|
+
command.query['fields'] = fields unless fields.nil?
|
416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
417
|
+
execute_or_queue_command(command, &block)
|
418
|
+
end
|
419
|
+
|
420
|
+
# Sets the access control policy for an Identity-Aware Proxy protected
|
421
|
+
# resource. Replaces any existing policy.
|
422
|
+
# More information about managing access via IAP can be found at:
|
423
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
424
|
+
# @param [String] resource
|
425
|
+
# REQUIRED: The resource for which the policy is being specified.
|
426
|
+
# See the operation documentation for the appropriate value for this field.
|
427
|
+
# @param [Google::Apis::IapV1::SetIamPolicyRequest] set_iam_policy_request_object
|
428
|
+
# @param [String] fields
|
429
|
+
# Selector specifying which fields to include in a partial response.
|
430
|
+
# @param [String] quota_user
|
431
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
432
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
433
|
+
# @param [Google::Apis::RequestOptions] options
|
434
|
+
# Request-specific options
|
435
|
+
#
|
436
|
+
# @yield [result, err] Result & error if block supplied
|
437
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
438
|
+
# @yieldparam err [StandardError] error object if request failed
|
439
|
+
#
|
440
|
+
# @return [Google::Apis::IapV1::Policy]
|
441
|
+
#
|
442
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
443
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
444
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
445
|
+
def set_iap_web_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
446
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
447
|
+
command.request_representation = Google::Apis::IapV1::SetIamPolicyRequest::Representation
|
448
|
+
command.request_object = set_iam_policy_request_object
|
449
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
450
|
+
command.response_class = Google::Apis::IapV1::Policy
|
451
|
+
command.params['resource'] = resource unless resource.nil?
|
452
|
+
command.query['fields'] = fields unless fields.nil?
|
453
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
454
|
+
execute_or_queue_command(command, &block)
|
455
|
+
end
|
456
|
+
|
457
|
+
# Returns permissions that a caller has on the Identity-Aware Proxy protected
|
458
|
+
# resource.
|
459
|
+
# More information about managing access via IAP can be found at:
|
460
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
461
|
+
# @param [String] resource
|
462
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
463
|
+
# See the operation documentation for the appropriate value for this field.
|
464
|
+
# @param [Google::Apis::IapV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
465
|
+
# @param [String] fields
|
466
|
+
# Selector specifying which fields to include in a partial response.
|
467
|
+
# @param [String] quota_user
|
468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
470
|
+
# @param [Google::Apis::RequestOptions] options
|
471
|
+
# Request-specific options
|
472
|
+
#
|
473
|
+
# @yield [result, err] Result & error if block supplied
|
474
|
+
# @yieldparam result [Google::Apis::IapV1::TestIamPermissionsResponse] parsed result object
|
475
|
+
# @yieldparam err [StandardError] error object if request failed
|
476
|
+
#
|
477
|
+
# @return [Google::Apis::IapV1::TestIamPermissionsResponse]
|
478
|
+
#
|
479
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
480
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
|
+
def test_iap_web_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
483
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
484
|
+
command.request_representation = Google::Apis::IapV1::TestIamPermissionsRequest::Representation
|
485
|
+
command.request_object = test_iam_permissions_request_object
|
486
|
+
command.response_representation = Google::Apis::IapV1::TestIamPermissionsResponse::Representation
|
487
|
+
command.response_class = Google::Apis::IapV1::TestIamPermissionsResponse
|
488
|
+
command.params['resource'] = resource unless resource.nil?
|
489
|
+
command.query['fields'] = fields unless fields.nil?
|
490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
491
|
+
execute_or_queue_command(command, &block)
|
492
|
+
end
|
493
|
+
|
494
|
+
# Gets the access control policy for an Identity-Aware Proxy protected
|
495
|
+
# resource.
|
496
|
+
# More information about managing access via IAP can be found at:
|
497
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
498
|
+
# @param [String] resource
|
499
|
+
# REQUIRED: The resource for which the policy is being requested.
|
500
|
+
# See the operation documentation for the appropriate value for this field.
|
501
|
+
# @param [Google::Apis::IapV1::GetIamPolicyRequest] get_iam_policy_request_object
|
502
|
+
# @param [String] fields
|
503
|
+
# Selector specifying which fields to include in a partial response.
|
504
|
+
# @param [String] quota_user
|
505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
507
|
+
# @param [Google::Apis::RequestOptions] options
|
508
|
+
# Request-specific options
|
509
|
+
#
|
510
|
+
# @yield [result, err] Result & error if block supplied
|
511
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
512
|
+
# @yieldparam err [StandardError] error object if request failed
|
513
|
+
#
|
514
|
+
# @return [Google::Apis::IapV1::Policy]
|
515
|
+
#
|
516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
519
|
+
def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
520
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
521
|
+
command.request_representation = Google::Apis::IapV1::GetIamPolicyRequest::Representation
|
522
|
+
command.request_object = get_iam_policy_request_object
|
523
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
524
|
+
command.response_class = Google::Apis::IapV1::Policy
|
525
|
+
command.params['resource'] = resource unless resource.nil?
|
526
|
+
command.query['fields'] = fields unless fields.nil?
|
527
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
528
|
+
execute_or_queue_command(command, &block)
|
529
|
+
end
|
530
|
+
|
531
|
+
# Sets the access control policy for an Identity-Aware Proxy protected
|
532
|
+
# resource. Replaces any existing policy.
|
533
|
+
# More information about managing access via IAP can be found at:
|
534
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
535
|
+
# @param [String] resource
|
536
|
+
# REQUIRED: The resource for which the policy is being specified.
|
537
|
+
# See the operation documentation for the appropriate value for this field.
|
538
|
+
# @param [Google::Apis::IapV1::SetIamPolicyRequest] set_iam_policy_request_object
|
539
|
+
# @param [String] fields
|
540
|
+
# Selector specifying which fields to include in a partial response.
|
541
|
+
# @param [String] quota_user
|
542
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
543
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
544
|
+
# @param [Google::Apis::RequestOptions] options
|
545
|
+
# Request-specific options
|
546
|
+
#
|
547
|
+
# @yield [result, err] Result & error if block supplied
|
548
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
549
|
+
# @yieldparam err [StandardError] error object if request failed
|
550
|
+
#
|
551
|
+
# @return [Google::Apis::IapV1::Policy]
|
552
|
+
#
|
553
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
554
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
555
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
556
|
+
def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
557
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
558
|
+
command.request_representation = Google::Apis::IapV1::SetIamPolicyRequest::Representation
|
559
|
+
command.request_object = set_iam_policy_request_object
|
560
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
561
|
+
command.response_class = Google::Apis::IapV1::Policy
|
562
|
+
command.params['resource'] = resource unless resource.nil?
|
563
|
+
command.query['fields'] = fields unless fields.nil?
|
564
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
565
|
+
execute_or_queue_command(command, &block)
|
566
|
+
end
|
567
|
+
|
568
|
+
# Returns permissions that a caller has on the Identity-Aware Proxy protected
|
569
|
+
# resource.
|
570
|
+
# More information about managing access via IAP can be found at:
|
571
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
572
|
+
# @param [String] resource
|
573
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
574
|
+
# See the operation documentation for the appropriate value for this field.
|
575
|
+
# @param [Google::Apis::IapV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
576
|
+
# @param [String] fields
|
577
|
+
# Selector specifying which fields to include in a partial response.
|
578
|
+
# @param [String] quota_user
|
579
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
580
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
581
|
+
# @param [Google::Apis::RequestOptions] options
|
582
|
+
# Request-specific options
|
583
|
+
#
|
584
|
+
# @yield [result, err] Result & error if block supplied
|
585
|
+
# @yieldparam result [Google::Apis::IapV1::TestIamPermissionsResponse] parsed result object
|
586
|
+
# @yieldparam err [StandardError] error object if request failed
|
587
|
+
#
|
588
|
+
# @return [Google::Apis::IapV1::TestIamPermissionsResponse]
|
589
|
+
#
|
590
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
591
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
592
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
593
|
+
def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
594
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
595
|
+
command.request_representation = Google::Apis::IapV1::TestIamPermissionsRequest::Representation
|
596
|
+
command.request_object = test_iam_permissions_request_object
|
597
|
+
command.response_representation = Google::Apis::IapV1::TestIamPermissionsResponse::Representation
|
598
|
+
command.response_class = Google::Apis::IapV1::TestIamPermissionsResponse
|
599
|
+
command.params['resource'] = resource unless resource.nil?
|
600
|
+
command.query['fields'] = fields unless fields.nil?
|
601
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
602
|
+
execute_or_queue_command(command, &block)
|
603
|
+
end
|
604
|
+
|
605
|
+
# Gets the access control policy for an Identity-Aware Proxy protected
|
606
|
+
# resource.
|
607
|
+
# More information about managing access via IAP can be found at:
|
608
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
609
|
+
# @param [String] resource
|
610
|
+
# REQUIRED: The resource for which the policy is being requested.
|
611
|
+
# See the operation documentation for the appropriate value for this field.
|
612
|
+
# @param [Google::Apis::IapV1::GetIamPolicyRequest] get_iam_policy_request_object
|
613
|
+
# @param [String] fields
|
614
|
+
# Selector specifying which fields to include in a partial response.
|
615
|
+
# @param [String] quota_user
|
616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
617
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
618
|
+
# @param [Google::Apis::RequestOptions] options
|
619
|
+
# Request-specific options
|
620
|
+
#
|
621
|
+
# @yield [result, err] Result & error if block supplied
|
622
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
623
|
+
# @yieldparam err [StandardError] error object if request failed
|
624
|
+
#
|
625
|
+
# @return [Google::Apis::IapV1::Policy]
|
626
|
+
#
|
627
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
628
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
629
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
630
|
+
def get_version_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
631
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
632
|
+
command.request_representation = Google::Apis::IapV1::GetIamPolicyRequest::Representation
|
633
|
+
command.request_object = get_iam_policy_request_object
|
634
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
635
|
+
command.response_class = Google::Apis::IapV1::Policy
|
636
|
+
command.params['resource'] = resource unless resource.nil?
|
637
|
+
command.query['fields'] = fields unless fields.nil?
|
638
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
639
|
+
execute_or_queue_command(command, &block)
|
640
|
+
end
|
641
|
+
|
642
|
+
# Sets the access control policy for an Identity-Aware Proxy protected
|
643
|
+
# resource. Replaces any existing policy.
|
644
|
+
# More information about managing access via IAP can be found at:
|
645
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
646
|
+
# @param [String] resource
|
647
|
+
# REQUIRED: The resource for which the policy is being specified.
|
648
|
+
# See the operation documentation for the appropriate value for this field.
|
649
|
+
# @param [Google::Apis::IapV1::SetIamPolicyRequest] set_iam_policy_request_object
|
650
|
+
# @param [String] fields
|
651
|
+
# Selector specifying which fields to include in a partial response.
|
652
|
+
# @param [String] quota_user
|
653
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
654
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
655
|
+
# @param [Google::Apis::RequestOptions] options
|
656
|
+
# Request-specific options
|
657
|
+
#
|
658
|
+
# @yield [result, err] Result & error if block supplied
|
659
|
+
# @yieldparam result [Google::Apis::IapV1::Policy] parsed result object
|
660
|
+
# @yieldparam err [StandardError] error object if request failed
|
661
|
+
#
|
662
|
+
# @return [Google::Apis::IapV1::Policy]
|
663
|
+
#
|
664
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
665
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
666
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
667
|
+
def set_version_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
668
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
669
|
+
command.request_representation = Google::Apis::IapV1::SetIamPolicyRequest::Representation
|
670
|
+
command.request_object = set_iam_policy_request_object
|
671
|
+
command.response_representation = Google::Apis::IapV1::Policy::Representation
|
672
|
+
command.response_class = Google::Apis::IapV1::Policy
|
673
|
+
command.params['resource'] = resource unless resource.nil?
|
674
|
+
command.query['fields'] = fields unless fields.nil?
|
675
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
676
|
+
execute_or_queue_command(command, &block)
|
677
|
+
end
|
678
|
+
|
679
|
+
# Returns permissions that a caller has on the Identity-Aware Proxy protected
|
680
|
+
# resource.
|
681
|
+
# More information about managing access via IAP can be found at:
|
682
|
+
# https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
|
683
|
+
# @param [String] resource
|
684
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
685
|
+
# See the operation documentation for the appropriate value for this field.
|
686
|
+
# @param [Google::Apis::IapV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
687
|
+
# @param [String] fields
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
689
|
+
# @param [String] quota_user
|
690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
692
|
+
# @param [Google::Apis::RequestOptions] options
|
693
|
+
# Request-specific options
|
694
|
+
#
|
695
|
+
# @yield [result, err] Result & error if block supplied
|
696
|
+
# @yieldparam result [Google::Apis::IapV1::TestIamPermissionsResponse] parsed result object
|
697
|
+
# @yieldparam err [StandardError] error object if request failed
|
698
|
+
#
|
699
|
+
# @return [Google::Apis::IapV1::TestIamPermissionsResponse]
|
700
|
+
#
|
701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
+
def test_version_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
705
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
706
|
+
command.request_representation = Google::Apis::IapV1::TestIamPermissionsRequest::Representation
|
707
|
+
command.request_object = test_iam_permissions_request_object
|
708
|
+
command.response_representation = Google::Apis::IapV1::TestIamPermissionsResponse::Representation
|
709
|
+
command.response_class = Google::Apis::IapV1::TestIamPermissionsResponse
|
710
|
+
command.params['resource'] = resource unless resource.nil?
|
711
|
+
command.query['fields'] = fields unless fields.nil?
|
712
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
713
|
+
execute_or_queue_command(command, &block)
|
714
|
+
end
|
715
|
+
|
716
|
+
protected
|
717
|
+
|
718
|
+
def apply_command_defaults(command)
|
719
|
+
command.query['key'] = key unless key.nil?
|
720
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
721
|
+
end
|
722
|
+
end
|
723
|
+
end
|
724
|
+
end
|
725
|
+
end
|