google-cloud-storage_transfer-v1 0.1.1 → 0.3.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.
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module StorageTransfer
23
+ module V1
24
+ module StorageTransferService
25
+ # Path helper methods for the StorageTransferService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified agentPools resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project_id}/agentPools/{agent_pool_id}`
33
+ #
34
+ # @param project_id [String]
35
+ # @param agent_pool_id [String]
36
+ #
37
+ # @return [::String]
38
+ def agent_pools_path project_id:, agent_pool_id:
39
+ raise ::ArgumentError, "project_id cannot contain /" if project_id.to_s.include? "/"
40
+
41
+ "projects/#{project_id}/agentPools/#{agent_pool_id}"
42
+ end
43
+
44
+ extend self
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -23,6 +23,7 @@ require "gapic/config/method"
23
23
  require "google/cloud/storage_transfer/v1/version"
24
24
 
25
25
  require "google/cloud/storage_transfer/v1/storage_transfer_service/credentials"
26
+ require "google/cloud/storage_transfer/v1/storage_transfer_service/paths"
26
27
  require "google/cloud/storage_transfer/v1/storage_transfer_service/operations"
27
28
  require "google/cloud/storage_transfer/v1/storage_transfer_service/client"
28
29
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module StorageTransfer
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/storage_transfer/v1"
29
31
  # client = ::Google::Cloud::StorageTransfer::V1::StorageTransferService::Client.new
30
32
  #
@@ -1,15 +1,15 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/storagetransfer/v1/transfer.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/longrunning/operations_pb'
8
- require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/empty_pb'
10
11
  require 'google/protobuf/field_mask_pb'
11
12
  require 'google/storagetransfer/v1/transfer_types_pb'
12
- require 'google/protobuf'
13
13
 
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/storagetransfer/v1/transfer.proto", :syntax => :proto3) do
@@ -48,6 +48,31 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
48
48
  optional :job_name, :string, 1
49
49
  optional :project_id, :string, 2
50
50
  end
51
+ add_message "google.storagetransfer.v1.CreateAgentPoolRequest" do
52
+ optional :project_id, :string, 1
53
+ optional :agent_pool, :message, 2, "google.storagetransfer.v1.AgentPool"
54
+ optional :agent_pool_id, :string, 3
55
+ end
56
+ add_message "google.storagetransfer.v1.UpdateAgentPoolRequest" do
57
+ optional :agent_pool, :message, 1, "google.storagetransfer.v1.AgentPool"
58
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
59
+ end
60
+ add_message "google.storagetransfer.v1.GetAgentPoolRequest" do
61
+ optional :name, :string, 1
62
+ end
63
+ add_message "google.storagetransfer.v1.DeleteAgentPoolRequest" do
64
+ optional :name, :string, 1
65
+ end
66
+ add_message "google.storagetransfer.v1.ListAgentPoolsRequest" do
67
+ optional :project_id, :string, 1
68
+ optional :filter, :string, 2
69
+ optional :page_size, :int32, 3
70
+ optional :page_token, :string, 4
71
+ end
72
+ add_message "google.storagetransfer.v1.ListAgentPoolsResponse" do
73
+ repeated :agent_pools, :message, 1, "google.storagetransfer.v1.AgentPool"
74
+ optional :next_page_token, :string, 2
75
+ end
51
76
  end
52
77
  end
53
78
 
@@ -64,6 +89,12 @@ module Google
64
89
  PauseTransferOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.PauseTransferOperationRequest").msgclass
65
90
  ResumeTransferOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ResumeTransferOperationRequest").msgclass
66
91
  RunTransferJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.RunTransferJobRequest").msgclass
92
+ CreateAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.CreateAgentPoolRequest").msgclass
93
+ UpdateAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.UpdateAgentPoolRequest").msgclass
94
+ GetAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.GetAgentPoolRequest").msgclass
95
+ DeleteAgentPoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.DeleteAgentPoolRequest").msgclass
96
+ ListAgentPoolsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListAgentPoolsRequest").msgclass
97
+ ListAgentPoolsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.ListAgentPoolsResponse").msgclass
67
98
  end
