google-api-client 0.11.1 → 0.11.2
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 +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- 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.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- 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 +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -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 +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- 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 +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
|
@@ -51,17 +51,17 @@ module Google
|
|
|
51
51
|
# Lists information about the supported locations for this service.
|
|
52
52
|
# @param [String] name
|
|
53
53
|
# The resource that owns the locations collection, if applicable.
|
|
54
|
-
# @param [String] filter
|
|
55
|
-
# The standard list filter.
|
|
56
54
|
# @param [String] page_token
|
|
57
55
|
# The standard list page token.
|
|
58
56
|
# @param [Fixnum] page_size
|
|
59
57
|
# The standard list page size.
|
|
60
|
-
# @param [String]
|
|
61
|
-
#
|
|
58
|
+
# @param [String] filter
|
|
59
|
+
# The standard list filter.
|
|
62
60
|
# @param [String] quota_user
|
|
63
61
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
64
62
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63
|
+
# @param [String] fields
|
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
|
65
65
|
# @param [Google::Apis::RequestOptions] options
|
|
66
66
|
# Request-specific options
|
|
67
67
|
#
|
|
@@ -74,27 +74,27 @@ module Google
|
|
|
74
74
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
75
75
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
76
76
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
77
|
-
def list_project_locations(name,
|
|
77
|
+
def list_project_locations(name, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
78
78
|
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
|
79
79
|
command.response_representation = Google::Apis::CloudkmsV1::ListLocationsResponse::Representation
|
|
80
80
|
command.response_class = Google::Apis::CloudkmsV1::ListLocationsResponse
|
|
81
81
|
command.params['name'] = name unless name.nil?
|
|
82
|
-
command.query['filter'] = filter unless filter.nil?
|
|
83
82
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
84
83
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
85
|
-
command.query['
|
|
84
|
+
command.query['filter'] = filter unless filter.nil?
|
|
86
85
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
|
87
87
|
execute_or_queue_command(command, &block)
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# Get information about a location.
|
|
91
91
|
# @param [String] name
|
|
92
92
|
# Resource name for the location.
|
|
93
|
-
# @param [String] fields
|
|
94
|
-
# Selector specifying which fields to include in a partial response.
|
|
95
93
|
# @param [String] quota_user
|
|
96
94
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
97
95
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
96
|
+
# @param [String] fields
|
|
97
|
+
# Selector specifying which fields to include in a partial response.
|
|
98
98
|
# @param [Google::Apis::RequestOptions] options
|
|
99
99
|
# Request-specific options
|
|
100
100
|
#
|
|
@@ -107,13 +107,86 @@ module Google
|
|
|
107
107
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
108
108
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
109
109
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
110
|
-
def get_project_location(name,
|
|
110
|
+
def get_project_location(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
111
111
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
112
112
|
command.response_representation = Google::Apis::CloudkmsV1::Location::Representation
|
|
113
113
|
command.response_class = Google::Apis::CloudkmsV1::Location
|
|
114
114
|
command.params['name'] = name unless name.nil?
|
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
116
|
+
command.query['fields'] = fields unless fields.nil?
|
|
117
|
+
execute_or_queue_command(command, &block)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Create a new KeyRing in a given Project and Location.
|
|
121
|
+
# @param [String] parent
|
|
122
|
+
# Required. The resource name of the location associated with the
|
|
123
|
+
# KeyRings, in the format `projects/*/locations/*`.
|
|
124
|
+
# @param [Google::Apis::CloudkmsV1::KeyRing] key_ring_object
|
|
125
|
+
# @param [String] key_ring_id
|
|
126
|
+
# Required. It must be unique within a location and match the regular
|
|
127
|
+
# expression `[a-zA-Z0-9_-]`1,63``
|
|
128
|
+
# @param [String] quota_user
|
|
129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
131
|
+
# @param [String] fields
|
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
|
133
|
+
# @param [Google::Apis::RequestOptions] options
|
|
134
|
+
# Request-specific options
|
|
135
|
+
#
|
|
136
|
+
# @yield [result, err] Result & error if block supplied
|
|
137
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::KeyRing] parsed result object
|
|
138
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
139
|
+
#
|
|
140
|
+
# @return [Google::Apis::CloudkmsV1::KeyRing]
|
|
141
|
+
#
|
|
142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
145
|
+
def create_project_location_key_ring(parent, key_ring_object = nil, key_ring_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
146
|
+
command = make_simple_command(:post, 'v1/{+parent}/keyRings', options)
|
|
147
|
+
command.request_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
|
|
148
|
+
command.request_object = key_ring_object
|
|
149
|
+
command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
|
|
150
|
+
command.response_class = Google::Apis::CloudkmsV1::KeyRing
|
|
151
|
+
command.params['parent'] = parent unless parent.nil?
|
|
152
|
+
command.query['keyRingId'] = key_ring_id unless key_ring_id.nil?
|
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
115
154
|
command.query['fields'] = fields unless fields.nil?
|
|
155
|
+
execute_or_queue_command(command, &block)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
159
|
+
# existing policy.
|
|
160
|
+
# @param [String] resource
|
|
161
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
162
|
+
# See the operation documentation for the appropriate value for this field.
|
|
163
|
+
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
164
|
+
# @param [String] quota_user
|
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
167
|
+
# @param [String] fields
|
|
168
|
+
# Selector specifying which fields to include in a partial response.
|
|
169
|
+
# @param [Google::Apis::RequestOptions] options
|
|
170
|
+
# Request-specific options
|
|
171
|
+
#
|
|
172
|
+
# @yield [result, err] Result & error if block supplied
|
|
173
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
|
|
174
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
175
|
+
#
|
|
176
|
+
# @return [Google::Apis::CloudkmsV1::Policy]
|
|
177
|
+
#
|
|
178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
181
|
+
def set_key_ring_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
182
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
183
|
+
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
|
|
184
|
+
command.request_object = set_iam_policy_request_object
|
|
185
|
+
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
|
186
|
+
command.response_class = Google::Apis::CloudkmsV1::Policy
|
|
187
|
+
command.params['resource'] = resource unless resource.nil?
|
|
116
188
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
189
|
+
command.query['fields'] = fields unless fields.nil?
|
|
117
190
|
execute_or_queue_command(command, &block)
|
|
118
191
|
end
|
|
119
192
|
|
|
@@ -123,11 +196,11 @@ module Google
|
|
|
123
196
|
# @param [String] resource
|
|
124
197
|
# REQUIRED: The resource for which the policy is being requested.
|
|
125
198
|
# See the operation documentation for the appropriate value for this field.
|
|
126
|
-
# @param [String] fields
|
|
127
|
-
# Selector specifying which fields to include in a partial response.
|
|
128
199
|
# @param [String] quota_user
|
|
129
200
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
130
201
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
202
|
+
# @param [String] fields
|
|
203
|
+
# Selector specifying which fields to include in a partial response.
|
|
131
204
|
# @param [Google::Apis::RequestOptions] options
|
|
132
205
|
# Request-specific options
|
|
133
206
|
#
|
|
@@ -140,24 +213,24 @@ module Google
|
|
|
140
213
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
141
214
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
142
215
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
143
|
-
def get_project_location_key_ring_iam_policy(resource,
|
|
216
|
+
def get_project_location_key_ring_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
|
|
144
217
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
145
218
|
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
|
146
219
|
command.response_class = Google::Apis::CloudkmsV1::Policy
|
|
147
220
|
command.params['resource'] = resource unless resource.nil?
|
|
148
|
-
command.query['fields'] = fields unless fields.nil?
|
|
149
221
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
222
|
+
command.query['fields'] = fields unless fields.nil?
|
|
150
223
|
execute_or_queue_command(command, &block)
|
|
151
224
|
end
|
|
152
225
|
|
|
153
226
|
# Returns metadata for a given KeyRing.
|
|
154
227
|
# @param [String] name
|
|
155
228
|
# The name of the KeyRing to get.
|
|
156
|
-
# @param [String] fields
|
|
157
|
-
# Selector specifying which fields to include in a partial response.
|
|
158
229
|
# @param [String] quota_user
|
|
159
230
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
160
231
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
232
|
+
# @param [String] fields
|
|
233
|
+
# Selector specifying which fields to include in a partial response.
|
|
161
234
|
# @param [Google::Apis::RequestOptions] options
|
|
162
235
|
# Request-specific options
|
|
163
236
|
#
|
|
@@ -170,13 +243,13 @@ module Google
|
|
|
170
243
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
171
244
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
172
245
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
173
|
-
def get_project_location_key_ring(name,
|
|
246
|
+
def get_project_location_key_ring(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
174
247
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
175
248
|
command.response_representation = Google::Apis::CloudkmsV1::KeyRing::Representation
|
|
176
249
|
command.response_class = Google::Apis::CloudkmsV1::KeyRing
|
|
177
250
|
command.params['name'] = name unless name.nil?
|
|
178
|
-
command.query['fields'] = fields unless fields.nil?
|
|
179
251
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
252
|
+
command.query['fields'] = fields unless fields.nil?
|
|
180
253
|
execute_or_queue_command(command, &block)
|
|
181
254
|
end
|
|
182
255
|
|
|
@@ -190,11 +263,11 @@ module Google
|
|
|
190
263
|
# REQUIRED: The resource for which the policy detail is being requested.
|
|
191
264
|
# See the operation documentation for the appropriate value for this field.
|
|
192
265
|
# @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
193
|
-
# @param [String] fields
|
|
194
|
-
# Selector specifying which fields to include in a partial response.
|
|
195
266
|
# @param [String] quota_user
|
|
196
267
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
197
268
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
269
|
+
# @param [String] fields
|
|
270
|
+
# Selector specifying which fields to include in a partial response.
|
|
198
271
|
# @param [Google::Apis::RequestOptions] options
|
|
199
272
|
# Request-specific options
|
|
200
273
|
#
|
|
@@ -207,15 +280,15 @@ module Google
|
|
|
207
280
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
208
281
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
209
282
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
210
|
-
def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
|
283
|
+
def test_key_ring_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
211
284
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
212
285
|
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
|
|
213
286
|
command.request_object = test_iam_permissions_request_object
|
|
214
287
|
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
|
|
215
288
|
command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
|
|
216
289
|
command.params['resource'] = resource unless resource.nil?
|
|
217
|
-
command.query['fields'] = fields unless fields.nil?
|
|
218
290
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
291
|
+
command.query['fields'] = fields unless fields.nil?
|
|
219
292
|
execute_or_queue_command(command, &block)
|
|
220
293
|
end
|
|
221
294
|
|
|
@@ -231,11 +304,11 @@ module Google
|
|
|
231
304
|
# response. Further KeyRings can subsequently be obtained by
|
|
232
305
|
# including the ListKeyRingsResponse.next_page_token in a subsequent
|
|
233
306
|
# request. If unspecified, the server will pick an appropriate default.
|
|
234
|
-
# @param [String] fields
|
|
235
|
-
# Selector specifying which fields to include in a partial response.
|
|
236
307
|
# @param [String] quota_user
|
|
237
308
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
238
309
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
310
|
+
# @param [String] fields
|
|
311
|
+
# Selector specifying which fields to include in a partial response.
|
|
239
312
|
# @param [Google::Apis::RequestOptions] options
|
|
240
313
|
# Request-specific options
|
|
241
314
|
#
|
|
@@ -248,88 +321,88 @@ module Google
|
|
|
248
321
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
249
322
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
250
323
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
251
|
-
def list_project_location_key_rings(parent, page_token: nil, page_size: nil,
|
|
324
|
+
def list_project_location_key_rings(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
252
325
|
command = make_simple_command(:get, 'v1/{+parent}/keyRings', options)
|
|
253
326
|
command.response_representation = Google::Apis::CloudkmsV1::ListKeyRingsResponse::Representation
|
|
254
327
|
command.response_class = Google::Apis::CloudkmsV1::ListKeyRingsResponse
|
|
255
328
|
command.params['parent'] = parent unless parent.nil?
|
|
256
329
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
257
330
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
258
|
-
command.query['fields'] = fields unless fields.nil?
|
|
259
331
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
332
|
+
command.query['fields'] = fields unless fields.nil?
|
|
260
333
|
execute_or_queue_command(command, &block)
|
|
261
334
|
end
|
|
262
335
|
|
|
263
|
-
#
|
|
264
|
-
#
|
|
265
|
-
#
|
|
266
|
-
#
|
|
267
|
-
#
|
|
268
|
-
#
|
|
269
|
-
#
|
|
270
|
-
#
|
|
271
|
-
#
|
|
272
|
-
#
|
|
336
|
+
# Returns permissions that a caller has on the specified resource.
|
|
337
|
+
# If the resource does not exist, this will return an empty set of
|
|
338
|
+
# permissions, not a NOT_FOUND error.
|
|
339
|
+
# Note: This operation is designed to be used for building permission-aware
|
|
340
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
|
341
|
+
# may "fail open" without warning.
|
|
342
|
+
# @param [String] resource
|
|
343
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
344
|
+
# See the operation documentation for the appropriate value for this field.
|
|
345
|
+
# @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
273
346
|
# @param [String] quota_user
|
|
274
347
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
275
348
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
349
|
+
# @param [String] fields
|
|
350
|
+
# Selector specifying which fields to include in a partial response.
|
|
276
351
|
# @param [Google::Apis::RequestOptions] options
|
|
277
352
|
# Request-specific options
|
|
278
353
|
#
|
|
279
354
|
# @yield [result, err] Result & error if block supplied
|
|
280
|
-
# @yieldparam result [Google::Apis::CloudkmsV1::
|
|
355
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
|
|
281
356
|
# @yieldparam err [StandardError] error object if request failed
|
|
282
357
|
#
|
|
283
|
-
# @return [Google::Apis::CloudkmsV1::
|
|
358
|
+
# @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
|
|
284
359
|
#
|
|
285
360
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
286
361
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
287
362
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
288
|
-
def
|
|
289
|
-
command = make_simple_command(:post, 'v1/{+
|
|
290
|
-
command.request_representation = Google::Apis::CloudkmsV1::
|
|
291
|
-
command.request_object =
|
|
292
|
-
command.response_representation = Google::Apis::CloudkmsV1::
|
|
293
|
-
command.response_class = Google::Apis::CloudkmsV1::
|
|
294
|
-
command.params['
|
|
295
|
-
command.query['keyRingId'] = key_ring_id unless key_ring_id.nil?
|
|
296
|
-
command.query['fields'] = fields unless fields.nil?
|
|
363
|
+
def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
364
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
365
|
+
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
|
|
366
|
+
command.request_object = test_iam_permissions_request_object
|
|
367
|
+
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
|
|
368
|
+
command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
|
|
369
|
+
command.params['resource'] = resource unless resource.nil?
|
|
297
370
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
371
|
+
command.query['fields'] = fields unless fields.nil?
|
|
298
372
|
execute_or_queue_command(command, &block)
|
|
299
373
|
end
|
|
300
374
|
|
|
301
|
-
#
|
|
302
|
-
#
|
|
303
|
-
#
|
|
304
|
-
#
|
|
305
|
-
#
|
|
306
|
-
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
307
|
-
# @param [String] fields
|
|
308
|
-
# Selector specifying which fields to include in a partial response.
|
|
375
|
+
# Decrypt data that was protected by Encrypt.
|
|
376
|
+
# @param [String] name
|
|
377
|
+
# Required. The resource name of the CryptoKey to use for decryption.
|
|
378
|
+
# The server will choose the appropriate version.
|
|
379
|
+
# @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object
|
|
309
380
|
# @param [String] quota_user
|
|
310
381
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
311
382
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
383
|
+
# @param [String] fields
|
|
384
|
+
# Selector specifying which fields to include in a partial response.
|
|
312
385
|
# @param [Google::Apis::RequestOptions] options
|
|
313
386
|
# Request-specific options
|
|
314
387
|
#
|
|
315
388
|
# @yield [result, err] Result & error if block supplied
|
|
316
|
-
# @yieldparam result [Google::Apis::CloudkmsV1::
|
|
389
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::DecryptResponse] parsed result object
|
|
317
390
|
# @yieldparam err [StandardError] error object if request failed
|
|
318
391
|
#
|
|
319
|
-
# @return [Google::Apis::CloudkmsV1::
|
|
392
|
+
# @return [Google::Apis::CloudkmsV1::DecryptResponse]
|
|
320
393
|
#
|
|
321
394
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
322
395
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
323
396
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
324
|
-
def
|
|
325
|
-
command = make_simple_command(:post, 'v1/{+
|
|
326
|
-
command.request_representation = Google::Apis::CloudkmsV1::
|
|
327
|
-
command.request_object =
|
|
328
|
-
command.response_representation = Google::Apis::CloudkmsV1::
|
|
329
|
-
command.response_class = Google::Apis::CloudkmsV1::
|
|
330
|
-
command.params['
|
|
331
|
-
command.query['fields'] = fields unless fields.nil?
|
|
397
|
+
def decrypt_crypto_key(name, decrypt_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
398
|
+
command = make_simple_command(:post, 'v1/{+name}:decrypt', options)
|
|
399
|
+
command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation
|
|
400
|
+
command.request_object = decrypt_request_object
|
|
401
|
+
command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation
|
|
402
|
+
command.response_class = Google::Apis::CloudkmsV1::DecryptResponse
|
|
403
|
+
command.params['name'] = name unless name.nil?
|
|
332
404
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
405
|
+
command.query['fields'] = fields unless fields.nil?
|
|
333
406
|
execute_or_queue_command(command, &block)
|
|
334
407
|
end
|
|
335
408
|
|
|
@@ -345,11 +418,11 @@ module Google
|
|
|
345
418
|
# response. Further CryptoKeys can subsequently be obtained by
|
|
346
419
|
# including the ListCryptoKeysResponse.next_page_token in a subsequent
|
|
347
420
|
# request. If unspecified, the server will pick an appropriate default.
|
|
348
|
-
# @param [String] fields
|
|
349
|
-
# Selector specifying which fields to include in a partial response.
|
|
350
421
|
# @param [String] quota_user
|
|
351
422
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
352
423
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
424
|
+
# @param [String] fields
|
|
425
|
+
# Selector specifying which fields to include in a partial response.
|
|
353
426
|
# @param [Google::Apis::RequestOptions] options
|
|
354
427
|
# Request-specific options
|
|
355
428
|
#
|
|
@@ -362,15 +435,15 @@ module Google
|
|
|
362
435
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
363
436
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
364
437
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
365
|
-
def list_project_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil,
|
|
438
|
+
def list_project_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
366
439
|
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
|
|
367
440
|
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
|
|
368
441
|
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
|
|
369
442
|
command.params['parent'] = parent unless parent.nil?
|
|
370
443
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
371
444
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
372
|
-
command.query['fields'] = fields unless fields.nil?
|
|
373
445
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
446
|
+
command.query['fields'] = fields unless fields.nil?
|
|
374
447
|
execute_or_queue_command(command, &block)
|
|
375
448
|
end
|
|
376
449
|
|
|
@@ -381,11 +454,11 @@ module Google
|
|
|
381
454
|
# If a CryptoKey is specified, the server will use its
|
|
382
455
|
# primary version.
|
|
383
456
|
# @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_request_object
|
|
384
|
-
# @param [String] fields
|
|
385
|
-
# Selector specifying which fields to include in a partial response.
|
|
386
457
|
# @param [String] quota_user
|
|
387
458
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
388
459
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
460
|
+
# @param [String] fields
|
|
461
|
+
# Selector specifying which fields to include in a partial response.
|
|
389
462
|
# @param [Google::Apis::RequestOptions] options
|
|
390
463
|
# Request-specific options
|
|
391
464
|
#
|
|
@@ -398,50 +471,15 @@ module Google
|
|
|
398
471
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
399
472
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
400
473
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
401
|
-
def encrypt_crypto_key(name, encrypt_request_object = nil,
|
|
474
|
+
def encrypt_crypto_key(name, encrypt_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
402
475
|
command = make_simple_command(:post, 'v1/{+name}:encrypt', options)
|
|
403
476
|
command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation
|
|
404
477
|
command.request_object = encrypt_request_object
|
|
405
478
|
command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation
|
|
406
479
|
command.response_class = Google::Apis::CloudkmsV1::EncryptResponse
|
|
407
480
|
command.params['name'] = name unless name.nil?
|
|
408
|
-
command.query['fields'] = fields unless fields.nil?
|
|
409
481
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
410
|
-
execute_or_queue_command(command, &block)
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
# Sets the access control policy on the specified resource. Replaces any
|
|
414
|
-
# existing policy.
|
|
415
|
-
# @param [String] resource
|
|
416
|
-
# REQUIRED: The resource for which the policy is being specified.
|
|
417
|
-
# See the operation documentation for the appropriate value for this field.
|
|
418
|
-
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
419
|
-
# @param [String] fields
|
|
420
|
-
# Selector specifying which fields to include in a partial response.
|
|
421
|
-
# @param [String] quota_user
|
|
422
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
423
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
424
|
-
# @param [Google::Apis::RequestOptions] options
|
|
425
|
-
# Request-specific options
|
|
426
|
-
#
|
|
427
|
-
# @yield [result, err] Result & error if block supplied
|
|
428
|
-
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
|
|
429
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
430
|
-
#
|
|
431
|
-
# @return [Google::Apis::CloudkmsV1::Policy]
|
|
432
|
-
#
|
|
433
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
434
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
435
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
436
|
-
def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
437
|
-
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
438
|
-
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
|
|
439
|
-
command.request_object = set_iam_policy_request_object
|
|
440
|
-
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
|
441
|
-
command.response_class = Google::Apis::CloudkmsV1::Policy
|
|
442
|
-
command.params['resource'] = resource unless resource.nil?
|
|
443
482
|
command.query['fields'] = fields unless fields.nil?
|
|
444
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
445
483
|
execute_or_queue_command(command, &block)
|
|
446
484
|
end
|
|
447
485
|
|
|
@@ -454,11 +492,11 @@ module Google
|
|
|
454
492
|
# @param [String] crypto_key_id
|
|
455
493
|
# Required. It must be unique within a KeyRing and match the regular
|
|
456
494
|
# expression `[a-zA-Z0-9_-]`1,63``
|
|
457
|
-
# @param [String] fields
|
|
458
|
-
# Selector specifying which fields to include in a partial response.
|
|
459
495
|
# @param [String] quota_user
|
|
460
496
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
461
497
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
498
|
+
# @param [String] fields
|
|
499
|
+
# Selector specifying which fields to include in a partial response.
|
|
462
500
|
# @param [Google::Apis::RequestOptions] options
|
|
463
501
|
# Request-specific options
|
|
464
502
|
#
|
|
@@ -471,7 +509,7 @@ module Google
|
|
|
471
509
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
472
510
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
473
511
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
474
|
-
def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil,
|
|
512
|
+
def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
475
513
|
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options)
|
|
476
514
|
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
477
515
|
command.request_object = crypto_key_object
|
|
@@ -479,8 +517,43 @@ module Google
|
|
|
479
517
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
|
|
480
518
|
command.params['parent'] = parent unless parent.nil?
|
|
481
519
|
command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
|
|
520
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
482
521
|
command.query['fields'] = fields unless fields.nil?
|
|
522
|
+
execute_or_queue_command(command, &block)
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
526
|
+
# existing policy.
|
|
527
|
+
# @param [String] resource
|
|
528
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
529
|
+
# See the operation documentation for the appropriate value for this field.
|
|
530
|
+
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
531
|
+
# @param [String] quota_user
|
|
532
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
533
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
534
|
+
# @param [String] fields
|
|
535
|
+
# Selector specifying which fields to include in a partial response.
|
|
536
|
+
# @param [Google::Apis::RequestOptions] options
|
|
537
|
+
# Request-specific options
|
|
538
|
+
#
|
|
539
|
+
# @yield [result, err] Result & error if block supplied
|
|
540
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
|
|
541
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
542
|
+
#
|
|
543
|
+
# @return [Google::Apis::CloudkmsV1::Policy]
|
|
544
|
+
#
|
|
545
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
546
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
547
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
548
|
+
def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
549
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
550
|
+
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
|
|
551
|
+
command.request_object = set_iam_policy_request_object
|
|
552
|
+
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
|
553
|
+
command.response_class = Google::Apis::CloudkmsV1::Policy
|
|
554
|
+
command.params['resource'] = resource unless resource.nil?
|
|
483
555
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
556
|
+
command.query['fields'] = fields unless fields.nil?
|
|
484
557
|
execute_or_queue_command(command, &block)
|
|
485
558
|
end
|
|
486
559
|
|
|
@@ -488,11 +561,11 @@ module Google
|
|
|
488
561
|
# @param [String] name
|
|
489
562
|
# The resource name of the CryptoKey to update.
|
|
490
563
|
# @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
|
|
491
|
-
# @param [String] fields
|
|
492
|
-
# Selector specifying which fields to include in a partial response.
|
|
493
564
|
# @param [String] quota_user
|
|
494
565
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
495
566
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
567
|
+
# @param [String] fields
|
|
568
|
+
# Selector specifying which fields to include in a partial response.
|
|
496
569
|
# @param [Google::Apis::RequestOptions] options
|
|
497
570
|
# Request-specific options
|
|
498
571
|
#
|
|
@@ -505,15 +578,15 @@ module Google
|
|
|
505
578
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
506
579
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
507
580
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
508
|
-
def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil,
|
|
581
|
+
def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
509
582
|
command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options)
|
|
510
583
|
command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation
|
|
511
584
|
command.request_object = update_crypto_key_primary_version_request_object
|
|
512
585
|
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
513
586
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
|
|
514
587
|
command.params['name'] = name unless name.nil?
|
|
515
|
-
command.query['fields'] = fields unless fields.nil?
|
|
516
588
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
589
|
+
command.query['fields'] = fields unless fields.nil?
|
|
517
590
|
execute_or_queue_command(command, &block)
|
|
518
591
|
end
|
|
519
592
|
|
|
@@ -523,11 +596,11 @@ module Google
|
|
|
523
596
|
# @param [String] resource
|
|
524
597
|
# REQUIRED: The resource for which the policy is being requested.
|
|
525
598
|
# See the operation documentation for the appropriate value for this field.
|
|
526
|
-
# @param [String] fields
|
|
527
|
-
# Selector specifying which fields to include in a partial response.
|
|
528
599
|
# @param [String] quota_user
|
|
529
600
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
530
601
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
602
|
+
# @param [String] fields
|
|
603
|
+
# Selector specifying which fields to include in a partial response.
|
|
531
604
|
# @param [Google::Apis::RequestOptions] options
|
|
532
605
|
# Request-specific options
|
|
533
606
|
#
|
|
@@ -540,28 +613,25 @@ module Google
|
|
|
540
613
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
541
614
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
542
615
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
543
|
-
def get_project_location_key_ring_crypto_key_iam_policy(resource,
|
|
616
|
+
def get_project_location_key_ring_crypto_key_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
|
|
544
617
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
545
618
|
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
|
546
619
|
command.response_class = Google::Apis::CloudkmsV1::Policy
|
|
547
620
|
command.params['resource'] = resource unless resource.nil?
|
|
548
|
-
command.query['fields'] = fields unless fields.nil?
|
|
549
621
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
622
|
+
command.query['fields'] = fields unless fields.nil?
|
|
550
623
|
execute_or_queue_command(command, &block)
|
|
551
624
|
end
|
|
552
625
|
|
|
553
|
-
#
|
|
626
|
+
# Returns metadata for a given CryptoKey, as well as its
|
|
627
|
+
# primary CryptoKeyVersion.
|
|
554
628
|
# @param [String] name
|
|
555
|
-
#
|
|
556
|
-
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
|
557
|
-
# @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
|
|
558
|
-
# @param [String] update_mask
|
|
559
|
-
# Required list of fields to be updated in this request.
|
|
560
|
-
# @param [String] fields
|
|
561
|
-
# Selector specifying which fields to include in a partial response.
|
|
629
|
+
# The name of the CryptoKey to get.
|
|
562
630
|
# @param [String] quota_user
|
|
563
631
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
564
632
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
633
|
+
# @param [String] fields
|
|
634
|
+
# Selector specifying which fields to include in a partial response.
|
|
565
635
|
# @param [Google::Apis::RequestOptions] options
|
|
566
636
|
# Request-specific options
|
|
567
637
|
#
|
|
@@ -574,28 +644,28 @@ module Google
|
|
|
574
644
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
575
645
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
576
646
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
577
|
-
def
|
|
578
|
-
command = make_simple_command(:
|
|
579
|
-
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
580
|
-
command.request_object = crypto_key_object
|
|
647
|
+
def get_project_location_key_ring_crypto_key(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
648
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
581
649
|
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
582
650
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
|
|
583
651
|
command.params['name'] = name unless name.nil?
|
|
584
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
585
|
-
command.query['fields'] = fields unless fields.nil?
|
|
586
652
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
653
|
+
command.query['fields'] = fields unless fields.nil?
|
|
587
654
|
execute_or_queue_command(command, &block)
|
|
588
655
|
end
|
|
589
656
|
|
|
590
|
-
#
|
|
591
|
-
# primary CryptoKeyVersion.
|
|
657
|
+
# Update a CryptoKey.
|
|
592
658
|
# @param [String] name
|
|
593
|
-
# The name
|
|
594
|
-
#
|
|
595
|
-
#
|
|
659
|
+
# Output only. The resource name for this CryptoKey in the format
|
|
660
|
+
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
|
661
|
+
# @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
|
|
662
|
+
# @param [String] update_mask
|
|
663
|
+
# Required list of fields to be updated in this request.
|
|
596
664
|
# @param [String] quota_user
|
|
597
665
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
598
666
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
667
|
+
# @param [String] fields
|
|
668
|
+
# Selector specifying which fields to include in a partial response.
|
|
599
669
|
# @param [Google::Apis::RequestOptions] options
|
|
600
670
|
# Request-specific options
|
|
601
671
|
#
|
|
@@ -608,86 +678,95 @@ module Google
|
|
|
608
678
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
609
679
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
610
680
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
611
|
-
def
|
|
612
|
-
command = make_simple_command(:
|
|
681
|
+
def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
682
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
683
|
+
command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
684
|
+
command.request_object = crypto_key_object
|
|
613
685
|
command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
|
|
614
686
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKey
|
|
615
687
|
command.params['name'] = name unless name.nil?
|
|
616
|
-
command.query['
|
|
688
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
617
689
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
690
|
+
command.query['fields'] = fields unless fields.nil?
|
|
618
691
|
execute_or_queue_command(command, &block)
|
|
619
692
|
end
|
|
620
693
|
|
|
621
|
-
#
|
|
622
|
-
#
|
|
623
|
-
#
|
|
624
|
-
#
|
|
625
|
-
#
|
|
626
|
-
#
|
|
627
|
-
#
|
|
628
|
-
#
|
|
629
|
-
#
|
|
630
|
-
#
|
|
631
|
-
#
|
|
632
|
-
#
|
|
694
|
+
# Lists CryptoKeyVersions.
|
|
695
|
+
# @param [String] parent
|
|
696
|
+
# Required. The resource name of the CryptoKey to list, in the format
|
|
697
|
+
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
|
698
|
+
# @param [String] page_token
|
|
699
|
+
# Optional pagination token, returned earlier via
|
|
700
|
+
# ListCryptoKeyVersionsResponse.next_page_token.
|
|
701
|
+
# @param [Fixnum] page_size
|
|
702
|
+
# Optional limit on the number of CryptoKeyVersions to
|
|
703
|
+
# include in the response. Further CryptoKeyVersions can
|
|
704
|
+
# subsequently be obtained by including the
|
|
705
|
+
# ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
|
|
706
|
+
# If unspecified, the server will pick an appropriate default.
|
|
633
707
|
# @param [String] quota_user
|
|
634
708
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
635
709
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
710
|
+
# @param [String] fields
|
|
711
|
+
# Selector specifying which fields to include in a partial response.
|
|
636
712
|
# @param [Google::Apis::RequestOptions] options
|
|
637
713
|
# Request-specific options
|
|
638
714
|
#
|
|
639
715
|
# @yield [result, err] Result & error if block supplied
|
|
640
|
-
# @yieldparam result [Google::Apis::CloudkmsV1::
|
|
716
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse] parsed result object
|
|
641
717
|
# @yieldparam err [StandardError] error object if request failed
|
|
642
718
|
#
|
|
643
|
-
# @return [Google::Apis::CloudkmsV1::
|
|
719
|
+
# @return [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse]
|
|
644
720
|
#
|
|
645
721
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
646
722
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
647
723
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
648
|
-
def
|
|
649
|
-
command = make_simple_command(:
|
|
650
|
-
command.
|
|
651
|
-
command.
|
|
652
|
-
command.
|
|
653
|
-
command.
|
|
654
|
-
command.
|
|
655
|
-
command.query['fields'] = fields unless fields.nil?
|
|
724
|
+
def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
725
|
+
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options)
|
|
726
|
+
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation
|
|
727
|
+
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse
|
|
728
|
+
command.params['parent'] = parent unless parent.nil?
|
|
729
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
730
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
656
731
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
732
|
+
command.query['fields'] = fields unless fields.nil?
|
|
657
733
|
execute_or_queue_command(command, &block)
|
|
658
734
|
end
|
|
659
735
|
|
|
660
|
-
#
|
|
661
|
-
#
|
|
662
|
-
#
|
|
663
|
-
#
|
|
664
|
-
# @param [
|
|
665
|
-
#
|
|
666
|
-
#
|
|
736
|
+
# Create a new CryptoKeyVersion in a CryptoKey.
|
|
737
|
+
# The server will assign the next sequential id. If unset,
|
|
738
|
+
# state will be set to
|
|
739
|
+
# ENABLED.
|
|
740
|
+
# @param [String] parent
|
|
741
|
+
# Required. The name of the CryptoKey associated with
|
|
742
|
+
# the CryptoKeyVersions.
|
|
743
|
+
# @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
|
|
667
744
|
# @param [String] quota_user
|
|
668
745
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
669
746
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
747
|
+
# @param [String] fields
|
|
748
|
+
# Selector specifying which fields to include in a partial response.
|
|
670
749
|
# @param [Google::Apis::RequestOptions] options
|
|
671
750
|
# Request-specific options
|
|
672
751
|
#
|
|
673
752
|
# @yield [result, err] Result & error if block supplied
|
|
674
|
-
# @yieldparam result [Google::Apis::CloudkmsV1::
|
|
753
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
|
|
675
754
|
# @yieldparam err [StandardError] error object if request failed
|
|
676
755
|
#
|
|
677
|
-
# @return [Google::Apis::CloudkmsV1::
|
|
756
|
+
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
|
|
678
757
|
#
|
|
679
758
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
680
759
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
681
760
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
682
|
-
def
|
|
683
|
-
command = make_simple_command(:post, 'v1/{+
|
|
684
|
-
command.request_representation = Google::Apis::CloudkmsV1::
|
|
685
|
-
command.request_object =
|
|
686
|
-
command.response_representation = Google::Apis::CloudkmsV1::
|
|
687
|
-
command.response_class = Google::Apis::CloudkmsV1::
|
|
688
|
-
command.params['
|
|
689
|
-
command.query['fields'] = fields unless fields.nil?
|
|
761
|
+
def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
762
|
+
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
|
|
763
|
+
command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
764
|
+
command.request_object = crypto_key_version_object
|
|
765
|
+
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
766
|
+
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
|
767
|
+
command.params['parent'] = parent unless parent.nil?
|
|
690
768
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
769
|
+
command.query['fields'] = fields unless fields.nil?
|
|
691
770
|
execute_or_queue_command(command, &block)
|
|
692
771
|
end
|
|
693
772
|
|
|
@@ -704,11 +783,11 @@ module Google
|
|
|
704
783
|
# @param [String] name
|
|
705
784
|
# The resource name of the CryptoKeyVersion to destroy.
|
|
706
785
|
# @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
|
|
707
|
-
# @param [String] fields
|
|
708
|
-
# Selector specifying which fields to include in a partial response.
|
|
709
786
|
# @param [String] quota_user
|
|
710
787
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
711
788
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
789
|
+
# @param [String] fields
|
|
790
|
+
# Selector specifying which fields to include in a partial response.
|
|
712
791
|
# @param [Google::Apis::RequestOptions] options
|
|
713
792
|
# Request-specific options
|
|
714
793
|
#
|
|
@@ -721,52 +800,15 @@ module Google
|
|
|
721
800
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
722
801
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
723
802
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
724
|
-
def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil,
|
|
803
|
+
def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
725
804
|
command = make_simple_command(:post, 'v1/{+name}:destroy', options)
|
|
726
805
|
command.request_representation = Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest::Representation
|
|
727
806
|
command.request_object = destroy_crypto_key_version_request_object
|
|
728
807
|
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
729
808
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
|
730
809
|
command.params['name'] = name unless name.nil?
|
|
731
|
-
command.query['fields'] = fields unless fields.nil?
|
|
732
810
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
733
|
-
execute_or_queue_command(command, &block)
|
|
734
|
-
end
|
|
735
|
-
|
|
736
|
-
# Create a new CryptoKeyVersion in a CryptoKey.
|
|
737
|
-
# The server will assign the next sequential id. If unset,
|
|
738
|
-
# state will be set to
|
|
739
|
-
# ENABLED.
|
|
740
|
-
# @param [String] parent
|
|
741
|
-
# Required. The name of the CryptoKey associated with
|
|
742
|
-
# the CryptoKeyVersions.
|
|
743
|
-
# @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
|
|
744
|
-
# @param [String] fields
|
|
745
|
-
# Selector specifying which fields to include in a partial response.
|
|
746
|
-
# @param [String] quota_user
|
|
747
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
748
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
749
|
-
# @param [Google::Apis::RequestOptions] options
|
|
750
|
-
# Request-specific options
|
|
751
|
-
#
|
|
752
|
-
# @yield [result, err] Result & error if block supplied
|
|
753
|
-
# @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object
|
|
754
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
755
|
-
#
|
|
756
|
-
# @return [Google::Apis::CloudkmsV1::CryptoKeyVersion]
|
|
757
|
-
#
|
|
758
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
759
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
760
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
761
|
-
def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
762
|
-
command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
|
|
763
|
-
command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
764
|
-
command.request_object = crypto_key_version_object
|
|
765
|
-
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
766
|
-
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
|
767
|
-
command.params['parent'] = parent unless parent.nil?
|
|
768
811
|
command.query['fields'] = fields unless fields.nil?
|
|
769
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
770
812
|
execute_or_queue_command(command, &block)
|
|
771
813
|
end
|
|
772
814
|
|
|
@@ -779,11 +821,11 @@ module Google
|
|
|
779
821
|
# @param [String] name
|
|
780
822
|
# The resource name of the CryptoKeyVersion to restore.
|
|
781
823
|
# @param [Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object
|
|
782
|
-
# @param [String] fields
|
|
783
|
-
# Selector specifying which fields to include in a partial response.
|
|
784
824
|
# @param [String] quota_user
|
|
785
825
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
786
826
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
827
|
+
# @param [String] fields
|
|
828
|
+
# Selector specifying which fields to include in a partial response.
|
|
787
829
|
# @param [Google::Apis::RequestOptions] options
|
|
788
830
|
# Request-specific options
|
|
789
831
|
#
|
|
@@ -796,15 +838,15 @@ module Google
|
|
|
796
838
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
797
839
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
798
840
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
799
|
-
def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil,
|
|
841
|
+
def restore_crypto_key_version(name, restore_crypto_key_version_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
800
842
|
command = make_simple_command(:post, 'v1/{+name}:restore', options)
|
|
801
843
|
command.request_representation = Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest::Representation
|
|
802
844
|
command.request_object = restore_crypto_key_version_request_object
|
|
803
845
|
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
804
846
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
|
805
847
|
command.params['name'] = name unless name.nil?
|
|
806
|
-
command.query['fields'] = fields unless fields.nil?
|
|
807
848
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
849
|
+
command.query['fields'] = fields unless fields.nil?
|
|
808
850
|
execute_or_queue_command(command, &block)
|
|
809
851
|
end
|
|
810
852
|
|
|
@@ -820,11 +862,11 @@ module Google
|
|
|
820
862
|
# @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
|
|
821
863
|
# @param [String] update_mask
|
|
822
864
|
# Required list of fields to be updated in this request.
|
|
823
|
-
# @param [String] fields
|
|
824
|
-
# Selector specifying which fields to include in a partial response.
|
|
825
865
|
# @param [String] quota_user
|
|
826
866
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
827
867
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
868
|
+
# @param [String] fields
|
|
869
|
+
# Selector specifying which fields to include in a partial response.
|
|
828
870
|
# @param [Google::Apis::RequestOptions] options
|
|
829
871
|
# Request-specific options
|
|
830
872
|
#
|
|
@@ -837,7 +879,7 @@ module Google
|
|
|
837
879
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
838
880
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
839
881
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
840
|
-
def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil,
|
|
882
|
+
def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
841
883
|
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
842
884
|
command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
843
885
|
command.request_object = crypto_key_version_object
|
|
@@ -845,19 +887,19 @@ module Google
|
|
|
845
887
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
|
846
888
|
command.params['name'] = name unless name.nil?
|
|
847
889
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
848
|
-
command.query['fields'] = fields unless fields.nil?
|
|
849
890
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
891
|
+
command.query['fields'] = fields unless fields.nil?
|
|
850
892
|
execute_or_queue_command(command, &block)
|
|
851
893
|
end
|
|
852
894
|
|
|
853
895
|
# Returns metadata for a given CryptoKeyVersion.
|
|
854
896
|
# @param [String] name
|
|
855
897
|
# The name of the CryptoKeyVersion to get.
|
|
856
|
-
# @param [String] fields
|
|
857
|
-
# Selector specifying which fields to include in a partial response.
|
|
858
898
|
# @param [String] quota_user
|
|
859
899
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
860
900
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
901
|
+
# @param [String] fields
|
|
902
|
+
# Selector specifying which fields to include in a partial response.
|
|
861
903
|
# @param [Google::Apis::RequestOptions] options
|
|
862
904
|
# Request-specific options
|
|
863
905
|
#
|
|
@@ -870,55 +912,13 @@ module Google
|
|
|
870
912
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
871
913
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
872
914
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
873
|
-
def get_project_location_key_ring_crypto_key_crypto_key_version(name,
|
|
915
|
+
def get_project_location_key_ring_crypto_key_crypto_key_version(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
874
916
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
875
917
|
command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
|
|
876
918
|
command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
|
|
877
919
|
command.params['name'] = name unless name.nil?
|
|
878
|
-
command.query['fields'] = fields unless fields.nil?
|
|
879
920
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
880
|
-
execute_or_queue_command(command, &block)
|
|
881
|
-
end
|
|
882
|
-
|
|
883
|
-
# Lists CryptoKeyVersions.
|
|
884
|
-
# @param [String] parent
|
|
885
|
-
# Required. The resource name of the CryptoKey to list, in the format
|
|
886
|
-
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
|
887
|
-
# @param [String] page_token
|
|
888
|
-
# Optional pagination token, returned earlier via
|
|
889
|
-
# ListCryptoKeyVersionsResponse.next_page_token.
|
|
890
|
-
# @param [Fixnum] page_size
|
|
891
|
-
# Optional limit on the number of CryptoKeyVersions to
|
|
892
|
-
# include in the response. Further CryptoKeyVersions can
|
|
893
|
-
# subsequently be obtained by including the
|
|
894
|
-
# ListCryptoKeyVersionsResponse.next_page_token in a subsequent request.
|
|
895
|
-
# If unspecified, the server will pick an appropriate default.
|
|
896
|
-
# @param [String] fields
|
|
897
|
-
# Selector specifying which fields to include in a partial response.
|
|
898
|
-
# @param [String] quota_user
|
|
899
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
900
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
901
|
-
# @param [Google::Apis::RequestOptions] options
|
|
902
|
-
# Request-specific options
|
|
903
|
-
#
|
|
904
|
-
# @yield [result, err] Result & error if block supplied
|
|
905
|
-
# @yieldparam result [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse] parsed result object
|
|
906
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
907
|
-
#
|
|
908
|
-
# @return [Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse]
|
|
909
|
-
#
|
|
910
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
911
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
912
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
913
|
-
def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
914
|
-
command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options)
|
|
915
|
-
command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation
|
|
916
|
-
command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse
|
|
917
|
-
command.params['parent'] = parent unless parent.nil?
|
|
918
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
919
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
920
921
|
command.query['fields'] = fields unless fields.nil?
|
|
921
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
922
922
|
execute_or_queue_command(command, &block)
|
|
923
923
|
end
|
|
924
924
|
|