google-api-client 0.10.2 → 0.10.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 +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- 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 +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -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 +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- 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 +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- 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/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- 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 +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
|
@@ -47,15 +47,33 @@ module Google
|
|
|
47
47
|
super('https://cloudresourcemanager.googleapis.com/', '')
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
50
|
+
# Marks the Project identified by the specified
|
|
51
|
+
# `project_id` (for example, `my-project-123`) for deletion.
|
|
52
|
+
# This method will only affect the Project if the following criteria are met:
|
|
53
|
+
# + The Project does not have a billing account associated with it.
|
|
54
|
+
# + The Project has a lifecycle state of
|
|
55
|
+
# ACTIVE.
|
|
56
|
+
# This method changes the Project's lifecycle state from
|
|
57
|
+
# ACTIVE
|
|
58
|
+
# to DELETE_REQUESTED.
|
|
59
|
+
# The deletion starts at an unspecified time, at which point the project is
|
|
60
|
+
# no longer accessible.
|
|
61
|
+
# Until the deletion completes, you can check the lifecycle state
|
|
62
|
+
# checked by retrieving the Project with GetProject,
|
|
63
|
+
# and the Project remains visible to ListProjects.
|
|
64
|
+
# However, you cannot update the project.
|
|
65
|
+
# After the deletion completes, the Project is not retrievable by
|
|
66
|
+
# the GetProject and
|
|
67
|
+
# ListProjects methods.
|
|
68
|
+
# The caller must have modify permissions for this Project.
|
|
69
|
+
# @param [String] project_id
|
|
70
|
+
# The Project ID (for example, `foo-bar-123`).
|
|
71
|
+
# Required.
|
|
72
|
+
# @param [String] fields
|
|
73
|
+
# Selector specifying which fields to include in a partial response.
|
|
54
74
|
# @param [String] quota_user
|
|
55
75
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
56
76
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
57
|
-
# @param [String] fields
|
|
58
|
-
# Selector specifying which fields to include in a partial response.
|
|
59
77
|
# @param [Google::Apis::RequestOptions] options
|
|
60
78
|
# Request-specific options
|
|
61
79
|
#
|
|
@@ -68,30 +86,111 @@ module Google
|
|
|
68
86
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
69
87
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
70
88
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
71
|
-
def
|
|
72
|
-
command = make_simple_command(:
|
|
73
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::ClearOrgPolicyRequest::Representation
|
|
74
|
-
command.request_object = clear_org_policy_request_object
|
|
89
|
+
def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
90
|
+
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
|
|
75
91
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
76
92
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
77
|
-
command.params['
|
|
93
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
94
|
+
command.query['fields'] = fields unless fields.nil?
|
|
78
95
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
96
|
+
execute_or_queue_command(command, &block)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Lists Projects that are visible to the user and satisfy the
|
|
100
|
+
# specified filter. This method returns Projects in an unspecified order.
|
|
101
|
+
# New Projects do not necessarily appear at the end of the list.
|
|
102
|
+
# @param [String] page_token
|
|
103
|
+
# A pagination token returned from a previous call to ListProjects
|
|
104
|
+
# that indicates from where listing should continue.
|
|
105
|
+
# Optional.
|
|
106
|
+
# @param [Fixnum] page_size
|
|
107
|
+
# The maximum number of Projects to return in the response.
|
|
108
|
+
# The server can return fewer Projects than requested.
|
|
109
|
+
# If unspecified, server picks an appropriate default.
|
|
110
|
+
# Optional.
|
|
111
|
+
# @param [String] filter
|
|
112
|
+
# An expression for filtering the results of the request. Filter rules are
|
|
113
|
+
# case insensitive. The fields eligible for filtering are:
|
|
114
|
+
# + `name`
|
|
115
|
+
# + `id`
|
|
116
|
+
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
|
117
|
+
# Some examples of using labels as filters:
|
|
118
|
+
# |Filter|Description|
|
|
119
|
+
# |------|-----------|
|
|
120
|
+
# |name:*|The project has a name.|
|
|
121
|
+
# |name:Howl|The project's name is `Howl` or `howl`.|
|
|
122
|
+
# |name:HOWL|Equivalent to above.|
|
|
123
|
+
# |NAME:howl|Equivalent to above.|
|
|
124
|
+
# |labels.color:*|The project has the label `color`.|
|
|
125
|
+
# |labels.color:red|The project's label `color` has the value `red`.|
|
|
126
|
+
# |labels.color:red labels.size:big|The project's label `color` has the
|
|
127
|
+
# value `red` and its label `size` has the value `big`.
|
|
128
|
+
# Optional.
|
|
129
|
+
# @param [String] fields
|
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
|
131
|
+
# @param [String] quota_user
|
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
|
135
|
+
# Request-specific options
|
|
136
|
+
#
|
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
|
138
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
|
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
140
|
+
#
|
|
141
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
|
|
142
|
+
#
|
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
146
|
+
def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
147
|
+
command = make_simple_command(:get, 'v1beta1/projects', options)
|
|
148
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
|
149
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
|
150
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
151
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
152
|
+
command.query['filter'] = filter unless filter.nil?
|
|
79
153
|
command.query['fields'] = fields unless fields.nil?
|
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
155
|
execute_or_queue_command(command, &block)
|
|
81
156
|
end
|
|
82
157
|
|
|
83
|
-
# Sets the access control policy
|
|
84
|
-
# existing policy.
|
|
85
|
-
#
|
|
158
|
+
# Sets the IAM access control policy for the specified Project. Replaces
|
|
159
|
+
# any existing policy.
|
|
160
|
+
# The following constraints apply when using `setIamPolicy()`:
|
|
161
|
+
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
|
162
|
+
# `members` in a `Binding` of a `Policy`.
|
|
163
|
+
# + The owner role can be granted only to `user` and `serviceAccount`.
|
|
164
|
+
# + Service accounts can be made owners of a project directly
|
|
165
|
+
# without any restrictions. However, to be added as an owner, a user must be
|
|
166
|
+
# invited via Cloud Platform console and must accept the invitation.
|
|
167
|
+
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
|
168
|
+
# must be granted the owner role using the Cloud Platform Console and must
|
|
169
|
+
# explicitly accept the invitation.
|
|
170
|
+
# + Invitations to grant the owner role cannot be sent using
|
|
171
|
+
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
|
|
172
|
+
# + Membership changes that leave the project without any owners that have
|
|
173
|
+
# accepted the Terms of Service (ToS) will be rejected.
|
|
174
|
+
# + There must be at least one owner who has accepted the Terms of
|
|
175
|
+
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
|
176
|
+
# remove the last ToS-accepted owner from the policy will fail. This
|
|
177
|
+
# restriction also applies to legacy projects that no longer have owners
|
|
178
|
+
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
|
179
|
+
# the lack of a ToS-accepting owner is rectified.
|
|
180
|
+
# + Calling this method requires enabling the App Engine Admin API.
|
|
181
|
+
# Note: Removing service accounts from policies or changing their roles
|
|
182
|
+
# can render services completely inoperable. It is important to understand
|
|
183
|
+
# how the service account is being used before removing or updating its
|
|
184
|
+
# roles.
|
|
86
185
|
# @param [String] resource
|
|
87
186
|
# REQUIRED: The resource for which the policy is being specified.
|
|
88
187
|
# See the operation documentation for the appropriate value for this field.
|
|
89
188
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
189
|
+
# @param [String] fields
|
|
190
|
+
# Selector specifying which fields to include in a partial response.
|
|
90
191
|
# @param [String] quota_user
|
|
91
192
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
92
193
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
93
|
-
# @param [String] fields
|
|
94
|
-
# Selector specifying which fields to include in a partial response.
|
|
95
194
|
# @param [Google::Apis::RequestOptions] options
|
|
96
195
|
# Request-specific options
|
|
97
196
|
#
|
|
@@ -104,63 +203,67 @@ module Google
|
|
|
104
203
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
105
204
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
106
205
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
107
|
-
def
|
|
108
|
-
command = make_simple_command(:post, 'v1beta1/{
|
|
206
|
+
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
207
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
|
|
109
208
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
|
110
209
|
command.request_object = set_iam_policy_request_object
|
|
111
210
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
112
211
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
113
212
|
command.params['resource'] = resource unless resource.nil?
|
|
114
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
115
213
|
command.query['fields'] = fields unless fields.nil?
|
|
214
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
116
215
|
execute_or_queue_command(command, &block)
|
|
117
216
|
end
|
|
118
217
|
|
|
119
|
-
#
|
|
120
|
-
#
|
|
121
|
-
#
|
|
122
|
-
#
|
|
218
|
+
# Creates a Project resource.
|
|
219
|
+
# Initially, the Project resource is owned by its creator exclusively.
|
|
220
|
+
# The creator can later grant permission to others to read or update the
|
|
221
|
+
# Project.
|
|
222
|
+
# Several APIs are activated automatically for the Project, including
|
|
223
|
+
# Google Cloud Storage.
|
|
224
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
225
|
+
# @param [Boolean] use_legacy_stack
|
|
226
|
+
# A safety hatch to opt out of the new reliable project creation process.
|
|
227
|
+
# @param [String] fields
|
|
228
|
+
# Selector specifying which fields to include in a partial response.
|
|
123
229
|
# @param [String] quota_user
|
|
124
230
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
125
231
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
126
|
-
# @param [String] fields
|
|
127
|
-
# Selector specifying which fields to include in a partial response.
|
|
128
232
|
# @param [Google::Apis::RequestOptions] options
|
|
129
233
|
# Request-specific options
|
|
130
234
|
#
|
|
131
235
|
# @yield [result, err] Result & error if block supplied
|
|
132
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
236
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
133
237
|
# @yieldparam err [StandardError] error object if request failed
|
|
134
238
|
#
|
|
135
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
239
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
136
240
|
#
|
|
137
241
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
138
242
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
139
243
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
140
|
-
def
|
|
141
|
-
command = make_simple_command(:post, 'v1beta1/
|
|
142
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
143
|
-
command.request_object =
|
|
144
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
145
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
146
|
-
command.
|
|
147
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
244
|
+
def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
245
|
+
command = make_simple_command(:post, 'v1beta1/projects', options)
|
|
246
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
247
|
+
command.request_object = project_object
|
|
248
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
249
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
250
|
+
command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
|
|
148
251
|
command.query['fields'] = fields unless fields.nil?
|
|
252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
149
253
|
execute_or_queue_command(command, &block)
|
|
150
254
|
end
|
|
151
255
|
|
|
152
|
-
#
|
|
153
|
-
# if
|
|
154
|
-
# organization's resource name, e.g. "organizations/123".
|
|
256
|
+
# Returns the IAM access control policy for the specified Project.
|
|
257
|
+
# Permission is denied if the policy or the resource does not exist.
|
|
155
258
|
# @param [String] resource
|
|
156
259
|
# REQUIRED: The resource for which the policy is being requested.
|
|
157
260
|
# See the operation documentation for the appropriate value for this field.
|
|
158
261
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
262
|
+
# @param [String] fields
|
|
263
|
+
# Selector specifying which fields to include in a partial response.
|
|
159
264
|
# @param [String] quota_user
|
|
160
265
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
161
266
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
162
|
-
# @param [String] fields
|
|
163
|
-
# Selector specifying which fields to include in a partial response.
|
|
164
267
|
# @param [Google::Apis::RequestOptions] options
|
|
165
268
|
# Request-specific options
|
|
166
269
|
#
|
|
@@ -173,361 +276,313 @@ module Google
|
|
|
173
276
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
174
277
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
175
278
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
176
|
-
def
|
|
177
|
-
command = make_simple_command(:post, 'v1beta1/{
|
|
279
|
+
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
280
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
|
|
178
281
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
|
179
282
|
command.request_object = get_iam_policy_request_object
|
|
180
283
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
181
284
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
182
285
|
command.params['resource'] = resource unless resource.nil?
|
|
183
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
184
286
|
command.query['fields'] = fields unless fields.nil?
|
|
287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
185
288
|
execute_or_queue_command(command, &block)
|
|
186
289
|
end
|
|
187
290
|
|
|
188
|
-
#
|
|
189
|
-
#
|
|
190
|
-
#
|
|
191
|
-
#
|
|
192
|
-
#
|
|
193
|
-
#
|
|
194
|
-
#
|
|
195
|
-
#
|
|
291
|
+
# Restores the Project identified by the specified
|
|
292
|
+
# `project_id` (for example, `my-project-123`).
|
|
293
|
+
# You can only use this method for a Project that has a lifecycle state of
|
|
294
|
+
# DELETE_REQUESTED.
|
|
295
|
+
# After deletion starts, the Project cannot be restored.
|
|
296
|
+
# The caller must have modify permissions for this Project.
|
|
297
|
+
# @param [String] project_id
|
|
298
|
+
# The project ID (for example, `foo-bar-123`).
|
|
299
|
+
# Required.
|
|
300
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
|
301
|
+
# @param [String] fields
|
|
302
|
+
# Selector specifying which fields to include in a partial response.
|
|
196
303
|
# @param [String] quota_user
|
|
197
304
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
198
305
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
199
|
-
# @param [String] fields
|
|
200
|
-
# Selector specifying which fields to include in a partial response.
|
|
201
306
|
# @param [Google::Apis::RequestOptions] options
|
|
202
307
|
# Request-specific options
|
|
203
308
|
#
|
|
204
309
|
# @yield [result, err] Result & error if block supplied
|
|
205
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
310
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
|
206
311
|
# @yieldparam err [StandardError] error object if request failed
|
|
207
312
|
#
|
|
208
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
313
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
|
209
314
|
#
|
|
210
315
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
211
316
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
212
317
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
213
|
-
def
|
|
214
|
-
command = make_simple_command(:post, 'v1beta1/{
|
|
215
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
216
|
-
command.request_object =
|
|
217
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
218
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
219
|
-
command.params['
|
|
220
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
318
|
+
def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
319
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
|
320
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
|
|
321
|
+
command.request_object = undelete_project_request_object
|
|
322
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
323
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
324
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
221
325
|
command.query['fields'] = fields unless fields.nil?
|
|
326
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
222
327
|
execute_or_queue_command(command, &block)
|
|
223
328
|
end
|
|
224
329
|
|
|
225
|
-
#
|
|
226
|
-
#
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
#
|
|
232
|
-
#
|
|
330
|
+
# Retrieves the Project identified by the specified
|
|
331
|
+
# `project_id` (for example, `my-project-123`).
|
|
332
|
+
# The caller must have read permissions for this Project.
|
|
333
|
+
# @param [String] project_id
|
|
334
|
+
# The Project ID (for example, `my-project-123`).
|
|
335
|
+
# Required.
|
|
336
|
+
# @param [String] fields
|
|
337
|
+
# Selector specifying which fields to include in a partial response.
|
|
233
338
|
# @param [String] quota_user
|
|
234
339
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
235
340
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
236
|
-
# @param [String] fields
|
|
237
|
-
# Selector specifying which fields to include in a partial response.
|
|
238
341
|
# @param [Google::Apis::RequestOptions] options
|
|
239
342
|
# Request-specific options
|
|
240
343
|
#
|
|
241
344
|
# @yield [result, err] Result & error if block supplied
|
|
242
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
345
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
243
346
|
# @yieldparam err [StandardError] error object if request failed
|
|
244
347
|
#
|
|
245
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
348
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
246
349
|
#
|
|
247
350
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
248
351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
249
352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
250
|
-
def
|
|
251
|
-
command = make_simple_command(:
|
|
252
|
-
command.
|
|
253
|
-
command.
|
|
254
|
-
command.
|
|
255
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
256
|
-
command.params['resource'] = resource unless resource.nil?
|
|
257
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
353
|
+
def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
354
|
+
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
|
355
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
356
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
357
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
258
358
|
command.query['fields'] = fields unless fields.nil?
|
|
359
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
259
360
|
execute_or_queue_command(command, &block)
|
|
260
361
|
end
|
|
261
362
|
|
|
262
|
-
#
|
|
263
|
-
# `
|
|
264
|
-
#
|
|
265
|
-
# @param [String]
|
|
266
|
-
# The
|
|
267
|
-
#
|
|
363
|
+
# Updates the attributes of the Project identified by the specified
|
|
364
|
+
# `project_id` (for example, `my-project-123`).
|
|
365
|
+
# The caller must have modify permissions for this Project.
|
|
366
|
+
# @param [String] project_id
|
|
367
|
+
# The project ID (for example, `my-project-123`).
|
|
368
|
+
# Required.
|
|
369
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
370
|
+
# @param [String] fields
|
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
|
268
372
|
# @param [String] quota_user
|
|
269
373
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
270
374
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
271
|
-
# @param [String] fields
|
|
272
|
-
# Selector specifying which fields to include in a partial response.
|
|
273
375
|
# @param [Google::Apis::RequestOptions] options
|
|
274
376
|
# Request-specific options
|
|
275
377
|
#
|
|
276
378
|
# @yield [result, err] Result & error if block supplied
|
|
277
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
379
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
278
380
|
# @yieldparam err [StandardError] error object if request failed
|
|
279
381
|
#
|
|
280
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
382
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
281
383
|
#
|
|
282
384
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
283
385
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
284
386
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
285
|
-
def
|
|
286
|
-
command = make_simple_command(:
|
|
287
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
288
|
-
command.request_object =
|
|
289
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
290
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
291
|
-
command.params['
|
|
292
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
387
|
+
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
388
|
+
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
|
389
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
390
|
+
command.request_object = project_object
|
|
391
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
392
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
393
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
293
394
|
command.query['fields'] = fields unless fields.nil?
|
|
395
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
294
396
|
execute_or_queue_command(command, &block)
|
|
295
397
|
end
|
|
296
398
|
|
|
297
|
-
#
|
|
298
|
-
#
|
|
299
|
-
#
|
|
300
|
-
#
|
|
301
|
-
#
|
|
302
|
-
#
|
|
399
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
|
400
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
|
401
|
+
# The caller must have read permissions for this Project.
|
|
402
|
+
# @param [String] project_id
|
|
403
|
+
# The Project ID (for example, `my-project-123`).
|
|
404
|
+
# Required.
|
|
405
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
|
406
|
+
# @param [String] fields
|
|
407
|
+
# Selector specifying which fields to include in a partial response.
|
|
303
408
|
# @param [String] quota_user
|
|
304
409
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
305
410
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
306
|
-
# @param [String] fields
|
|
307
|
-
# Selector specifying which fields to include in a partial response.
|
|
308
411
|
# @param [Google::Apis::RequestOptions] options
|
|
309
412
|
# Request-specific options
|
|
310
413
|
#
|
|
311
414
|
# @yield [result, err] Result & error if block supplied
|
|
312
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
415
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
|
|
313
416
|
# @yieldparam err [StandardError] error object if request failed
|
|
314
417
|
#
|
|
315
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
418
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
|
|
316
419
|
#
|
|
317
420
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
318
421
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
319
422
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
320
|
-
def
|
|
321
|
-
command = make_simple_command(:
|
|
322
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
323
|
-
command.request_object =
|
|
324
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
325
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
326
|
-
command.params['
|
|
327
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
423
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
424
|
+
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
|
|
425
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
|
|
426
|
+
command.request_object = get_ancestry_request_object
|
|
427
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
|
|
428
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
|
|
429
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
328
430
|
command.query['fields'] = fields unless fields.nil?
|
|
431
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
329
432
|
execute_or_queue_command(command, &block)
|
|
330
433
|
end
|
|
331
434
|
|
|
332
|
-
#
|
|
333
|
-
# that `Constraint` on the resource if one does not exist.
|
|
334
|
-
# Not supplying an `etag` on the request `Policy` results in an unconditional
|
|
335
|
-
# write of the `Policy`.
|
|
435
|
+
# Returns permissions that a caller has on the specified Project.
|
|
336
436
|
# @param [String] resource
|
|
337
|
-
#
|
|
338
|
-
#
|
|
339
|
-
# @param [
|
|
340
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
341
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
437
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
438
|
+
# See the operation documentation for the appropriate value for this field.
|
|
439
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
342
440
|
# @param [String] fields
|
|
343
441
|
# Selector specifying which fields to include in a partial response.
|
|
344
|
-
# @param [Google::Apis::RequestOptions] options
|
|
345
|
-
# Request-specific options
|
|
346
|
-
#
|
|
347
|
-
# @yield [result, err] Result & error if block supplied
|
|
348
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
349
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
350
|
-
#
|
|
351
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
352
|
-
#
|
|
353
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
354
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
355
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
356
|
-
def set_organization_org_policy_v1(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
357
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:setOrgPolicyV1', options)
|
|
358
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetOrgPolicyRequest::Representation
|
|
359
|
-
command.request_object = set_org_policy_request_object
|
|
360
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
361
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
362
|
-
command.params['resource'] = resource unless resource.nil?
|
|
363
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
364
|
-
command.query['fields'] = fields unless fields.nil?
|
|
365
|
-
execute_or_queue_command(command, &block)
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# Lists Organization resources that are visible to the user and satisfy
|
|
369
|
-
# the specified filter. This method returns Organizations in an unspecified
|
|
370
|
-
# order. New Organizations do not necessarily appear at the end of the list.
|
|
371
|
-
# @param [String] filter
|
|
372
|
-
# An optional query string used to filter the Organizations to return in
|
|
373
|
-
# the response. Filter rules are case-insensitive.
|
|
374
|
-
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
|
375
|
-
# `domain`, where the domain is a Google for Work domain, for example:
|
|
376
|
-
# |Filter|Description|
|
|
377
|
-
# |------|-----------|
|
|
378
|
-
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
|
379
|
-
# directory_customer_id` equal to `123456789`.|
|
|
380
|
-
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
|
381
|
-
# This field is optional.
|
|
382
|
-
# @param [String] page_token
|
|
383
|
-
# A pagination token returned from a previous call to `ListOrganizations`
|
|
384
|
-
# that indicates from where listing should continue.
|
|
385
|
-
# This field is optional.
|
|
386
|
-
# @param [Fixnum] page_size
|
|
387
|
-
# The maximum number of Organizations to return in the response.
|
|
388
|
-
# This field is optional.
|
|
389
442
|
# @param [String] quota_user
|
|
390
443
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
391
444
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
392
|
-
# @param [String] fields
|
|
393
|
-
# Selector specifying which fields to include in a partial response.
|
|
394
445
|
# @param [Google::Apis::RequestOptions] options
|
|
395
446
|
# Request-specific options
|
|
396
447
|
#
|
|
397
448
|
# @yield [result, err] Result & error if block supplied
|
|
398
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
449
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
|
399
450
|
# @yieldparam err [StandardError] error object if request failed
|
|
400
451
|
#
|
|
401
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
452
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
|
402
453
|
#
|
|
403
454
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
404
455
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
405
456
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
406
|
-
def
|
|
407
|
-
command = make_simple_command(:
|
|
408
|
-
command.
|
|
409
|
-
command.
|
|
410
|
-
command.
|
|
411
|
-
command.
|
|
412
|
-
command.
|
|
413
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
457
|
+
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
458
|
+
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
|
459
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
|
460
|
+
command.request_object = test_iam_permissions_request_object
|
|
461
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
|
462
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
|
463
|
+
command.params['resource'] = resource unless resource.nil?
|
|
414
464
|
command.query['fields'] = fields unless fields.nil?
|
|
465
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
415
466
|
execute_or_queue_command(command, &block)
|
|
416
467
|
end
|
|
417
468
|
|
|
418
|
-
#
|
|
419
|
-
#
|
|
420
|
-
#
|
|
421
|
-
# write of the `Policy`.
|
|
469
|
+
# Sets the access control policy on an Organization resource. Replaces any
|
|
470
|
+
# existing policy. The `resource` field should be the organization's resource
|
|
471
|
+
# name, e.g. "organizations/123".
|
|
422
472
|
# @param [String] resource
|
|
423
|
-
#
|
|
424
|
-
#
|
|
473
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
474
|
+
# See the operation documentation for the appropriate value for this field.
|
|
475
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
476
|
+
# @param [String] fields
|
|
477
|
+
# Selector specifying which fields to include in a partial response.
|
|
425
478
|
# @param [String] quota_user
|
|
426
479
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
427
480
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
428
|
-
# @param [String] fields
|
|
429
|
-
# Selector specifying which fields to include in a partial response.
|
|
430
481
|
# @param [Google::Apis::RequestOptions] options
|
|
431
482
|
# Request-specific options
|
|
432
483
|
#
|
|
433
484
|
# @yield [result, err] Result & error if block supplied
|
|
434
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
485
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
|
435
486
|
# @yieldparam err [StandardError] error object if request failed
|
|
436
487
|
#
|
|
437
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
488
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
|
438
489
|
#
|
|
439
490
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
440
491
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
441
492
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
442
|
-
def
|
|
443
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:
|
|
444
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
445
|
-
command.request_object =
|
|
446
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
447
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
493
|
+
def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
494
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
|
495
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
|
496
|
+
command.request_object = set_iam_policy_request_object
|
|
497
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
498
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
448
499
|
command.params['resource'] = resource unless resource.nil?
|
|
449
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
450
500
|
command.query['fields'] = fields unless fields.nil?
|
|
501
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
451
502
|
execute_or_queue_command(command, &block)
|
|
452
503
|
end
|
|
453
504
|
|
|
454
|
-
#
|
|
505
|
+
# Gets the access control policy for an Organization resource. May be empty
|
|
506
|
+
# if no such policy or resource exists. The `resource` field should be the
|
|
507
|
+
# organization's resource name, e.g. "organizations/123".
|
|
455
508
|
# @param [String] resource
|
|
456
|
-
#
|
|
457
|
-
#
|
|
509
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
510
|
+
# See the operation documentation for the appropriate value for this field.
|
|
511
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
512
|
+
# @param [String] fields
|
|
513
|
+
# Selector specifying which fields to include in a partial response.
|
|
458
514
|
# @param [String] quota_user
|
|
459
515
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
460
516
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
461
|
-
# @param [String] fields
|
|
462
|
-
# Selector specifying which fields to include in a partial response.
|
|
463
517
|
# @param [Google::Apis::RequestOptions] options
|
|
464
518
|
# Request-specific options
|
|
465
519
|
#
|
|
466
520
|
# @yield [result, err] Result & error if block supplied
|
|
467
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
521
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
|
468
522
|
# @yieldparam err [StandardError] error object if request failed
|
|
469
523
|
#
|
|
470
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
524
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
|
471
525
|
#
|
|
472
526
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
473
527
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
474
528
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
475
|
-
def
|
|
476
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:
|
|
477
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
478
|
-
command.request_object =
|
|
479
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::
|
|
480
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::
|
|
529
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
530
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
|
531
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
|
532
|
+
command.request_object = get_iam_policy_request_object
|
|
533
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
534
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
481
535
|
command.params['resource'] = resource unless resource.nil?
|
|
482
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
483
536
|
command.query['fields'] = fields unless fields.nil?
|
|
537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
484
538
|
execute_or_queue_command(command, &block)
|
|
485
539
|
end
|
|
486
540
|
|
|
487
|
-
#
|
|
488
|
-
# @param [String]
|
|
489
|
-
#
|
|
490
|
-
# @param [
|
|
541
|
+
# Fetches an Organization resource identified by the specified resource name.
|
|
542
|
+
# @param [String] name
|
|
543
|
+
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
|
544
|
+
# @param [String] organization_id
|
|
545
|
+
# The id of the Organization resource to fetch.
|
|
546
|
+
# This field is deprecated and will be removed in v1. Use name instead.
|
|
547
|
+
# @param [String] fields
|
|
548
|
+
# Selector specifying which fields to include in a partial response.
|
|
491
549
|
# @param [String] quota_user
|
|
492
550
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
493
551
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
494
|
-
# @param [String] fields
|
|
495
|
-
# Selector specifying which fields to include in a partial response.
|
|
496
552
|
# @param [Google::Apis::RequestOptions] options
|
|
497
553
|
# Request-specific options
|
|
498
554
|
#
|
|
499
555
|
# @yield [result, err] Result & error if block supplied
|
|
500
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
556
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
|
|
501
557
|
# @yieldparam err [StandardError] error object if request failed
|
|
502
558
|
#
|
|
503
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
559
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
|
|
504
560
|
#
|
|
505
561
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
506
562
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
507
563
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
508
|
-
def
|
|
509
|
-
command = make_simple_command(:
|
|
510
|
-
command.
|
|
511
|
-
command.
|
|
512
|
-
command.
|
|
513
|
-
command.
|
|
514
|
-
command.params['resource'] = resource unless resource.nil?
|
|
515
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
564
|
+
def get_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
565
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
566
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
|
567
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
|
568
|
+
command.params['name'] = name unless name.nil?
|
|
569
|
+
command.query['organizationId'] = organization_id unless organization_id.nil?
|
|
516
570
|
command.query['fields'] = fields unless fields.nil?
|
|
571
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
517
572
|
execute_or_queue_command(command, &block)
|
|
518
573
|
end
|
|
519
574
|
|
|
520
|
-
#
|
|
575
|
+
# Updates an Organization resource identified by the specified resource name.
|
|
521
576
|
# @param [String] name
|
|
522
|
-
# The resource name of the
|
|
523
|
-
#
|
|
524
|
-
#
|
|
525
|
-
#
|
|
577
|
+
# Output Only. The resource name of the organization. This is the
|
|
578
|
+
# organization's relative path in the API. Its format is
|
|
579
|
+
# "organizations/[organization_id]". For example, "organizations/1234".
|
|
580
|
+
# @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
|
|
581
|
+
# @param [String] fields
|
|
582
|
+
# Selector specifying which fields to include in a partial response.
|
|
526
583
|
# @param [String] quota_user
|
|
527
584
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
528
585
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
529
|
-
# @param [String] fields
|
|
530
|
-
# Selector specifying which fields to include in a partial response.
|
|
531
586
|
# @param [Google::Apis::RequestOptions] options
|
|
532
587
|
# Request-specific options
|
|
533
588
|
#
|
|
@@ -540,14 +595,15 @@ module Google
|
|
|
540
595
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
541
596
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
542
597
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
543
|
-
def
|
|
544
|
-
command = make_simple_command(:
|
|
598
|
+
def update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
599
|
+
command = make_simple_command(:put, 'v1beta1/{+name}', options)
|
|
600
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
|
601
|
+
command.request_object = organization_object
|
|
545
602
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
|
|
546
603
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
|
|
547
604
|
command.params['name'] = name unless name.nil?
|
|
548
|
-
command.query['organizationId'] = organization_id unless organization_id.nil?
|
|
549
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
550
605
|
command.query['fields'] = fields unless fields.nil?
|
|
606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
551
607
|
execute_or_queue_command(command, &block)
|
|
552
608
|
end
|
|
553
609
|
|
|
@@ -558,11 +614,11 @@ module Google
|
|
|
558
614
|
# REQUIRED: The resource for which the policy detail is being requested.
|
|
559
615
|
# See the operation documentation for the appropriate value for this field.
|
|
560
616
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
617
|
+
# @param [String] fields
|
|
618
|
+
# Selector specifying which fields to include in a partial response.
|
|
561
619
|
# @param [String] quota_user
|
|
562
620
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
563
621
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
564
|
-
# @param [String] fields
|
|
565
|
-
# Selector specifying which fields to include in a partial response.
|
|
566
622
|
# @param [Google::Apis::RequestOptions] options
|
|
567
623
|
# Request-specific options
|
|
568
624
|
#
|
|
@@ -575,469 +631,65 @@ module Google
|
|
|
575
631
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
576
632
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
577
633
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
578
|
-
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
|
634
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
579
635
|
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
|
580
636
|
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
|
581
637
|
command.request_object = test_iam_permissions_request_object
|
|
582
638
|
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
|
583
639
|
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
|
584
640
|
command.params['resource'] = resource unless resource.nil?
|
|
585
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
586
641
|
command.query['fields'] = fields unless fields.nil?
|
|
642
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
587
643
|
execute_or_queue_command(command, &block)
|
|
588
644
|
end
|
|
589
645
|
|
|
590
|
-
#
|
|
591
|
-
#
|
|
592
|
-
#
|
|
593
|
-
# @param [String]
|
|
594
|
-
#
|
|
595
|
-
#
|
|
596
|
-
#
|
|
597
|
-
#
|
|
598
|
-
#
|
|
646
|
+
# Lists Organization resources that are visible to the user and satisfy
|
|
647
|
+
# the specified filter. This method returns Organizations in an unspecified
|
|
648
|
+
# order. New Organizations do not necessarily appear at the end of the list.
|
|
649
|
+
# @param [String] filter
|
|
650
|
+
# An optional query string used to filter the Organizations to return in
|
|
651
|
+
# the response. Filter rules are case-insensitive.
|
|
652
|
+
# Organizations may be filtered by `owner.directoryCustomerId` or by
|
|
653
|
+
# `domain`, where the domain is a Google for Work domain, for example:
|
|
654
|
+
# |Filter|Description|
|
|
655
|
+
# |------|-----------|
|
|
656
|
+
# |owner.directorycustomerid:123456789|Organizations with `owner.
|
|
657
|
+
# directory_customer_id` equal to `123456789`.|
|
|
658
|
+
# |domain:google.com|Organizations corresponding to the domain `google.com`.|
|
|
659
|
+
# This field is optional.
|
|
660
|
+
# @param [String] page_token
|
|
661
|
+
# A pagination token returned from a previous call to `ListOrganizations`
|
|
662
|
+
# that indicates from where listing should continue.
|
|
663
|
+
# This field is optional.
|
|
664
|
+
# @param [Fixnum] page_size
|
|
665
|
+
# The maximum number of Organizations to return in the response.
|
|
666
|
+
# This field is optional.
|
|
599
667
|
# @param [String] fields
|
|
600
668
|
# Selector specifying which fields to include in a partial response.
|
|
601
|
-
# @param [Google::Apis::RequestOptions] options
|
|
602
|
-
# Request-specific options
|
|
603
|
-
#
|
|
604
|
-
# @yield [result, err] Result & error if block supplied
|
|
605
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy] parsed result object
|
|
606
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
607
|
-
#
|
|
608
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy]
|
|
609
|
-
#
|
|
610
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
611
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
612
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
613
|
-
def get_organization_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
614
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:getEffectiveOrgPolicyV1', options)
|
|
615
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetEffectiveOrgPolicyRequest::Representation
|
|
616
|
-
command.request_object = get_effective_org_policy_request_object
|
|
617
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy::Representation
|
|
618
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::OrgPolicy
|
|
619
|
-
command.params['resource'] = resource unless resource.nil?
|
|
620
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
621
|
-
command.query['fields'] = fields unless fields.nil?
|
|
622
|
-
execute_or_queue_command(command, &block)
|
|
623
|
-
end
|
|
624
|
-
|
|
625
|
-
# Creates a Project resource.
|
|
626
|
-
# Initially, the Project resource is owned by its creator exclusively.
|
|
627
|
-
# The creator can later grant permission to others to read or update the
|
|
628
|
-
# Project.
|
|
629
|
-
# Several APIs are activated automatically for the Project, including
|
|
630
|
-
# Google Cloud Storage.
|
|
631
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
632
|
-
# @param [Boolean] use_legacy_stack
|
|
633
|
-
# A safety hatch to opt out of the new reliable project creation process.
|
|
634
669
|
# @param [String] quota_user
|
|
635
670
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
636
671
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
637
|
-
# @param [String] fields
|
|
638
|
-
# Selector specifying which fields to include in a partial response.
|
|
639
672
|
# @param [Google::Apis::RequestOptions] options
|
|
640
673
|
# Request-specific options
|
|
641
674
|
#
|
|
642
675
|
# @yield [result, err] Result & error if block supplied
|
|
643
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::
|
|
676
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
|
|
644
677
|
# @yieldparam err [StandardError] error object if request failed
|
|
645
678
|
#
|
|
646
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::
|
|
679
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
|
|
647
680
|
#
|
|
648
681
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
649
682
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
650
683
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
651
|
-
def
|
|
652
|
-
command = make_simple_command(:
|
|
653
|
-
command.
|
|
654
|
-
command.
|
|
655
|
-
command.
|
|
656
|
-
command.
|
|
657
|
-
command.query['
|
|
658
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
684
|
+
def list_organizations(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
685
|
+
command = make_simple_command(:get, 'v1beta1/organizations', options)
|
|
686
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
|
|
687
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
|
|
688
|
+
command.query['filter'] = filter unless filter.nil?
|
|
689
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
690
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
659
691
|
command.query['fields'] = fields unless fields.nil?
|
|
660
|
-
execute_or_queue_command(command, &block)
|
|
661
|
-
end
|
|
662
|
-
|
|
663
|
-
# Sets the IAM access control policy for the specified Project. Replaces
|
|
664
|
-
# any existing policy.
|
|
665
|
-
# The following constraints apply when using `setIamPolicy()`:
|
|
666
|
-
# + Project does not support `allUsers` and `allAuthenticatedUsers` as
|
|
667
|
-
# `members` in a `Binding` of a `Policy`.
|
|
668
|
-
# + The owner role can be granted only to `user` and `serviceAccount`.
|
|
669
|
-
# + Service accounts can be made owners of a project directly
|
|
670
|
-
# without any restrictions. However, to be added as an owner, a user must be
|
|
671
|
-
# invited via Cloud Platform console and must accept the invitation.
|
|
672
|
-
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
|
673
|
-
# must be granted the owner role using the Cloud Platform Console and must
|
|
674
|
-
# explicitly accept the invitation.
|
|
675
|
-
# + Invitations to grant the owner role cannot be sent using
|
|
676
|
-
# `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
|
|
677
|
-
# + Membership changes that leave the project without any owners that have
|
|
678
|
-
# accepted the Terms of Service (ToS) will be rejected.
|
|
679
|
-
# + There must be at least one owner who has accepted the Terms of
|
|
680
|
-
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
|
|
681
|
-
# remove the last ToS-accepted owner from the policy will fail. This
|
|
682
|
-
# restriction also applies to legacy projects that no longer have owners
|
|
683
|
-
# who have accepted the ToS. Edits to IAM policies will be rejected until
|
|
684
|
-
# the lack of a ToS-accepting owner is rectified.
|
|
685
|
-
# + Calling this method requires enabling the App Engine Admin API.
|
|
686
|
-
# Note: Removing service accounts from policies or changing their roles
|
|
687
|
-
# can render services completely inoperable. It is important to understand
|
|
688
|
-
# how the service account is being used before removing or updating its
|
|
689
|
-
# roles.
|
|
690
|
-
# @param [String] resource
|
|
691
|
-
# REQUIRED: The resource for which the policy is being specified.
|
|
692
|
-
# See the operation documentation for the appropriate value for this field.
|
|
693
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
694
|
-
# @param [String] quota_user
|
|
695
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
696
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
697
|
-
# @param [String] fields
|
|
698
|
-
# Selector specifying which fields to include in a partial response.
|
|
699
|
-
# @param [Google::Apis::RequestOptions] options
|
|
700
|
-
# Request-specific options
|
|
701
|
-
#
|
|
702
|
-
# @yield [result, err] Result & error if block supplied
|
|
703
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
|
704
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
705
|
-
#
|
|
706
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
|
707
|
-
#
|
|
708
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
709
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
710
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
711
|
-
def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
712
|
-
command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
|
|
713
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
|
|
714
|
-
command.request_object = set_iam_policy_request_object
|
|
715
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
716
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
717
|
-
command.params['resource'] = resource unless resource.nil?
|
|
718
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
719
|
-
command.query['fields'] = fields unless fields.nil?
|
|
720
|
-
execute_or_queue_command(command, &block)
|
|
721
|
-
end
|
|
722
|
-
|
|
723
|
-
# Returns the IAM access control policy for the specified Project.
|
|
724
|
-
# Permission is denied if the policy or the resource does not exist.
|
|
725
|
-
# @param [String] resource
|
|
726
|
-
# REQUIRED: The resource for which the policy is being requested.
|
|
727
|
-
# See the operation documentation for the appropriate value for this field.
|
|
728
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
729
|
-
# @param [String] quota_user
|
|
730
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
731
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
732
|
-
# @param [String] fields
|
|
733
|
-
# Selector specifying which fields to include in a partial response.
|
|
734
|
-
# @param [Google::Apis::RequestOptions] options
|
|
735
|
-
# Request-specific options
|
|
736
|
-
#
|
|
737
|
-
# @yield [result, err] Result & error if block supplied
|
|
738
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
|
|
739
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
740
|
-
#
|
|
741
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
|
742
|
-
#
|
|
743
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
744
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
745
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
746
|
-
def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
747
|
-
command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
|
|
748
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
|
|
749
|
-
command.request_object = get_iam_policy_request_object
|
|
750
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
|
|
751
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
|
|
752
|
-
command.params['resource'] = resource unless resource.nil?
|
|
753
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
754
|
-
command.query['fields'] = fields unless fields.nil?
|
|
755
|
-
execute_or_queue_command(command, &block)
|
|
756
|
-
end
|
|
757
|
-
|
|
758
|
-
# Restores the Project identified by the specified
|
|
759
|
-
# `project_id` (for example, `my-project-123`).
|
|
760
|
-
# You can only use this method for a Project that has a lifecycle state of
|
|
761
|
-
# DELETE_REQUESTED.
|
|
762
|
-
# After deletion starts, the Project cannot be restored.
|
|
763
|
-
# The caller must have modify permissions for this Project.
|
|
764
|
-
# @param [String] project_id
|
|
765
|
-
# The project ID (for example, `foo-bar-123`).
|
|
766
|
-
# Required.
|
|
767
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
|
768
|
-
# @param [String] quota_user
|
|
769
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
770
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
771
|
-
# @param [String] fields
|
|
772
|
-
# Selector specifying which fields to include in a partial response.
|
|
773
|
-
# @param [Google::Apis::RequestOptions] options
|
|
774
|
-
# Request-specific options
|
|
775
|
-
#
|
|
776
|
-
# @yield [result, err] Result & error if block supplied
|
|
777
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
|
778
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
779
|
-
#
|
|
780
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
|
781
|
-
#
|
|
782
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
783
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
784
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
785
|
-
def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
786
|
-
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
|
|
787
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
|
|
788
|
-
command.request_object = undelete_project_request_object
|
|
789
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
790
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
791
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
792
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
793
|
-
command.query['fields'] = fields unless fields.nil?
|
|
794
|
-
execute_or_queue_command(command, &block)
|
|
795
|
-
end
|
|
796
|
-
|
|
797
|
-
# Retrieves the Project identified by the specified
|
|
798
|
-
# `project_id` (for example, `my-project-123`).
|
|
799
|
-
# The caller must have read permissions for this Project.
|
|
800
|
-
# @param [String] project_id
|
|
801
|
-
# The Project ID (for example, `my-project-123`).
|
|
802
|
-
# Required.
|
|
803
|
-
# @param [String] quota_user
|
|
804
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
805
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
806
|
-
# @param [String] fields
|
|
807
|
-
# Selector specifying which fields to include in a partial response.
|
|
808
|
-
# @param [Google::Apis::RequestOptions] options
|
|
809
|
-
# Request-specific options
|
|
810
|
-
#
|
|
811
|
-
# @yield [result, err] Result & error if block supplied
|
|
812
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
813
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
814
|
-
#
|
|
815
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
816
|
-
#
|
|
817
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
818
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
819
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
820
|
-
def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
821
|
-
command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
|
|
822
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
823
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
824
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
825
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
826
|
-
command.query['fields'] = fields unless fields.nil?
|
|
827
|
-
execute_or_queue_command(command, &block)
|
|
828
|
-
end
|
|
829
|
-
|
|
830
|
-
# Gets a list of ancestors in the resource hierarchy for the Project
|
|
831
|
-
# identified by the specified `project_id` (for example, `my-project-123`).
|
|
832
|
-
# The caller must have read permissions for this Project.
|
|
833
|
-
# @param [String] project_id
|
|
834
|
-
# The Project ID (for example, `my-project-123`).
|
|
835
|
-
# Required.
|
|
836
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
|
837
|
-
# @param [String] quota_user
|
|
838
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
839
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
840
|
-
# @param [String] fields
|
|
841
|
-
# Selector specifying which fields to include in a partial response.
|
|
842
|
-
# @param [Google::Apis::RequestOptions] options
|
|
843
|
-
# Request-specific options
|
|
844
|
-
#
|
|
845
|
-
# @yield [result, err] Result & error if block supplied
|
|
846
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
|
|
847
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
848
|
-
#
|
|
849
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
|
|
850
|
-
#
|
|
851
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
852
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
853
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
854
|
-
def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
855
|
-
command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
|
|
856
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
|
|
857
|
-
command.request_object = get_ancestry_request_object
|
|
858
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
|
|
859
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
|
|
860
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
861
692
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
862
|
-
command.query['fields'] = fields unless fields.nil?
|
|
863
|
-
execute_or_queue_command(command, &block)
|
|
864
|
-
end
|
|
865
|
-
|
|
866
|
-
# Updates the attributes of the Project identified by the specified
|
|
867
|
-
# `project_id` (for example, `my-project-123`).
|
|
868
|
-
# The caller must have modify permissions for this Project.
|
|
869
|
-
# @param [String] project_id
|
|
870
|
-
# The project ID (for example, `my-project-123`).
|
|
871
|
-
# Required.
|
|
872
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
|
873
|
-
# @param [String] quota_user
|
|
874
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
875
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
876
|
-
# @param [String] fields
|
|
877
|
-
# Selector specifying which fields to include in a partial response.
|
|
878
|
-
# @param [Google::Apis::RequestOptions] options
|
|
879
|
-
# Request-specific options
|
|
880
|
-
#
|
|
881
|
-
# @yield [result, err] Result & error if block supplied
|
|
882
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
|
|
883
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
884
|
-
#
|
|
885
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
|
|
886
|
-
#
|
|
887
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
888
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
889
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
890
|
-
def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
891
|
-
command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
|
|
892
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
893
|
-
command.request_object = project_object
|
|
894
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
|
|
895
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
|
|
896
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
897
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
898
|
-
command.query['fields'] = fields unless fields.nil?
|
|
899
|
-
execute_or_queue_command(command, &block)
|
|
900
|
-
end
|
|
901
|
-
|
|
902
|
-
# Returns permissions that a caller has on the specified Project.
|
|
903
|
-
# @param [String] resource
|
|
904
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
|
905
|
-
# See the operation documentation for the appropriate value for this field.
|
|
906
|
-
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
907
|
-
# @param [String] quota_user
|
|
908
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
909
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
910
|
-
# @param [String] fields
|
|
911
|
-
# Selector specifying which fields to include in a partial response.
|
|
912
|
-
# @param [Google::Apis::RequestOptions] options
|
|
913
|
-
# Request-specific options
|
|
914
|
-
#
|
|
915
|
-
# @yield [result, err] Result & error if block supplied
|
|
916
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
|
|
917
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
918
|
-
#
|
|
919
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
|
|
920
|
-
#
|
|
921
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
922
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
923
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
924
|
-
def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
925
|
-
command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
|
|
926
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
|
|
927
|
-
command.request_object = test_iam_permissions_request_object
|
|
928
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
|
|
929
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
|
|
930
|
-
command.params['resource'] = resource unless resource.nil?
|
|
931
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
932
|
-
command.query['fields'] = fields unless fields.nil?
|
|
933
|
-
execute_or_queue_command(command, &block)
|
|
934
|
-
end
|
|
935
|
-
|
|
936
|
-
# Marks the Project identified by the specified
|
|
937
|
-
# `project_id` (for example, `my-project-123`) for deletion.
|
|
938
|
-
# This method will only affect the Project if the following criteria are met:
|
|
939
|
-
# + The Project does not have a billing account associated with it.
|
|
940
|
-
# + The Project has a lifecycle state of
|
|
941
|
-
# ACTIVE.
|
|
942
|
-
# This method changes the Project's lifecycle state from
|
|
943
|
-
# ACTIVE
|
|
944
|
-
# to DELETE_REQUESTED.
|
|
945
|
-
# The deletion starts at an unspecified time, at which point the project is
|
|
946
|
-
# no longer accessible.
|
|
947
|
-
# Until the deletion completes, you can check the lifecycle state
|
|
948
|
-
# checked by retrieving the Project with GetProject,
|
|
949
|
-
# and the Project remains visible to ListProjects.
|
|
950
|
-
# However, you cannot update the project.
|
|
951
|
-
# After the deletion completes, the Project is not retrievable by
|
|
952
|
-
# the GetProject and
|
|
953
|
-
# ListProjects methods.
|
|
954
|
-
# The caller must have modify permissions for this Project.
|
|
955
|
-
# @param [String] project_id
|
|
956
|
-
# The Project ID (for example, `foo-bar-123`).
|
|
957
|
-
# Required.
|
|
958
|
-
# @param [String] quota_user
|
|
959
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
960
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
961
|
-
# @param [String] fields
|
|
962
|
-
# Selector specifying which fields to include in a partial response.
|
|
963
|
-
# @param [Google::Apis::RequestOptions] options
|
|
964
|
-
# Request-specific options
|
|
965
|
-
#
|
|
966
|
-
# @yield [result, err] Result & error if block supplied
|
|
967
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
|
|
968
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
969
|
-
#
|
|
970
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
|
|
971
|
-
#
|
|
972
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
973
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
974
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
975
|
-
def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
|
|
976
|
-
command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
|
|
977
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
|
|
978
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
|
|
979
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
980
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
981
|
-
command.query['fields'] = fields unless fields.nil?
|
|
982
|
-
execute_or_queue_command(command, &block)
|
|
983
|
-
end
|
|
984
|
-
|
|
985
|
-
# Lists Projects that are visible to the user and satisfy the
|
|
986
|
-
# specified filter. This method returns Projects in an unspecified order.
|
|
987
|
-
# New Projects do not necessarily appear at the end of the list.
|
|
988
|
-
# @param [String] page_token
|
|
989
|
-
# A pagination token returned from a previous call to ListProjects
|
|
990
|
-
# that indicates from where listing should continue.
|
|
991
|
-
# Optional.
|
|
992
|
-
# @param [Fixnum] page_size
|
|
993
|
-
# The maximum number of Projects to return in the response.
|
|
994
|
-
# The server can return fewer Projects than requested.
|
|
995
|
-
# If unspecified, server picks an appropriate default.
|
|
996
|
-
# Optional.
|
|
997
|
-
# @param [String] filter
|
|
998
|
-
# An expression for filtering the results of the request. Filter rules are
|
|
999
|
-
# case insensitive. The fields eligible for filtering are:
|
|
1000
|
-
# + `name`
|
|
1001
|
-
# + `id`
|
|
1002
|
-
# + <code>labels.<em>key</em></code> where *key* is the name of a label
|
|
1003
|
-
# Some examples of using labels as filters:
|
|
1004
|
-
# |Filter|Description|
|
|
1005
|
-
# |------|-----------|
|
|
1006
|
-
# |name:*|The project has a name.|
|
|
1007
|
-
# |name:Howl|The project's name is `Howl` or `howl`.|
|
|
1008
|
-
# |name:HOWL|Equivalent to above.|
|
|
1009
|
-
# |NAME:howl|Equivalent to above.|
|
|
1010
|
-
# |labels.color:*|The project has the label `color`.|
|
|
1011
|
-
# |labels.color:red|The project's label `color` has the value `red`.|
|
|
1012
|
-
# |labels.color:red labels.size:big|The project's label `color` has the
|
|
1013
|
-
# value `red` and its label `size` has the value `big`.
|
|
1014
|
-
# Optional.
|
|
1015
|
-
# @param [String] quota_user
|
|
1016
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
1017
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1018
|
-
# @param [String] fields
|
|
1019
|
-
# Selector specifying which fields to include in a partial response.
|
|
1020
|
-
# @param [Google::Apis::RequestOptions] options
|
|
1021
|
-
# Request-specific options
|
|
1022
|
-
#
|
|
1023
|
-
# @yield [result, err] Result & error if block supplied
|
|
1024
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
|
|
1025
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
1026
|
-
#
|
|
1027
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
|
|
1028
|
-
#
|
|
1029
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1030
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1031
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1032
|
-
def list_projects(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1033
|
-
command = make_simple_command(:get, 'v1beta1/projects', options)
|
|
1034
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
|
|
1035
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
|
|
1036
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1037
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1038
|
-
command.query['filter'] = filter unless filter.nil?
|
|
1039
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1040
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1041
693
|
execute_or_queue_command(command, &block)
|
|
1042
694
|
end
|
|
1043
695
|
|