google-api-client 0.28.1 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.kokoro/build.sh +1 -1
- data/CHANGELOG.md +28 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +9 -8
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/service.rb +81 -6
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +3 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +3 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +30 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +28 -0
- data/generated/google/apis/dlp_v2/representations.rb +15 -0
- data/generated/google/apis/dlp_v2/service.rb +23 -1
- data/generated/google/apis/docs_v1.rb +46 -0
- data/generated/google/apis/docs_v1/classes.rb +5383 -0
- data/generated/google/apis/docs_v1/representations.rb +2209 -0
- data/generated/google/apis/docs_v1/service.rb +176 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +0 -193
- data/generated/google/apis/file_v1/representations.rb +0 -70
- data/generated/google/apis/file_v1/service.rb +0 -190
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/service.rb +8 -0
- data/generated/google/apis/jobs_v3/classes.rb +130 -3
- data/generated/google/apis/jobs_v3/representations.rb +47 -0
- data/generated/google/apis/jobs_v3/service.rb +40 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +44 -0
- data/generated/google/apis/ml_v1/representations.rb +21 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +5 -4
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +3 -2
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +3 -2
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +3 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +2 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1.rb +35 -0
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2872 -0
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +1221 -0
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +93 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +100 -13
- data/generated/google/apis/youtube_v3/representations.rb +38 -1
- data/lib/google/apis/core/http_command.rb +9 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -3
- data/.travis.yml +0 -26
@@ -0,0 +1,176 @@
|
|
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 DocsV1
|
23
|
+
# Google Docs API
|
24
|
+
#
|
25
|
+
# An API for creating and editing Google Docs documents.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/docs_v1'
|
29
|
+
#
|
30
|
+
# Docs = Google::Apis::DocsV1 # Alias the module
|
31
|
+
# service = Docs::DocsService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/docs/
|
34
|
+
class DocsService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://docs.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Applies one or more updates to the document.
|
51
|
+
# Each request is validated before
|
52
|
+
# being applied. If any request is not valid, then the entire request will
|
53
|
+
# fail and nothing will be applied.
|
54
|
+
# Some requests have replies to
|
55
|
+
# give you some information about how they are applied. Other requests do
|
56
|
+
# not need to return information; these each return an empty reply.
|
57
|
+
# The order of replies matches that of the requests.
|
58
|
+
# For example, suppose you call batchUpdate with four updates, and only the
|
59
|
+
# third one returns information. The response would have two empty replies,
|
60
|
+
# the reply to the third request, and another empty reply, in that order.
|
61
|
+
# Because other users may be editing the document, the document
|
62
|
+
# might not exactly reflect your changes: your changes may
|
63
|
+
# be altered with respect to collaborator changes. If there are no
|
64
|
+
# collaborators, the document should reflect your changes. In any case,
|
65
|
+
# the updates in your request are guaranteed to be applied together
|
66
|
+
# atomically.
|
67
|
+
# @param [String] document_id
|
68
|
+
# The ID of the document to update.
|
69
|
+
# @param [Google::Apis::DocsV1::BatchUpdateDocumentRequest] batch_update_document_request_object
|
70
|
+
# @param [String] fields
|
71
|
+
# Selector specifying which fields to include in a partial response.
|
72
|
+
# @param [String] quota_user
|
73
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
74
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
75
|
+
# @param [Google::Apis::RequestOptions] options
|
76
|
+
# Request-specific options
|
77
|
+
#
|
78
|
+
# @yield [result, err] Result & error if block supplied
|
79
|
+
# @yieldparam result [Google::Apis::DocsV1::BatchUpdateDocumentResponse] parsed result object
|
80
|
+
# @yieldparam err [StandardError] error object if request failed
|
81
|
+
#
|
82
|
+
# @return [Google::Apis::DocsV1::BatchUpdateDocumentResponse]
|
83
|
+
#
|
84
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
85
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
86
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
87
|
+
def batch_update_document(document_id, batch_update_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
88
|
+
command = make_simple_command(:post, 'v1/documents/{documentId}:batchUpdate', options)
|
89
|
+
command.request_representation = Google::Apis::DocsV1::BatchUpdateDocumentRequest::Representation
|
90
|
+
command.request_object = batch_update_document_request_object
|
91
|
+
command.response_representation = Google::Apis::DocsV1::BatchUpdateDocumentResponse::Representation
|
92
|
+
command.response_class = Google::Apis::DocsV1::BatchUpdateDocumentResponse
|
93
|
+
command.params['documentId'] = document_id unless document_id.nil?
|
94
|
+
command.query['fields'] = fields unless fields.nil?
|
95
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
96
|
+
execute_or_queue_command(command, &block)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Creates a blank document using the title given in the request. Other fields
|
100
|
+
# in the request, including any provided content, are ignored.
|
101
|
+
# Returns the created document.
|
102
|
+
# @param [Google::Apis::DocsV1::Document] document_object
|
103
|
+
# @param [String] fields
|
104
|
+
# Selector specifying which fields to include in a partial response.
|
105
|
+
# @param [String] quota_user
|
106
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
107
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
108
|
+
# @param [Google::Apis::RequestOptions] options
|
109
|
+
# Request-specific options
|
110
|
+
#
|
111
|
+
# @yield [result, err] Result & error if block supplied
|
112
|
+
# @yieldparam result [Google::Apis::DocsV1::Document] parsed result object
|
113
|
+
# @yieldparam err [StandardError] error object if request failed
|
114
|
+
#
|
115
|
+
# @return [Google::Apis::DocsV1::Document]
|
116
|
+
#
|
117
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
118
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
119
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
120
|
+
def create_document(document_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
121
|
+
command = make_simple_command(:post, 'v1/documents', options)
|
122
|
+
command.request_representation = Google::Apis::DocsV1::Document::Representation
|
123
|
+
command.request_object = document_object
|
124
|
+
command.response_representation = Google::Apis::DocsV1::Document::Representation
|
125
|
+
command.response_class = Google::Apis::DocsV1::Document
|
126
|
+
command.query['fields'] = fields unless fields.nil?
|
127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
128
|
+
execute_or_queue_command(command, &block)
|
129
|
+
end
|
130
|
+
|
131
|
+
# Gets the latest version of the specified document.
|
132
|
+
# @param [String] document_id
|
133
|
+
# The ID of the document to retrieve.
|
134
|
+
# @param [String] suggestions_view_mode
|
135
|
+
# The suggestions view mode to apply to the document. This allows viewing the
|
136
|
+
# document with all suggestions inline, accepted or rejected. If one is not
|
137
|
+
# specified, DEFAULT_FOR_CURRENT_ACCESS is
|
138
|
+
# used.
|
139
|
+
# @param [String] fields
|
140
|
+
# Selector specifying which fields to include in a partial response.
|
141
|
+
# @param [String] quota_user
|
142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
145
|
+
# Request-specific options
|
146
|
+
#
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
148
|
+
# @yieldparam result [Google::Apis::DocsV1::Document] parsed result object
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
150
|
+
#
|
151
|
+
# @return [Google::Apis::DocsV1::Document]
|
152
|
+
#
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
156
|
+
def get_document(document_id, suggestions_view_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
|
157
|
+
command = make_simple_command(:get, 'v1/documents/{documentId}', options)
|
158
|
+
command.response_representation = Google::Apis::DocsV1::Document::Representation
|
159
|
+
command.response_class = Google::Apis::DocsV1::Document
|
160
|
+
command.params['documentId'] = document_id unless document_id.nil?
|
161
|
+
command.query['suggestionsViewMode'] = suggestions_view_mode unless suggestions_view_mode.nil?
|
162
|
+
command.query['fields'] = fields unless fields.nil?
|
163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
164
|
+
execute_or_queue_command(command, &block)
|
165
|
+
end
|
166
|
+
|
167
|
+
protected
|
168
|
+
|
169
|
+
def apply_command_defaults(command)
|
170
|
+
command.query['key'] = key unless key.nil?
|
171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/filestore/
|
26
26
|
module FileV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190129'
|
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'
|
@@ -54,149 +54,6 @@ module Google
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
# File share configuration for the instance.
|
58
|
-
class FileShareConfig
|
59
|
-
include Google::Apis::Core::Hashable
|
60
|
-
|
61
|
-
# File share capacity in gigabytes (GB).
|
62
|
-
# Cloud Filestore defines 1 GB as 1024^3 bytes.
|
63
|
-
# Corresponds to the JSON property `capacityGb`
|
64
|
-
# @return [Fixnum]
|
65
|
-
attr_accessor :capacity_gb
|
66
|
-
|
67
|
-
# The name of the file share (must be 16 characters or less).
|
68
|
-
# Corresponds to the JSON property `name`
|
69
|
-
# @return [String]
|
70
|
-
attr_accessor :name
|
71
|
-
|
72
|
-
def initialize(**args)
|
73
|
-
update!(**args)
|
74
|
-
end
|
75
|
-
|
76
|
-
# Update properties of this object
|
77
|
-
def update!(**args)
|
78
|
-
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
79
|
-
@name = args[:name] if args.key?(:name)
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
# A Cloud Filestore instance.
|
84
|
-
class Instance
|
85
|
-
include Google::Apis::Core::Hashable
|
86
|
-
|
87
|
-
# Output only.
|
88
|
-
# The time when the instance was created.
|
89
|
-
# Corresponds to the JSON property `createTime`
|
90
|
-
# @return [String]
|
91
|
-
attr_accessor :create_time
|
92
|
-
|
93
|
-
# Optional. A description of the instance (2048 characters or less).
|
94
|
-
# Corresponds to the JSON property `description`
|
95
|
-
# @return [String]
|
96
|
-
attr_accessor :description
|
97
|
-
|
98
|
-
# Server-specified ETag for the instance resource to prevent simultaneous
|
99
|
-
# updates from overwriting each other.
|
100
|
-
# Corresponds to the JSON property `etag`
|
101
|
-
# @return [String]
|
102
|
-
attr_accessor :etag
|
103
|
-
|
104
|
-
# File system shares on the instance.
|
105
|
-
# For this version, only a single file share is supported.
|
106
|
-
# Corresponds to the JSON property `fileShares`
|
107
|
-
# @return [Array<Google::Apis::FileV1::FileShareConfig>]
|
108
|
-
attr_accessor :file_shares
|
109
|
-
|
110
|
-
# Resource labels to represent user provided metadata.
|
111
|
-
# Corresponds to the JSON property `labels`
|
112
|
-
# @return [Hash<String,String>]
|
113
|
-
attr_accessor :labels
|
114
|
-
|
115
|
-
# Output only.
|
116
|
-
# The resource name of the instance, in the format
|
117
|
-
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
|
118
|
-
# Corresponds to the JSON property `name`
|
119
|
-
# @return [String]
|
120
|
-
attr_accessor :name
|
121
|
-
|
122
|
-
# VPC networks to which the instance is connected.
|
123
|
-
# For this version, only a single network is supported.
|
124
|
-
# Corresponds to the JSON property `networks`
|
125
|
-
# @return [Array<Google::Apis::FileV1::NetworkConfig>]
|
126
|
-
attr_accessor :networks
|
127
|
-
|
128
|
-
# Output only.
|
129
|
-
# The instance state.
|
130
|
-
# Corresponds to the JSON property `state`
|
131
|
-
# @return [String]
|
132
|
-
attr_accessor :state
|
133
|
-
|
134
|
-
# Output only.
|
135
|
-
# Additional information about the instance state, if available.
|
136
|
-
# Corresponds to the JSON property `statusMessage`
|
137
|
-
# @return [String]
|
138
|
-
attr_accessor :status_message
|
139
|
-
|
140
|
-
# The service tier of the instance.
|
141
|
-
# Corresponds to the JSON property `tier`
|
142
|
-
# @return [String]
|
143
|
-
attr_accessor :tier
|
144
|
-
|
145
|
-
def initialize(**args)
|
146
|
-
update!(**args)
|
147
|
-
end
|
148
|
-
|
149
|
-
# Update properties of this object
|
150
|
-
def update!(**args)
|
151
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
152
|
-
@description = args[:description] if args.key?(:description)
|
153
|
-
@etag = args[:etag] if args.key?(:etag)
|
154
|
-
@file_shares = args[:file_shares] if args.key?(:file_shares)
|
155
|
-
@labels = args[:labels] if args.key?(:labels)
|
156
|
-
@name = args[:name] if args.key?(:name)
|
157
|
-
@networks = args[:networks] if args.key?(:networks)
|
158
|
-
@state = args[:state] if args.key?(:state)
|
159
|
-
@status_message = args[:status_message] if args.key?(:status_message)
|
160
|
-
@tier = args[:tier] if args.key?(:tier)
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
# ListInstancesResponse is the result of ListInstancesRequest.
|
165
|
-
class ListInstancesResponse
|
166
|
-
include Google::Apis::Core::Hashable
|
167
|
-
|
168
|
-
# A list of instances in the project for the specified location.
|
169
|
-
# If the `location` value in the request is "-", the response contains a list
|
170
|
-
# of instances from all locations. If any location is unreachable, the
|
171
|
-
# response will only return instances in reachable locations and the
|
172
|
-
# "unreachable" field will be populated with a list of unreachable locations.
|
173
|
-
# Corresponds to the JSON property `instances`
|
174
|
-
# @return [Array<Google::Apis::FileV1::Instance>]
|
175
|
-
attr_accessor :instances
|
176
|
-
|
177
|
-
# The token you can use to retrieve the next page of results. Not returned
|
178
|
-
# if there are no more results in the list.
|
179
|
-
# Corresponds to the JSON property `nextPageToken`
|
180
|
-
# @return [String]
|
181
|
-
attr_accessor :next_page_token
|
182
|
-
|
183
|
-
# Locations that could not be reached.
|
184
|
-
# Corresponds to the JSON property `unreachable`
|
185
|
-
# @return [Array<String>]
|
186
|
-
attr_accessor :unreachable
|
187
|
-
|
188
|
-
def initialize(**args)
|
189
|
-
update!(**args)
|
190
|
-
end
|
191
|
-
|
192
|
-
# Update properties of this object
|
193
|
-
def update!(**args)
|
194
|
-
@instances = args[:instances] if args.key?(:instances)
|
195
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
196
|
-
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
197
|
-
end
|
198
|
-
end
|
199
|
-
|
200
57
|
# The response message for Locations.ListLocations.
|
201
58
|
class ListLocationsResponse
|
202
59
|
include Google::Apis::Core::Hashable
|
@@ -294,56 +151,6 @@ module Google
|
|
294
151
|
end
|
295
152
|
end
|
296
153
|
|
297
|
-
# Network configuration for the instance.
|
298
|
-
class NetworkConfig
|
299
|
-
include Google::Apis::Core::Hashable
|
300
|
-
|
301
|
-
# Output only.
|
302
|
-
# IPv4 addresses in the format
|
303
|
-
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format
|
304
|
-
# `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block 7`:`block 8`
|
305
|
-
# .
|
306
|
-
# Corresponds to the JSON property `ipAddresses`
|
307
|
-
# @return [Array<String>]
|
308
|
-
attr_accessor :ip_addresses
|
309
|
-
|
310
|
-
# Internet protocol versions for which the instance has IP addresses
|
311
|
-
# assigned. For this version, only MODE_IPV4 is supported.
|
312
|
-
# Corresponds to the JSON property `modes`
|
313
|
-
# @return [Array<String>]
|
314
|
-
attr_accessor :modes
|
315
|
-
|
316
|
-
# The name of the Google Compute Engine
|
317
|
-
# [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
|
318
|
-
# instance is connected.
|
319
|
-
# Corresponds to the JSON property `network`
|
320
|
-
# @return [String]
|
321
|
-
attr_accessor :network
|
322
|
-
|
323
|
-
# A /29 CIDR block in one of the
|
324
|
-
# [internal IP address ranges](https://www.arin.net/knowledge/address_filters.
|
325
|
-
# html)
|
326
|
-
# that identifies the range of IP addresses reserved for this
|
327
|
-
# instance. For example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify
|
328
|
-
# can't overlap with either existing subnets or assigned IP address ranges
|
329
|
-
# for other Cloud Filestore instances in the selected VPC network.
|
330
|
-
# Corresponds to the JSON property `reservedIpRange`
|
331
|
-
# @return [String]
|
332
|
-
attr_accessor :reserved_ip_range
|
333
|
-
|
334
|
-
def initialize(**args)
|
335
|
-
update!(**args)
|
336
|
-
end
|
337
|
-
|
338
|
-
# Update properties of this object
|
339
|
-
def update!(**args)
|
340
|
-
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
341
|
-
@modes = args[:modes] if args.key?(:modes)
|
342
|
-
@network = args[:network] if args.key?(:network)
|
343
|
-
@reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
|
344
|
-
end
|
345
|
-
end
|
346
|
-
|
347
154
|
# This resource represents a long-running operation that is the result of a
|
348
155
|
# network API call.
|
349
156
|
class Operation
|
@@ -34,24 +34,6 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class FileShareConfig
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class Instance
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class ListInstancesResponse
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
37
|
class ListLocationsResponse
|
56
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
39
|
|
@@ -70,12 +52,6 @@ module Google
|
|
70
52
|
include Google::Apis::Core::JsonObjectSupport
|
71
53
|
end
|
72
54
|
|
73
|
-
class NetworkConfig
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
55
|
class Operation
|
80
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
57
|
|
@@ -106,42 +82,6 @@ module Google
|
|
106
82
|
end
|
107
83
|
end
|
108
84
|
|
109
|
-
class FileShareConfig
|
110
|
-
# @private
|
111
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
-
property :capacity_gb, :numeric_string => true, as: 'capacityGb'
|
113
|
-
property :name, as: 'name'
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
class Instance
|
118
|
-
# @private
|
119
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
120
|
-
property :create_time, as: 'createTime'
|
121
|
-
property :description, as: 'description'
|
122
|
-
property :etag, as: 'etag'
|
123
|
-
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
|
124
|
-
|
125
|
-
hash :labels, as: 'labels'
|
126
|
-
property :name, as: 'name'
|
127
|
-
collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
|
128
|
-
|
129
|
-
property :state, as: 'state'
|
130
|
-
property :status_message, as: 'statusMessage'
|
131
|
-
property :tier, as: 'tier'
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
class ListInstancesResponse
|
136
|
-
# @private
|
137
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
138
|
-
collection :instances, as: 'instances', class: Google::Apis::FileV1::Instance, decorator: Google::Apis::FileV1::Instance::Representation
|
139
|
-
|
140
|
-
property :next_page_token, as: 'nextPageToken'
|
141
|
-
collection :unreachable, as: 'unreachable'
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
85
|
class ListLocationsResponse
|
146
86
|
# @private
|
147
87
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -171,16 +111,6 @@ module Google
|
|
171
111
|
end
|
172
112
|
end
|
173
113
|
|
174
|
-
class NetworkConfig
|
175
|
-
# @private
|
176
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
-
collection :ip_addresses, as: 'ipAddresses'
|
178
|
-
collection :modes, as: 'modes'
|
179
|
-
property :network, as: 'network'
|
180
|
-
property :reserved_ip_range, as: 'reservedIpRange'
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
114
|
class Operation
|
185
115
|
# @private
|
186
116
|
class Representation < Google::Apis::Core::JsonRepresentation
|