68
99
  end
69
100
  end
@@ -38,7 +38,7 @@ module Google
38
38
  # Returns the Google service account that is used by Storage Transfer
39
39
  # Service to access buckets in the project where transfers
40
40
  # run or in other projects. Each Google service account is associated
41
- # with one Google Cloud Platform Console project. Users
41
+ # with one Google Cloud project. Users
42
42
  # should add this service account to the Google Cloud Storage bucket
43
43
  # ACLs to grant access to Storage Transfer Service. This service
44
44
  # account is created and owned by Storage Transfer Service and can
@@ -49,8 +49,8 @@ module Google
49
49
  # Updates a transfer job. Updating a job's transfer spec does not affect
50
50
  # transfer operations that are running already.
51
51
  #
52
- # **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
53
- # field can be modified using this RPC (for example, to set a job's status to
52
+ # **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified
53
+ # using this RPC (for example, to set a job's status to
54
54
  # [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
55
55
  # [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
56
56
  # [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
@@ -65,8 +65,18 @@ module Google
65
65
  rpc :ResumeTransferOperation, ::Google::Cloud::StorageTransfer::V1::ResumeTransferOperationRequest, ::Google::Protobuf::Empty
66
66
  # Attempts to start a new TransferOperation for the current TransferJob. A
67
67
  # TransferJob has a maximum of one active TransferOperation. If this method
68
- # is called while a TransferOperation is active, an error wil be returned.
68
+ # is called while a TransferOperation is active, an error will be returned.
69
69
  rpc :RunTransferJob, ::Google::Cloud::StorageTransfer::V1::RunTransferJobRequest, ::Google::Longrunning::Operation
70
+ # Creates an agent pool resource.
71
+ rpc :CreateAgentPool, ::Google::Cloud::StorageTransfer::V1::CreateAgentPoolRequest, ::Google::Cloud::StorageTransfer::V1::AgentPool
72
+ # Updates an existing agent pool resource.
73
+ rpc :UpdateAgentPool, ::Google::Cloud::StorageTransfer::V1::UpdateAgentPoolRequest, ::Google::Cloud::StorageTransfer::V1::AgentPool
74
+ # Gets an agent pool.
75
+ rpc :GetAgentPool, ::Google::Cloud::StorageTransfer::V1::GetAgentPoolRequest, ::Google::Cloud::StorageTransfer::V1::AgentPool
76
+ # Lists agent pools.
77
+ rpc :ListAgentPools, ::Google::Cloud::StorageTransfer::V1::ListAgentPoolsRequest, ::Google::Cloud::StorageTransfer::V1::ListAgentPoolsResponse
78
+ # Deletes an agent pool.
79
+ rpc :DeleteAgentPool, ::Google::Cloud::StorageTransfer::V1::DeleteAgentPoolRequest, ::Google::Protobuf::Empty
70
80
  end
71
81
 
72
82
  Stub = Service.rpc_stub_class
@@ -1,15 +1,15 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/storagetransfer/v1/transfer_types.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
- require 'google/protobuf/any_pb'
7
+ require 'google/api/resource_pb'
7
8
  require 'google/protobuf/duration_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
10
  require 'google/rpc/code_pb'
10
11
  require 'google/type/date_pb'
11
12
  require 'google/type/timeofday_pb'
12
- require 'google/protobuf'
13
13
 
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/storagetransfer/v1/transfer_types.proto", :syntax => :proto3) do
@@ -51,23 +51,120 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
51
51
  add_message "google.storagetransfer.v1.HttpData" do
52
52
  optional :list_url, :string, 1
53
53
  end
