google-cloud-video-live_stream-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +2162 -0
  7. data/lib/google/cloud/video/live_stream/v1/livestream_service/credentials.rb +49 -0
  8. data/lib/google/cloud/video/live_stream/v1/livestream_service/operations.rb +769 -0
  9. data/lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb +111 -0
  10. data/lib/google/cloud/video/live_stream/v1/livestream_service.rb +56 -0
  11. data/lib/google/cloud/video/live_stream/v1/version.rb +30 -0
  12. data/lib/google/cloud/video/live_stream/v1.rb +40 -0
  13. data/lib/google/cloud/video/livestream/v1/outputs_pb.rb +134 -0
  14. data/lib/google/cloud/video/livestream/v1/resources_pb.rb +168 -0
  15. data/lib/google/cloud/video/livestream/v1/service_pb.rb +154 -0
  16. data/lib/google/cloud/video/livestream/v1/service_services_pb.rb +84 -0
  17. data/lib/google-cloud-video-live_stream-v1.rb +21 -0
  18. data/proto_docs/README.md +4 -0
  19. data/proto_docs/google/api/field_behavior.rb +71 -0
  20. data/proto_docs/google/api/resource.rb +222 -0
  21. data/proto_docs/google/cloud/video/livestream/v1/outputs.rb +427 -0
  22. data/proto_docs/google/cloud/video/livestream/v1/resources.rb +450 -0
  23. data/proto_docs/google/cloud/video/livestream/v1/service.rb +523 -0
  24. data/proto_docs/google/longrunning/operations.rb +164 -0
  25. data/proto_docs/google/protobuf/any.rb +141 -0
  26. data/proto_docs/google/protobuf/duration.rb +98 -0
  27. data/proto_docs/google/protobuf/empty.rb +36 -0
  28. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  29. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  30. data/proto_docs/google/rpc/status.rb +46 -0
  31. metadata +222 -0
