google-api-client 0.39.5 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +39 -4
- data/generated/google/apis/apigee_v1/representations.rb +5 -0
- data/generated/google/apis/apigee_v1/service.rb +15 -13
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -0
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +2 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
- data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
- data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
- data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
- data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +281 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +23 -7
- data/generated/google/apis/compute_alpha/representations.rb +3 -1
- data/generated/google/apis/compute_alpha/service.rb +671 -671
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1 -1
- data/generated/google/apis/compute_beta/service.rb +591 -591
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +37 -1
- data/generated/google/apis/compute_v1/representations.rb +5 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -4
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +27 -4
- data/generated/google/apis/container_v1beta1/representations.rb +16 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +44 -0
- data/generated/google/apis/dialogflow_v3alpha1.rb +1 -1
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +238 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +149 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +76 -0
- data/generated/google/apis/displayvideo_v1/service.rb +280 -0
- data/generated/google/apis/fitness_v1.rb +4 -4
- data/generated/google/apis/fitness_v1/classes.rb +185 -158
- data/generated/google/apis/fitness_v1/service.rb +187 -215
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +36 -27
- data/generated/google/apis/healthcare_v1/service.rb +61 -29
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +38 -34
- data/generated/google/apis/healthcare_v1beta1/service.rb +162 -144
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +24 -12
- data/generated/google/apis/iam_v1/service.rb +7 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +7 -0
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +29 -10
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +26 -26
- data/generated/google/apis/youtube_v3/service.rb +1 -36
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -11
- data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
- data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
- data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v4.rb +0 -32
- data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
- data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
- data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module ChromeuxreportV1
|
|
24
|
+
|
|
25
|
+
class Bin
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class Key
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Metric
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class Percentiles
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class QueryRequest
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class QueryResponse
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class Record
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class UrlNormalization
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class Bin
|
|
74
|
+
# @private
|
|
75
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
76
|
+
property :density, as: 'density'
|
|
77
|
+
property :end, as: 'end'
|
|
78
|
+
property :start, as: 'start'
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
class Key
|
|
83
|
+
# @private
|
|
84
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
85
|
+
property :form_factor, as: 'formFactor'
|
|
86
|
+
property :origin, as: 'origin'
|
|
87
|
+
property :url, as: 'url'
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class Metric
|
|
92
|
+
# @private
|
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
94
|
+
collection :histogram, as: 'histogram', class: Google::Apis::ChromeuxreportV1::Bin, decorator: Google::Apis::ChromeuxreportV1::Bin::Representation
|
|
95
|
+
|
|
96
|
+
property :percentiles, as: 'percentiles', class: Google::Apis::ChromeuxreportV1::Percentiles, decorator: Google::Apis::ChromeuxreportV1::Percentiles::Representation
|
|
97
|
+
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
class Percentiles
|
|
102
|
+
# @private
|
|
103
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
104
|
+
property :p75, as: 'p75'
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
class QueryRequest
|
|
109
|
+
# @private
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
111
|
+
property :form_factor, as: 'formFactor'
|
|
112
|
+
collection :metrics, as: 'metrics'
|
|
113
|
+
property :origin, as: 'origin'
|
|
114
|
+
property :url, as: 'url'
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
class QueryResponse
|
|
119
|
+
# @private
|
|
120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
121
|
+
property :record, as: 'record', class: Google::Apis::ChromeuxreportV1::Record, decorator: Google::Apis::ChromeuxreportV1::Record::Representation
|
|
122
|
+
|
|
123
|
+
property :url_normalization_details, as: 'urlNormalizationDetails', class: Google::Apis::ChromeuxreportV1::UrlNormalization, decorator: Google::Apis::ChromeuxreportV1::UrlNormalization::Representation
|
|
124
|
+
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
class Record
|
|
129
|
+
# @private
|
|
130
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
131
|
+
property :key, as: 'key', class: Google::Apis::ChromeuxreportV1::Key, decorator: Google::Apis::ChromeuxreportV1::Key::Representation
|
|
132
|
+
|
|
133
|
+
hash :metrics, as: 'metrics', class: Google::Apis::ChromeuxreportV1::Metric, decorator: Google::Apis::ChromeuxreportV1::Metric::Representation
|
|
134
|
+
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
class UrlNormalization
|
|
139
|
+
# @private
|
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
141
|
+
property :normalized_url, as: 'normalizedUrl'
|
|
142
|
+
property :original_url, as: 'originalUrl'
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module ChromeuxreportV1
|
|
23
|
+
# Chrome UX Report API
|
|
24
|
+
#
|
|
25
|
+
# The Chrome UX Report API lets you view real user experience data for millions
|
|
26
|
+
# of websites.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/chromeuxreport_v1'
|
|
30
|
+
#
|
|
31
|
+
# Chromeuxreport = Google::Apis::ChromeuxreportV1 # Alias the module
|
|
32
|
+
# service = Chromeuxreport::ChromeUXReportService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://developers.google.com/web/tools/chrome-user-experience-report/api/reference
|
|
35
|
+
class ChromeUXReportService < Google::Apis::Core::BaseService
|
|
36
|
+
# @return [String]
|
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
+
attr_accessor :key
|
|
40
|
+
|
|
41
|
+
# @return [String]
|
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
|
+
attr_accessor :quota_user
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
super('https://chromeuxreport.googleapis.com/', '')
|
|
48
|
+
@batch_path = 'batch'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Queries the Chrome User Experience for a single `record` for a given site.
|
|
52
|
+
# Returns a `record` that contains one or more `metrics` corresponding to
|
|
53
|
+
# performance data about the requested site.
|
|
54
|
+
# @param [Google::Apis::ChromeuxreportV1::QueryRequest] query_request_object
|
|
55
|
+
# @param [String] fields
|
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
|
57
|
+
# @param [String] quota_user
|
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61
|
+
# Request-specific options
|
|
62
|
+
#
|
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
|
64
|
+
# @yieldparam result [Google::Apis::ChromeuxreportV1::QueryResponse] parsed result object
|
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
66
|
+
#
|
|
67
|
+
# @return [Google::Apis::ChromeuxreportV1::QueryResponse]
|
|
68
|
+
#
|
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
72
|
+
def query_record_record(query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
73
|
+
command = make_simple_command(:post, 'v1/records:queryRecord', options)
|
|
74
|
+
command.request_representation = Google::Apis::ChromeuxreportV1::QueryRequest::Representation
|
|
75
|
+
command.request_object = query_request_object
|
|
76
|
+
command.response_representation = Google::Apis::ChromeuxreportV1::QueryResponse::Representation
|
|
77
|
+
command.response_class = Google::Apis::ChromeuxreportV1::QueryResponse
|
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
|
+
execute_or_queue_command(command, &block)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
protected
|
|
84
|
+
|
|
85
|
+
def apply_command_defaults(command)
|
|
86
|
+
command.query['key'] = key unless key.nil?
|
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/iot
|
|
27
27
|
module CloudiotV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200519'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -667,6 +667,9 @@ module Google
|
|
|
667
667
|
# Requests for policies with any conditional bindings must specify version 3.
|
|
668
668
|
# Policies without any conditional bindings may specify any valid value or
|
|
669
669
|
# leave the field unset.
|
|
670
|
+
# To learn which resources support conditions in their IAM policies, see the
|
|
671
|
+
# [IAM
|
|
672
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
670
673
|
# Corresponds to the JSON property `requestedPolicyVersion`
|
|
671
674
|
# @return [Fixnum]
|
|
672
675
|
attr_accessor :requested_policy_version
|
|
@@ -851,10 +854,13 @@ module Google
|
|
|
851
854
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
852
855
|
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
853
856
|
# custom role.
|
|
854
|
-
#
|
|
855
|
-
# expression that allows access to a resource
|
|
856
|
-
# to `true`. A condition can add constraints
|
|
857
|
-
# request, the resource, or both.
|
|
857
|
+
# For some types of Google Cloud resources, a `binding` can also specify a
|
|
858
|
+
# `condition`, which is a logical expression that allows access to a resource
|
|
859
|
+
# only if the expression evaluates to `true`. A condition can add constraints
|
|
860
|
+
# based on attributes of the request, the resource, or both. To learn which
|
|
861
|
+
# resources support conditions in their IAM policies, see the
|
|
862
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
|
863
|
+
# policies).
|
|
858
864
|
# **JSON example:**
|
|
859
865
|
# `
|
|
860
866
|
# "bindings": [
|
|
@@ -869,7 +875,9 @@ module Google
|
|
|
869
875
|
# `,
|
|
870
876
|
# `
|
|
871
877
|
# "role": "roles/resourcemanager.organizationViewer",
|
|
872
|
-
# "members": [
|
|
878
|
+
# "members": [
|
|
879
|
+
# "user:eve@example.com"
|
|
880
|
+
# ],
|
|
873
881
|
# "condition": `
|
|
874
882
|
# "title": "expirable access",
|
|
875
883
|
# "description": "Does not grant access after Sep 2020",
|
|
@@ -942,6 +950,9 @@ module Google
|
|
|
942
950
|
# the conditions in the version `3` policy are lost.
|
|
943
951
|
# If a policy does not include any conditions, operations on that policy may
|
|
944
952
|
# specify any valid version or leave the field unset.
|
|
953
|
+
# To learn which resources support conditions in their IAM policies, see the
|
|
954
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
|
955
|
+
# policies).
|
|
945
956
|
# Corresponds to the JSON property `version`
|
|
946
957
|
# @return [Fixnum]
|
|
947
958
|
attr_accessor :version
|
|
@@ -1087,10 +1098,13 @@ module Google
|
|
|
1087
1098
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
1088
1099
|
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
1089
1100
|
# custom role.
|
|
1090
|
-
#
|
|
1091
|
-
# expression that allows access to a resource
|
|
1092
|
-
# to `true`. A condition can add constraints
|
|
1093
|
-
# request, the resource, or both.
|
|
1101
|
+
# For some types of Google Cloud resources, a `binding` can also specify a
|
|
1102
|
+
# `condition`, which is a logical expression that allows access to a resource
|
|
1103
|
+
# only if the expression evaluates to `true`. A condition can add constraints
|
|
1104
|
+
# based on attributes of the request, the resource, or both. To learn which
|
|
1105
|
+
# resources support conditions in their IAM policies, see the
|
|
1106
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
|
1107
|
+
# policies).
|
|
1094
1108
|
# **JSON example:**
|
|
1095
1109
|
# `
|
|
1096
1110
|
# "bindings": [
|
|
@@ -1105,7 +1119,9 @@ module Google
|
|
|
1105
1119
|
# `,
|
|
1106
1120
|
# `
|
|
1107
1121
|
# "role": "roles/resourcemanager.organizationViewer",
|
|
1108
|
-
# "members": [
|
|
1122
|
+
# "members": [
|
|
1123
|
+
# "user:eve@example.com"
|
|
1124
|
+
# ],
|
|
1109
1125
|
# "condition": `
|
|
1110
1126
|
# "title": "expirable access",
|
|
1111
1127
|
# "description": "Does not grant access after Sep 2020",
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/kms/
|
|
27
27
|
module CloudkmsV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200522'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -33,6 +33,25 @@ module Google
|
|
|
33
33
|
# @return [String]
|
|
34
34
|
attr_accessor :ciphertext
|
|
35
35
|
|
|
36
|
+
# Optional. An optional CRC32C checksum of the AsymmetricDecryptRequest.
|
|
37
|
+
# ciphertext.
|
|
38
|
+
# If specified, KeyManagementService will verify the integrity of the
|
|
39
|
+
# received AsymmetricDecryptRequest.ciphertext using this checksum.
|
|
40
|
+
# KeyManagementService will report an error if the checksum verification
|
|
41
|
+
# fails. If you receive a checksum error, your client should verify that
|
|
42
|
+
# CRC32C(AsymmetricDecryptRequest.ciphertext) is equal to
|
|
43
|
+
# AsymmetricDecryptRequest.ciphertext_crc32c, and if so, perform a
|
|
44
|
+
# limited number of retries. A persistent mismatch may indicate an issue in
|
|
45
|
+
# your computation of the CRC32C checksum.
|
|
46
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
47
|
+
# different languages. However, it is a non-negative integer, which will
|
|
48
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
49
|
+
# that support this type.
|
|
50
|
+
# NOTE: This field is in Beta.
|
|
51
|
+
# Corresponds to the JSON property `ciphertextCrc32c`
|
|
52
|
+
# @return [Fixnum]
|
|
53
|
+
attr_accessor :ciphertext_crc32c
|
|
54
|
+
|
|
36
55
|
def initialize(**args)
|
|
37
56
|
update!(**args)
|
|
38
57
|
end
|
|
@@ -40,6 +59,7 @@ module Google
|
|
|
40
59
|
# Update properties of this object
|
|
41
60
|
def update!(**args)
|
|
42
61
|
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
|
|
62
|
+
@ciphertext_crc32c = args[:ciphertext_crc32c] if args.key?(:ciphertext_crc32c)
|
|
43
63
|
end
|
|
44
64
|
end
|
|
45
65
|
|
|
@@ -53,6 +73,36 @@ module Google
|
|
|
53
73
|
# @return [String]
|
|
54
74
|
attr_accessor :plaintext
|
|
55
75
|
|
|
76
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
|
77
|
+
# AsymmetricDecryptResponse.plaintext. An integrity check of
|
|
78
|
+
# AsymmetricDecryptResponse.plaintext can be performed by computing the
|
|
79
|
+
# CRC32C checksum of AsymmetricDecryptResponse.plaintext and comparing
|
|
80
|
+
# your results to this field. Discard the response in case of non-matching
|
|
81
|
+
# checksum values, and perform a limited number of retries. A persistent
|
|
82
|
+
# mismatch may indicate an issue in your computation of the CRC32C checksum.
|
|
83
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
84
|
+
# different languages. However, it is a non-negative integer, which will
|
|
85
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
86
|
+
# that support this type.
|
|
87
|
+
# NOTE: This field is in Beta.
|
|
88
|
+
# Corresponds to the JSON property `plaintextCrc32c`
|
|
89
|
+
# @return [Fixnum]
|
|
90
|
+
attr_accessor :plaintext_crc32c
|
|
91
|
+
|
|
92
|
+
# Integrity verification field. A flag indicating whether
|
|
93
|
+
# AsymmetricDecryptRequest.ciphertext_crc32c was received by
|
|
94
|
+
# KeyManagementService and used for the integrity verification of the
|
|
95
|
+
# ciphertext. A false value of this
|
|
96
|
+
# field indicates either that AsymmetricDecryptRequest.ciphertext_crc32c
|
|
97
|
+
# was left unset or that it was not delivered to KeyManagementService. If
|
|
98
|
+
# you've set AsymmetricDecryptRequest.ciphertext_crc32c but this field is
|
|
99
|
+
# still false, discard the response and perform a limited number of retries.
|
|
100
|
+
# NOTE: This field is in Beta.
|
|
101
|
+
# Corresponds to the JSON property `verifiedCiphertextCrc32c`
|
|
102
|
+
# @return [Boolean]
|
|
103
|
+
attr_accessor :verified_ciphertext_crc32c
|
|
104
|
+
alias_method :verified_ciphertext_crc32c?, :verified_ciphertext_crc32c
|
|
105
|
+
|
|
56
106
|
def initialize(**args)
|
|
57
107
|
update!(**args)
|
|
58
108
|
end
|
|
@@ -60,6 +110,8 @@ module Google
|
|
|
60
110
|
# Update properties of this object
|
|
61
111
|
def update!(**args)
|
|
62
112
|
@plaintext = args[:plaintext] if args.key?(:plaintext)
|
|
113
|
+
@plaintext_crc32c = args[:plaintext_crc32c] if args.key?(:plaintext_crc32c)
|
|
114
|
+
@verified_ciphertext_crc32c = args[:verified_ciphertext_crc32c] if args.key?(:verified_ciphertext_crc32c)
|
|
63
115
|
end
|
|
64
116
|
end
|
|
65
117
|
|
|
@@ -72,6 +124,24 @@ module Google
|
|
|
72
124
|
# @return [Google::Apis::CloudkmsV1::Digest]
|
|
73
125
|
attr_accessor :digest
|
|
74
126
|
|
|
127
|
+
# Optional. An optional CRC32C checksum of the AsymmetricSignRequest.digest. If
|
|
128
|
+
# specified, KeyManagementService will verify the integrity of the
|
|
129
|
+
# received AsymmetricSignRequest.digest using this checksum.
|
|
130
|
+
# KeyManagementService will report an error if the checksum verification
|
|
131
|
+
# fails. If you receive a checksum error, your client should verify that
|
|
132
|
+
# CRC32C(AsymmetricSignRequest.digest) is equal to
|
|
133
|
+
# AsymmetricSignRequest.digest_crc32c, and if so, perform a limited
|
|
134
|
+
# number of retries. A persistent mismatch may indicate an issue in your
|
|
135
|
+
# computation of the CRC32C checksum.
|
|
136
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
137
|
+
# different languages. However, it is a non-negative integer, which will
|
|
138
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
139
|
+
# that support this type.
|
|
140
|
+
# NOTE: This field is in Beta.
|
|
141
|
+
# Corresponds to the JSON property `digestCrc32c`
|
|
142
|
+
# @return [Fixnum]
|
|
143
|
+
attr_accessor :digest_crc32c
|
|
144
|
+
|
|
75
145
|
def initialize(**args)
|
|
76
146
|
update!(**args)
|
|
77
147
|
end
|
|
@@ -79,6 +149,7 @@ module Google
|
|
|
79
149
|
# Update properties of this object
|
|
80
150
|
def update!(**args)
|
|
81
151
|
@digest = args[:digest] if args.key?(:digest)
|
|
152
|
+
@digest_crc32c = args[:digest_crc32c] if args.key?(:digest_crc32c)
|
|
82
153
|
end
|
|
83
154
|
end
|
|
84
155
|
|
|
@@ -86,19 +157,59 @@ module Google
|
|
|
86
157
|
class AsymmetricSignResponse
|
|
87
158
|
include Google::Apis::Core::Hashable
|
|
88
159
|
|
|
160
|
+
# The resource name of the CryptoKeyVersion used for signing. Check
|
|
161
|
+
# this field to verify that the intended resource was used for signing.
|
|
162
|
+
# NOTE: This field is in Beta.
|
|
163
|
+
# Corresponds to the JSON property `name`
|
|
164
|
+
# @return [String]
|
|
165
|
+
attr_accessor :name
|
|
166
|
+
|
|
89
167
|
# The created signature.
|
|
90
168
|
# Corresponds to the JSON property `signature`
|
|
91
169
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
92
170
|
# @return [String]
|
|
93
171
|
attr_accessor :signature
|
|
94
172
|
|
|
173
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
|
174
|
+
# AsymmetricSignResponse.signature. An integrity check of
|
|
175
|
+
# AsymmetricSignResponse.signature can be performed by computing the
|
|
176
|
+
# CRC32C checksum of AsymmetricSignResponse.signature and comparing your
|
|
177
|
+
# results to this field. Discard the response in case of non-matching
|
|
178
|
+
# checksum values, and perform a limited number of retries. A persistent
|
|
179
|
+
# mismatch may indicate an issue in your computation of the CRC32C checksum.
|
|
180
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
181
|
+
# different languages. However, it is a non-negative integer, which will
|
|
182
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
183
|
+
# that support this type.
|
|
184
|
+
# NOTE: This field is in Beta.
|
|
185
|
+
# Corresponds to the JSON property `signatureCrc32c`
|
|
186
|
+
# @return [Fixnum]
|
|
187
|
+
attr_accessor :signature_crc32c
|
|
188
|
+
|
|
189
|
+
# Integrity verification field. A flag indicating whether
|
|
190
|
+
# AsymmetricSignRequest.digest_crc32c was received by
|
|
191
|
+
# KeyManagementService and used for the integrity verification of the
|
|
192
|
+
# digest. A false value of this field
|
|
193
|
+
# indicates either that AsymmetricSignRequest.digest_crc32c was left
|
|
194
|
+
# unset or that it was not delivered to KeyManagementService. If you've
|
|
195
|
+
# set AsymmetricSignRequest.digest_crc32c but this field is still false,
|
|
196
|
+
# discard the response and perform a limited number of retries.
|
|
197
|
+
# NOTE: This field is in Beta.
|
|
198
|
+
# Corresponds to the JSON property `verifiedDigestCrc32c`
|
|
199
|
+
# @return [Boolean]
|
|
200
|
+
attr_accessor :verified_digest_crc32c
|
|
201
|
+
alias_method :verified_digest_crc32c?, :verified_digest_crc32c
|
|
202
|
+
|
|
95
203
|
def initialize(**args)
|
|
96
204
|
update!(**args)
|
|
97
205
|
end
|
|
98
206
|
|
|
99
207
|
# Update properties of this object
|
|
100
208
|
def update!(**args)
|
|
209
|
+
@name = args[:name] if args.key?(:name)
|
|
101
210
|
@signature = args[:signature] if args.key?(:signature)
|
|
211
|
+
@signature_crc32c = args[:signature_crc32c] if args.key?(:signature_crc32c)
|
|
212
|
+
@verified_digest_crc32c = args[:verified_digest_crc32c] if args.key?(:verified_digest_crc32c)
|
|
102
213
|
end
|
|
103
214
|
end
|
|
104
215
|
|
|
@@ -551,6 +662,25 @@ module Google
|
|
|
551
662
|
# @return [String]
|
|
552
663
|
attr_accessor :additional_authenticated_data
|
|
553
664
|
|
|
665
|
+
# Optional. An optional CRC32C checksum of the
|
|
666
|
+
# DecryptRequest.additional_authenticated_data. If specified,
|
|
667
|
+
# KeyManagementService will verify the integrity of the received
|
|
668
|
+
# DecryptRequest.additional_authenticated_data using this checksum.
|
|
669
|
+
# KeyManagementService will report an error if the checksum verification
|
|
670
|
+
# fails. If you receive a checksum error, your client should verify that
|
|
671
|
+
# CRC32C(DecryptRequest.additional_authenticated_data) is equal to
|
|
672
|
+
# DecryptRequest.additional_authenticated_data_crc32c, and if so, perform
|
|
673
|
+
# a limited number of retries. A persistent mismatch may indicate an issue in
|
|
674
|
+
# your computation of the CRC32C checksum.
|
|
675
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
676
|
+
# different languages. However, it is a non-negative integer, which will
|
|
677
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
678
|
+
# that support this type.
|
|
679
|
+
# NOTE: This field is in Beta.
|
|
680
|
+
# Corresponds to the JSON property `additionalAuthenticatedDataCrc32c`
|
|
681
|
+
# @return [Fixnum]
|
|
682
|
+
attr_accessor :additional_authenticated_data_crc32c
|
|
683
|
+
|
|
554
684
|
# Required. The encrypted data originally returned in
|
|
555
685
|
# EncryptResponse.ciphertext.
|
|
556
686
|
# Corresponds to the JSON property `ciphertext`
|
|
@@ -558,6 +688,24 @@ module Google
|
|
|
558
688
|
# @return [String]
|
|
559
689
|
attr_accessor :ciphertext
|
|
560
690
|
|
|
691
|
+
# Optional. An optional CRC32C checksum of the DecryptRequest.ciphertext. If
|
|
692
|
+
# specified, KeyManagementService will verify the integrity of the
|
|
693
|
+
# received DecryptRequest.ciphertext using this checksum.
|
|
694
|
+
# KeyManagementService will report an error if the checksum verification
|
|
695
|
+
# fails. If you receive a checksum error, your client should verify that
|
|
696
|
+
# CRC32C(DecryptRequest.ciphertext) is equal to
|
|
697
|
+
# DecryptRequest.ciphertext_crc32c, and if so, perform a limited number
|
|
698
|
+
# of retries. A persistent mismatch may indicate an issue in your computation
|
|
699
|
+
# of the CRC32C checksum.
|
|
700
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
701
|
+
# different languages. However, it is a non-negative integer, which will
|
|
702
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
703
|
+
# that support this type.
|
|
704
|
+
# NOTE: This field is in Beta.
|
|
705
|
+
# Corresponds to the JSON property `ciphertextCrc32c`
|
|
706
|
+
# @return [Fixnum]
|
|
707
|
+
attr_accessor :ciphertext_crc32c
|
|
708
|
+
|
|
561
709
|
def initialize(**args)
|
|
562
710
|
update!(**args)
|
|
563
711
|
end
|
|
@@ -565,7 +713,9 @@ module Google
|
|
|
565
713
|
# Update properties of this object
|
|
566
714
|
def update!(**args)
|
|
567
715
|
@additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
|
|
716
|
+
@additional_authenticated_data_crc32c = args[:additional_authenticated_data_crc32c] if args.key?(:additional_authenticated_data_crc32c)
|
|
568
717
|
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
|
|
718
|
+
@ciphertext_crc32c = args[:ciphertext_crc32c] if args.key?(:ciphertext_crc32c)
|
|
569
719
|
end
|
|
570
720
|
end
|
|
571
721
|
|
|
@@ -579,6 +729,24 @@ module Google
|
|
|
579
729
|
# @return [String]
|
|
580
730
|
attr_accessor :plaintext
|
|
581
731
|
|
|
732
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
|
733
|
+
# DecryptResponse.plaintext. An integrity check of
|
|
734
|
+
# DecryptResponse.plaintext can be performed by computing the CRC32C
|
|
735
|
+
# checksum of DecryptResponse.plaintext and comparing your results to
|
|
736
|
+
# this field. Discard the response in case of non-matching checksum values,
|
|
737
|
+
# and perform a limited number of retries. A persistent mismatch may indicate
|
|
738
|
+
# an issue in your computation of the CRC32C checksum. Note: receiving this
|
|
739
|
+
# response message indicates that KeyManagementService is able to
|
|
740
|
+
# successfully decrypt the ciphertext.
|
|
741
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
742
|
+
# different languages. However, it is a non-negative integer, which will
|
|
743
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
744
|
+
# that support this type.
|
|
745
|
+
# NOTE: This field is in Beta.
|
|
746
|
+
# Corresponds to the JSON property `plaintextCrc32c`
|
|
747
|
+
# @return [Fixnum]
|
|
748
|
+
attr_accessor :plaintext_crc32c
|
|
749
|
+
|
|
582
750
|
def initialize(**args)
|
|
583
751
|
update!(**args)
|
|
584
752
|
end
|
|
@@ -586,6 +754,7 @@ module Google
|
|
|
586
754
|
# Update properties of this object
|
|
587
755
|
def update!(**args)
|
|
588
756
|
@plaintext = args[:plaintext] if args.key?(:plaintext)
|
|
757
|
+
@plaintext_crc32c = args[:plaintext_crc32c] if args.key?(:plaintext_crc32c)
|
|
589
758
|
end
|
|
590
759
|
end
|
|
591
760
|
|
|
@@ -654,6 +823,25 @@ module Google
|
|
|
654
823
|
# @return [String]
|
|
655
824
|
attr_accessor :additional_authenticated_data
|
|
656
825
|
|
|
826
|
+
# Optional. An optional CRC32C checksum of the
|
|
827
|
+
# EncryptRequest.additional_authenticated_data. If specified,
|
|
828
|
+
# KeyManagementService will verify the integrity of the received
|
|
829
|
+
# EncryptRequest.additional_authenticated_data using this checksum.
|
|
830
|
+
# KeyManagementService will report an error if the checksum verification
|
|
831
|
+
# fails. If you receive a checksum error, your client should verify that
|
|
832
|
+
# CRC32C(EncryptRequest.additional_authenticated_data) is equal to
|
|
833
|
+
# EncryptRequest.additional_authenticated_data_crc32c, and if so, perform
|
|
834
|
+
# a limited number of retries. A persistent mismatch may indicate an issue in
|
|
835
|
+
# your computation of the CRC32C checksum.
|
|
836
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
837
|
+
# different languages. However, it is a non-negative integer, which will
|
|
838
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
839
|
+
# that support this type.
|
|
840
|
+
# NOTE: This field is in Beta.
|
|
841
|
+
# Corresponds to the JSON property `additionalAuthenticatedDataCrc32c`
|
|
842
|
+
# @return [Fixnum]
|
|
843
|
+
attr_accessor :additional_authenticated_data_crc32c
|
|
844
|
+
|
|
657
845
|
# Required. The data to encrypt. Must be no larger than 64KiB.
|
|
658
846
|
# The maximum size depends on the key version's
|
|
659
847
|
# protection_level. For
|
|
@@ -666,6 +854,24 @@ module Google
|
|
|
666
854
|
# @return [String]
|
|
667
855
|
attr_accessor :plaintext
|
|
668
856
|
|
|
857
|
+
# Optional. An optional CRC32C checksum of the EncryptRequest.plaintext. If
|
|
858
|
+
# specified, KeyManagementService will verify the integrity of the
|
|
859
|
+
# received EncryptRequest.plaintext using this checksum.
|
|
860
|
+
# KeyManagementService will report an error if the checksum verification
|
|
861
|
+
# fails. If you receive a checksum error, your client should verify that
|
|
862
|
+
# CRC32C(EncryptRequest.plaintext) is equal to
|
|
863
|
+
# EncryptRequest.plaintext_crc32c, and if so, perform a limited number of
|
|
864
|
+
# retries. A persistent mismatch may indicate an issue in your computation of
|
|
865
|
+
# the CRC32C checksum.
|
|
866
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
867
|
+
# different languages. However, it is a non-negative integer, which will
|
|
868
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
869
|
+
# that support this type.
|
|
870
|
+
# NOTE: This field is in Beta.
|
|
871
|
+
# Corresponds to the JSON property `plaintextCrc32c`
|
|
872
|
+
# @return [Fixnum]
|
|
873
|
+
attr_accessor :plaintext_crc32c
|
|
874
|
+
|
|
669
875
|
def initialize(**args)
|
|
670
876
|
update!(**args)
|
|
671
877
|
end
|
|
@@ -673,7 +879,9 @@ module Google
|
|
|
673
879
|
# Update properties of this object
|
|
674
880
|
def update!(**args)
|
|
675
881
|
@additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
|
|
882
|
+
@additional_authenticated_data_crc32c = args[:additional_authenticated_data_crc32c] if args.key?(:additional_authenticated_data_crc32c)
|
|
676
883
|
@plaintext = args[:plaintext] if args.key?(:plaintext)
|
|
884
|
+
@plaintext_crc32c = args[:plaintext_crc32c] if args.key?(:plaintext_crc32c)
|
|
677
885
|
end
|
|
678
886
|
end
|
|
679
887
|
|
|
@@ -687,12 +895,57 @@ module Google
|
|
|
687
895
|
# @return [String]
|
|
688
896
|
attr_accessor :ciphertext
|
|
689
897
|
|
|
898
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
|
899
|
+
# EncryptResponse.ciphertext. An integrity check of
|
|
900
|
+
# EncryptResponse.ciphertext can be performed by computing the CRC32C
|
|
901
|
+
# checksum of EncryptResponse.ciphertext and comparing your results to
|
|
902
|
+
# this field. Discard the response in case of non-matching checksum values,
|
|
903
|
+
# and perform a limited number of retries. A persistent mismatch may indicate
|
|
904
|
+
# an issue in your computation of the CRC32C checksum.
|
|
905
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
906
|
+
# different languages. However, it is a non-negative integer, which will
|
|
907
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
908
|
+
# that support this type.
|
|
909
|
+
# NOTE: This field is in Beta.
|
|
910
|
+
# Corresponds to the JSON property `ciphertextCrc32c`
|
|
911
|
+
# @return [Fixnum]
|
|
912
|
+
attr_accessor :ciphertext_crc32c
|
|
913
|
+
|
|
690
914
|
# The resource name of the CryptoKeyVersion used in encryption. Check
|
|
691
915
|
# this field to verify that the intended resource was used for encryption.
|
|
692
916
|
# Corresponds to the JSON property `name`
|
|
693
917
|
# @return [String]
|
|
694
918
|
attr_accessor :name
|
|
695
919
|
|
|
920
|
+
# Integrity verification field. A flag indicating whether
|
|
921
|
+
# EncryptRequest.additional_authenticated_data_crc32c was received by
|
|
922
|
+
# KeyManagementService and used for the integrity verification of the
|
|
923
|
+
# AAD. A false value of this
|
|
924
|
+
# field indicates either that
|
|
925
|
+
# EncryptRequest.additional_authenticated_data_crc32c was left unset or
|
|
926
|
+
# that it was not delivered to KeyManagementService. If you've set
|
|
927
|
+
# EncryptRequest.additional_authenticated_data_crc32c but this field is
|
|
928
|
+
# still false, discard the response and perform a limited number of retries.
|
|
929
|
+
# NOTE: This field is in Beta.
|
|
930
|
+
# Corresponds to the JSON property `verifiedAdditionalAuthenticatedDataCrc32c`
|
|
931
|
+
# @return [Boolean]
|
|
932
|
+
attr_accessor :verified_additional_authenticated_data_crc32c
|
|
933
|
+
alias_method :verified_additional_authenticated_data_crc32c?, :verified_additional_authenticated_data_crc32c
|
|
934
|
+
|
|
935
|
+
# Integrity verification field. A flag indicating whether
|
|
936
|
+
# EncryptRequest.plaintext_crc32c was received by
|
|
937
|
+
# KeyManagementService and used for the integrity verification of the
|
|
938
|
+
# plaintext. A false value of this field
|
|
939
|
+
# indicates either that EncryptRequest.plaintext_crc32c was left unset or
|
|
940
|
+
# that it was not delivered to KeyManagementService. If you've set
|
|
941
|
+
# EncryptRequest.plaintext_crc32c but this field is still false, discard
|
|
942
|
+
# the response and perform a limited number of retries.
|
|
943
|
+
# NOTE: This field is in Beta.
|
|
944
|
+
# Corresponds to the JSON property `verifiedPlaintextCrc32c`
|
|
945
|
+
# @return [Boolean]
|
|
946
|
+
attr_accessor :verified_plaintext_crc32c
|
|
947
|
+
alias_method :verified_plaintext_crc32c?, :verified_plaintext_crc32c
|
|
948
|
+
|
|
696
949
|
def initialize(**args)
|
|
697
950
|
update!(**args)
|
|
698
951
|
end
|
|
@@ -700,7 +953,10 @@ module Google
|
|
|
700
953
|
# Update properties of this object
|
|
701
954
|
def update!(**args)
|
|
702
955
|
@ciphertext = args[:ciphertext] if args.key?(:ciphertext)
|
|
956
|
+
@ciphertext_crc32c = args[:ciphertext_crc32c] if args.key?(:ciphertext_crc32c)
|
|
703
957
|
@name = args[:name] if args.key?(:name)
|
|
958
|
+
@verified_additional_authenticated_data_crc32c = args[:verified_additional_authenticated_data_crc32c] if args.key?(:verified_additional_authenticated_data_crc32c)
|
|
959
|
+
@verified_plaintext_crc32c = args[:verified_plaintext_crc32c] if args.key?(:verified_plaintext_crc32c)
|
|
704
960
|
end
|
|
705
961
|
end
|
|
706
962
|
|
|
@@ -1376,6 +1632,13 @@ module Google
|
|
|
1376
1632
|
# @return [String]
|
|
1377
1633
|
attr_accessor :algorithm
|
|
1378
1634
|
|
|
1635
|
+
# The name of the CryptoKeyVersion public key.
|
|
1636
|
+
# Provided here for verification.
|
|
1637
|
+
# NOTE: This field is in Beta.
|
|
1638
|
+
# Corresponds to the JSON property `name`
|
|
1639
|
+
# @return [String]
|
|
1640
|
+
attr_accessor :name
|
|
1641
|
+
|
|
1379
1642
|
# The public key, encoded in PEM format. For more information, see the
|
|
1380
1643
|
# [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for
|
|
1381
1644
|
# [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
|
|
@@ -1385,6 +1648,22 @@ module Google
|
|
|
1385
1648
|
# @return [String]
|
|
1386
1649
|
attr_accessor :pem
|
|
1387
1650
|
|
|
1651
|
+
# Integrity verification field. A CRC32C checksum of the returned
|
|
1652
|
+
# PublicKey.pem. An integrity check of PublicKey.pem can be performed
|
|
1653
|
+
# by computing the CRC32C checksum of PublicKey.pem and
|
|
1654
|
+
# comparing your results to this field. Discard the response in case of
|
|
1655
|
+
# non-matching checksum values, and perform a limited number of retries. A
|
|
1656
|
+
# persistent mismatch may indicate an issue in your computation of the CRC32C
|
|
1657
|
+
# checksum.
|
|
1658
|
+
# Note: This field is defined as int64 for reasons of compatibility across
|
|
1659
|
+
# different languages. However, it is a non-negative integer, which will
|
|
1660
|
+
# never exceed 2^32-1, and can be safely downconverted to uint32 in languages
|
|
1661
|
+
# that support this type.
|
|
1662
|
+
# NOTE: This field is in Beta.
|
|
1663
|
+
# Corresponds to the JSON property `pemCrc32c`
|
|
1664
|
+
# @return [Fixnum]
|
|
1665
|
+
attr_accessor :pem_crc32c
|
|
1666
|
+
|
|
1388
1667
|
def initialize(**args)
|
|
1389
1668
|
update!(**args)
|
|
1390
1669
|
end
|
|
@@ -1392,7 +1671,9 @@ module Google
|
|
|
1392
1671
|
# Update properties of this object
|
|
1393
1672
|
def update!(**args)
|
|
1394
1673
|
@algorithm = args[:algorithm] if args.key?(:algorithm)
|
|
1674
|
+
@name = args[:name] if args.key?(:name)
|
|
1395
1675
|
@pem = args[:pem] if args.key?(:pem)
|
|
1676
|
+
@pem_crc32c = args[:pem_crc32c] if args.key?(:pem_crc32c)
|
|
1396
1677
|
end
|
|
1397
1678
|
end
|
|
1398
1679
|
|