google-api-client 0.51.0 → 0.52.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release-please.yml +23 -45
- data/CHANGELOG.md +100 -0
- data/README.md +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
- data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
- data/generated/google/apis/admin_directory_v1.rb +2 -2
- data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
- data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
- data/generated/google/apis/admin_directory_v1/service.rb +323 -183
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
- data/generated/google/apis/admin_reports_v1/service.rb +198 -179
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +5 -12
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +11 -11
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/apigateway_v1beta.rb +1 -1
- data/generated/google/apis/apigateway_v1beta/classes.rb +3 -9
- data/generated/google/apis/apigateway_v1beta/representations.rb +0 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +71 -0
- data/generated/google/apis/apigee_v1/representations.rb +42 -0
- data/generated/google/apis/apigee_v1/service.rb +206 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +7 -0
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +2 -2
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
- data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta2/classes.rb +2 -2
- data/generated/google/apis/artifactregistry_v1beta2/service.rb +4 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
- data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +202 -2
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -6
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -0
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +64 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +18 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1071 -341
- data/generated/google/apis/compute_alpha/representations.rb +248 -19
- data/generated/google/apis/compute_alpha/service.rb +291 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +926 -283
- data/generated/google/apis/compute_beta/representations.rb +221 -18
- data/generated/google/apis/compute_beta/service.rb +24 -15
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +419 -158
- data/generated/google/apis/compute_v1/representations.rb +55 -0
- data/generated/google/apis/compute_v1/service.rb +9 -7
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +48 -9
- data/generated/google/apis/container_v1/representations.rb +17 -0
- data/generated/google/apis/container_v1/service.rb +4 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +24 -13
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/container_v1beta1/service.rb +6 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +16 -7
- data/generated/google/apis/content_v2_1/representations.rb +1 -0
- data/generated/google/apis/datamigration_v1beta1.rb +1 -1
- data/generated/google/apis/datamigration_v1beta1/classes.rb +0 -6
- data/generated/google/apis/datamigration_v1beta1/representations.rb +0 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
- data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/service.rb +5 -25
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +8 -40
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +692 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +326 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +692 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +326 -0
- data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
- data/generated/google/apis/dialogflow_v3/classes.rb +8943 -0
- data/generated/google/apis/dialogflow_v3/representations.rb +3773 -0
- data/generated/google/apis/dialogflow_v3/service.rb +3006 -0
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +784 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +360 -0
- data/generated/google/apis/dialogflow_v3beta1/service.rb +173 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/service.rb +294 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +65 -0
- data/generated/google/apis/dns_v1/representations.rb +32 -0
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2/classes.rb +220 -102
- data/generated/google/apis/documentai_v1beta2/representations.rb +105 -9
- data/generated/google/apis/documentai_v1beta3.rb +1 -1
- data/generated/google/apis/documentai_v1beta3/classes.rb +241 -117
- data/generated/google/apis/documentai_v1beta3/representations.rb +105 -9
- data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
- data/generated/google/apis/eventarc_v1beta1.rb +1 -1
- data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
- data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +61 -0
- data/generated/google/apis/file_v1/representations.rb +19 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +11 -7
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +0 -6
- data/generated/google/apis/healthcare_v1/representations.rb +0 -1
- data/generated/google/apis/healthcare_v1/service.rb +13 -12
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +45 -19
- data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +37 -37
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +0 -6
- data/generated/google/apis/iap_v1/representations.rb +0 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -6
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
- data/generated/google/apis/metastore_v1beta.rb +35 -0
- data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
- data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
- data/generated/google/apis/metastore_v1beta/service.rb +800 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +51 -18
- data/generated/google/apis/ml_v1/representations.rb +16 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +8 -4
- data/generated/google/apis/privateca_v1beta1.rb +1 -1
- data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +37 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +18 -0
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +2 -2
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +2 -2
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
- data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
- data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +11 -10
- data/generated/google/apis/servicecontrol_v1.rb +3 -3
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
- data/generated/google/apis/servicecontrol_v2.rb +3 -3
- data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
- data/generated/google/apis/servicedirectory_v1.rb +35 -0
- data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
- data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
- data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +11 -10
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -10
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +9 -3
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +0 -22
- data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/trafficdirector_v2.rb +2 -2
- data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
- data/generated/google/apis/transcoder_v1beta1.rb +1 -1
- data/generated/google/apis/transcoder_v1beta1/classes.rb +12 -2
- data/generated/google/apis/transcoder_v1beta1/representations.rb +1 -0
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +1 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
- data/generated/google/apis/workflows_v1beta.rb +1 -1
- data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -7
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
@@ -1,426 +0,0 @@
|
|
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 BigqueryreservationV1alpha2
|
24
|
-
|
25
|
-
# The metadata for operation returned from ReservationService.CreateSlotPool.
|
26
|
-
class CreateSlotPoolMetadata
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Resource name of the slot pool that is being created. E.g., projects/myproject/
|
30
|
-
# locations/us-central1/reservations/foo/slotPools/123
|
31
|
-
# Corresponds to the JSON property `slotPool`
|
32
|
-
# @return [String]
|
33
|
-
attr_accessor :slot_pool
|
34
|
-
|
35
|
-
def initialize(**args)
|
36
|
-
update!(**args)
|
37
|
-
end
|
38
|
-
|
39
|
-
# Update properties of this object
|
40
|
-
def update!(**args)
|
41
|
-
@slot_pool = args[:slot_pool] if args.key?(:slot_pool)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# A generic empty message that you can re-use to avoid defining duplicated empty
|
46
|
-
# messages in your APIs. A typical example is to use it as the request or the
|
47
|
-
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
48
|
-
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
49
|
-
# `Empty` is empty JSON object ````.
|
50
|
-
class Empty
|
51
|
-
include Google::Apis::Core::Hashable
|
52
|
-
|
53
|
-
def initialize(**args)
|
54
|
-
update!(**args)
|
55
|
-
end
|
56
|
-
|
57
|
-
# Update properties of this object
|
58
|
-
def update!(**args)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
# The response for ReservationService.ListReservationGrants.
|
63
|
-
class ListReservationGrantsResponse
|
64
|
-
include Google::Apis::Core::Hashable
|
65
|
-
|
66
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
67
|
-
# results in the list.
|
68
|
-
# Corresponds to the JSON property `nextPageToken`
|
69
|
-
# @return [String]
|
70
|
-
attr_accessor :next_page_token
|
71
|
-
|
72
|
-
# List of reservation grants visible to the user.
|
73
|
-
# Corresponds to the JSON property `reservationGrants`
|
74
|
-
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::ReservationGrant>]
|
75
|
-
attr_accessor :reservation_grants
|
76
|
-
|
77
|
-
def initialize(**args)
|
78
|
-
update!(**args)
|
79
|
-
end
|
80
|
-
|
81
|
-
# Update properties of this object
|
82
|
-
def update!(**args)
|
83
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
84
|
-
@reservation_grants = args[:reservation_grants] if args.key?(:reservation_grants)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
# The response for ReservationService.ListReservations.
|
89
|
-
class ListReservationsResponse
|
90
|
-
include Google::Apis::Core::Hashable
|
91
|
-
|
92
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
93
|
-
# results in the list.
|
94
|
-
# Corresponds to the JSON property `nextPageToken`
|
95
|
-
# @return [String]
|
96
|
-
attr_accessor :next_page_token
|
97
|
-
|
98
|
-
# List of reservations visible to the user.
|
99
|
-
# Corresponds to the JSON property `reservations`
|
100
|
-
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::Reservation>]
|
101
|
-
attr_accessor :reservations
|
102
|
-
|
103
|
-
def initialize(**args)
|
104
|
-
update!(**args)
|
105
|
-
end
|
106
|
-
|
107
|
-
# Update properties of this object
|
108
|
-
def update!(**args)
|
109
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
110
|
-
@reservations = args[:reservations] if args.key?(:reservations)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
# The response for ReservationService.ListSlotPools.
|
115
|
-
class ListSlotPoolsResponse
|
116
|
-
include Google::Apis::Core::Hashable
|
117
|
-
|
118
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
119
|
-
# results in the list.
|
120
|
-
# Corresponds to the JSON property `nextPageToken`
|
121
|
-
# @return [String]
|
122
|
-
attr_accessor :next_page_token
|
123
|
-
|
124
|
-
# List of slot pools visible to the user.
|
125
|
-
# Corresponds to the JSON property `slotPools`
|
126
|
-
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::SlotPool>]
|
127
|
-
attr_accessor :slot_pools
|
128
|
-
|
129
|
-
def initialize(**args)
|
130
|
-
update!(**args)
|
131
|
-
end
|
132
|
-
|
133
|
-
# Update properties of this object
|
134
|
-
def update!(**args)
|
135
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
136
|
-
@slot_pools = args[:slot_pools] if args.key?(:slot_pools)
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
# This resource represents a long-running operation that is the result of a
|
141
|
-
# network API call.
|
142
|
-
class Operation
|
143
|
-
include Google::Apis::Core::Hashable
|
144
|
-
|
145
|
-
# If the value is `false`, it means the operation is still in progress. If `true`
|
146
|
-
# , the operation is completed, and either `error` or `response` is available.
|
147
|
-
# Corresponds to the JSON property `done`
|
148
|
-
# @return [Boolean]
|
149
|
-
attr_accessor :done
|
150
|
-
alias_method :done?, :done
|
151
|
-
|
152
|
-
# The `Status` type defines a logical error model that is suitable for different
|
153
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
154
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
155
|
-
# data: error code, error message, and error details. You can find out more
|
156
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
157
|
-
# //cloud.google.com/apis/design/errors).
|
158
|
-
# Corresponds to the JSON property `error`
|
159
|
-
# @return [Google::Apis::BigqueryreservationV1alpha2::Status]
|
160
|
-
attr_accessor :error
|
161
|
-
|
162
|
-
# Service-specific metadata associated with the operation. It typically contains
|
163
|
-
# progress information and common metadata such as create time. Some services
|
164
|
-
# might not provide such metadata. Any method that returns a long-running
|
165
|
-
# operation should document the metadata type, if any.
|
166
|
-
# Corresponds to the JSON property `metadata`
|
167
|
-
# @return [Hash<String,Object>]
|
168
|
-
attr_accessor :metadata
|
169
|
-
|
170
|
-
# The server-assigned name, which is only unique within the same service that
|
171
|
-
# originally returns it. If you use the default HTTP mapping, the `name` should
|
172
|
-
# be a resource name ending with `operations/`unique_id``.
|
173
|
-
# Corresponds to the JSON property `name`
|
174
|
-
# @return [String]
|
175
|
-
attr_accessor :name
|
176
|
-
|
177
|
-
# The normal response of the operation in case of success. If the original
|
178
|
-
# method returns no data on success, such as `Delete`, the response is `google.
|
179
|
-
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
180
|
-
# the response should be the resource. For other methods, the response should
|
181
|
-
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
182
|
-
# example, if the original method name is `TakeSnapshot()`, the inferred
|
183
|
-
# response type is `TakeSnapshotResponse`.
|
184
|
-
# Corresponds to the JSON property `response`
|
185
|
-
# @return [Hash<String,Object>]
|
186
|
-
attr_accessor :response
|
187
|
-
|
188
|
-
def initialize(**args)
|
189
|
-
update!(**args)
|
190
|
-
end
|
191
|
-
|
192
|
-
# Update properties of this object
|
193
|
-
def update!(**args)
|
194
|
-
@done = args[:done] if args.key?(:done)
|
195
|
-
@error = args[:error] if args.key?(:error)
|
196
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
197
|
-
@name = args[:name] if args.key?(:name)
|
198
|
-
@response = args[:response] if args.key?(:response)
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
# A reservation is a mechanism used to guarantee slots to users.
|
203
|
-
class Reservation
|
204
|
-
include Google::Apis::Core::Hashable
|
205
|
-
|
206
|
-
# The resource name of the reservation, e.g., "projects/*/locations/*/
|
207
|
-
# reservations/dev/team/product". Reservation names (e.g., "dev/team/product")
|
208
|
-
# exceeding a depth of six will fail with `google.rpc.Code.INVALID_ARGUMENT`.
|
209
|
-
# Corresponds to the JSON property `name`
|
210
|
-
# @return [String]
|
211
|
-
attr_accessor :name
|
212
|
-
|
213
|
-
# Maximum slots available to this reservation and its children. A slot is a unit
|
214
|
-
# of computational power in BigQuery, and serves as the unit of parallelism. In
|
215
|
-
# a scan of a multi-partitioned table, a single slot operates on a single
|
216
|
-
# partition of the table. If the new reservation's slot capacity exceed the
|
217
|
-
# parent's slot capacity or if total slot capacity of the new reservation and
|
218
|
-
# its siblings exceeds the parent's slot capacity, the request will fail with `
|
219
|
-
# google.rpc.Code.RESOURCE_EXHAUSTED`.
|
220
|
-
# Corresponds to the JSON property `slotCapacity`
|
221
|
-
# @return [Fixnum]
|
222
|
-
attr_accessor :slot_capacity
|
223
|
-
|
224
|
-
# If true, any query using this reservation will also be submitted to the parent
|
225
|
-
# reservation. This allows the query to share the additional slot capacity of
|
226
|
-
# the parent with other queries in the parent reservation. If the parent also
|
227
|
-
# has this field set to true, then this process will continue until it
|
228
|
-
# encounters a reservation for which this is false. If false, a query using this
|
229
|
-
# reservation will execute with the maximum slot capacity as specified above. If
|
230
|
-
# not specified, default value is true. Ignored for top-level reservation.
|
231
|
-
# Corresponds to the JSON property `useParentReservation`
|
232
|
-
# @return [Boolean]
|
233
|
-
attr_accessor :use_parent_reservation
|
234
|
-
alias_method :use_parent_reservation?, :use_parent_reservation
|
235
|
-
|
236
|
-
def initialize(**args)
|
237
|
-
update!(**args)
|
238
|
-
end
|
239
|
-
|
240
|
-
# Update properties of this object
|
241
|
-
def update!(**args)
|
242
|
-
@name = args[:name] if args.key?(:name)
|
243
|
-
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
|
244
|
-
@use_parent_reservation = args[:use_parent_reservation] if args.key?(:use_parent_reservation)
|
245
|
-
end
|
246
|
-
end
|
247
|
-
|
248
|
-
# A ReservationGrant allows a project to submit jobs of a certain type using
|
249
|
-
# slots from the specified reservation.
|
250
|
-
class ReservationGrant
|
251
|
-
include Google::Apis::Core::Hashable
|
252
|
-
|
253
|
-
# The resource which will use the reservation. E.g. projects/myproject, folders/
|
254
|
-
# 123, organizations/456.
|
255
|
-
# Corresponds to the JSON property `grantee`
|
256
|
-
# @return [String]
|
257
|
-
attr_accessor :grantee
|
258
|
-
|
259
|
-
# Which type of jobs will use the reservation.
|
260
|
-
# Corresponds to the JSON property `jobType`
|
261
|
-
# @return [String]
|
262
|
-
attr_accessor :job_type
|
263
|
-
|
264
|
-
# Output only. Name of the resource. E.g.: projects/myproject/locations/eu/
|
265
|
-
# reservationGrants/123.
|
266
|
-
# Corresponds to the JSON property `name`
|
267
|
-
# @return [String]
|
268
|
-
attr_accessor :name
|
269
|
-
|
270
|
-
# Resource name of the reservation. E.g., projects/myproject/locations/eu/
|
271
|
-
# reservations/my_reservation. This reservation must be in the same location as
|
272
|
-
# the grant. This reservation should belong to the same parent project.
|
273
|
-
# Corresponds to the JSON property `reservation`
|
274
|
-
# @return [String]
|
275
|
-
attr_accessor :reservation
|
276
|
-
|
277
|
-
# Output only. State of the ReservationGrant.
|
278
|
-
# Corresponds to the JSON property `state`
|
279
|
-
# @return [String]
|
280
|
-
attr_accessor :state
|
281
|
-
|
282
|
-
def initialize(**args)
|
283
|
-
update!(**args)
|
284
|
-
end
|
285
|
-
|
286
|
-
# Update properties of this object
|
287
|
-
def update!(**args)
|
288
|
-
@grantee = args[:grantee] if args.key?(:grantee)
|
289
|
-
@job_type = args[:job_type] if args.key?(:job_type)
|
290
|
-
@name = args[:name] if args.key?(:name)
|
291
|
-
@reservation = args[:reservation] if args.key?(:reservation)
|
292
|
-
@state = args[:state] if args.key?(:state)
|
293
|
-
end
|
294
|
-
end
|
295
|
-
|
296
|
-
# The response for ReservationService.SearchReservationGrants.
|
297
|
-
class SearchReservationGrantsResponse
|
298
|
-
include Google::Apis::Core::Hashable
|
299
|
-
|
300
|
-
# Token to retrieve the next page of results, or empty if there are no more
|
301
|
-
# results in the list.
|
302
|
-
# Corresponds to the JSON property `nextPageToken`
|
303
|
-
# @return [String]
|
304
|
-
attr_accessor :next_page_token
|
305
|
-
|
306
|
-
# List of reservation grants visible to the user.
|
307
|
-
# Corresponds to the JSON property `reservationGrants`
|
308
|
-
# @return [Array<Google::Apis::BigqueryreservationV1alpha2::ReservationGrant>]
|
309
|
-
attr_accessor :reservation_grants
|
310
|
-
|
311
|
-
def initialize(**args)
|
312
|
-
update!(**args)
|
313
|
-
end
|
314
|
-
|
315
|
-
# Update properties of this object
|
316
|
-
def update!(**args)
|
317
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
318
|
-
@reservation_grants = args[:reservation_grants] if args.key?(:reservation_grants)
|
319
|
-
end
|
320
|
-
end
|
321
|
-
|
322
|
-
# Slot pool is a way to purchase slots with some minimum committed period of
|
323
|
-
# usage. Slot pool is immutable and cannot be deleted until the end of the
|
324
|
-
# commitment period. After the end of the commitment period, slots are still
|
325
|
-
# available but can be freely removed any time. Annual commitments will
|
326
|
-
# automatically be downgraded to monthly after the commitment ends. A slot pool
|
327
|
-
# resource exists as a child resource of a top-level reservation. Sum of all the
|
328
|
-
# ACTIVE pools slot_count is always equal to the reservation slot_capacity.
|
329
|
-
class SlotPool
|
330
|
-
include Google::Apis::Core::Hashable
|
331
|
-
|
332
|
-
# Output only. The end of the commitment period. Slot pool cannot be removed
|
333
|
-
# before commitment_end_time. It is applicable only for ACTIVE slot pools and is
|
334
|
-
# computed as a combination of the plan and the time when the slot pool became
|
335
|
-
# ACTIVE.
|
336
|
-
# Corresponds to the JSON property `commitmentEndTime`
|
337
|
-
# @return [String]
|
338
|
-
attr_accessor :commitment_end_time
|
339
|
-
|
340
|
-
# The `Status` type defines a logical error model that is suitable for different
|
341
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
342
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
343
|
-
# data: error code, error message, and error details. You can find out more
|
344
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
345
|
-
# //cloud.google.com/apis/design/errors).
|
346
|
-
# Corresponds to the JSON property `failureStatus`
|
347
|
-
# @return [Google::Apis::BigqueryreservationV1alpha2::Status]
|
348
|
-
attr_accessor :failure_status
|
349
|
-
|
350
|
-
# Output only. The resource name of the slot pool, e.g., projects/myproject/
|
351
|
-
# locations/us-central1/reservations/myreservation/slotPools/123
|
352
|
-
# Corresponds to the JSON property `name`
|
353
|
-
# @return [String]
|
354
|
-
attr_accessor :name
|
355
|
-
|
356
|
-
# Slot pool commitment plan.
|
357
|
-
# Corresponds to the JSON property `plan`
|
358
|
-
# @return [String]
|
359
|
-
attr_accessor :plan
|
360
|
-
|
361
|
-
# Number of slots in this pool.
|
362
|
-
# Corresponds to the JSON property `slotCount`
|
363
|
-
# @return [Fixnum]
|
364
|
-
attr_accessor :slot_count
|
365
|
-
|
366
|
-
# Output only.
|
367
|
-
# Corresponds to the JSON property `state`
|
368
|
-
# @return [String]
|
369
|
-
attr_accessor :state
|
370
|
-
|
371
|
-
def initialize(**args)
|
372
|
-
update!(**args)
|
373
|
-
end
|
374
|
-
|
375
|
-
# Update properties of this object
|
376
|
-
def update!(**args)
|
377
|
-
@commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
|
378
|
-
@failure_status = args[:failure_status] if args.key?(:failure_status)
|
379
|
-
@name = args[:name] if args.key?(:name)
|
380
|
-
@plan = args[:plan] if args.key?(:plan)
|
381
|
-
@slot_count = args[:slot_count] if args.key?(:slot_count)
|
382
|
-
@state = args[:state] if args.key?(:state)
|
383
|
-
end
|
384
|
-
end
|
385
|
-
|
386
|
-
# The `Status` type defines a logical error model that is suitable for different
|
387
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
388
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
389
|
-
# data: error code, error message, and error details. You can find out more
|
390
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
391
|
-
# //cloud.google.com/apis/design/errors).
|
392
|
-
class Status
|
393
|
-
include Google::Apis::Core::Hashable
|
394
|
-
|
395
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
396
|
-
# Corresponds to the JSON property `code`
|
397
|
-
# @return [Fixnum]
|
398
|
-
attr_accessor :code
|
399
|
-
|
400
|
-
# A list of messages that carry the error details. There is a common set of
|
401
|
-
# message types for APIs to use.
|
402
|
-
# Corresponds to the JSON property `details`
|
403
|
-
# @return [Array<Hash<String,Object>>]
|
404
|
-
attr_accessor :details
|
405
|
-
|
406
|
-
# A developer-facing error message, which should be in English. Any user-facing
|
407
|
-
# error message should be localized and sent in the google.rpc.Status.details
|
408
|
-
# field, or localized by the client.
|
409
|
-
# Corresponds to the JSON property `message`
|
410
|
-
# @return [String]
|
411
|
-
attr_accessor :message
|
412
|
-
|
413
|
-
def initialize(**args)
|
414
|
-
update!(**args)
|
415
|
-
end
|
416
|
-
|
417
|
-
# Update properties of this object
|
418
|
-
def update!(**args)
|
419
|
-
@code = args[:code] if args.key?(:code)
|
420
|
-
@details = args[:details] if args.key?(:details)
|
421
|
-
@message = args[:message] if args.key?(:message)
|
422
|
-
end
|
423
|
-
end
|
424
|
-
end
|
425
|
-
end
|
426
|
-
end
|
@@ -1,195 +0,0 @@
|
|
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 BigqueryreservationV1alpha2
|
24
|
-
|
25
|
-
class CreateSlotPoolMetadata
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class Empty
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class ListReservationGrantsResponse
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class ListReservationsResponse
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class ListSlotPoolsResponse
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class Operation
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class Reservation
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class ReservationGrant
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class SearchReservationGrantsResponse
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
class SlotPool
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class Status
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
class CreateSlotPoolMetadata
|
92
|
-
# @private
|
93
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
-
property :slot_pool, as: 'slotPool'
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
class Empty
|
99
|
-
# @private
|
100
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
class ListReservationGrantsResponse
|
105
|
-
# @private
|
106
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
107
|
-
property :next_page_token, as: 'nextPageToken'
|
108
|
-
collection :reservation_grants, as: 'reservationGrants', class: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant, decorator: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
|
109
|
-
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
class ListReservationsResponse
|
114
|
-
# @private
|
115
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
116
|
-
property :next_page_token, as: 'nextPageToken'
|
117
|
-
collection :reservations, as: 'reservations', class: Google::Apis::BigqueryreservationV1alpha2::Reservation, decorator: Google::Apis::BigqueryreservationV1alpha2::Reservation::Representation
|
118
|
-
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
class ListSlotPoolsResponse
|
123
|
-
# @private
|
124
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
125
|
-
property :next_page_token, as: 'nextPageToken'
|
126
|
-
collection :slot_pools, as: 'slotPools', class: Google::Apis::BigqueryreservationV1alpha2::SlotPool, decorator: Google::Apis::BigqueryreservationV1alpha2::SlotPool::Representation
|
127
|
-
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
class Operation
|
132
|
-
# @private
|
133
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
134
|
-
property :done, as: 'done'
|
135
|
-
property :error, as: 'error', class: Google::Apis::BigqueryreservationV1alpha2::Status, decorator: Google::Apis::BigqueryreservationV1alpha2::Status::Representation
|
136
|
-
|
137
|
-
hash :metadata, as: 'metadata'
|
138
|
-
property :name, as: 'name'
|
139
|
-
hash :response, as: 'response'
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
class Reservation
|
144
|
-
# @private
|
145
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
146
|
-
property :name, as: 'name'
|
147
|
-
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
|
148
|
-
property :use_parent_reservation, as: 'useParentReservation'
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
class ReservationGrant
|
153
|
-
# @private
|
154
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
155
|
-
property :grantee, as: 'grantee'
|
156
|
-
property :job_type, as: 'jobType'
|
157
|
-
property :name, as: 'name'
|
158
|
-
property :reservation, as: 'reservation'
|
159
|
-
property :state, as: 'state'
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
class SearchReservationGrantsResponse
|
164
|
-
# @private
|
165
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
166
|
-
property :next_page_token, as: 'nextPageToken'
|
167
|
-
collection :reservation_grants, as: 'reservationGrants', class: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant, decorator: Google::Apis::BigqueryreservationV1alpha2::ReservationGrant::Representation
|
168
|
-
|
169
|
-
end
|
170
|
-
end
|
171
|
-
|
172
|
-
class SlotPool
|
173
|
-
# @private
|
174
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
-
property :commitment_end_time, as: 'commitmentEndTime'
|
176
|
-
property :failure_status, as: 'failureStatus', class: Google::Apis::BigqueryreservationV1alpha2::Status, decorator: Google::Apis::BigqueryreservationV1alpha2::Status::Representation
|
177
|
-
|
178
|
-
property :name, as: 'name'
|
179
|
-
property :plan, as: 'plan'
|
180
|
-
property :slot_count, :numeric_string => true, as: 'slotCount'
|
181
|
-
property :state, as: 'state'
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
class Status
|
186
|
-
# @private
|
187
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
188
|
-
property :code, as: 'code'
|
189
|
-
collection :details, as: 'details'
|
190
|
-
property :message, as: 'message'
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
end
|