google-api-client 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
|
@@ -22,323 +22,324 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module IamV1
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class AuditData
|
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
27
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class BindingDelta
|
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
33
|
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class PolicyDelta
|
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
39
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class ListServiceAccountsResponse
|
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
45
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class CreateServiceAccountRequest
|
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
51
|
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class QueryGrantableRolesResponse
|
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
57
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class SignBlobRequest
|
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
63
|
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
class
|
|
67
|
+
class Role
|
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
69
|
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
class
|
|
73
|
+
class SetIamPolicyRequest
|
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
75
|
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Binding
|
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
81
|
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
class
|
|
85
|
+
class ServiceAccount
|
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
87
|
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
class
|
|
91
|
+
class Empty
|
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
93
|
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class QueryGrantableRolesRequest
|
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
99
|
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
class
|
|
103
|
+
class TestIamPermissionsResponse
|
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
105
|
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
class
|
|
109
|
+
class ListServiceAccountKeysResponse
|
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
111
|
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class
|
|
115
|
+
class ServiceAccountKey
|
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
117
|
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class CreateServiceAccountKeyRequest
|
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
123
123
|
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
class
|
|
127
|
+
class TestIamPermissionsRequest
|
|
128
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
129
|
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
class
|
|
133
|
+
class SignBlobResponse
|
|
134
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
135
|
|
|
136
136
|
include Google::Apis::Core::JsonObjectSupport
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
class
|
|
139
|
+
class SignJwtResponse
|
|
140
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
141
|
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
class
|
|
145
|
+
class SignJwtRequest
|
|
146
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
147
|
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
class
|
|
151
|
+
class Policy
|
|
152
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
153
153
|
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
class
|
|
157
|
+
class AuditData
|
|
158
158
|
# @private
|
|
159
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
160
|
-
property :
|
|
160
|
+
property :policy_delta, as: 'policyDelta', class: Google::Apis::IamV1::PolicyDelta, decorator: Google::Apis::IamV1::PolicyDelta::Representation
|
|
161
161
|
|
|
162
162
|
end
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
class
|
|
165
|
+
class BindingDelta
|
|
166
166
|
# @private
|
|
167
167
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
168
|
-
|
|
168
|
+
property :action, as: 'action'
|
|
169
|
+
property :member, as: 'member'
|
|
169
170
|
property :role, as: 'role'
|
|
170
171
|
end
|
|
171
172
|
end
|
|
172
173
|
|
|
173
|
-
class
|
|
174
|
+
class PolicyDelta
|
|
174
175
|
# @private
|
|
175
176
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
property :email, as: 'email'
|
|
179
|
-
property :name, as: 'name'
|
|
180
|
-
property :project_id, as: 'projectId'
|
|
181
|
-
property :unique_id, as: 'uniqueId'
|
|
182
|
-
property :oauth2_client_id, as: 'oauth2ClientId'
|
|
177
|
+
collection :binding_deltas, as: 'bindingDeltas', class: Google::Apis::IamV1::BindingDelta, decorator: Google::Apis::IamV1::BindingDelta::Representation
|
|
178
|
+
|
|
183
179
|
end
|
|
184
180
|
end
|
|
185
181
|
|
|
186
|
-
class
|
|
182
|
+
class ListServiceAccountsResponse
|
|
187
183
|
# @private
|
|
188
184
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
185
|
+
property :next_page_token, as: 'nextPageToken'
|
|
186
|
+
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
|
187
|
+
|
|
189
188
|
end
|
|
190
189
|
end
|
|
191
190
|
|
|
192
|
-
class
|
|
191
|
+
class CreateServiceAccountRequest
|
|
193
192
|
# @private
|
|
194
193
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
195
|
-
property :
|
|
196
|
-
property :
|
|
197
|
-
|
|
194
|
+
property :account_id, as: 'accountId'
|
|
195
|
+
property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
|
196
|
+
|
|
198
197
|
end
|
|
199
198
|
end
|
|
200
199
|
|
|
201
|
-
class
|
|
200
|
+
class QueryGrantableRolesResponse
|
|
202
201
|
# @private
|
|
203
202
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
204
|
-
collection :
|
|
203
|
+
collection :roles, as: 'roles', class: Google::Apis::IamV1::Role, decorator: Google::Apis::IamV1::Role::Representation
|
|
204
|
+
|
|
205
|
+
property :next_page_token, as: 'nextPageToken'
|
|
205
206
|
end
|
|
206
207
|
end
|
|
207
208
|
|
|
208
|
-
class
|
|
209
|
+
class SignBlobRequest
|
|
209
210
|
# @private
|
|
210
211
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
|
|
213
213
|
end
|
|
214
214
|
end
|
|
215
215
|
|
|
216
|
-
class
|
|
216
|
+
class Role
|
|
217
217
|
# @private
|
|
218
218
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
219
|
+
property :title, as: 'title'
|
|
219
220
|
property :name, as: 'name'
|
|
220
|
-
property :
|
|
221
|
-
property :key_algorithm, as: 'keyAlgorithm'
|
|
222
|
-
property :private_key_type, as: 'privateKeyType'
|
|
223
|
-
property :valid_after_time, as: 'validAfterTime'
|
|
224
|
-
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
|
225
|
-
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
|
221
|
+
property :description, as: 'description'
|
|
226
222
|
end
|
|
227
223
|
end
|
|
228
224
|
|
|
229
|
-
class
|
|
225
|
+
class SetIamPolicyRequest
|
|
230
226
|
# @private
|
|
231
227
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
232
|
-
property :
|
|
233
|
-
|
|
228
|
+
property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
|
|
229
|
+
|
|
234
230
|
end
|
|
235
231
|
end
|
|
236
232
|
|
|
237
|
-
class
|
|
233
|
+
class Binding
|
|
238
234
|
# @private
|
|
239
235
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
240
|
-
collection :
|
|
236
|
+
collection :members, as: 'members'
|
|
237
|
+
property :role, as: 'role'
|
|
241
238
|
end
|
|
242
239
|
end
|
|
243
240
|
|
|
244
|
-
class
|
|
241
|
+
class ServiceAccount
|
|
245
242
|
# @private
|
|
246
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
247
|
-
property :
|
|
248
|
-
property :
|
|
244
|
+
property :etag, :base64 => true, as: 'etag'
|
|
245
|
+
property :name, as: 'name'
|
|
246
|
+
property :email, as: 'email'
|
|
247
|
+
property :project_id, as: 'projectId'
|
|
248
|
+
property :oauth2_client_id, as: 'oauth2ClientId'
|
|
249
|
+
property :unique_id, as: 'uniqueId'
|
|
250
|
+
property :display_name, as: 'displayName'
|
|
249
251
|
end
|
|
250
252
|
end
|
|
251
253
|
|
|
252
|
-
class
|
|
254
|
+
class Empty
|
|
253
255
|
# @private
|
|
254
256
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
255
|
-
property :key_id, as: 'keyId'
|
|
256
|
-
property :signed_jwt, as: 'signedJwt'
|
|
257
257
|
end
|
|
258
258
|
end
|
|
259
259
|
|
|
260
|
-
class
|
|
260
|
+
class QueryGrantableRolesRequest
|
|
261
261
|
# @private
|
|
262
262
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
263
|
-
property :
|
|
264
|
-
property :
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
property :full_resource_name, as: 'fullResourceName'
|
|
264
|
+
property :page_token, as: 'pageToken'
|
|
265
|
+
property :page_size, as: 'pageSize'
|
|
267
266
|
end
|
|
268
267
|
end
|
|
269
268
|
|
|
270
|
-
class
|
|
269
|
+
class TestIamPermissionsResponse
|
|
271
270
|
# @private
|
|
272
271
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
273
|
-
|
|
272
|
+
collection :permissions, as: 'permissions'
|
|
274
273
|
end
|
|
275
274
|
end
|
|
276
275
|
|
|
277
|
-
class
|
|
276
|
+
class ListServiceAccountKeysResponse
|
|
278
277
|
# @private
|
|
279
278
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
280
|
-
|
|
279
|
+
collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
|
|
281
280
|
|
|
282
281
|
end
|
|
283
282
|
end
|
|
284
283
|
|
|
285
|
-
class
|
|
284
|
+
class ServiceAccountKey
|
|
286
285
|
# @private
|
|
287
286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
288
|
-
property :
|
|
289
|
-
property :
|
|
290
|
-
property :
|
|
287
|
+
property :valid_after_time, as: 'validAfterTime'
|
|
288
|
+
property :private_key_type, as: 'privateKeyType'
|
|
289
|
+
property :private_key_data, :base64 => true, as: 'privateKeyData'
|
|
290
|
+
property :public_key_data, :base64 => true, as: 'publicKeyData'
|
|
291
|
+
property :name, as: 'name'
|
|
292
|
+
property :valid_before_time, as: 'validBeforeTime'
|
|
293
|
+
property :key_algorithm, as: 'keyAlgorithm'
|
|
291
294
|
end
|
|
292
295
|
end
|
|
293
296
|
|
|
294
|
-
class
|
|
297
|
+
class CreateServiceAccountKeyRequest
|
|
295
298
|
# @private
|
|
296
299
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
297
|
-
|
|
298
|
-
|
|
300
|
+
property :include_public_key_data, as: 'includePublicKeyData'
|
|
301
|
+
property :key_algorithm, as: 'keyAlgorithm'
|
|
302
|
+
property :private_key_type, as: 'privateKeyType'
|
|
299
303
|
end
|
|
300
304
|
end
|
|
301
305
|
|
|
302
|
-
class
|
|
306
|
+
class TestIamPermissionsRequest
|
|
303
307
|
# @private
|
|
304
308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
305
|
-
|
|
306
|
-
collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
|
|
307
|
-
|
|
309
|
+
collection :permissions, as: 'permissions'
|
|
308
310
|
end
|
|
309
311
|
end
|
|
310
312
|
|
|
311
|
-
class
|
|
313
|
+
class SignBlobResponse
|
|
312
314
|
# @private
|
|
313
315
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
314
|
-
property :
|
|
315
|
-
|
|
316
|
-
property :account_id, as: 'accountId'
|
|
316
|
+
property :key_id, as: 'keyId'
|
|
317
|
+
property :signature, :base64 => true, as: 'signature'
|
|
317
318
|
end
|
|
318
319
|
end
|
|
319
320
|
|
|
320
|
-
class
|
|
321
|
+
class SignJwtResponse
|
|
321
322
|
# @private
|
|
322
323
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
property :next_page_token, as: 'nextPageToken'
|
|
324
|
+
property :key_id, as: 'keyId'
|
|
325
|
+
property :signed_jwt, as: 'signedJwt'
|
|
326
326
|
end
|
|
327
327
|
end
|
|
328
328
|
|
|
329
|
-
class
|
|
329
|
+
class SignJwtRequest
|
|
330
330
|
# @private
|
|
331
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
332
|
-
property :
|
|
333
|
-
property :name, as: 'name'
|
|
334
|
-
property :description, as: 'description'
|
|
332
|
+
property :payload, as: 'payload'
|
|
335
333
|
end
|
|
336
334
|
end
|
|
337
335
|
|
|
338
|
-
class
|
|
336
|
+
class Policy
|
|
339
337
|
# @private
|
|
340
338
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
341
|
-
property :
|
|
339
|
+
property :etag, :base64 => true, as: 'etag'
|
|
340
|
+
property :version, as: 'version'
|
|
341
|
+
collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
|
|
342
|
+
|
|
342
343
|
end
|
|
343
344
|
end
|
|
344
345
|
end
|
|
@@ -34,21 +34,53 @@ module Google
|
|
|
34
34
|
#
|
|
35
35
|
# @see https://cloud.google.com/iam/
|
|
36
36
|
class IamService < Google::Apis::Core::BaseService
|
|
37
|
-
# @return [String]
|
|
38
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
39
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
40
|
-
attr_accessor :quota_user
|
|
41
|
-
|
|
42
37
|
# @return [String]
|
|
43
38
|
# API key. Your API key identifies your project and provides you with API access,
|
|
44
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
45
40
|
attr_accessor :key
|
|
46
41
|
|
|
42
|
+
# @return [String]
|
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
45
|
+
attr_accessor :quota_user
|
|
46
|
+
|
|
47
47
|
def initialize
|
|
48
48
|
super('https://iam.googleapis.com/', '')
|
|
49
49
|
@batch_path = 'batch'
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
# Queries roles that can be granted on a particular resource.
|
|
53
|
+
# A role is grantable if it can be used as the role in a binding for a policy
|
|
54
|
+
# for that resource.
|
|
55
|
+
# @param [Google::Apis::IamV1::QueryGrantableRolesRequest] query_grantable_roles_request_object
|
|
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 [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
|
62
|
+
# Request-specific options
|
|
63
|
+
#
|
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
|
65
|
+
# @yieldparam result [Google::Apis::IamV1::QueryGrantableRolesResponse] parsed result object
|
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67
|
+
#
|
|
68
|
+
# @return [Google::Apis::IamV1::QueryGrantableRolesResponse]
|
|
69
|
+
#
|
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
73
|
+
def query_grantable_roles(query_grantable_roles_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
74
|
+
command = make_simple_command(:post, 'v1/roles:queryGrantableRoles', options)
|
|
75
|
+
command.request_representation = Google::Apis::IamV1::QueryGrantableRolesRequest::Representation
|
|
76
|
+
command.request_object = query_grantable_roles_request_object
|
|
77
|
+
command.response_representation = Google::Apis::IamV1::QueryGrantableRolesResponse::Representation
|
|
78
|
+
command.response_class = Google::Apis::IamV1::QueryGrantableRolesResponse
|
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
|
81
|
+
execute_or_queue_command(command, &block)
|
|
82
|
+
end
|
|
83
|
+
|
|
52
84
|
# Deletes a ServiceAccount.
|
|
53
85
|
# @param [String] name
|
|
54
86
|
# The resource name of the service account in the following format:
|
|
@@ -161,12 +193,12 @@ module Google
|
|
|
161
193
|
execute_or_queue_command(command, &block)
|
|
162
194
|
end
|
|
163
195
|
|
|
164
|
-
#
|
|
165
|
-
#
|
|
166
|
-
# @param [String]
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
# @param [Google::Apis::IamV1::
|
|
196
|
+
# Sets the IAM access control policy for a
|
|
197
|
+
# ServiceAccount.
|
|
198
|
+
# @param [String] resource
|
|
199
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
200
|
+
# See the operation documentation for the appropriate value for this field.
|
|
201
|
+
# @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
170
202
|
# @param [String] quota_user
|
|
171
203
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
172
204
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -176,32 +208,32 @@ module Google
|
|
|
176
208
|
# Request-specific options
|
|
177
209
|
#
|
|
178
210
|
# @yield [result, err] Result & error if block supplied
|
|
179
|
-
# @yieldparam result [Google::Apis::IamV1::
|
|
211
|
+
# @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
|
|
180
212
|
# @yieldparam err [StandardError] error object if request failed
|
|
181
213
|
#
|
|
182
|
-
# @return [Google::Apis::IamV1::
|
|
214
|
+
# @return [Google::Apis::IamV1::Policy]
|
|
183
215
|
#
|
|
184
216
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
185
217
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
186
218
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
187
|
-
def
|
|
188
|
-
command = make_simple_command(:post, 'v1/{+
|
|
189
|
-
command.request_representation = Google::Apis::IamV1::
|
|
190
|
-
command.request_object =
|
|
191
|
-
command.response_representation = Google::Apis::IamV1::
|
|
192
|
-
command.response_class = Google::Apis::IamV1::
|
|
193
|
-
command.params['
|
|
219
|
+
def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
220
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
221
|
+
command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
|
|
222
|
+
command.request_object = set_iam_policy_request_object
|
|
223
|
+
command.response_representation = Google::Apis::IamV1::Policy::Representation
|
|
224
|
+
command.response_class = Google::Apis::IamV1::Policy
|
|
225
|
+
command.params['resource'] = resource unless resource.nil?
|
|
194
226
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
195
227
|
command.query['fields'] = fields unless fields.nil?
|
|
196
228
|
execute_or_queue_command(command, &block)
|
|
197
229
|
end
|
|
198
230
|
|
|
199
|
-
#
|
|
200
|
-
#
|
|
201
|
-
# @param [String]
|
|
202
|
-
#
|
|
203
|
-
#
|
|
204
|
-
# @param [Google::Apis::IamV1::
|
|
231
|
+
# Creates a ServiceAccount
|
|
232
|
+
# and returns it.
|
|
233
|
+
# @param [String] name
|
|
234
|
+
# Required. The resource name of the project associated with the service
|
|
235
|
+
# accounts, such as `projects/my-project-123`.
|
|
236
|
+
# @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
|
|
205
237
|
# @param [String] quota_user
|
|
206
238
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
207
239
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -211,21 +243,21 @@ module Google
|
|
|
211
243
|
# Request-specific options
|
|
212
244
|
#
|
|
213
245
|
# @yield [result, err] Result & error if block supplied
|
|
214
|
-
# @yieldparam result [Google::Apis::IamV1::
|
|
246
|
+
# @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
|
|
215
247
|
# @yieldparam err [StandardError] error object if request failed
|
|
216
248
|
#
|
|
217
|
-
# @return [Google::Apis::IamV1::
|
|
249
|
+
# @return [Google::Apis::IamV1::ServiceAccount]
|
|
218
250
|
#
|
|
219
251
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
220
252
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
221
253
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
222
|
-
def
|
|
223
|
-
command = make_simple_command(:post, 'v1/{+
|
|
224
|
-
command.request_representation = Google::Apis::IamV1::
|
|
225
|
-
command.request_object =
|
|
226
|
-
command.response_representation = Google::Apis::IamV1::
|
|
227
|
-
command.response_class = Google::Apis::IamV1::
|
|
228
|
-
command.params['
|
|
254
|
+
def create_service_account(name, create_service_account_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
255
|
+
command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
|
|
256
|
+
command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
|
|
257
|
+
command.request_object = create_service_account_request_object
|
|
258
|
+
command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
|
|
259
|
+
command.response_class = Google::Apis::IamV1::ServiceAccount
|
|
260
|
+
command.params['name'] = name unless name.nil?
|
|
229
261
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
230
262
|
command.query['fields'] = fields unless fields.nil?
|
|
231
263
|
execute_or_queue_command(command, &block)
|
|
@@ -414,44 +446,6 @@ module Google
|
|
|
414
446
|
execute_or_queue_command(command, &block)
|
|
415
447
|
end
|
|
416
448
|
|
|
417
|
-
# Creates a ServiceAccountKey
|
|
418
|
-
# and returns it.
|
|
419
|
-
# @param [String] name
|
|
420
|
-
# The resource name of the service account in the following format:
|
|
421
|
-
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
422
|
-
# Using `-` as a wildcard for the project will infer the project from
|
|
423
|
-
# the account. The `account` value can be the `email` address or the
|
|
424
|
-
# `unique_id` of the service account.
|
|
425
|
-
# @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
|
|
426
|
-
# @param [String] quota_user
|
|
427
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
428
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
429
|
-
# @param [String] fields
|
|
430
|
-
# Selector specifying which fields to include in a partial response.
|
|
431
|
-
# @param [Google::Apis::RequestOptions] options
|
|
432
|
-
# Request-specific options
|
|
433
|
-
#
|
|
434
|
-
# @yield [result, err] Result & error if block supplied
|
|
435
|
-
# @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
|
|
436
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
437
|
-
#
|
|
438
|
-
# @return [Google::Apis::IamV1::ServiceAccountKey]
|
|
439
|
-
#
|
|
440
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
441
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
442
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
443
|
-
def create_service_account_key(name, create_service_account_key_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
444
|
-
command = make_simple_command(:post, 'v1/{+name}/keys', options)
|
|
445
|
-
command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
|
|
446
|
-
command.request_object = create_service_account_key_request_object
|
|
447
|
-
command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
|
|
448
|
-
command.response_class = Google::Apis::IamV1::ServiceAccountKey
|
|
449
|
-
command.params['name'] = name unless name.nil?
|
|
450
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
451
|
-
command.query['fields'] = fields unless fields.nil?
|
|
452
|
-
execute_or_queue_command(command, &block)
|
|
453
|
-
end
|
|
454
|
-
|
|
455
449
|
# Deletes a ServiceAccountKey.
|
|
456
450
|
# @param [String] name
|
|
457
451
|
# The resource name of the service account key in the following format:
|
|
@@ -564,10 +558,15 @@ module Google
|
|
|
564
558
|
execute_or_queue_command(command, &block)
|
|
565
559
|
end
|
|
566
560
|
|
|
567
|
-
#
|
|
568
|
-
#
|
|
569
|
-
#
|
|
570
|
-
#
|
|
561
|
+
# Creates a ServiceAccountKey
|
|
562
|
+
# and returns it.
|
|
563
|
+
# @param [String] name
|
|
564
|
+
# The resource name of the service account in the following format:
|
|
565
|
+
# `projects/`PROJECT_ID`/serviceAccounts/`SERVICE_ACCOUNT_EMAIL``.
|
|
566
|
+
# Using `-` as a wildcard for the project will infer the project from
|
|
567
|
+
# the account. The `account` value can be the `email` address or the
|
|
568
|
+
# `unique_id` of the service account.
|
|
569
|
+
# @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
|
|
571
570
|
# @param [String] quota_user
|
|
572
571
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
573
572
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -577,20 +576,21 @@ module Google
|
|
|
577
576
|
# Request-specific options
|
|
578
577
|
#
|
|
579
578
|
# @yield [result, err] Result & error if block supplied
|
|
580
|
-
# @yieldparam result [Google::Apis::IamV1::
|
|
579
|
+
# @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
|
|
581
580
|
# @yieldparam err [StandardError] error object if request failed
|
|
582
581
|
#
|
|
583
|
-
# @return [Google::Apis::IamV1::
|
|
582
|
+
# @return [Google::Apis::IamV1::ServiceAccountKey]
|
|
584
583
|
#
|
|
585
584
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
586
585
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
587
586
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
588
|
-
def
|
|
589
|
-
command = make_simple_command(:post, 'v1/
|
|
590
|
-
command.request_representation = Google::Apis::IamV1::
|
|
591
|
-
command.request_object =
|
|
592
|
-
command.response_representation = Google::Apis::IamV1::
|
|
593
|
-
command.response_class = Google::Apis::IamV1::
|
|
587
|
+
def create_service_account_key(name, create_service_account_key_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
588
|
+
command = make_simple_command(:post, 'v1/{+name}/keys', options)
|
|
589
|
+
command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
|
|
590
|
+
command.request_object = create_service_account_key_request_object
|
|
591
|
+
command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
|
|
592
|
+
command.response_class = Google::Apis::IamV1::ServiceAccountKey
|
|
593
|
+
command.params['name'] = name unless name.nil?
|
|
594
594
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
595
595
|
command.query['fields'] = fields unless fields.nil?
|
|
596
596
|
execute_or_queue_command(command, &block)
|
|
@@ -599,8 +599,8 @@ module Google
|
|
|
599
599
|
protected
|
|
600
600
|
|
|
601
601
|
def apply_command_defaults(command)
|
|
602
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
603
602
|
command.query['key'] = key unless key.nil?
|
|
603
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
604
604
|
end
|
|
605
605
|
end
|
|
606
606
|
end
|