google-api-client 0.30.9 → 0.30.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +89 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +18 -7
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +5 -10
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +24 -12
- data/generated/google/apis/adexperiencereport_v1/service.rb +6 -9
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +62 -9
- data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -9
- data/generated/google/apis/bigquery_v2/representations.rb +5 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +37 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +645 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +263 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +378 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +41 -16
- data/generated/google/apis/bigtableadmin_v2/representations.rb +15 -0
- data/generated/google/apis/binaryauthorization_v1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1/classes.rb +388 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +167 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +313 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -1
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -6
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -1
- data/generated/google/apis/cloudasset_v1/representations.rb +17 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +11 -4
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -14
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -2
- data/generated/google/apis/cloudkms_v1/service.rb +3 -3
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -2
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -4
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -4
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +14 -3
- data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +3 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +8 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +1 -0
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +1 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +17 -24
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +17 -24
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1139 -284
- data/generated/google/apis/compute_alpha/representations.rb +304 -1
- data/generated/google/apis/compute_alpha/service.rb +935 -23
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +554 -98
- data/generated/google/apis/compute_beta/representations.rb +117 -0
- data/generated/google/apis/compute_beta/service.rb +63 -19
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1187 -165
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +832 -12
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +36 -0
- data/generated/google/apis/container_v1/representations.rb +16 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +153 -0
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +93 -2
- data/generated/google/apis/content_v2/representations.rb +37 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +86 -2
- data/generated/google/apis/content_v2_1/representations.rb +36 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +21 -106
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -58
- data/generated/google/apis/dataflow_v1b3/service.rb +0 -327
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +7 -0
- data/generated/google/apis/dataproc_v1/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +9 -75
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +9 -75
- data/generated/google/apis/dfareporting_v3_1.rb +1 -1
- data/generated/google/apis/dfareporting_v3_1/classes.rb +42 -302
- data/generated/google/apis/dfareporting_v3_1/representations.rb +8 -84
- data/generated/google/apis/dfareporting_v3_1/service.rb +5 -107
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +118 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +70 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +75 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +42 -0
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +125 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +128 -0
- data/generated/google/apis/docs_v1/representations.rb +49 -0
- data/generated/google/apis/{appstate_v1.rb → domainsrdap_v1.rb} +8 -11
- data/generated/google/apis/domainsrdap_v1/classes.rb +269 -0
- data/generated/google/apis/{appstate_v1 → domainsrdap_v1}/representations.rb +33 -22
- data/generated/google/apis/domainsrdap_v1/service.rb +350 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +10 -1
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +10 -1
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +21 -130
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +16 -122
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +14 -83
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +94 -48
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +16 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +117 -75
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +56 -2
- data/generated/google/apis/healthcare_v1beta1/representations.rb +17 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +10 -5
- data/generated/google/apis/homegraph_v1.rb +31 -0
- data/generated/google/apis/homegraph_v1/classes.rb +692 -0
- data/generated/google/apis/homegraph_v1/representations.rb +323 -0
- data/generated/google/apis/homegraph_v1/service.rb +255 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +8 -7
- data/generated/google/apis/logging_v2/service.rb +40 -35
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1/service.rb +15 -9
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1beta2/service.rb +10 -6
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +26 -6
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/run_v1alpha1/service.rb +5 -3
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +5 -3
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/service.rb +6 -5
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +11 -4
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +11 -4
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1beta1/service.rb +5 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -4
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +11 -4
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -4
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -4
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1/representations.rb +14 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +14 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +9 -7
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +17 -15
- data/generated/google/apis/speech_v2beta.rb +1 -1
- data/generated/google/apis/speech_v2beta/classes.rb +3 -3
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +72 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +35 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -1
- data/generated/google/apis/storage_v1/representations.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +6 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/service.rb +1 -9
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +19 -0
- data/generated/google/apis/testing_v1/representations.rb +3 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +33 -0
- data/generated/google/apis/translate_v3beta1/representations.rb +3 -0
- data/generated/google/apis/verifiedaccess_v1.rb +35 -0
- data/generated/google/apis/verifiedaccess_v1/classes.rb +174 -0
- data/generated/google/apis/verifiedaccess_v1/representations.rb +99 -0
- data/generated/google/apis/verifiedaccess_v1/service.rb +120 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +204 -2375
- data/generated/google/apis/vision_v1/representations.rb +701 -1634
- data/generated/google/apis/vision_v1/service.rb +17 -17
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +135 -2306
- data/generated/google/apis/vision_v1p1beta1/representations.rb +768 -1701
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +326 -2161
- data/generated/google/apis/vision_v1p2beta1/representations.rb +897 -1710
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +8 -2
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +22 -6
- data/generated/google/apis/appstate_v1/classes.rb +0 -154
- data/generated/google/apis/appstate_v1/service.rb +0 -249
@@ -0,0 +1,167 @@
|
|
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 BinaryauthorizationV1
|
24
|
+
|
25
|
+
class AdmissionRule
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AdmissionWhitelistPattern
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Attestor
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class AttestorPublicKey
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Empty
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ListAttestorsResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class PkixPublicKey
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Policy
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class UserOwnedGrafeasNote
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class AdmissionRule
|
80
|
+
# @private
|
81
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
82
|
+
property :enforcement_mode, as: 'enforcementMode'
|
83
|
+
property :evaluation_mode, as: 'evaluationMode'
|
84
|
+
collection :require_attestations_by, as: 'requireAttestationsBy'
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
class AdmissionWhitelistPattern
|
89
|
+
# @private
|
90
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
91
|
+
property :name_pattern, as: 'namePattern'
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
class Attestor
|
96
|
+
# @private
|
97
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
98
|
+
property :description, as: 'description'
|
99
|
+
property :name, as: 'name'
|
100
|
+
property :update_time, as: 'updateTime'
|
101
|
+
property :user_owned_grafeas_note, as: 'userOwnedGrafeasNote', class: Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote, decorator: Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote::Representation
|
102
|
+
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
class AttestorPublicKey
|
107
|
+
# @private
|
108
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
109
|
+
property :ascii_armored_pgp_public_key, as: 'asciiArmoredPgpPublicKey'
|
110
|
+
property :comment, as: 'comment'
|
111
|
+
property :id, as: 'id'
|
112
|
+
property :pkix_public_key, as: 'pkixPublicKey', class: Google::Apis::BinaryauthorizationV1::PkixPublicKey, decorator: Google::Apis::BinaryauthorizationV1::PkixPublicKey::Representation
|
113
|
+
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class Empty
|
118
|
+
# @private
|
119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
class ListAttestorsResponse
|
124
|
+
# @private
|
125
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
126
|
+
collection :attestors, as: 'attestors', class: Google::Apis::BinaryauthorizationV1::Attestor, decorator: Google::Apis::BinaryauthorizationV1::Attestor::Representation
|
127
|
+
|
128
|
+
property :next_page_token, as: 'nextPageToken'
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
class PkixPublicKey
|
133
|
+
# @private
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
135
|
+
property :public_key_pem, as: 'publicKeyPem'
|
136
|
+
property :signature_algorithm, as: 'signatureAlgorithm'
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class Policy
|
141
|
+
# @private
|
142
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
143
|
+
collection :admission_whitelist_patterns, as: 'admissionWhitelistPatterns', class: Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern, decorator: Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern::Representation
|
144
|
+
|
145
|
+
hash :cluster_admission_rules, as: 'clusterAdmissionRules', class: Google::Apis::BinaryauthorizationV1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1::AdmissionRule::Representation
|
146
|
+
|
147
|
+
property :default_admission_rule, as: 'defaultAdmissionRule', class: Google::Apis::BinaryauthorizationV1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1::AdmissionRule::Representation
|
148
|
+
|
149
|
+
property :description, as: 'description'
|
150
|
+
property :global_policy_evaluation_mode, as: 'globalPolicyEvaluationMode'
|
151
|
+
property :name, as: 'name'
|
152
|
+
property :update_time, as: 'updateTime'
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
class UserOwnedGrafeasNote
|
157
|
+
# @private
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
159
|
+
property :delegation_service_account_email, as: 'delegationServiceAccountEmail'
|
160
|
+
property :note_reference, as: 'noteReference'
|
161
|
+
collection :public_keys, as: 'publicKeys', class: Google::Apis::BinaryauthorizationV1::AttestorPublicKey, decorator: Google::Apis::BinaryauthorizationV1::AttestorPublicKey::Representation
|
162
|
+
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
@@ -0,0 +1,313 @@
|
|
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 BinaryauthorizationV1
|
23
|
+
# Binary Authorization API
|
24
|
+
#
|
25
|
+
# The management interface for Binary Authorization, a system providing policy
|
26
|
+
# control for images deployed to Kubernetes Engine clusters.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/binaryauthorization_v1'
|
30
|
+
#
|
31
|
+
# Binaryauthorization = Google::Apis::BinaryauthorizationV1 # Alias the module
|
32
|
+
# service = Binaryauthorization::BinaryAuthorizationService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/binary-authorization/
|
35
|
+
class BinaryAuthorizationService < 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://binaryauthorization.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
49
|
+
end
|
50
|
+
|
51
|
+
# A policy specifies the attestors that must attest to
|
52
|
+
# a container image, before the project is allowed to deploy that
|
53
|
+
# image. There is at most one policy per project. All image admission
|
54
|
+
# requests are permitted if a project has no policy.
|
55
|
+
# Gets the policy for this project. Returns a default
|
56
|
+
# policy if the project does not have one.
|
57
|
+
# @param [String] name
|
58
|
+
# Required. The resource name of the policy to retrieve,
|
59
|
+
# in the format `projects/*/policy`.
|
60
|
+
# @param [String] fields
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
62
|
+
# @param [String] quota_user
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
+
# @param [Google::Apis::RequestOptions] options
|
66
|
+
# Request-specific options
|
67
|
+
#
|
68
|
+
# @yield [result, err] Result & error if block supplied
|
69
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::Policy] parsed result object
|
70
|
+
# @yieldparam err [StandardError] error object if request failed
|
71
|
+
#
|
72
|
+
# @return [Google::Apis::BinaryauthorizationV1::Policy]
|
73
|
+
#
|
74
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
75
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
76
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
77
|
+
def get_project_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
78
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
79
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::Policy::Representation
|
80
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::Policy
|
81
|
+
command.params['name'] = name unless name.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Creates or updates a project's policy, and returns a copy of the
|
88
|
+
# new policy. A policy is always updated as a whole, to avoid race
|
89
|
+
# conditions with concurrent policy enforcement (or management!)
|
90
|
+
# requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT
|
91
|
+
# if the request is malformed.
|
92
|
+
# @param [String] name
|
93
|
+
# Output only. The resource name, in the format `projects/*/policy`. There is
|
94
|
+
# at most one policy per project.
|
95
|
+
# @param [Google::Apis::BinaryauthorizationV1::Policy] policy_object
|
96
|
+
# @param [String] fields
|
97
|
+
# Selector specifying which fields to include in a partial response.
|
98
|
+
# @param [String] quota_user
|
99
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
100
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
101
|
+
# @param [Google::Apis::RequestOptions] options
|
102
|
+
# Request-specific options
|
103
|
+
#
|
104
|
+
# @yield [result, err] Result & error if block supplied
|
105
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::Policy] parsed result object
|
106
|
+
# @yieldparam err [StandardError] error object if request failed
|
107
|
+
#
|
108
|
+
# @return [Google::Apis::BinaryauthorizationV1::Policy]
|
109
|
+
#
|
110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
|
+
def update_project_policy(name, policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
114
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
115
|
+
command.request_representation = Google::Apis::BinaryauthorizationV1::Policy::Representation
|
116
|
+
command.request_object = policy_object
|
117
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::Policy::Representation
|
118
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::Policy
|
119
|
+
command.params['name'] = name unless name.nil?
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
|
+
execute_or_queue_command(command, &block)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Creates an attestor, and returns a copy of the new
|
126
|
+
# attestor. Returns NOT_FOUND if the project does not exist,
|
127
|
+
# INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the
|
128
|
+
# attestor already exists.
|
129
|
+
# @param [String] parent
|
130
|
+
# Required. The parent of this attestor.
|
131
|
+
# @param [Google::Apis::BinaryauthorizationV1::Attestor] attestor_object
|
132
|
+
# @param [String] attestor_id
|
133
|
+
# Required. The attestors ID.
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
136
|
+
# @param [String] quota_user
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
140
|
+
# Request-specific options
|
141
|
+
#
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
143
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::Attestor] parsed result object
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
145
|
+
#
|
146
|
+
# @return [Google::Apis::BinaryauthorizationV1::Attestor]
|
147
|
+
#
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
151
|
+
def create_project_attestor(parent, attestor_object = nil, attestor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:post, 'v1/{+parent}/attestors', options)
|
153
|
+
command.request_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation
|
154
|
+
command.request_object = attestor_object
|
155
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation
|
156
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::Attestor
|
157
|
+
command.params['parent'] = parent unless parent.nil?
|
158
|
+
command.query['attestorId'] = attestor_id unless attestor_id.nil?
|
159
|
+
command.query['fields'] = fields unless fields.nil?
|
160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
161
|
+
execute_or_queue_command(command, &block)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Deletes an attestor. Returns NOT_FOUND if the
|
165
|
+
# attestor does not exist.
|
166
|
+
# @param [String] name
|
167
|
+
# Required. The name of the attestors to delete, in the format
|
168
|
+
# `projects/*/attestors/*`.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::Empty] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::BinaryauthorizationV1::Empty]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def delete_project_attestor(name, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
188
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::Empty::Representation
|
189
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::Empty
|
190
|
+
command.params['name'] = name unless name.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
196
|
+
# Gets an attestor.
|
197
|
+
# Returns NOT_FOUND if the attestor does not exist.
|
198
|
+
# @param [String] name
|
199
|
+
# Required. The name of the attestor to retrieve, in the format
|
200
|
+
# `projects/*/attestors/*`.
|
201
|
+
# @param [String] fields
|
202
|
+
# Selector specifying which fields to include in a partial response.
|
203
|
+
# @param [String] quota_user
|
204
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
205
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
206
|
+
# @param [Google::Apis::RequestOptions] options
|
207
|
+
# Request-specific options
|
208
|
+
#
|
209
|
+
# @yield [result, err] Result & error if block supplied
|
210
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::Attestor] parsed result object
|
211
|
+
# @yieldparam err [StandardError] error object if request failed
|
212
|
+
#
|
213
|
+
# @return [Google::Apis::BinaryauthorizationV1::Attestor]
|
214
|
+
#
|
215
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
216
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
217
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
218
|
+
def get_project_attestor(name, fields: nil, quota_user: nil, options: nil, &block)
|
219
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
220
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation
|
221
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::Attestor
|
222
|
+
command.params['name'] = name unless name.nil?
|
223
|
+
command.query['fields'] = fields unless fields.nil?
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
225
|
+
execute_or_queue_command(command, &block)
|
226
|
+
end
|
227
|
+
|
228
|
+
# Lists attestors.
|
229
|
+
# Returns INVALID_ARGUMENT if the project does not exist.
|
230
|
+
# @param [String] parent
|
231
|
+
# Required. The resource name of the project associated with the
|
232
|
+
# attestors, in the format `projects/*`.
|
233
|
+
# @param [Fixnum] page_size
|
234
|
+
# Requested page size. The server may return fewer results than requested. If
|
235
|
+
# unspecified, the server will pick an appropriate default.
|
236
|
+
# @param [String] page_token
|
237
|
+
# A token identifying a page of results the server should return. Typically,
|
238
|
+
# this is the value of ListAttestorsResponse.next_page_token returned
|
239
|
+
# from the previous call to the `ListAttestors` method.
|
240
|
+
# @param [String] fields
|
241
|
+
# Selector specifying which fields to include in a partial response.
|
242
|
+
# @param [String] quota_user
|
243
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
244
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
245
|
+
# @param [Google::Apis::RequestOptions] options
|
246
|
+
# Request-specific options
|
247
|
+
#
|
248
|
+
# @yield [result, err] Result & error if block supplied
|
249
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::ListAttestorsResponse] parsed result object
|
250
|
+
# @yieldparam err [StandardError] error object if request failed
|
251
|
+
#
|
252
|
+
# @return [Google::Apis::BinaryauthorizationV1::ListAttestorsResponse]
|
253
|
+
#
|
254
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
255
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
256
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
257
|
+
def list_project_attestors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
258
|
+
command = make_simple_command(:get, 'v1/{+parent}/attestors', options)
|
259
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::ListAttestorsResponse::Representation
|
260
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::ListAttestorsResponse
|
261
|
+
command.params['parent'] = parent unless parent.nil?
|
262
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
263
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
264
|
+
command.query['fields'] = fields unless fields.nil?
|
265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
266
|
+
execute_or_queue_command(command, &block)
|
267
|
+
end
|
268
|
+
|
269
|
+
# Updates an attestor.
|
270
|
+
# Returns NOT_FOUND if the attestor does not exist.
|
271
|
+
# @param [String] name
|
272
|
+
# Required. The resource name, in the format:
|
273
|
+
# `projects/*/attestors/*`. This field may not be updated.
|
274
|
+
# @param [Google::Apis::BinaryauthorizationV1::Attestor] attestor_object
|
275
|
+
# @param [String] fields
|
276
|
+
# Selector specifying which fields to include in a partial response.
|
277
|
+
# @param [String] quota_user
|
278
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
279
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
280
|
+
# @param [Google::Apis::RequestOptions] options
|
281
|
+
# Request-specific options
|
282
|
+
#
|
283
|
+
# @yield [result, err] Result & error if block supplied
|
284
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::Attestor] parsed result object
|
285
|
+
# @yieldparam err [StandardError] error object if request failed
|
286
|
+
#
|
287
|
+
# @return [Google::Apis::BinaryauthorizationV1::Attestor]
|
288
|
+
#
|
289
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
290
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
291
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
292
|
+
def update_project_attestor(name, attestor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
293
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
294
|
+
command.request_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation
|
295
|
+
command.request_object = attestor_object
|
296
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::Attestor::Representation
|
297
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::Attestor
|
298
|
+
command.params['name'] = name unless name.nil?
|
299
|
+
command.query['fields'] = fields unless fields.nil?
|
300
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
301
|
+
execute_or_queue_command(command, &block)
|
302
|
+
end
|
303
|
+
|
304
|
+
protected
|
305
|
+
|
306
|
+
def apply_command_defaults(command)
|
307
|
+
command.query['key'] = key unless key.nil?
|
308
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
312
|
+
end
|
313
|
+
end
|