@@ -0,0 +1,154 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/video/livestream/v1/service.proto
3
+
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/client_pb'
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/video/livestream/v1/resources_pb'
9
+ require 'google/longrunning/operations_pb'
10
+ require 'google/protobuf/empty_pb'
11
+ require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ require 'google/protobuf'
14
+
15
+ Google::Protobuf::DescriptorPool.generated_pool.build do
16
+ add_file("google/cloud/video/livestream/v1/service.proto", :syntax => :proto3) do
17
+ add_message "google.cloud.video.livestream.v1.CreateChannelRequest" do
18
+ optional :parent, :string, 1
19
+ optional :channel, :message, 2, "google.cloud.video.livestream.v1.Channel"
20
+ optional :channel_id, :string, 3
21
+ optional :request_id, :string, 4
22
+ end
23
+ add_message "google.cloud.video.livestream.v1.ListChannelsRequest" do
24
+ optional :parent, :string, 1
25
+ optional :page_size, :int32, 2
26
+ optional :page_token, :string, 3
27
+ optional :filter, :string, 4
28
+ optional :order_by, :string, 5
29
+ end
30
+ add_message "google.cloud.video.livestream.v1.ListChannelsResponse" do
31
+ repeated :channels, :message, 1, "google.cloud.video.livestream.v1.Channel"
32
+ optional :next_page_token, :string, 2
33
+ repeated :unreachable, :string, 3
34
+ end
35
+ add_message "google.cloud.video.livestream.v1.GetChannelRequest" do
36
+ optional :name, :string, 1
37
+ end
38
+ add_message "google.cloud.video.livestream.v1.DeleteChannelRequest" do
39
+ optional :name, :string, 1
40
+ optional :request_id, :string, 2
41
+ optional :force, :bool, 3
42
+ end
43
+ add_message "google.cloud.video.livestream.v1.UpdateChannelRequest" do
44
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
45
+ optional :channel, :message, 2, "google.cloud.video.livestream.v1.Channel"
46
+ optional :request_id, :string, 3
47
+ end
48
+ add_message "google.cloud.video.livestream.v1.StartChannelRequest" do
49
+ optional :name, :string, 1
50
+ optional :request_id, :string, 2
51
+ end
52
+ add_message "google.cloud.video.livestream.v1.StopChannelRequest" do
53
+ optional :name, :string, 1
54
+ optional :request_id, :string, 2
55
+ end
56
+ add_message "google.cloud.video.livestream.v1.CreateInputRequest" do
57
+ optional :parent, :string, 1
58
+ optional :input, :message, 2, "google.cloud.video.livestream.v1.Input"
59
+ optional :input_id, :string, 3
60
+ optional :request_id, :string, 4
61
+ end
62
+ add_message "google.cloud.video.livestream.v1.ListInputsRequest" do
63
+ optional :parent, :string, 1
64
+ optional :page_size, :int32, 2
65
+ optional :page_token, :string, 3
66
+ optional :filter, :string, 4
67
+ optional :order_by, :string, 5
68
+ end
69
+ add_message "google.cloud.video.livestream.v1.ListInputsResponse" do
70
+ repeated :inputs, :message, 1, "google.cloud.video.livestream.v1.Input"
71
+ optional :next_page_token, :string, 2
72
+ repeated :unreachable, :string, 3
73
+ end
74
+ add_message "google.cloud.video.livestream.v1.GetInputRequest" do
75
+ optional :name, :string, 1
76
+ end
77
+ add_message "google.cloud.video.livestream.v1.DeleteInputRequest" do
78
+ optional :name, :string, 1
79
+ optional :request_id, :string, 2
80
+ end
81
+ add_message "google.cloud.video.livestream.v1.UpdateInputRequest" do
82
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
83
+ optional :input, :message, 2, "google.cloud.video.livestream.v1.Input"
84
+ optional :request_id, :string, 3
85
+ end
86
+ add_message "google.cloud.video.livestream.v1.CreateEventRequest" do
87
+ optional :parent, :string, 1
88
+ optional :event, :message, 2, "google.cloud.video.livestream.v1.Event"
89
+ optional :event_id, :string, 3
90
+ optional :request_id, :string, 4
91
+ end
92
+ add_message "google.cloud.video.livestream.v1.ListEventsRequest" do
93
+ optional :parent, :string, 1
94
+ optional :page_size, :int32, 2
95
+ optional :page_token, :string, 3
96
+ optional :filter, :string, 4
97
+ optional :order_by, :string, 5
98
+ end
99
+ add_message "google.cloud.video.livestream.v1.ListEventsResponse" do
100
+ repeated :events, :message, 1, "google.cloud.video.livestream.v1.Event"
101
+ optional :next_page_token, :string, 2
102
+ repeated :unreachable, :string, 3
103
+ end
104
+ add_message "google.cloud.video.livestream.v1.GetEventRequest" do
105
+ optional :name, :string, 1
106
+ end
107
+ add_message "google.cloud.video.livestream.v1.DeleteEventRequest" do
108
+ optional :name, :string, 1
109
+ optional :request_id, :string, 2
110
+ end
111
+ add_message "google.cloud.video.livestream.v1.ChannelOperationResponse" do
112
+ end
113
+ add_message "google.cloud.video.livestream.v1.OperationMetadata" do
114
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
115
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
116
+ optional :target, :string, 3
117
+ optional :verb, :string, 4
118
+ optional :requested_cancellation, :bool, 5
119
+ optional :api_version, :string, 6
120
+ end
121
+ end
122
+ end
123
+
124
+ module Google
125
+ module Cloud
126
+ module Video
127
+ module LiveStream
128
+ module V1
129
+ CreateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.CreateChannelRequest").msgclass
130
+ ListChannelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ListChannelsRequest").msgclass
131
+ ListChannelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ListChannelsResponse").msgclass
132
+ GetChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.GetChannelRequest").msgclass
133
+ DeleteChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.DeleteChannelRequest").msgclass
134
+ UpdateChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.UpdateChannelRequest").msgclass
135
+ StartChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.StartChannelRequest").msgclass
136
+ StopChannelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.StopChannelRequest").msgclass
137
+ CreateInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.CreateInputRequest").msgclass
138
+ ListInputsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ListInputsRequest").msgclass
139
+ ListInputsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ListInputsResponse").msgclass
140
+ GetInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.GetInputRequest").msgclass
141
+ DeleteInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.DeleteInputRequest").msgclass
142
+ UpdateInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.UpdateInputRequest").msgclass
143
+ CreateEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.CreateEventRequest").msgclass
144
+ ListEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ListEventsRequest").msgclass
145
+ ListEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ListEventsResponse").msgclass
146
+ GetEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.GetEventRequest").msgclass
147
+ DeleteEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.DeleteEventRequest").msgclass
148
+ ChannelOperationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ChannelOperationResponse").msgclass
149
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.OperationMetadata").msgclass
150
+ end
151
+ end
152
+ end
153
+ end
154
+ end
@@ -0,0 +1,84 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/video/livestream/v1/service.proto for package 'Google.Cloud.Video.LiveStream.V1'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/video/livestream/v1/service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Video
25
+ module LiveStream
26
+ module V1
27
+ module LivestreamService
28
+ # Using Live Stream API, you can generate live streams in the various
29
+ # renditions and streaming formats. The streaming format include HTTP Live
30
+ # Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). You can send
31
+ # a source stream in the various ways, including Real-Time Messaging
32
+ # Protocol (RTMP) and Secure Reliable Transport (SRT).
33
+ class Service
34
+
35
+ include ::GRPC::GenericService
36
+
37
+ self.marshal_class_method = :encode
38
+ self.unmarshal_class_method = :decode
39
+ self.service_name = 'google.cloud.video.livestream.v1.LivestreamService'
40
+
41
+ # Creates a channel with the provided unique ID in the specified
42
+ # region.
43
+ rpc :CreateChannel, ::Google::Cloud::Video::LiveStream::V1::CreateChannelRequest, ::Google::Longrunning::Operation
44
+ # Returns a list of all channels in the specified region.
45
+ rpc :ListChannels, ::Google::Cloud::Video::LiveStream::V1::ListChannelsRequest, ::Google::Cloud::Video::LiveStream::V1::ListChannelsResponse
46
+ # Returns the specified channel.
47
+ rpc :GetChannel, ::Google::Cloud::Video::LiveStream::V1::GetChannelRequest, ::Google::Cloud::Video::LiveStream::V1::Channel
48
+ # Deletes the specified channel.
49
+ rpc :DeleteChannel, ::Google::Cloud::Video::LiveStream::V1::DeleteChannelRequest, ::Google::Longrunning::Operation
50
+ # Updates the specified channel.
51
+ rpc :UpdateChannel, ::Google::Cloud::Video::LiveStream::V1::UpdateChannelRequest, ::Google::Longrunning::Operation
52
+ # Starts the specified channel. Part of the video pipeline will be created
53
+ # only when the StartChannel request is received by the server.
54
+ rpc :StartChannel, ::Google::Cloud::Video::LiveStream::V1::StartChannelRequest, ::Google::Longrunning::Operation
55
+ # Stops the specified channel. Part of the video pipeline will be released
56
+ # when the StopChannel request is received by the server.
57
+ rpc :StopChannel, ::Google::Cloud::Video::LiveStream::V1::StopChannelRequest, ::Google::Longrunning::Operation
58
+ # Creates an input with the provided unique ID in the specified region.
59
+ rpc :CreateInput, ::Google::Cloud::Video::LiveStream::V1::CreateInputRequest, ::Google::Longrunning::Operation
60
+ # Returns a list of all inputs in the specified region.
61
+ rpc :ListInputs, ::Google::Cloud::Video::LiveStream::V1::ListInputsRequest, ::Google::Cloud::Video::LiveStream::V1::ListInputsResponse
62
+ # Returns the specified input.
63
+ rpc :GetInput, ::Google::Cloud::Video::LiveStream::V1::GetInputRequest, ::Google::Cloud::Video::LiveStream::V1::Input
64
+ # Deletes the specified input.
65
+ rpc :DeleteInput, ::Google::Cloud::Video::LiveStream::V1::DeleteInputRequest, ::Google::Longrunning::Operation
66
+ # Updates the specified input.
67
+ rpc :UpdateInput, ::Google::Cloud::Video::LiveStream::V1::UpdateInputRequest, ::Google::Longrunning::Operation
68
+ # Creates an event with the provided unique ID in the specified channel.
69
+ rpc :CreateEvent, ::Google::Cloud::Video::LiveStream::V1::CreateEventRequest, ::Google::Cloud::Video::LiveStream::V1::Event
70
+ # Returns a list of all events in the specified channel.
71
+ rpc :ListEvents, ::Google::Cloud::Video::LiveStream::V1::ListEventsRequest, ::Google::Cloud::Video::LiveStream::V1::ListEventsResponse
72
+ # Returns the specified event.
73
+ rpc :GetEvent, ::Google::Cloud::Video::LiveStream::V1::GetEventRequest, ::Google::Cloud::Video::LiveStream::V1::Event
74
+ # Deletes the specified event.
75
+ rpc :DeleteEvent, ::Google::Cloud::Video::LiveStream::V1::DeleteEventRequest, ::Google::Protobuf::Empty
76
+ end
77
+
78
+ Stub = Service.rpc_stub_class
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,21 @@
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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/video/live_stream/v1"
@@ -0,0 +1,4 @@
1
+ # Live Stream V1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.
@@ -0,0 +1,71 @@
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 Api
22
+ # An indicator of the behavior of a given field (for example, that a field
23
+ # is required in requests, or given as output but ignored as input).
24
+ # This **does not** change the behavior in protocol buffers itself; it only
25
+ # denotes the behavior and may affect how API tooling handles the field.
26
+ #
27
+ # Note: This enum **may** receive new values in the future.
28
+ module FieldBehavior
29
+ # Conventional default for enums. Do not use this.
30
+ FIELD_BEHAVIOR_UNSPECIFIED = 0
31
+
32
+ # Specifically denotes a field as optional.
33
+ # While all fields in protocol buffers are optional, this may be specified
34
+ # for emphasis if appropriate.
35
+ OPTIONAL = 1
36
+
37
+ # Denotes a field as required.
38
+ # This indicates that the field **must** be provided as part of the request,
39
+ # and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
40
+ REQUIRED = 2
41
+
42
+ # Denotes a field as output only.
43
+ # This indicates that the field is provided in responses, but including the
44
+ # field in a request does nothing (the server *must* ignore it and
45
+ # *must not* throw an error as a result of the field's presence).
46
+ OUTPUT_ONLY = 3
47
+
48
+ # Denotes a field as input only.
49
+ # This indicates that the field is provided in requests, and the
50
+ # corresponding field is not included in output.
51
+ INPUT_ONLY = 4
52
+
53
+ # Denotes a field as immutable.
54
+ # This indicates that the field may be set once in a request to create a
55
+ # resource, but may not be changed thereafter.
56
+ IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,222 @@
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 Api
22
+ # A simple descriptor of a resource type.
23
+ #
24
+ # ResourceDescriptor annotates a resource message (either by means of a
25
+ # protobuf annotation or use in the service config), and associates the
26
+ # resource's schema, the resource type, and the pattern of the resource name.
27
+ #
28
+ # Example:
29
+ #
30
+ # message Topic {
31
+ # // Indicates this message defines a resource schema.
32
+ # // Declares the resource type in the format of {service}/{kind}.
33
+ # // For Kubernetes resources, the format is {api group}/{kind}.
34
+ # option (google.api.resource) = {
35
+ # type: "pubsub.googleapis.com/Topic"
36
+ # pattern: "projects/{project}/topics/{topic}"
37
+ # };
38
+ # }
39
+ #
40
+ # The ResourceDescriptor Yaml config will look like:
41
+ #
42
+ # resources:
43
+ # - type: "pubsub.googleapis.com/Topic"
44
+ # pattern: "projects/{project}/topics/{topic}"
45
+ #
46
+ # Sometimes, resources have multiple patterns, typically because they can
47
+ # live under multiple parents.
48
+ #
49
+ # Example:
50
+ #
51
+ # message LogEntry {
52
+ # option (google.api.resource) = {
53
+ # type: "logging.googleapis.com/LogEntry"
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}"
58
+ # };
59
+ # }
60
+ #
61
+ # The ResourceDescriptor Yaml config will look like:
62
+ #
63
+ # resources:
64
+ # - type: 'logging.googleapis.com/LogEntry'
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}"
69
+ # @!attribute [rw] type
70
+ # @return [::String]
71
+ # The resource type. It must be in the format of
72
+ # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
73
+ # singular and must not include version numbers.
74
+ #
75
+ # Example: `storage.googleapis.com/Bucket`
76
+ #
77
+ # The value of the resource_type_kind must follow the regular expression
78
+ # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
79
+ # should use PascalCase (UpperCamelCase). The maximum number of
80
+ # characters allowed for the `resource_type_kind` is 100.
81
+ # @!attribute [rw] pattern
82
+ # @return [::Array<::String>]
83
+ # Optional. The relative resource name pattern associated with this resource
84
+ # type. The DNS prefix of the full resource name shouldn't be specified here.
85
+ #
86
+ # The path pattern must follow the syntax, which aligns with HTTP binding
87
+ # syntax:
88
+ #
89
+ # Template = Segment { "/" Segment } ;
90
+ # Segment = LITERAL | Variable ;
91
+ # Variable = "{" LITERAL "}" ;
92
+ #
93
+ # Examples:
94
+ #
95
+ # - "projects/\\{project}/topics/\\{topic}"
96
+ # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
97
+ #
98
+ # The components in braces correspond to the IDs for each resource in the
99
+ # hierarchy. It is expected that, if multiple patterns are provided,
100
+ # the same component name (e.g. "project") refers to IDs of the same
101
+ # type of resource.
102
+ # @!attribute [rw] name_field
103
+ # @return [::String]
104
+ # Optional. The field on the resource that designates the resource name
105
+ # field. If omitted, this is assumed to be "name".
106
+ # @!attribute [rw] history
107
+ # @return [::Google::Api::ResourceDescriptor::History]
108
+ # Optional. The historical or future-looking state of the resource pattern.
109
+ #
110
+ # Example:
111
+ #
112
+ # // The InspectTemplate message originally only supported resource
113
+ # // names with organization, and project was added later.
114
+ # message InspectTemplate {
115
+ # option (google.api.resource) = {
116
+ # type: "dlp.googleapis.com/InspectTemplate"
117
+ # pattern:
118
+ # "organizations/{organization}/inspectTemplates/{inspect_template}"
119
+ # pattern: "projects/{project}/inspectTemplates/{inspect_template}"
120
+ # history: ORIGINALLY_SINGLE_PATTERN
121
+ # };
122
+ # }
123
+ # @!attribute [rw] plural
124
+ # @return [::String]
125
+ # The plural name used in the resource name and permission names, such as
126
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
+ # concept of the `plural` field in k8s CRD spec
129
+ # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
+ #
131
+ # Note: The plural form is required even for singleton resources. See
132
+ # https://aip.dev/156
133
+ # @!attribute [rw] singular
134
+ # @return [::String]
135
+ # The same concept of the `singular` field in k8s CRD spec
136
+ # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
137
+ # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
138
+ # @!attribute [rw] style
139
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
140
+ # Style flag(s) for this resource.
141
+ # These indicate that a resource is expected to conform to a given
142
+ # style. See the specific style flags for additional information.
143
+ class ResourceDescriptor
144
+ include ::Google::Protobuf::MessageExts
145
+ extend ::Google::Protobuf::MessageExts::ClassMethods
146
+
147
+ # A description of the historical or future-looking state of the
148
+ # resource pattern.
149
+ module History
150
+ # The "unset" value.
151
+ HISTORY_UNSPECIFIED = 0
152
+
153
+ # The resource originally had one pattern and launched as such, and
154
+ # additional patterns were added later.
155
+ ORIGINALLY_SINGLE_PATTERN = 1
156
+
157
+ # The resource has one pattern, but the API owner expects to add more
158
+ # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
159
+ # that from being necessary once there are multiple patterns.)
160
+ FUTURE_MULTI_PATTERN = 2
161
+ end
162
+
163
+ # A flag representing a specific style that a resource claims to conform to.
164
+ module Style
165
+ # The unspecified value. Do not use.
166
+ STYLE_UNSPECIFIED = 0
167
+
168
+ # This resource is intended to be "declarative-friendly".
169
+ #
170
+ # Declarative-friendly resources must be more strictly consistent, and
171
+ # setting this to true communicates to tools that this resource should
172
+ # adhere to declarative-friendly expectations.
173
+ #
174
+ # Note: This is used by the API linter (linter.aip.dev) to enable
175
+ # additional checks.
176
+ DECLARATIVE_FRIENDLY = 1
177
+ end
178
+ end
179
+
180
+ # Defines a proto annotation that describes a string field that refers to
181
+ # an API resource.
182
+ # @!attribute [rw] type
183
+ # @return [::String]
184
+ # The resource type that the annotated field references.
185
+ #
186
+ # Example:
187
+ #
188
+ # message Subscription {
189
+ # string topic = 2 [(google.api.resource_reference) = {
190
+ # type: "pubsub.googleapis.com/Topic"
191
+ # }];
192
+ # }
193
+ #
194
+ # Occasionally, a field may reference an arbitrary resource. In this case,
195
+ # APIs use the special value * in their resource reference.
196
+ #
197
+ # Example:
198
+ #
199
+ # message GetIamPolicyRequest {
200
+ # string resource = 2 [(google.api.resource_reference) = {
201
+ # type: "*"
202
+ # }];
203
+ # }
204
+ # @!attribute [rw] child_type
205
+ # @return [::String]
206
+ # The resource type of a child collection that the annotated field
207
+ # references. This is useful for annotating the `parent` field that
208
+ # doesn't have a fixed resource type.
209
+ #
210
+ # Example:
211
+ #
212
+ # message ListLogEntriesRequest {
213
+ # string parent = 1 [(google.api.resource_reference) = {
214
+ # child_type: "logging.googleapis.com/LogEntry"
215
+ # };
216
+ # }
217
+ class ResourceReference
218
+ include ::Google::Protobuf::MessageExts
219
+ extend ::Google::Protobuf::MessageExts::ClassMethods
220
+ end
221
+ end
222
+ end