google-cloud-app_hub-v1 0.a → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/app_hub/v1/app_hub/client.rb +3426 -0
  6. data/lib/google/cloud/app_hub/v1/app_hub/credentials.rb +47 -0
  7. data/lib/google/cloud/app_hub/v1/app_hub/operations.rb +809 -0
  8. data/lib/google/cloud/app_hub/v1/app_hub/paths.rb +182 -0
  9. data/lib/google/cloud/app_hub/v1/app_hub/rest/client.rb +3214 -0
  10. data/lib/google/cloud/app_hub/v1/app_hub/rest/operations.rb +902 -0
  11. data/lib/google/cloud/app_hub/v1/app_hub/rest/service_stub.rb +1670 -0
  12. data/lib/google/cloud/app_hub/v1/app_hub/rest.rb +54 -0
  13. data/lib/google/cloud/app_hub/v1/app_hub.rb +56 -0
  14. data/lib/google/cloud/app_hub/v1/bindings_override.rb +135 -0
  15. data/lib/google/cloud/app_hub/v1/rest.rb +38 -0
  16. data/lib/google/cloud/app_hub/v1/version.rb +7 -2
  17. data/lib/google/cloud/app_hub/v1.rb +45 -0
  18. data/lib/google/cloud/apphub/v1/apphub_service_pb.rb +98 -0
  19. data/lib/google/cloud/apphub/v1/apphub_service_services_pb.rb +104 -0
  20. data/lib/google/cloud/apphub/v1/application_pb.rb +53 -0
  21. data/lib/google/cloud/apphub/v1/attributes_pb.rb +49 -0
  22. data/lib/google/cloud/apphub/v1/service_pb.rb +54 -0
  23. data/lib/google/cloud/apphub/v1/service_project_attachment_pb.rb +49 -0
  24. data/lib/google/cloud/apphub/v1/workload_pb.rb +54 -0
  25. data/lib/google-cloud-app_hub-v1.rb +21 -0
  26. data/proto_docs/README.md +4 -0
  27. data/proto_docs/google/api/client.rb +420 -0
  28. data/proto_docs/google/api/field_behavior.rb +85 -0
  29. data/proto_docs/google/api/field_info.rb +88 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/api/resource.rb +227 -0
  32. data/proto_docs/google/cloud/apphub/v1/apphub_service.rb +786 -0
  33. data/proto_docs/google/cloud/apphub/v1/application.rb +100 -0
  34. data/proto_docs/google/cloud/apphub/v1/attributes.rb +115 -0
  35. data/proto_docs/google/cloud/apphub/v1/service.rb +139 -0
  36. data/proto_docs/google/cloud/apphub/v1/service_project_attachment.rb +72 -0
  37. data/proto_docs/google/cloud/apphub/v1/workload.rb +140 -0
  38. data/proto_docs/google/longrunning/operations.rb +164 -0
  39. data/proto_docs/google/protobuf/any.rb +145 -0
  40. data/proto_docs/google/protobuf/duration.rb +98 -0
  41. data/proto_docs/google/protobuf/empty.rb +34 -0
  42. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  43. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  44. data/proto_docs/google/rpc/status.rb +48 -0
  45. data/proto_docs/google/type/expr.rb +75 -0
  46. metadata +125 -10
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/apphub/v1/application.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/field_info_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/apphub/v1/attributes_pb'
11
+ require 'google/protobuf/timestamp_pb'
12
+
13
+
14
+ descriptor_data = "\n(google/cloud/apphub/v1/application.proto\x12\x16google.cloud.apphub.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/apphub/v1/attributes.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xde\x04\n\x0b\x41pplication\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12;\n\nattributes\x18\x04 \x01(\x0b\x32\".google.cloud.apphub.v1.AttributesB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x05scope\x18\t \x01(\x0b\x32\x1d.google.cloud.apphub.v1.ScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x18\n\x03uid\x18\n \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12=\n\x05state\x18\x0b \x01(\x0e\x32).google.cloud.apphub.v1.Application.StateB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:\x86\x01\xea\x41\x82\x01\n!apphub.googleapis.com/Application\x12\x42projects/{project}/locations/{location}/applications/{application}*\x0c\x61pplications2\x0b\x61pplication\"j\n\x05Scope\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32\".google.cloud.apphub.v1.Scope.TypeB\x03\xe0\x41\x02\"*\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REGIONAL\x10\x01\x42\xb2\x01\n\x1a\x63om.google.cloud.apphub.v1B\x10\x41pplicationProtoP\x01Z2cloud.google.com/go/apphub/apiv1/apphubpb;apphubpb\xaa\x02\x16Google.Cloud.AppHub.V1\xca\x02\x16Google\\Cloud\\AppHub\\V1\xea\x02\x19Google::Cloud::AppHub::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.apphub.v1.Attributes", "google/cloud/apphub/v1/attributes.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
+ end
37
+ end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
40
+ end
41
+
42
+ module Google
43
+ module Cloud
44
+ module AppHub
45
+ module V1
46
+ Application = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Application").msgclass
47
+ Application::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Application.State").enummodule
48
+ Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Scope").msgclass
49
+ Scope::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Scope.Type").enummodule
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/apphub/v1/attributes.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+
9
+
10
+ descriptor_data = "\n\'google/cloud/apphub/v1/attributes.proto\x12\x16google.cloud.apphub.v1\x1a\x1fgoogle/api/field_behavior.proto\"\xd4\x02\n\nAttributes\x12=\n\x0b\x63riticality\x18\x01 \x01(\x0b\x32#.google.cloud.apphub.v1.CriticalityB\x03\xe0\x41\x01\x12=\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32#.google.cloud.apphub.v1.EnvironmentB\x03\xe0\x41\x01\x12\x42\n\x10\x64\x65veloper_owners\x18\x03 \x03(\x0b\x32#.google.cloud.apphub.v1.ContactInfoB\x03\xe0\x41\x01\x12\x41\n\x0foperator_owners\x18\x04 \x03(\x0b\x32#.google.cloud.apphub.v1.ContactInfoB\x03\xe0\x41\x01\x12\x41\n\x0f\x62usiness_owners\x18\x05 \x03(\x0b\x32#.google.cloud.apphub.v1.ContactInfoB\x03\xe0\x41\x01\"\x9d\x01\n\x0b\x43riticality\x12;\n\x04type\x18\x03 \x01(\x0e\x32(.google.cloud.apphub.v1.Criticality.TypeB\x03\xe0\x41\x02\"Q\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10MISSION_CRITICAL\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x07\n\x03LOW\x10\x04\"\xa0\x01\n\x0b\x45nvironment\x12;\n\x04type\x18\x02 \x01(\x0e\x32(.google.cloud.apphub.v1.Environment.TypeB\x03\xe0\x41\x02\"T\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x0b\n\x07STAGING\x10\x02\x12\x08\n\x04TEST\x10\x03\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x04\"<\n\x0b\x43ontactInfo\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x65mail\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\xb1\x01\n\x1a\x63om.google.cloud.apphub.v1B\x0f\x41ttributesProtoP\x01Z2cloud.google.com/go/apphub/apiv1/apphubpb;apphubpb\xaa\x02\x16Google.Cloud.AppHub.V1\xca\x02\x16Google\\Cloud\\AppHub\\V1\xea\x02\x19Google::Cloud::AppHub::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module AppHub
39
+ module V1
40
+ Attributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Attributes").msgclass
41
+ Criticality = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Criticality").msgclass
42
+ Criticality::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Criticality.Type").enummodule
43
+ Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Environment").msgclass
44
+ Environment::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Environment.Type").enummodule
45
+ ContactInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ContactInfo").msgclass
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/apphub/v1/service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/field_info_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/apphub/v1/attributes_pb'
11
+ require 'google/protobuf/timestamp_pb'
12
+
13
+
14
+ descriptor_data = "\n$google/cloud/apphub/v1/service.proto\x12\x16google.cloud.apphub.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/apphub/v1/attributes.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9b\x06\n\x07Service\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12H\n\x11service_reference\x18\x04 \x01(\x0b\x32(.google.cloud.apphub.v1.ServiceReferenceB\x03\xe0\x41\x03\x12J\n\x12service_properties\x18\x05 \x01(\x0b\x32).google.cloud.apphub.v1.ServicePropertiesB\x03\xe0\x41\x03\x12;\n\nattributes\x18\x06 \x01(\x0b\x32\".google.cloud.apphub.v1.AttributesB\x03\xe0\x41\x01\x12N\n\x12\x64iscovered_service\x18\x07 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\x12\'apphub.googleapis.com/DiscoveredService\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x03uid\x18\n \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x39\n\x05state\x18\x0b \x01(\x0e\x32%.google.cloud.apphub.v1.Service.StateB\x03\xe0\x41\x03\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08\x44\x45TACHED\x10\x04:\x8d\x01\xea\x41\x89\x01\n\x1d\x61pphub.googleapis.com/Service\x12Uprojects/{project}/locations/{location}/applications/{application}/services/{service}*\x08services2\x07service\"$\n\x10ServiceReference\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"W\n\x11ServiceProperties\x12\x18\n\x0bgcp_project\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04zone\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xe4\x02\n\x11\x44iscoveredService\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12H\n\x11service_reference\x18\x02 \x01(\x0b\x32(.google.cloud.apphub.v1.ServiceReferenceB\x03\xe0\x41\x03\x12J\n\x12service_properties\x18\x03 \x01(\x0b\x32).google.cloud.apphub.v1.ServicePropertiesB\x03\xe0\x41\x03:\xa5\x01\xea\x41\xa1\x01\n\'apphub.googleapis.com/DiscoveredService\x12Oprojects/{project}/locations/{location}/discoveredServices/{discovered_service}*\x12\x64iscoveredServices2\x11\x64iscoveredServiceB\xae\x01\n\x1a\x63om.google.cloud.apphub.v1B\x0cServiceProtoP\x01Z2cloud.google.com/go/apphub/apiv1/apphubpb;apphubpb\xaa\x02\x16Google.Cloud.AppHub.V1\xca\x02\x16Google\\Cloud\\AppHub\\V1\xea\x02\x19Google::Cloud::AppHub::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.apphub.v1.Attributes", "google/cloud/apphub/v1/attributes.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
+ end
37
+ end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
40
+ end
41
+
42
+ module Google
43
+ module Cloud
44
+ module AppHub
45
+ module V1
46
+ Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Service").msgclass
47
+ Service::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Service.State").enummodule
48
+ ServiceReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ServiceReference").msgclass
49
+ ServiceProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ServiceProperties").msgclass
50
+ DiscoveredService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DiscoveredService").msgclass
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/apphub/v1/service_project_attachment.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/field_info_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+
12
+
13
+ descriptor_data = "\n7google/cloud/apphub/v1/service_project_attachment.proto\x12\x16google.cloud.apphub.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x04\n\x18ServiceProjectAttachment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x0fservice_project\x18\x02 \x01(\tB6\xe0\x41\x02\xe0\x41\x05\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x03uid\x18\x04 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12J\n\x05state\x18\x05 \x01(\x0e\x32\x36.google.cloud.apphub.v1.ServiceProjectAttachment.StateB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:\xc9\x01\xea\x41\xc5\x01\n.apphub.googleapis.com/ServiceProjectAttachment\x12^projects/{project}/locations/{location}/serviceProjectAttachments/{service_project_attachment}*\x19serviceProjectAttachments2\x18serviceProjectAttachmentB\xbf\x01\n\x1a\x63om.google.cloud.apphub.v1B\x1dServiceProjectAttachmentProtoP\x01Z2cloud.google.com/go/apphub/apiv1/apphubpb;apphubpb\xaa\x02\x16Google.Cloud.AppHub.V1\xca\x02\x16Google\\Cloud\\AppHub\\V1\xea\x02\x19Google::Cloud::AppHub::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
+ end
35
+ end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
38
+ end
39
+
40
+ module Google
41
+ module Cloud
42
+ module AppHub
43
+ module V1
44
+ ServiceProjectAttachment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ServiceProjectAttachment").msgclass
45
+ ServiceProjectAttachment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.ServiceProjectAttachment.State").enummodule
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/apphub/v1/workload.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/field_info_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/apphub/v1/attributes_pb'
11
+ require 'google/protobuf/timestamp_pb'
12
+
13
+
14
+ descriptor_data = "\n%google/cloud/apphub/v1/workload.proto\x12\x16google.cloud.apphub.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/apphub/v1/attributes.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa8\x06\n\x08Workload\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12J\n\x12workload_reference\x18\x04 \x01(\x0b\x32).google.cloud.apphub.v1.WorkloadReferenceB\x03\xe0\x41\x03\x12L\n\x13workload_properties\x18\x05 \x01(\x0b\x32*.google.cloud.apphub.v1.WorkloadPropertiesB\x03\xe0\x41\x03\x12P\n\x13\x64iscovered_workload\x18\x06 \x01(\tB3\xe0\x41\x02\xe0\x41\x05\xfa\x41*\x12(apphub.googleapis.com/DiscoveredWorkload\x12;\n\nattributes\x18\x07 \x01(\x0b\x32\".google.cloud.apphub.v1.AttributesB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x03uid\x18\n \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12:\n\x05state\x18\x0b \x01(\x0e\x32&.google.cloud.apphub.v1.Workload.StateB\x03\xe0\x41\x03\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08\x44\x45TACHED\x10\x04:\x92\x01\xea\x41\x8e\x01\n\x1e\x61pphub.googleapis.com/Workload\x12Wprojects/{project}/locations/{location}/applications/{application}/workloads/{workload}*\tworkloads2\x08workload\"%\n\x11WorkloadReference\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\"X\n\x12WorkloadProperties\x12\x18\n\x0bgcp_project\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04zone\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xee\x02\n\x12\x44iscoveredWorkload\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12J\n\x12workload_reference\x18\x02 \x01(\x0b\x32).google.cloud.apphub.v1.WorkloadReferenceB\x03\xe0\x41\x03\x12L\n\x13workload_properties\x18\x03 \x01(\x0b\x32*.google.cloud.apphub.v1.WorkloadPropertiesB\x03\xe0\x41\x03:\xaa\x01\xea\x41\xa6\x01\n(apphub.googleapis.com/DiscoveredWorkload\x12Qprojects/{project}/locations/{location}/discoveredWorkloads/{discovered_workload}*\x13\x64iscoveredWorkloads2\x12\x64iscoveredWorkloadB\xaf\x01\n\x1a\x63om.google.cloud.apphub.v1B\rWorkloadProtoP\x01Z2cloud.google.com/go/apphub/apiv1/apphubpb;apphubpb\xaa\x02\x16Google.Cloud.AppHub.V1\xca\x02\x16Google\\Cloud\\AppHub\\V1\xea\x02\x19Google::Cloud::AppHub::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.cloud.apphub.v1.Attributes", "google/cloud/apphub/v1/attributes.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
+ end
37
+ end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
40
+ end
41
+
42
+ module Google
43
+ module Cloud
44
+ module AppHub
45
+ module V1
46
+ Workload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Workload").msgclass
47
+ Workload::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.Workload.State").enummodule
48
+ WorkloadReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.WorkloadReference").msgclass
49
+ WorkloadProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.WorkloadProperties").msgclass
50
+ DiscoveredWorkload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apphub.v1.DiscoveredWorkload").msgclass
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/app_hub/v1"
@@ -0,0 +1,4 @@
1
+ # App Hub 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.