google-api-client 0.9.pre1 → 0.9.pre2
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 +5 -0
- data/README.md +4 -3
- data/api_names.yaml +42 -0
- data/api_names_out.yaml +977 -651
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -24
- data/generated/google/apis/androidenterprise_v1/service.rb +11 -6
- data/generated/google/apis/androidenterprise_v1.rb +2 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -0
- data/generated/google/apis/bigquery_v2/representations.rb +14 -0
- data/generated/google/apis/bigquery_v2/service.rb +2 -2
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +8 -0
- data/generated/google/apis/calendar_v3/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +61 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +8 -0
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
- data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
- data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
- data/generated/google/apis/classroom_v1beta1.rb +49 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +4 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +20 -19
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +34 -34
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -5
- data/generated/google/apis/compute_v1/classes.rb +2638 -1136
- data/generated/google/apis/compute_v1/representations.rb +580 -0
- data/generated/google/apis/compute_v1/service.rb +2448 -305
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +438 -0
- data/generated/google/apis/container_v1/representations.rb +163 -0
- data/generated/google/apis/container_v1/service.rb +346 -0
- data/generated/google/apis/container_v1.rb +35 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +48 -12
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +13 -9
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +110 -15
- data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +4 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +65 -2
- data/generated/google/apis/fitness_v1/representations.rb +27 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2287 -0
- data/generated/google/apis/genomics_v1/representations.rb +796 -0
- data/generated/google/apis/genomics_v1/service.rb +1520 -0
- data/generated/google/apis/genomics_v1.rb +47 -0
- data/generated/google/apis/genomics_v1beta2/service.rb +36 -0
- data/generated/google/apis/genomics_v1beta2.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +42 -42
- data/generated/google/apis/pubsub_v1beta2/service.rb +26 -22
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/replicapool_v1beta2/classes.rb +10 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +4 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +3 -3
- data/generated/google/apis/youtube_v3/representations.rb +1 -1
- data/generated/google/apis/youtube_v3/service.rb +78 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/google-api-client.gemspec +0 -1
- data/lib/google/api_client/auth/installed_app.rb +6 -4
- data/lib/google/api_client/auth/key_utils.rb +93 -0
- data/lib/google/apis/core/api_command.rb +12 -5
- data/lib/google/apis/core/http_command.rb +17 -7
- data/lib/google/apis/core/json_representation.rb +6 -2
- data/lib/google/apis/errors.rb +9 -2
- data/lib/google/apis/version.rb +1 -1
- data/script/generate +4 -3
- data/spec/google/apis/core/http_command_spec.rb +20 -0
- data/spec/google/apis/core/json_representation_spec.rb +1 -1
- metadata +15 -16
|
@@ -0,0 +1,47 @@
|
|
|
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/genomics_v1/service.rb'
|
|
16
|
+
require 'google/apis/genomics_v1/classes.rb'
|
|
17
|
+
require 'google/apis/genomics_v1/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Genomics API
|
|
22
|
+
#
|
|
23
|
+
# An API to store, process, explore, and share DNA sequence reads, reference-
|
|
24
|
+
# based alignments, and variant calls.
|
|
25
|
+
#
|
|
26
|
+
# @see
|
|
27
|
+
module GenomicsV1
|
|
28
|
+
VERSION = 'V1'
|
|
29
|
+
REVISION = '20150716'
|
|
30
|
+
|
|
31
|
+
# View and manage your data in Google BigQuery
|
|
32
|
+
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
|
33
|
+
|
|
34
|
+
# View and manage your data across Google Cloud Platform services
|
|
35
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
36
|
+
|
|
37
|
+
# Manage your data in Google Cloud Storage
|
|
38
|
+
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
|
|
39
|
+
|
|
40
|
+
# View and manage Genomics data
|
|
41
|
+
AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics'
|
|
42
|
+
|
|
43
|
+
# View Genomics data
|
|
44
|
+
AUTH_GENOMICS_READONLY = 'https://www.googleapis.com/auth/genomics.readonly'
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -2028,6 +2028,42 @@ module Google
|
|
|
2028
2028
|
execute_or_queue_command(command, &block)
|
|
2029
2029
|
end
|
|
2030
2030
|
|
|
2031
|
+
# Creates a new variant set (only necessary in v1).
|
|
2032
|
+
# @param [Google::Apis::GenomicsV1beta2::VariantSet] variant_set_object
|
|
2033
|
+
# @param [String] fields
|
|
2034
|
+
# Selector specifying which fields to include in a partial response.
|
|
2035
|
+
# @param [String] quota_user
|
|
2036
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2037
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2038
|
+
# Overrides userIp if both are provided.
|
|
2039
|
+
# @param [String] user_ip
|
|
2040
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2041
|
+
# enforce per-user limits.
|
|
2042
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2043
|
+
# Request-specific options
|
|
2044
|
+
#
|
|
2045
|
+
# @yield [result, err] Result & error if block supplied
|
|
2046
|
+
# @yieldparam result [Google::Apis::GenomicsV1beta2::VariantSet] parsed result object
|
|
2047
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2048
|
+
#
|
|
2049
|
+
# @return [Google::Apis::GenomicsV1beta2::VariantSet]
|
|
2050
|
+
#
|
|
2051
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2052
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2053
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2054
|
+
def create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2055
|
+
path = 'variantsets'
|
|
2056
|
+
command = make_simple_command(:post, path, options)
|
|
2057
|
+
command.request_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
|
|
2058
|
+
command.request_object = variant_set_object
|
|
2059
|
+
command.response_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
|
|
2060
|
+
command.response_class = Google::Apis::GenomicsV1beta2::VariantSet
|
|
2061
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2062
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2063
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2064
|
+
execute_or_queue_command(command, &block)
|
|
2065
|
+
end
|
|
2066
|
+
|
|
2031
2067
|
# Deletes the contents of a variant set. The variant set object is not deleted.
|
|
2032
2068
|
# @param [String] variant_set_id
|
|
2033
2069
|
# The ID of the variant set to be deleted.
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/genomics/v1beta2/reference
|
|
26
26
|
module GenomicsV1beta2
|
|
27
27
|
VERSION = 'V1beta2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20150715'
|
|
29
29
|
|
|
30
30
|
# View and manage your data in Google BigQuery
|
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/maps-engine/
|
|
27
27
|
module MapsengineV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20150629'
|
|
30
30
|
|
|
31
31
|
# View and manage your Google My Maps data
|
|
32
32
|
AUTH_MAPSENGINE = 'https://www.googleapis.com/auth/mapsengine'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/accounts/docs/OAuth2
|
|
26
26
|
module Oauth2V2
|
|
27
27
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20150714'
|
|
29
29
|
|
|
30
30
|
# Know your basic profile info and list of people in your circles.
|
|
31
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/+/domains/
|
|
26
26
|
module PlusDomainsV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20150719'
|
|
29
29
|
|
|
30
30
|
# View your circles and the people and pages in them
|
|
31
31
|
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/+/api/
|
|
26
26
|
module PlusV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20150719'
|
|
29
29
|
|
|
30
30
|
# Know your basic profile info and list of people in your circles.
|
|
31
31
|
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
|
@@ -674,7 +674,7 @@ module Google
|
|
|
674
674
|
|
|
675
675
|
# The estimated regression value (Regression models only).
|
|
676
676
|
# Corresponds to the JSON property `outputValue`
|
|
677
|
-
# @return [
|
|
677
|
+
# @return [Float]
|
|
678
678
|
attr_accessor :output_value
|
|
679
679
|
|
|
680
680
|
# A URL to re-request this resource.
|
|
@@ -26,20 +26,20 @@ module Google
|
|
|
26
26
|
class SetIamPolicyRequest
|
|
27
27
|
include Google::Apis::Core::Hashable
|
|
28
28
|
|
|
29
|
-
# # Overview The `Policy` defines an access control policy language. It
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
29
|
+
# # Overview The `Policy` defines an access control policy language. It is used
|
|
30
|
+
# to define policies that are attached to resources like files, folders, VMs,
|
|
31
|
+
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
|
32
|
+
# binds a set of members to a role, where the members include user accounts,
|
|
33
|
+
# user groups, user domains, and service accounts. A 'role' is a named set of
|
|
34
|
+
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
|
35
|
+
# permission check first determines the roles that include the specified
|
|
36
|
+
# permission, and then determines if the principal specified is a member of a
|
|
37
|
+
# binding to at least one of these roles. The membership check is recursive when
|
|
38
|
+
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
|
39
|
+
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
|
40
|
+
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
|
41
|
+
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
|
42
|
+
# ``
|
|
43
43
|
# Corresponds to the JSON property `policy`
|
|
44
44
|
# @return [Google::Apis::PubsubV1beta2::Policy]
|
|
45
45
|
attr_accessor :policy
|
|
@@ -54,25 +54,25 @@ module Google
|
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
# # Overview The `Policy` defines an access control policy language. It
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
#
|
|
57
|
+
# # Overview The `Policy` defines an access control policy language. It is used
|
|
58
|
+
# to define policies that are attached to resources like files, folders, VMs,
|
|
59
|
+
# etc. # Policy structure A `Policy` consists of a list of bindings. A `Binding`
|
|
60
|
+
# binds a set of members to a role, where the members include user accounts,
|
|
61
|
+
# user groups, user domains, and service accounts. A 'role' is a named set of
|
|
62
|
+
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
|
63
|
+
# permission check first determines the roles that include the specified
|
|
64
|
+
# permission, and then determines if the principal specified is a member of a
|
|
65
|
+
# binding to at least one of these roles. The membership check is recursive when
|
|
66
|
+
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
|
67
|
+
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
|
68
|
+
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
|
69
|
+
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
|
70
|
+
# ``
|
|
71
71
|
class Policy
|
|
72
72
|
include Google::Apis::Core::Hashable
|
|
73
73
|
|
|
74
|
-
# The policy language version. The version of the policy
|
|
75
|
-
#
|
|
74
|
+
# The policy language version. The version of the policy is represented by the
|
|
75
|
+
# etag. The default version is 0.
|
|
76
76
|
# Corresponds to the JSON property `version`
|
|
77
77
|
# @return [Fixnum]
|
|
78
78
|
attr_accessor :version
|
|
@@ -106,8 +106,7 @@ module Google
|
|
|
106
106
|
end
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
# Associates members
|
|
110
|
-
# various objects that can be included as members.
|
|
109
|
+
# Associates members with roles. See below for allowed formats of members.
|
|
111
110
|
class Binding
|
|
112
111
|
include Google::Apis::Core::Hashable
|
|
113
112
|
|
|
@@ -387,10 +386,11 @@ module Google
|
|
|
387
386
|
include Google::Apis::Core::Hashable
|
|
388
387
|
|
|
389
388
|
# The name of the topic. It must have the format "projects/`project`/topics/`
|
|
390
|
-
# topic`" for Google Cloud Pub/Sub API v1beta2. `topic` must start with a
|
|
391
|
-
# and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-),
|
|
392
|
-
# _), periods (.), tildes (~), plus (+) or percent signs (%). It
|
|
393
|
-
# 3 and 255 characters in length, and it must not start with "
|
|
389
|
+
# topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a
|
|
390
|
+
# letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-),
|
|
391
|
+
# underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It
|
|
392
|
+
# must be between 3 and 255 characters in length, and it must not start with "
|
|
393
|
+
# goog".
|
|
394
394
|
# Corresponds to the JSON property `name`
|
|
395
395
|
# @return [String]
|
|
396
396
|
attr_accessor :name
|
|
@@ -535,7 +535,8 @@ module Google
|
|
|
535
535
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
536
536
|
# messages in your APIs. A typical example is to use it as the request or the
|
|
537
537
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
538
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
|
538
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
|
539
|
+
# `Empty` is empty JSON object ````.
|
|
539
540
|
class Empty
|
|
540
541
|
include Google::Apis::Core::Hashable
|
|
541
542
|
|
|
@@ -553,7 +554,7 @@ module Google
|
|
|
553
554
|
include Google::Apis::Core::Hashable
|
|
554
555
|
|
|
555
556
|
# The name of the subscription. It must have the format "projects/`project`/
|
|
556
|
-
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1beta2. `
|
|
557
|
+
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. `
|
|
557
558
|
# subscription` must start with a letter, and contain only letters ([A-Za-z]),
|
|
558
559
|
# numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+)
|
|
559
560
|
# or percent signs (%). It must be between 3 and 255 characters in length, and
|
|
@@ -562,9 +563,8 @@ module Google
|
|
|
562
563
|
# @return [String]
|
|
563
564
|
attr_accessor :name
|
|
564
565
|
|
|
565
|
-
# The name of the topic from which this subscription is receiving messages.
|
|
566
|
-
#
|
|
567
|
-
# topic.
|
|
566
|
+
# The name of the topic from which this subscription is receiving messages. The
|
|
567
|
+
# value of this field will be `_deleted-topic_` if the topic has been deleted.
|
|
568
568
|
# Corresponds to the JSON property `topic`
|
|
569
569
|
# @return [String]
|
|
570
570
|
attr_accessor :topic
|
|
@@ -672,7 +672,7 @@ module Google
|
|
|
672
672
|
class ModifyAckDeadlineRequest
|
|
673
673
|
include Google::Apis::Core::Hashable
|
|
674
674
|
|
|
675
|
-
# The acknowledgment ID.
|
|
675
|
+
# The acknowledgment ID. Either this or ack_ids must be populated, but not both.
|
|
676
676
|
# Corresponds to the JSON property `ackId`
|
|
677
677
|
# @return [String]
|
|
678
678
|
attr_accessor :ack_id
|
|
@@ -49,8 +49,9 @@ module Google
|
|
|
49
49
|
# Sets the access control policy on the specified resource. Replaces any
|
|
50
50
|
# existing policy.
|
|
51
51
|
# @param [String] resource
|
|
52
|
-
# REQUIRED: The resource for which policy is being specified.
|
|
53
|
-
#
|
|
52
|
+
# REQUIRED: The resource for which policy is being specified. Resource is
|
|
53
|
+
# usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
|
|
54
|
+
# disk`.
|
|
54
55
|
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
|
|
55
56
|
# @param [String] fields
|
|
56
57
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -82,11 +83,11 @@ module Google
|
|
|
82
83
|
execute_or_queue_command(command, &block)
|
|
83
84
|
end
|
|
84
85
|
|
|
85
|
-
# Gets the access control policy for a resource.
|
|
86
|
-
#
|
|
86
|
+
# Gets the access control policy for a resource. Is empty if the policy or the
|
|
87
|
+
# resource does not exist.
|
|
87
88
|
# @param [String] resource
|
|
88
|
-
# REQUIRED: The resource for which policy is being requested.
|
|
89
|
-
#
|
|
89
|
+
# REQUIRED: The resource for which policy is being requested. Resource is
|
|
90
|
+
# usually specified as a path, such as, projects/`project`.
|
|
90
91
|
# @param [String] fields
|
|
91
92
|
# Selector specifying which fields to include in a partial response.
|
|
92
93
|
# @param [String] quota_user
|
|
@@ -117,8 +118,8 @@ module Google
|
|
|
117
118
|
|
|
118
119
|
# Returns permissions that a caller has on the specified resource.
|
|
119
120
|
# @param [String] resource
|
|
120
|
-
# REQUIRED: The resource for which policy detail is being requested.
|
|
121
|
-
#
|
|
121
|
+
# REQUIRED: The resource for which policy detail is being requested. Resource is
|
|
122
|
+
# usually specified as a path, such as, projects/`project`.
|
|
122
123
|
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
123
124
|
# @param [String] fields
|
|
124
125
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -153,10 +154,11 @@ module Google
|
|
|
153
154
|
# Creates the given topic with the given name.
|
|
154
155
|
# @param [String] name
|
|
155
156
|
# The name of the topic. It must have the format "projects/`project`/topics/`
|
|
156
|
-
# topic`" for Google Cloud Pub/Sub API v1beta2. `topic` must start with a
|
|
157
|
-
# and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-),
|
|
158
|
-
# _), periods (.), tildes (~), plus (+) or percent signs (%). It
|
|
159
|
-
# 3 and 255 characters in length, and it must not start with "
|
|
157
|
+
# topic`" for Google Cloud Pub/Sub API v1 and v1beta2. `topic` must start with a
|
|
158
|
+
# letter, and contain only letters ([A-Za-z]), numbers ([0-9], dashes (-),
|
|
159
|
+
# underscores (_), periods (.), tildes (~), plus (+) or percent signs (%). It
|
|
160
|
+
# must be between 3 and 255 characters in length, and it must not start with "
|
|
161
|
+
# goog".
|
|
160
162
|
# @param [Google::Apis::PubsubV1beta2::Topic] topic_object
|
|
161
163
|
# @param [String] fields
|
|
162
164
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -296,7 +298,8 @@ module Google
|
|
|
296
298
|
# Deletes the topic with the given name. Returns NOT_FOUND if the topic does not
|
|
297
299
|
# exist. After a topic is deleted, a new topic may be created with the same name;
|
|
298
300
|
# this is an entirely new topic with none of the old configuration or
|
|
299
|
-
# subscriptions. Existing subscriptions to this topic are not deleted
|
|
301
|
+
# subscriptions. Existing subscriptions to this topic are not deleted, but their
|
|
302
|
+
# `topic` field is set to `_deleted-topic_`.
|
|
300
303
|
# @param [String] topic
|
|
301
304
|
# Name of the topic to delete.
|
|
302
305
|
# @param [String] fields
|
|
@@ -369,8 +372,9 @@ module Google
|
|
|
369
372
|
# Sets the access control policy on the specified resource. Replaces any
|
|
370
373
|
# existing policy.
|
|
371
374
|
# @param [String] resource
|
|
372
|
-
# REQUIRED: The resource for which policy is being specified.
|
|
373
|
-
#
|
|
375
|
+
# REQUIRED: The resource for which policy is being specified. Resource is
|
|
376
|
+
# usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
|
|
377
|
+
# disk`.
|
|
374
378
|
# @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
|
|
375
379
|
# @param [String] fields
|
|
376
380
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -402,11 +406,11 @@ module Google
|
|
|
402
406
|
execute_or_queue_command(command, &block)
|
|
403
407
|
end
|
|
404
408
|
|
|
405
|
-
# Gets the access control policy for a resource.
|
|
406
|
-
#
|
|
409
|
+
# Gets the access control policy for a resource. Is empty if the policy or the
|
|
410
|
+
# resource does not exist.
|
|
407
411
|
# @param [String] resource
|
|
408
|
-
# REQUIRED: The resource for which policy is being requested.
|
|
409
|
-
#
|
|
412
|
+
# REQUIRED: The resource for which policy is being requested. Resource is
|
|
413
|
+
# usually specified as a path, such as, projects/`project`.
|
|
410
414
|
# @param [String] fields
|
|
411
415
|
# Selector specifying which fields to include in a partial response.
|
|
412
416
|
# @param [String] quota_user
|
|
@@ -437,8 +441,8 @@ module Google
|
|
|
437
441
|
|
|
438
442
|
# Returns permissions that a caller has on the specified resource.
|
|
439
443
|
# @param [String] resource
|
|
440
|
-
# REQUIRED: The resource for which policy detail is being requested.
|
|
441
|
-
#
|
|
444
|
+
# REQUIRED: The resource for which policy detail is being requested. Resource is
|
|
445
|
+
# usually specified as a path, such as, projects/`project`.
|
|
442
446
|
# @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
443
447
|
# @param [String] fields
|
|
444
448
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -477,7 +481,7 @@ module Google
|
|
|
477
481
|
# same project as the topic.
|
|
478
482
|
# @param [String] name
|
|
479
483
|
# The name of the subscription. It must have the format "projects/`project`/
|
|
480
|
-
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1beta2. `
|
|
484
|
+
# subscriptions/`subscription`" for Google Cloud Pub/Sub API v1 and v1beta2. `
|
|
481
485
|
# subscription` must start with a letter, and contain only letters ([A-Za-z]),
|
|
482
486
|
# numbers ([0-9], dashes (-), underscores (_), periods (.), tildes (~), plus (+)
|
|
483
487
|
# or percent signs (%). It must be between 3 and 255 characters in length, and
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/pubsub/docs
|
|
26
26
|
module PubsubV1beta2
|
|
27
27
|
VERSION = 'V1beta2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20150604'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -602,6 +602,15 @@ module Google
|
|
|
602
602
|
class ReplicaPoolAutoHealingPolicy
|
|
603
603
|
include Google::Apis::Core::Hashable
|
|
604
604
|
|
|
605
|
+
# The action to perform when an instance becomes unhealthy. Possible values are
|
|
606
|
+
# RECREATE or REBOOT. RECREATE replaces an unhealthy instance with a new
|
|
607
|
+
# instance that is based on the instance template for this managed instance
|
|
608
|
+
# group. REBOOT performs a soft reboot on an instance. If the instance cannot
|
|
609
|
+
# reboot, the instance performs a hard restart.
|
|
610
|
+
# Corresponds to the JSON property `actionType`
|
|
611
|
+
# @return [String]
|
|
612
|
+
attr_accessor :action_type
|
|
613
|
+
|
|
605
614
|
# The URL for the HealthCheck that signals autohealing.
|
|
606
615
|
# Corresponds to the JSON property `healthCheck`
|
|
607
616
|
# @return [String]
|
|
@@ -613,6 +622,7 @@ module Google
|
|
|
613
622
|
|
|
614
623
|
# Update properties of this object
|
|
615
624
|
def update!(**args)
|
|
625
|
+
@action_type = args[:action_type] unless args[:action_type].nil?
|
|
616
626
|
@health_check = args[:health_check] unless args[:health_check].nil?
|
|
617
627
|
end
|
|
618
628
|
end
|