google-api-client 0.23.9 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2030 -58
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +878 -43
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +604 -0
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +8 -2
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +108 -5
- data/generated/google/apis/androidenterprise_v1/representations.rb +60 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +3 -3
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +14 -14
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +3 -2
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +1 -1
- data/generated/google/apis/composer_v1/service.rb +6 -6
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +475 -0
- data/generated/google/apis/dataproc_v1/representations.rb +188 -0
- data/generated/google/apis/dataproc_v1/service.rb +550 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +21 -21
- data/generated/google/apis/file_v1beta1.rb +34 -0
- data/generated/google/apis/file_v1beta1/classes.rb +810 -0
- data/generated/google/apis/file_v1beta1/representations.rb +298 -0
- data/generated/google/apis/file_v1beta1/service.rb +472 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +16 -17
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +8 -9
- data/generated/google/apis/logging_v2/service.rb +9 -9
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +8 -9
- data/generated/google/apis/logging_v2beta1/service.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +14 -14
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +142 -98
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +0 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +142 -98
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +142 -98
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +142 -98
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +142 -98
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +91 -0
- data/generated/google/apis/speech_v1/representations.rb +18 -0
- data/generated/google/apis/speech_v1/service.rb +47 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +25 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +15 -0
- data/generated/google/apis/speech_v1beta1/service.rb +47 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +3 -3
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +34 -31
- data/generated/google/apis/sqladmin_v1beta4/service.rb +8 -8
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -4
- data/generated/google/apis/storage_v1/service.rb +2 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/classes.rb +1 -2
- data/generated/google/apis/storage_v1beta2/service.rb +2 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +21 -21
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +308 -14
- data/generated/google/apis/testing_v1/representations.rb +136 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +156 -2
- data/generated/google/apis/vision_v1/representations.rb +60 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +156 -2
- data/generated/google/apis/vision_v1p1beta1/representations.rb +60 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +156 -2
- data/generated/google/apis/vision_v1p2beta1/representations.rb +60 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -14
- data/generated/google/apis/adexchangeseller_v1.rb +0 -37
- data/generated/google/apis/adexchangeseller_v1/classes.rb +0 -557
- data/generated/google/apis/adexchangeseller_v1/representations.rb +0 -248
- data/generated/google/apis/adexchangeseller_v1/service.rb +0 -544
- data/generated/google/apis/adexchangeseller_v1_1.rb +0 -37
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +0 -842
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +0 -364
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +0 -735
- data/generated/google/apis/adexchangeseller_v2_0.rb +0 -37
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +0 -792
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +0 -347
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +0 -638
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/dlp/docs/
|
|
28
28
|
module DlpV2
|
|
29
29
|
VERSION = 'V2'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20180911'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -1406,13 +1406,13 @@ module Google
|
|
|
1406
1406
|
class GooglePrivacyDlpV2DateTime
|
|
1407
1407
|
include Google::Apis::Core::Hashable
|
|
1408
1408
|
|
|
1409
|
-
# Represents a whole calendar date,
|
|
1410
|
-
# time zone are either specified elsewhere or are not significant. The date
|
|
1411
|
-
# is relative to the Proleptic Gregorian Calendar. The day
|
|
1412
|
-
# represent a year and month where the day is not significant,
|
|
1413
|
-
# expiration date. The year
|
|
1414
|
-
# of year,
|
|
1415
|
-
# and `google.protobuf.Timestamp`.
|
|
1409
|
+
# Represents a whole calendar date, for example date of birth. The time of day
|
|
1410
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
|
1411
|
+
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
|
|
1412
|
+
# represent a year and month where the day is not significant, for example
|
|
1413
|
+
# credit card expiration date. The year can be 0 to represent a month and day
|
|
1414
|
+
# independent of year, for example anniversary date. Related types are
|
|
1415
|
+
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
|
|
1416
1416
|
# Corresponds to the JSON property `date`
|
|
1417
1417
|
# @return [Google::Apis::DlpV2::GoogleTypeDate]
|
|
1418
1418
|
attr_accessor :date
|
|
@@ -5394,13 +5394,13 @@ module Google
|
|
|
5394
5394
|
attr_accessor :boolean_value
|
|
5395
5395
|
alias_method :boolean_value?, :boolean_value
|
|
5396
5396
|
|
|
5397
|
-
# Represents a whole calendar date,
|
|
5398
|
-
# time zone are either specified elsewhere or are not significant. The date
|
|
5399
|
-
# is relative to the Proleptic Gregorian Calendar. The day
|
|
5400
|
-
# represent a year and month where the day is not significant,
|
|
5401
|
-
# expiration date. The year
|
|
5402
|
-
# of year,
|
|
5403
|
-
# and `google.protobuf.Timestamp`.
|
|
5397
|
+
# Represents a whole calendar date, for example date of birth. The time of day
|
|
5398
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
|
5399
|
+
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
|
|
5400
|
+
# represent a year and month where the day is not significant, for example
|
|
5401
|
+
# credit card expiration date. The year can be 0 to represent a month and day
|
|
5402
|
+
# independent of year, for example anniversary date. Related types are
|
|
5403
|
+
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
|
|
5404
5404
|
# Corresponds to the JSON property `dateValue`
|
|
5405
5405
|
# @return [Google::Apis::DlpV2::GoogleTypeDate]
|
|
5406
5406
|
attr_accessor :date_value
|
|
@@ -5596,13 +5596,13 @@ module Google
|
|
|
5596
5596
|
end
|
|
5597
5597
|
end
|
|
5598
5598
|
|
|
5599
|
-
# Represents a whole calendar date,
|
|
5600
|
-
# time zone are either specified elsewhere or are not significant. The date
|
|
5601
|
-
# is relative to the Proleptic Gregorian Calendar. The day
|
|
5602
|
-
# represent a year and month where the day is not significant,
|
|
5603
|
-
# expiration date. The year
|
|
5604
|
-
# of year,
|
|
5605
|
-
# and `google.protobuf.Timestamp`.
|
|
5599
|
+
# Represents a whole calendar date, for example date of birth. The time of day
|
|
5600
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
|
5601
|
+
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
|
|
5602
|
+
# represent a year and month where the day is not significant, for example
|
|
5603
|
+
# credit card expiration date. The year can be 0 to represent a month and day
|
|
5604
|
+
# independent of year, for example anniversary date. Related types are
|
|
5605
|
+
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
|
|
5606
5606
|
class GoogleTypeDate
|
|
5607
5607
|
include Google::Apis::Core::Hashable
|
|
5608
5608
|
|
|
@@ -0,0 +1,34 @@
|
|
|
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/file_v1beta1/service.rb'
|
|
16
|
+
require 'google/apis/file_v1beta1/classes.rb'
|
|
17
|
+
require 'google/apis/file_v1beta1/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Cloud Filestore API
|
|
22
|
+
#
|
|
23
|
+
# The Cloud Filestore API is used for creating and managing cloud file servers.
|
|
24
|
+
#
|
|
25
|
+
# @see https://cloud.google.com/filestore/
|
|
26
|
+
module FileV1beta1
|
|
27
|
+
VERSION = 'V1beta1'
|
|
28
|
+
REVISION = '20180820'
|
|
29
|
+
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,810 @@
|
|
|
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 FileV1beta1
|
|
24
|
+
|
|
25
|
+
# The request message for Operations.CancelOperation.
|
|
26
|
+
class CancelOperationRequest
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
def initialize(**args)
|
|
30
|
+
update!(**args)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Update properties of this object
|
|
34
|
+
def update!(**args)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# The sets of network addresses and DNS names for hosts to which a given
|
|
39
|
+
# export or share should be allowed or denied.
|
|
40
|
+
class ClientList
|
|
41
|
+
include Google::Apis::Core::Hashable
|
|
42
|
+
|
|
43
|
+
# DNS names of hosts, with optional wildcards.
|
|
44
|
+
# Corresponds to the JSON property `hostNames`
|
|
45
|
+
# @return [Array<String>]
|
|
46
|
+
attr_accessor :host_names
|
|
47
|
+
|
|
48
|
+
# IPv4 addresses in the format
|
|
49
|
+
# `octet 1`.`octet 2`.`octet 3`.`octet 4`.
|
|
50
|
+
# Corresponds to the JSON property `ipAddresses`
|
|
51
|
+
# @return [Array<String>]
|
|
52
|
+
attr_accessor :ip_addresses
|
|
53
|
+
|
|
54
|
+
def initialize(**args)
|
|
55
|
+
update!(**args)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Update properties of this object
|
|
59
|
+
def update!(**args)
|
|
60
|
+
@host_names = args[:host_names] if args.key?(:host_names)
|
|
61
|
+
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
66
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
67
|
+
# or the response type of an API method. For instance:
|
|
68
|
+
# service Foo `
|
|
69
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
70
|
+
# `
|
|
71
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
72
|
+
class Empty
|
|
73
|
+
include Google::Apis::Core::Hashable
|
|
74
|
+
|
|
75
|
+
def initialize(**args)
|
|
76
|
+
update!(**args)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Update properties of this object
|
|
80
|
+
def update!(**args)
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# File share export specification.
|
|
85
|
+
class Export
|
|
86
|
+
include Google::Apis::Core::Hashable
|
|
87
|
+
|
|
88
|
+
# The sets of network addresses and DNS names for hosts to which a given
|
|
89
|
+
# export or share should be allowed or denied.
|
|
90
|
+
# Corresponds to the JSON property `allowedClients`
|
|
91
|
+
# @return [Google::Apis::FileV1beta1::ClientList]
|
|
92
|
+
attr_accessor :allowed_clients
|
|
93
|
+
|
|
94
|
+
# Writes may be completed when not yet on stable storage.
|
|
95
|
+
# Corresponds to the JSON property `async`
|
|
96
|
+
# @return [Boolean]
|
|
97
|
+
attr_accessor :async
|
|
98
|
+
alias_method :async?, :async
|
|
99
|
+
|
|
100
|
+
# The sets of network addresses and DNS names for hosts to which a given
|
|
101
|
+
# export or share should be allowed or denied.
|
|
102
|
+
# Corresponds to the JSON property `deniedClients`
|
|
103
|
+
# @return [Google::Apis::FileV1beta1::ClientList]
|
|
104
|
+
attr_accessor :denied_clients
|
|
105
|
+
|
|
106
|
+
# Networks on which the export should appear.
|
|
107
|
+
# If none are specified, the default is all networks to which the instance is
|
|
108
|
+
# connected to.
|
|
109
|
+
# Corresponds to the JSON property `networks`
|
|
110
|
+
# @return [Array<Google::Apis::FileV1beta1::NetworkConfig>]
|
|
111
|
+
attr_accessor :networks
|
|
112
|
+
|
|
113
|
+
# NfsExport specifies attributes of a given NFS export rule.
|
|
114
|
+
# Corresponds to the JSON property `nfsExport`
|
|
115
|
+
# @return [Google::Apis::FileV1beta1::NfsExport]
|
|
116
|
+
attr_accessor :nfs_export
|
|
117
|
+
|
|
118
|
+
# Path to export (either "" or of the form /file_share_name[/subdir]).
|
|
119
|
+
# Corresponds to the JSON property `path`
|
|
120
|
+
# @return [String]
|
|
121
|
+
attr_accessor :path
|
|
122
|
+
|
|
123
|
+
# Whether the file share should be exported as read-only.
|
|
124
|
+
# Corresponds to the JSON property `readOnly`
|
|
125
|
+
# @return [Boolean]
|
|
126
|
+
attr_accessor :read_only
|
|
127
|
+
alias_method :read_only?, :read_only
|
|
128
|
+
|
|
129
|
+
# SmbExport defines attributes of a given SMB sharing rule.
|
|
130
|
+
# Corresponds to the JSON property `smbExport`
|
|
131
|
+
# @return [Google::Apis::FileV1beta1::SmbExport]
|
|
132
|
+
attr_accessor :smb_export
|
|
133
|
+
|
|
134
|
+
def initialize(**args)
|
|
135
|
+
update!(**args)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Update properties of this object
|
|
139
|
+
def update!(**args)
|
|
140
|
+
@allowed_clients = args[:allowed_clients] if args.key?(:allowed_clients)
|
|
141
|
+
@async = args[:async] if args.key?(:async)
|
|
142
|
+
@denied_clients = args[:denied_clients] if args.key?(:denied_clients)
|
|
143
|
+
@networks = args[:networks] if args.key?(:networks)
|
|
144
|
+
@nfs_export = args[:nfs_export] if args.key?(:nfs_export)
|
|
145
|
+
@path = args[:path] if args.key?(:path)
|
|
146
|
+
@read_only = args[:read_only] if args.key?(:read_only)
|
|
147
|
+
@smb_export = args[:smb_export] if args.key?(:smb_export)
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# File share configuration for the instance.
|
|
152
|
+
class FileShareConfig
|
|
153
|
+
include Google::Apis::Core::Hashable
|
|
154
|
+
|
|
155
|
+
# File share capacity in gigabytes (GB).
|
|
156
|
+
# Cloud Filestore defines 1 GB as 1024^3 bytes.
|
|
157
|
+
# Corresponds to the JSON property `capacityGb`
|
|
158
|
+
# @return [Fixnum]
|
|
159
|
+
attr_accessor :capacity_gb
|
|
160
|
+
|
|
161
|
+
# Delete requested. The file share will be deleted.
|
|
162
|
+
# Corresponds to the JSON property `deleted`
|
|
163
|
+
# @return [Boolean]
|
|
164
|
+
attr_accessor :deleted
|
|
165
|
+
alias_method :deleted?, :deleted
|
|
166
|
+
|
|
167
|
+
# Service enabled.
|
|
168
|
+
# When enabled, the instance exposes the exports to the user for mounting.
|
|
169
|
+
# Corresponds to the JSON property `enabled`
|
|
170
|
+
# @return [Boolean]
|
|
171
|
+
attr_accessor :enabled
|
|
172
|
+
alias_method :enabled?, :enabled
|
|
173
|
+
|
|
174
|
+
# Exports.
|
|
175
|
+
# If protocols and exports are both zero-length, a default protocol of
|
|
176
|
+
# NFSV3 and a default export of "*" are provided, and enabled is set to
|
|
177
|
+
# true.
|
|
178
|
+
# Corresponds to the JSON property `exports`
|
|
179
|
+
# @return [Array<Google::Apis::FileV1beta1::Export>]
|
|
180
|
+
attr_accessor :exports
|
|
181
|
+
|
|
182
|
+
# The name of the file share (must be 16 characters or less).
|
|
183
|
+
# Corresponds to the JSON property `name`
|
|
184
|
+
# @return [String]
|
|
185
|
+
attr_accessor :name
|
|
186
|
+
|
|
187
|
+
# Protocols supported.
|
|
188
|
+
# Corresponds to the JSON property `protocols`
|
|
189
|
+
# @return [Array<String>]
|
|
190
|
+
attr_accessor :protocols
|
|
191
|
+
|
|
192
|
+
def initialize(**args)
|
|
193
|
+
update!(**args)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Update properties of this object
|
|
197
|
+
def update!(**args)
|
|
198
|
+
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
|
199
|
+
@deleted = args[:deleted] if args.key?(:deleted)
|
|
200
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
201
|
+
@exports = args[:exports] if args.key?(:exports)
|
|
202
|
+
@name = args[:name] if args.key?(:name)
|
|
203
|
+
@protocols = args[:protocols] if args.key?(:protocols)
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# A Cloud Filestore instance.
|
|
208
|
+
class Instance
|
|
209
|
+
include Google::Apis::Core::Hashable
|
|
210
|
+
|
|
211
|
+
# Output only.
|
|
212
|
+
# The time when the instance was created.
|
|
213
|
+
# Corresponds to the JSON property `createTime`
|
|
214
|
+
# @return [String]
|
|
215
|
+
attr_accessor :create_time
|
|
216
|
+
|
|
217
|
+
# Optional. A description of the instance (2048 characters or less).
|
|
218
|
+
# Corresponds to the JSON property `description`
|
|
219
|
+
# @return [String]
|
|
220
|
+
attr_accessor :description
|
|
221
|
+
|
|
222
|
+
# Server-specified ETag for the instance resource to prevent simultaneous
|
|
223
|
+
# updates from overwriting each other.
|
|
224
|
+
# Corresponds to the JSON property `etag`
|
|
225
|
+
# @return [String]
|
|
226
|
+
attr_accessor :etag
|
|
227
|
+
|
|
228
|
+
# File system shares on the instance.
|
|
229
|
+
# For this version, only a single file share is supported.
|
|
230
|
+
# Corresponds to the JSON property `fileShares`
|
|
231
|
+
# @return [Array<Google::Apis::FileV1beta1::FileShareConfig>]
|
|
232
|
+
attr_accessor :file_shares
|
|
233
|
+
|
|
234
|
+
# Resource labels to represent user provided metadata.
|
|
235
|
+
# Corresponds to the JSON property `labels`
|
|
236
|
+
# @return [Hash<String,String>]
|
|
237
|
+
attr_accessor :labels
|
|
238
|
+
|
|
239
|
+
# The logging service the instance should use to write logs.
|
|
240
|
+
# Currently available options:
|
|
241
|
+
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
|
242
|
+
# * `none` - no logs will be exported from the instance.
|
|
243
|
+
# * if left as an empty string,`logging.googleapis.com` will be used.
|
|
244
|
+
# Corresponds to the JSON property `loggingService`
|
|
245
|
+
# @return [String]
|
|
246
|
+
attr_accessor :logging_service
|
|
247
|
+
|
|
248
|
+
# The monitoring service the instance should use to write metrics.
|
|
249
|
+
# Currently available options:
|
|
250
|
+
# * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
|
|
251
|
+
# * `none` - no metrics will be exported from the instance.
|
|
252
|
+
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
|
253
|
+
# Corresponds to the JSON property `monitoringService`
|
|
254
|
+
# @return [String]
|
|
255
|
+
attr_accessor :monitoring_service
|
|
256
|
+
|
|
257
|
+
# Output only.
|
|
258
|
+
# The resource name of the instance, in the format
|
|
259
|
+
# projects/`project_id`/locations/`location_id`/instances/`instance_id`.
|
|
260
|
+
# Corresponds to the JSON property `name`
|
|
261
|
+
# @return [String]
|
|
262
|
+
attr_accessor :name
|
|
263
|
+
|
|
264
|
+
# VPC networks to which the instance is connected.
|
|
265
|
+
# For this version, only a single network is supported.
|
|
266
|
+
# Corresponds to the JSON property `networks`
|
|
267
|
+
# @return [Array<Google::Apis::FileV1beta1::NetworkConfig>]
|
|
268
|
+
attr_accessor :networks
|
|
269
|
+
|
|
270
|
+
# Output only.
|
|
271
|
+
# The instance state.
|
|
272
|
+
# Corresponds to the JSON property `state`
|
|
273
|
+
# @return [String]
|
|
274
|
+
attr_accessor :state
|
|
275
|
+
|
|
276
|
+
# Output only.
|
|
277
|
+
# Additional information about the instance state, if available.
|
|
278
|
+
# Corresponds to the JSON property `statusMessage`
|
|
279
|
+
# @return [String]
|
|
280
|
+
attr_accessor :status_message
|
|
281
|
+
|
|
282
|
+
# The service tier of the instance.
|
|
283
|
+
# Corresponds to the JSON property `tier`
|
|
284
|
+
# @return [String]
|
|
285
|
+
attr_accessor :tier
|
|
286
|
+
|
|
287
|
+
def initialize(**args)
|
|
288
|
+
update!(**args)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Update properties of this object
|
|
292
|
+
def update!(**args)
|
|
293
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
294
|
+
@description = args[:description] if args.key?(:description)
|
|
295
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
296
|
+
@file_shares = args[:file_shares] if args.key?(:file_shares)
|
|
297
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
298
|
+
@logging_service = args[:logging_service] if args.key?(:logging_service)
|
|
299
|
+
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
|
300
|
+
@name = args[:name] if args.key?(:name)
|
|
301
|
+
@networks = args[:networks] if args.key?(:networks)
|
|
302
|
+
@state = args[:state] if args.key?(:state)
|
|
303
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
|
304
|
+
@tier = args[:tier] if args.key?(:tier)
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# ListInstancesResponse is the result of ListInstancesRequest.
|
|
309
|
+
class ListInstancesResponse
|
|
310
|
+
include Google::Apis::Core::Hashable
|
|
311
|
+
|
|
312
|
+
# A list of instances in the project for the specified location.
|
|
313
|
+
# If the `location` value in the request is "-", the response contains a list
|
|
314
|
+
# of instances from all locations. If any location is unreachable, the
|
|
315
|
+
# response will only return instances in reachable locations and the
|
|
316
|
+
# "unreachable" field will be populated with a list of unreachable locations.
|
|
317
|
+
# Corresponds to the JSON property `instances`
|
|
318
|
+
# @return [Array<Google::Apis::FileV1beta1::Instance>]
|
|
319
|
+
attr_accessor :instances
|
|
320
|
+
|
|
321
|
+
# The token you can use to retrieve the next page of results. Not returned
|
|
322
|
+
# if there are no more results in the list.
|
|
323
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
324
|
+
# @return [String]
|
|
325
|
+
attr_accessor :next_page_token
|
|
326
|
+
|
|
327
|
+
# Locations that could not be reached.
|
|
328
|
+
# Corresponds to the JSON property `unreachable`
|
|
329
|
+
# @return [Array<String>]
|
|
330
|
+
attr_accessor :unreachable
|
|
331
|
+
|
|
332
|
+
def initialize(**args)
|
|
333
|
+
update!(**args)
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Update properties of this object
|
|
337
|
+
def update!(**args)
|
|
338
|
+
@instances = args[:instances] if args.key?(:instances)
|
|
339
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
340
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# The response message for Locations.ListLocations.
|
|
345
|
+
class ListLocationsResponse
|
|
346
|
+
include Google::Apis::Core::Hashable
|
|
347
|
+
|
|
348
|
+
# A list of locations that matches the specified filter in the request.
|
|
349
|
+
# Corresponds to the JSON property `locations`
|
|
350
|
+
# @return [Array<Google::Apis::FileV1beta1::Location>]
|
|
351
|
+
attr_accessor :locations
|
|
352
|
+
|
|
353
|
+
# The standard List next-page token.
|
|
354
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
355
|
+
# @return [String]
|
|
356
|
+
attr_accessor :next_page_token
|
|
357
|
+
|
|
358
|
+
def initialize(**args)
|
|
359
|
+
update!(**args)
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Update properties of this object
|
|
363
|
+
def update!(**args)
|
|
364
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
365
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# The response message for Operations.ListOperations.
|
|
370
|
+
class ListOperationsResponse
|
|
371
|
+
include Google::Apis::Core::Hashable
|
|
372
|
+
|
|
373
|
+
# The standard List next-page token.
|
|
374
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
375
|
+
# @return [String]
|
|
376
|
+
attr_accessor :next_page_token
|
|
377
|
+
|
|
378
|
+
# A list of operations that matches the specified filter in the request.
|
|
379
|
+
# Corresponds to the JSON property `operations`
|
|
380
|
+
# @return [Array<Google::Apis::FileV1beta1::Operation>]
|
|
381
|
+
attr_accessor :operations
|
|
382
|
+
|
|
383
|
+
def initialize(**args)
|
|
384
|
+
update!(**args)
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# Update properties of this object
|
|
388
|
+
def update!(**args)
|
|
389
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
390
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# A resource that represents Google Cloud Platform location.
|
|
395
|
+
class Location
|
|
396
|
+
include Google::Apis::Core::Hashable
|
|
397
|
+
|
|
398
|
+
# The friendly name for this location, typically a nearby city name.
|
|
399
|
+
# For example, "Tokyo".
|
|
400
|
+
# Corresponds to the JSON property `displayName`
|
|
401
|
+
# @return [String]
|
|
402
|
+
attr_accessor :display_name
|
|
403
|
+
|
|
404
|
+
# Cross-service attributes for the location. For example
|
|
405
|
+
# `"cloud.googleapis.com/region": "us-east1"`
|
|
406
|
+
# Corresponds to the JSON property `labels`
|
|
407
|
+
# @return [Hash<String,String>]
|
|
408
|
+
attr_accessor :labels
|
|
409
|
+
|
|
410
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
|
411
|
+
# Corresponds to the JSON property `locationId`
|
|
412
|
+
# @return [String]
|
|
413
|
+
attr_accessor :location_id
|
|
414
|
+
|
|
415
|
+
# Service-specific metadata. For example the available capacity at the given
|
|
416
|
+
# location.
|
|
417
|
+
# Corresponds to the JSON property `metadata`
|
|
418
|
+
# @return [Hash<String,Object>]
|
|
419
|
+
attr_accessor :metadata
|
|
420
|
+
|
|
421
|
+
# Resource name for the location, which may vary between implementations.
|
|
422
|
+
# For example: `"projects/example-project/locations/us-east1"`
|
|
423
|
+
# Corresponds to the JSON property `name`
|
|
424
|
+
# @return [String]
|
|
425
|
+
attr_accessor :name
|
|
426
|
+
|
|
427
|
+
def initialize(**args)
|
|
428
|
+
update!(**args)
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# Update properties of this object
|
|
432
|
+
def update!(**args)
|
|
433
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
434
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
435
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
|
436
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
437
|
+
@name = args[:name] if args.key?(:name)
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# Network configuration for the instance.
|
|
442
|
+
class NetworkConfig
|
|
443
|
+
include Google::Apis::Core::Hashable
|
|
444
|
+
|
|
445
|
+
# Output only.
|
|
446
|
+
# IPv4 addresses in the format
|
|
447
|
+
# `octet 1`.`octet 2`.`octet 3`.`octet 4` or IPv6 addresses in the format
|
|
448
|
+
# `block 1`:`block 2`:`block 3`:`block 4`:`block 5`:`block 6`:`block 7`:`block 8`
|
|
449
|
+
# .
|
|
450
|
+
# Corresponds to the JSON property `ipAddresses`
|
|
451
|
+
# @return [Array<String>]
|
|
452
|
+
attr_accessor :ip_addresses
|
|
453
|
+
|
|
454
|
+
# Internet protocol versions for which the instance has IP addresses
|
|
455
|
+
# assigned. For this version, only MODE_IPV4 is supported.
|
|
456
|
+
# Corresponds to the JSON property `modes`
|
|
457
|
+
# @return [Array<String>]
|
|
458
|
+
attr_accessor :modes
|
|
459
|
+
|
|
460
|
+
# The name of the Google Compute Engine
|
|
461
|
+
# [VPC network](/compute/docs/networks-and-firewalls#networks) to which the
|
|
462
|
+
# instance is connected.
|
|
463
|
+
# Corresponds to the JSON property `network`
|
|
464
|
+
# @return [String]
|
|
465
|
+
attr_accessor :network
|
|
466
|
+
|
|
467
|
+
# A /29 CIDR block in one of the
|
|
468
|
+
# [internal IP address ranges](https://www.arin.net/knowledge/address_filters.
|
|
469
|
+
# html)
|
|
470
|
+
# that identifies the range of IP addresses reserved for this
|
|
471
|
+
# instance. For example, 10.0.0.0/29 or 192.168.0.0/29. The range you specify
|
|
472
|
+
# can't overlap with either existing subnets or assigned IP address ranges
|
|
473
|
+
# for other Cloud Filestore instances in the selected VPC network.
|
|
474
|
+
# Corresponds to the JSON property `reservedIpRange`
|
|
475
|
+
# @return [String]
|
|
476
|
+
attr_accessor :reserved_ip_range
|
|
477
|
+
|
|
478
|
+
# Output only.
|
|
479
|
+
# The name of the Google Compute Engine
|
|
480
|
+
# [subnetwork](/compute/docs/subnetworks) to which the
|
|
481
|
+
# instance is connected.
|
|
482
|
+
# Corresponds to the JSON property `subnetwork`
|
|
483
|
+
# @return [String]
|
|
484
|
+
attr_accessor :subnetwork
|
|
485
|
+
|
|
486
|
+
def initialize(**args)
|
|
487
|
+
update!(**args)
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Update properties of this object
|
|
491
|
+
def update!(**args)
|
|
492
|
+
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
|
493
|
+
@modes = args[:modes] if args.key?(:modes)
|
|
494
|
+
@network = args[:network] if args.key?(:network)
|
|
495
|
+
@reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
|
|
496
|
+
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
|
497
|
+
end
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# NfsExport specifies attributes of a given NFS export rule.
|
|
501
|
+
class NfsExport
|
|
502
|
+
include Google::Apis::Core::Hashable
|
|
503
|
+
|
|
504
|
+
# GID for anonymous or squashed GIDs.
|
|
505
|
+
# Corresponds to the JSON property `anonymousGid`
|
|
506
|
+
# @return [Fixnum]
|
|
507
|
+
attr_accessor :anonymous_gid
|
|
508
|
+
|
|
509
|
+
# UID for anonymous or squashed UIDs.
|
|
510
|
+
# Corresponds to the JSON property `anonymousUid`
|
|
511
|
+
# @return [Fixnum]
|
|
512
|
+
attr_accessor :anonymous_uid
|
|
513
|
+
|
|
514
|
+
# Network transport protocols to be enabled.
|
|
515
|
+
# The default is TCP.
|
|
516
|
+
# Corresponds to the JSON property `protocols`
|
|
517
|
+
# @return [Array<String>]
|
|
518
|
+
attr_accessor :protocols
|
|
519
|
+
|
|
520
|
+
# The mode of mapping of UIDs and GIDs (if any).
|
|
521
|
+
# Corresponds to the JSON property `squash`
|
|
522
|
+
# @return [String]
|
|
523
|
+
attr_accessor :squash
|
|
524
|
+
|
|
525
|
+
# If unauthenticated_locks_allowed is true, locking requests do not require
|
|
526
|
+
# authentication.
|
|
527
|
+
# Corresponds to the JSON property `unauthenticatedLocksAllowed`
|
|
528
|
+
# @return [Boolean]
|
|
529
|
+
attr_accessor :unauthenticated_locks_allowed
|
|
530
|
+
alias_method :unauthenticated_locks_allowed?, :unauthenticated_locks_allowed
|
|
531
|
+
|
|
532
|
+
# If user_ports_allowed is true, client ports greater than or equal to 1024
|
|
533
|
+
# are allowed.
|
|
534
|
+
# Corresponds to the JSON property `userPortsAllowed`
|
|
535
|
+
# @return [Boolean]
|
|
536
|
+
attr_accessor :user_ports_allowed
|
|
537
|
+
alias_method :user_ports_allowed?, :user_ports_allowed
|
|
538
|
+
|
|
539
|
+
def initialize(**args)
|
|
540
|
+
update!(**args)
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Update properties of this object
|
|
544
|
+
def update!(**args)
|
|
545
|
+
@anonymous_gid = args[:anonymous_gid] if args.key?(:anonymous_gid)
|
|
546
|
+
@anonymous_uid = args[:anonymous_uid] if args.key?(:anonymous_uid)
|
|
547
|
+
@protocols = args[:protocols] if args.key?(:protocols)
|
|
548
|
+
@squash = args[:squash] if args.key?(:squash)
|
|
549
|
+
@unauthenticated_locks_allowed = args[:unauthenticated_locks_allowed] if args.key?(:unauthenticated_locks_allowed)
|
|
550
|
+
@user_ports_allowed = args[:user_ports_allowed] if args.key?(:user_ports_allowed)
|
|
551
|
+
end
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
# This resource represents a long-running operation that is the result of a
|
|
555
|
+
# network API call.
|
|
556
|
+
class Operation
|
|
557
|
+
include Google::Apis::Core::Hashable
|
|
558
|
+
|
|
559
|
+
# If the value is `false`, it means the operation is still in progress.
|
|
560
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
|
561
|
+
# available.
|
|
562
|
+
# Corresponds to the JSON property `done`
|
|
563
|
+
# @return [Boolean]
|
|
564
|
+
attr_accessor :done
|
|
565
|
+
alias_method :done?, :done
|
|
566
|
+
|
|
567
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
568
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
569
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
570
|
+
# - Simple to use and understand for most users
|
|
571
|
+
# - Flexible enough to meet unexpected needs
|
|
572
|
+
# # Overview
|
|
573
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
574
|
+
# and error details. The error code should be an enum value of
|
|
575
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
576
|
+
# error message should be a developer-facing English message that helps
|
|
577
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
578
|
+
# error message is needed, put the localized message in the error details or
|
|
579
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
580
|
+
# information about the error. There is a predefined set of error detail types
|
|
581
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
582
|
+
# # Language mapping
|
|
583
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
584
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
585
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
586
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
587
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
588
|
+
# # Other uses
|
|
589
|
+
# The error model and the `Status` message can be used in a variety of
|
|
590
|
+
# environments, either with or without APIs, to provide a
|
|
591
|
+
# consistent developer experience across different environments.
|
|
592
|
+
# Example uses of this error model include:
|
|
593
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
594
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
595
|
+
# errors.
|
|
596
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
597
|
+
# have a `Status` message for error reporting.
|
|
598
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
599
|
+
# `Status` message should be used directly inside batch response, one for
|
|
600
|
+
# each error sub-response.
|
|
601
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
602
|
+
# results in its response, the status of those operations should be
|
|
603
|
+
# represented directly using the `Status` message.
|
|
604
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
605
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
606
|
+
# Corresponds to the JSON property `error`
|
|
607
|
+
# @return [Google::Apis::FileV1beta1::Status]
|
|
608
|
+
attr_accessor :error
|
|
609
|
+
|
|
610
|
+
# Service-specific metadata associated with the operation. It typically
|
|
611
|
+
# contains progress information and common metadata such as create time.
|
|
612
|
+
# Some services might not provide such metadata. Any method that returns a
|
|
613
|
+
# long-running operation should document the metadata type, if any.
|
|
614
|
+
# Corresponds to the JSON property `metadata`
|
|
615
|
+
# @return [Hash<String,Object>]
|
|
616
|
+
attr_accessor :metadata
|
|
617
|
+
|
|
618
|
+
# The server-assigned name, which is only unique within the same service that
|
|
619
|
+
# originally returns it. If you use the default HTTP mapping, the
|
|
620
|
+
# `name` should have the format of `operations/some/unique/name`.
|
|
621
|
+
# Corresponds to the JSON property `name`
|
|
622
|
+
# @return [String]
|
|
623
|
+
attr_accessor :name
|
|
624
|
+
|
|
625
|
+
# The normal response of the operation in case of success. If the original
|
|
626
|
+
# method returns no data on success, such as `Delete`, the response is
|
|
627
|
+
# `google.protobuf.Empty`. If the original method is standard
|
|
628
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
629
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
630
|
+
# is the original method name. For example, if the original method name
|
|
631
|
+
# is `TakeSnapshot()`, the inferred response type is
|
|
632
|
+
# `TakeSnapshotResponse`.
|
|
633
|
+
# Corresponds to the JSON property `response`
|
|
634
|
+
# @return [Hash<String,Object>]
|
|
635
|
+
attr_accessor :response
|
|
636
|
+
|
|
637
|
+
def initialize(**args)
|
|
638
|
+
update!(**args)
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
# Update properties of this object
|
|
642
|
+
def update!(**args)
|
|
643
|
+
@done = args[:done] if args.key?(:done)
|
|
644
|
+
@error = args[:error] if args.key?(:error)
|
|
645
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
646
|
+
@name = args[:name] if args.key?(:name)
|
|
647
|
+
@response = args[:response] if args.key?(:response)
|
|
648
|
+
end
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# Represents the metadata of the long-running operation.
|
|
652
|
+
class OperationMetadata
|
|
653
|
+
include Google::Apis::Core::Hashable
|
|
654
|
+
|
|
655
|
+
# [Output only] API version used to start the operation.
|
|
656
|
+
# Corresponds to the JSON property `apiVersion`
|
|
657
|
+
# @return [String]
|
|
658
|
+
attr_accessor :api_version
|
|
659
|
+
|
|
660
|
+
# [Output only] Identifies whether the user has requested cancellation
|
|
661
|
+
# of the operation. Operations that have successfully been cancelled
|
|
662
|
+
# have Operation.error value with a google.rpc.Status.code of 1,
|
|
663
|
+
# corresponding to `Code.CANCELLED`.
|
|
664
|
+
# Corresponds to the JSON property `cancelRequested`
|
|
665
|
+
# @return [Boolean]
|
|
666
|
+
attr_accessor :cancel_requested
|
|
667
|
+
alias_method :cancel_requested?, :cancel_requested
|
|
668
|
+
|
|
669
|
+
# [Output only] The time the operation was created.
|
|
670
|
+
# Corresponds to the JSON property `createTime`
|
|
671
|
+
# @return [String]
|
|
672
|
+
attr_accessor :create_time
|
|
673
|
+
|
|
674
|
+
# [Output only] The time the operation finished running.
|
|
675
|
+
# Corresponds to the JSON property `endTime`
|
|
676
|
+
# @return [String]
|
|
677
|
+
attr_accessor :end_time
|
|
678
|
+
|
|
679
|
+
# [Output only] Human-readable status of the operation, if any.
|
|
680
|
+
# Corresponds to the JSON property `statusDetail`
|
|
681
|
+
# @return [String]
|
|
682
|
+
attr_accessor :status_detail
|
|
683
|
+
|
|
684
|
+
# [Output only] Server-defined resource path for the target of the operation.
|
|
685
|
+
# Corresponds to the JSON property `target`
|
|
686
|
+
# @return [String]
|
|
687
|
+
attr_accessor :target
|
|
688
|
+
|
|
689
|
+
# [Output only] Name of the verb executed by the operation.
|
|
690
|
+
# Corresponds to the JSON property `verb`
|
|
691
|
+
# @return [String]
|
|
692
|
+
attr_accessor :verb
|
|
693
|
+
|
|
694
|
+
def initialize(**args)
|
|
695
|
+
update!(**args)
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
# Update properties of this object
|
|
699
|
+
def update!(**args)
|
|
700
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
|
701
|
+
@cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
|
|
702
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
703
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
704
|
+
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
|
705
|
+
@target = args[:target] if args.key?(:target)
|
|
706
|
+
@verb = args[:verb] if args.key?(:verb)
|
|
707
|
+
end
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# SmbExport defines attributes of a given SMB sharing rule.
|
|
711
|
+
class SmbExport
|
|
712
|
+
include Google::Apis::Core::Hashable
|
|
713
|
+
|
|
714
|
+
# If true, allow clients to see this share when browsing the instance for
|
|
715
|
+
# shares.
|
|
716
|
+
# Corresponds to the JSON property `browsable`
|
|
717
|
+
# @return [Boolean]
|
|
718
|
+
attr_accessor :browsable
|
|
719
|
+
alias_method :browsable?, :browsable
|
|
720
|
+
|
|
721
|
+
# The published name of the share (if different from name).
|
|
722
|
+
# Corresponds to the JSON property `fileShare`
|
|
723
|
+
# @return [String]
|
|
724
|
+
attr_accessor :file_share
|
|
725
|
+
|
|
726
|
+
def initialize(**args)
|
|
727
|
+
update!(**args)
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
# Update properties of this object
|
|
731
|
+
def update!(**args)
|
|
732
|
+
@browsable = args[:browsable] if args.key?(:browsable)
|
|
733
|
+
@file_share = args[:file_share] if args.key?(:file_share)
|
|
734
|
+
end
|
|
735
|
+
end
|
|
736
|
+
|
|
737
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
738
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
739
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
740
|
+
# - Simple to use and understand for most users
|
|
741
|
+
# - Flexible enough to meet unexpected needs
|
|
742
|
+
# # Overview
|
|
743
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
744
|
+
# and error details. The error code should be an enum value of
|
|
745
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
746
|
+
# error message should be a developer-facing English message that helps
|
|
747
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
748
|
+
# error message is needed, put the localized message in the error details or
|
|
749
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
750
|
+
# information about the error. There is a predefined set of error detail types
|
|
751
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
752
|
+
# # Language mapping
|
|
753
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
754
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
755
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
756
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
757
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
758
|
+
# # Other uses
|
|
759
|
+
# The error model and the `Status` message can be used in a variety of
|
|
760
|
+
# environments, either with or without APIs, to provide a
|
|
761
|
+
# consistent developer experience across different environments.
|
|
762
|
+
# Example uses of this error model include:
|
|
763
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
764
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
765
|
+
# errors.
|
|
766
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
767
|
+
# have a `Status` message for error reporting.
|
|
768
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
769
|
+
# `Status` message should be used directly inside batch response, one for
|
|
770
|
+
# each error sub-response.
|
|
771
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
772
|
+
# results in its response, the status of those operations should be
|
|
773
|
+
# represented directly using the `Status` message.
|
|
774
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
775
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
776
|
+
class Status
|
|
777
|
+
include Google::Apis::Core::Hashable
|
|
778
|
+
|
|
779
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
780
|
+
# Corresponds to the JSON property `code`
|
|
781
|
+
# @return [Fixnum]
|
|
782
|
+
attr_accessor :code
|
|
783
|
+
|
|
784
|
+
# A list of messages that carry the error details. There is a common set of
|
|
785
|
+
# message types for APIs to use.
|
|
786
|
+
# Corresponds to the JSON property `details`
|
|
787
|
+
# @return [Array<Hash<String,Object>>]
|
|
788
|
+
attr_accessor :details
|
|
789
|
+
|
|
790
|
+
# A developer-facing error message, which should be in English. Any
|
|
791
|
+
# user-facing error message should be localized and sent in the
|
|
792
|
+
# google.rpc.Status.details field, or localized by the client.
|
|
793
|
+
# Corresponds to the JSON property `message`
|
|
794
|
+
# @return [String]
|
|
795
|
+
attr_accessor :message
|
|
796
|
+
|
|
797
|
+
def initialize(**args)
|
|
798
|
+
update!(**args)
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
# Update properties of this object
|
|
802
|
+
def update!(**args)
|
|
803
|
+
@code = args[:code] if args.key?(:code)
|
|
804
|
+
@details = args[:details] if args.key?(:details)
|
|
805
|
+
@message = args[:message] if args.key?(:message)
|
|
806
|
+
end
|
|
807
|
+
end
|
|
808
|
+
end
|
|
809
|
+
end
|
|
810
|
+
end
|