54
+ add_message "google.storagetransfer.v1.PosixFilesystem" do
55
+ optional :root_directory, :string, 1
56
+ end
57
+ add_message "google.storagetransfer.v1.AgentPool" do
58
+ optional :name, :string, 2
59
+ optional :display_name, :string, 3
60
+ optional :state, :enum, 4, "google.storagetransfer.v1.AgentPool.State"
61
+ optional :bandwidth_limit, :message, 5, "google.storagetransfer.v1.AgentPool.BandwidthLimit"
62
+ end
63
+ add_message "google.storagetransfer.v1.AgentPool.BandwidthLimit" do
64
+ optional :limit_mbps, :int64, 1
65
+ end
66
+ add_enum "google.storagetransfer.v1.AgentPool.State" do
67
+ value :STATE_UNSPECIFIED, 0
68
+ value :CREATING, 1
69
+ value :CREATED, 2
70
+ value :DELETING, 3
71
+ end
54
72
  add_message "google.storagetransfer.v1.TransferOptions" do
55
73
  optional :overwrite_objects_already_existing_in_sink, :bool, 1
56
74
  optional :delete_objects_unique_in_sink, :bool, 2
57
75
  optional :delete_objects_from_source_after_transfer, :bool, 3
76
+ optional :overwrite_when, :enum, 4, "google.storagetransfer.v1.TransferOptions.OverwriteWhen"
77
+ optional :metadata_options, :message, 5, "google.storagetransfer.v1.MetadataOptions"
78
+ end
79
+ add_enum "google.storagetransfer.v1.TransferOptions.OverwriteWhen" do
80
+ value :OVERWRITE_WHEN_UNSPECIFIED, 0
81
+ value :DIFFERENT, 1
82
+ value :NEVER, 2
83
+ value :ALWAYS, 3
58
84
  end
59
85
  add_message "google.storagetransfer.v1.TransferSpec" do
60
86
  optional :object_conditions, :message, 5, "google.storagetransfer.v1.ObjectConditions"
61
87
  optional :transfer_options, :message, 6, "google.storagetransfer.v1.TransferOptions"
88
+ optional :transfer_manifest, :message, 15, "google.storagetransfer.v1.TransferManifest"
89
+ optional :source_agent_pool_name, :string, 17
90
+ optional :sink_agent_pool_name, :string, 18
62
91
  oneof :data_sink do
63
92
  optional :gcs_data_sink, :message, 4, "google.storagetransfer.v1.GcsData"
93
+ optional :posix_data_sink, :message, 13, "google.storagetransfer.v1.PosixFilesystem"
64
94
  end
65
95
  oneof :data_source do
66
96
  optional :gcs_data_source, :message, 1, "google.storagetransfer.v1.GcsData"
67
97
  optional :aws_s3_data_source, :message, 2, "google.storagetransfer.v1.AwsS3Data"
68
98
  optional :http_data_source, :message, 3, "google.storagetransfer.v1.HttpData"
99
+ optional :posix_data_source, :message, 14, "google.storagetransfer.v1.PosixFilesystem"
69
100
  optional :azure_blob_storage_data_source, :message, 8, "google.storagetransfer.v1.AzureBlobStorageData"
70
101
  end
102
+ oneof :intermediate_data_location do
103
+ optional :gcs_intermediate_data_location, :message, 16, "google.storagetransfer.v1.GcsData"
104
+ end
105
+ end
106
+ add_message "google.storagetransfer.v1.MetadataOptions" do
107
+ optional :symlink, :enum, 1, "google.storagetransfer.v1.MetadataOptions.Symlink"
108
+ optional :mode, :enum, 2, "google.storagetransfer.v1.MetadataOptions.Mode"
109
+ optional :gid, :enum, 3, "google.storagetransfer.v1.MetadataOptions.GID"
110
+ optional :uid, :enum, 4, "google.storagetransfer.v1.MetadataOptions.UID"
111
+ optional :acl, :enum, 5, "google.storagetransfer.v1.MetadataOptions.Acl"
112
+ optional :storage_class, :enum, 6, "google.storagetransfer.v1.MetadataOptions.StorageClass"
113
+ optional :temporary_hold, :enum, 7, "google.storagetransfer.v1.MetadataOptions.TemporaryHold"
114
+ optional :kms_key, :enum, 8, "google.storagetransfer.v1.MetadataOptions.KmsKey"
115
+ optional :time_created, :enum, 9, "google.storagetransfer.v1.MetadataOptions.TimeCreated"
116
+ end
117
+ add_enum "google.storagetransfer.v1.MetadataOptions.Symlink" do
118
+ value :SYMLINK_UNSPECIFIED, 0
119
+ value :SYMLINK_SKIP, 1
120
+ value :SYMLINK_PRESERVE, 2
121
+ end
122
+ add_enum "google.storagetransfer.v1.MetadataOptions.Mode" do
123
+ value :MODE_UNSPECIFIED, 0
124
+ value :MODE_SKIP, 1
125
+ value :MODE_PRESERVE, 2
126
+ end
127
+ add_enum "google.storagetransfer.v1.MetadataOptions.GID" do
128
+ value :GID_UNSPECIFIED, 0
129
+ value :GID_SKIP, 1
130
+ value :GID_NUMBER, 2
131
+ end
132
+ add_enum "google.storagetransfer.v1.MetadataOptions.UID" do
133
+ value :UID_UNSPECIFIED, 0
134
+ value :UID_SKIP, 1
135
+ value :UID_NUMBER, 2
136
+ end
137
+ add_enum "google.storagetransfer.v1.MetadataOptions.Acl" do
138
+ value :ACL_UNSPECIFIED, 0
139
+ value :ACL_DESTINATION_BUCKET_DEFAULT, 1
140
+ value :ACL_PRESERVE, 2
141
+ end
142
+ add_enum "google.storagetransfer.v1.MetadataOptions.StorageClass" do
143
+ value :STORAGE_CLASS_UNSPECIFIED, 0
144
+ value :STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT, 1
145
+ value :STORAGE_CLASS_PRESERVE, 2
146
+ value :STORAGE_CLASS_STANDARD, 3
147
+ value :STORAGE_CLASS_NEARLINE, 4
148
+ value :STORAGE_CLASS_COLDLINE, 5
149
+ value :STORAGE_CLASS_ARCHIVE, 6
150
+ end
151
+ add_enum "google.storagetransfer.v1.MetadataOptions.TemporaryHold" do
152
+ value :TEMPORARY_HOLD_UNSPECIFIED, 0
153
+ value :TEMPORARY_HOLD_SKIP, 1
154
+ value :TEMPORARY_HOLD_PRESERVE, 2
155
+ end
156
+ add_enum "google.storagetransfer.v1.MetadataOptions.KmsKey" do
157
+ value :KMS_KEY_UNSPECIFIED, 0
158
+ value :KMS_KEY_DESTINATION_BUCKET_DEFAULT, 1
159
+ value :KMS_KEY_PRESERVE, 2
160
+ end
161
+ add_enum "google.storagetransfer.v1.MetadataOptions.TimeCreated" do
162
+ value :TIME_CREATED_UNSPECIFIED, 0
163
+ value :TIME_CREATED_SKIP, 1
164
+ value :TIME_CREATED_PRESERVE_AS_CUSTOM_TIME, 2
165
+ end
166
+ add_message "google.storagetransfer.v1.TransferManifest" do
167
+ optional :location, :string, 1
71
168
  end
72
169
  add_message "google.storagetransfer.v1.Schedule" do
73
170
  optional :schedule_start_date, :message, 1, "google.type.Date"
@@ -82,6 +179,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
82
179
  optional :project_id, :string, 3
83
180
  optional :transfer_spec, :message, 4, "google.storagetransfer.v1.TransferSpec"
84
181
  optional :notification_config, :message, 11, "google.storagetransfer.v1.NotificationConfig"
182
+ optional :logging_config, :message, 14, "google.storagetransfer.v1.LoggingConfig"
85
183
  optional :schedule, :message, 5, "google.storagetransfer.v1.Schedule"
86
184
  optional :status, :enum, 6, "google.storagetransfer.v1.TransferJob.Status"
87
185
  optional :creation_time, :message, 7, "google.protobuf.Timestamp"
@@ -121,6 +219,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
121
219
  optional :bytes_from_source_failed, :int64, 14
122
220
  optional :objects_failed_to_delete_from_sink, :int64, 15
123
221
  optional :bytes_failed_to_delete_from_sink, :int64, 16
222
+ optional :directories_found_from_source, :int64, 17
223
+ optional :directories_failed_to_list_from_source, :int64, 18
224
+ optional :directories_successfully_listed_from_source, :int64, 19
225
+ optional :intermediate_objects_cleaned_up, :int64, 22
226
+ optional :intermediate_objects_failed_cleaned_up, :int64, 23
124
227
  end
125
228
  add_message "google.storagetransfer.v1.NotificationConfig" do
126
229
  optional :pubsub_topic, :string, 1
@@ -138,6 +241,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
138
241
  value :NONE, 1
139
242
  value :JSON, 2
140
243
  end
244
+ add_message "google.storagetransfer.v1.LoggingConfig" do
245
+ repeated :log_actions, :enum, 1, "google.storagetransfer.v1.LoggingConfig.LoggableAction"
246
+ repeated :log_action_states, :enum, 2, "google.storagetransfer.v1.LoggingConfig.LoggableActionState"
247
+ optional :enable_onprem_gcs_transfer_logs, :bool, 3
248
+ end
249
+ add_enum "google.storagetransfer.v1.LoggingConfig.LoggableAction" do
250
+ value :LOGGABLE_ACTION_UNSPECIFIED, 0
251
+ value :FIND, 1
252
+ value :DELETE, 2
253
+ value :COPY, 3
254
+ end
255
+ add_enum "google.storagetransfer.v1.LoggingConfig.LoggableActionState" do
256
+ value :LOGGABLE_ACTION_STATE_UNSPECIFIED, 0
257
+ value :SUCCEEDED, 1
258
+ value :FAILED, 2
259
+ end
141
260
  add_message "google.storagetransfer.v1.TransferOperation" do
142
261
  optional :name, :string, 1
143
262
  optional :project_id, :string, 2
@@ -174,8 +293,24 @@ module Google
174
293
  AwsS3Data = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AwsS3Data").msgclass
175
294
  AzureBlobStorageData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AzureBlobStorageData").msgclass
176
295
  HttpData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.HttpData").msgclass
296
+ PosixFilesystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.PosixFilesystem").msgclass
297
+ AgentPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool").msgclass
298
+ AgentPool::BandwidthLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool.BandwidthLimit").msgclass
299
+ AgentPool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.AgentPool.State").enummodule
177
300
  TransferOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOptions").msgclass
301
+ TransferOptions::OverwriteWhen = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOptions.OverwriteWhen").enummodule
178
302
  TransferSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferSpec").msgclass
303
+ MetadataOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions").msgclass
304
+ MetadataOptions::Symlink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.Symlink").enummodule
305
+ MetadataOptions::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.Mode").enummodule
306
+ MetadataOptions::GID = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.GID").enummodule
307
+ MetadataOptions::UID = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.UID").enummodule
308
+ MetadataOptions::Acl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.Acl").enummodule
309
+ MetadataOptions::StorageClass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.StorageClass").enummodule
310
+ MetadataOptions::TemporaryHold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.TemporaryHold").enummodule
311
+ MetadataOptions::KmsKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.KmsKey").enummodule
312
+ MetadataOptions::TimeCreated = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.MetadataOptions.TimeCreated").enummodule
313
+ TransferManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferManifest").msgclass
179
314
  Schedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.Schedule").msgclass
180
315
  TransferJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob").msgclass
181
316
  TransferJob::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferJob.Status").enummodule
@@ -185,6 +320,9 @@ module Google
185
320
  NotificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig").msgclass
186
321
  NotificationConfig::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig.EventType").enummodule
187
322
  NotificationConfig::PayloadFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.NotificationConfig.PayloadFormat").enummodule
323
+ LoggingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.LoggingConfig").msgclass
324
+ LoggingConfig::LoggableAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.LoggingConfig.LoggableAction").enummodule
325
+ LoggingConfig::LoggableActionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.LoggingConfig.LoggableActionState").enummodule
188
326
  TransferOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOperation").msgclass
189
327
  TransferOperation::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.storagetransfer.v1.TransferOperation.Status").enummodule
190
328
  end
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example: