Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 53df617

Browse files
feat: add resource type to ChannelPartnerLink (#210)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 405947781 Source-Link: googleapis/googleapis@daf9c98 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d84824c78563d59b0e58d5664bfaa430e9ad7e7a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg0ODI0Yzc4NTYzZDU5YjBlNThkNTY2NGJmYWE0MzBlOWFkN2U3YSJ9
1 parent b2261de commit 53df617

2 files changed

Lines changed: 35 additions & 22 deletions

File tree

proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChannelPartnerLinksProto.java

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
4242
java.lang.String[] descriptorData = {
4343
"\n3google/cloud/channel/v1/channel_partne"
4444
+ "r_links.proto\022\027google.cloud.channel.v1\032\037"
45-
+ "google/api/field_behavior.proto\032$google/"
46-
+ "cloud/channel/v1/common.proto\032\037google/pr"
47-
+ "otobuf/timestamp.proto\032\034google/api/annot"
48-
+ "ations.proto\"\233\003\n\022ChannelPartnerLink\022\021\n\004n"
49-
+ "ame\030\001 \001(\tB\003\340A\003\022\'\n\032reseller_cloud_identit"
50-
+ "y_id\030\002 \001(\tB\003\340A\002\022I\n\nlink_state\030\003 \001(\01620.go"
51-
+ "ogle.cloud.channel.v1.ChannelPartnerLink"
52-
+ "StateB\003\340A\002\022\034\n\017invite_link_uri\030\004 \001(\tB\003\340A\003"
53-
+ "\0224\n\013create_time\030\005 \001(\0132\032.google.protobuf."
54-
+ "TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.go"
55-
+ "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tpublic_i"
56-
+ "d\030\007 \001(\tB\003\340A\003\022\\\n#channel_partner_cloud_id"
57-
+ "entity_info\030\010 \001(\0132*.google.cloud.channel"
58-
+ ".v1.CloudIdentityInfoB\003\340A\003*>\n\026ChannelPar"
59-
+ "tnerLinkView\022\017\n\013UNSPECIFIED\020\000\022\t\n\005BASIC\020\001"
60-
+ "\022\010\n\004FULL\020\002*z\n\027ChannelPartnerLinkState\022*\n"
61-
+ "&CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED\020"
62-
+ "\000\022\013\n\007INVITED\020\001\022\n\n\006ACTIVE\020\002\022\013\n\007REVOKED\020\003\022"
63-
+ "\r\n\tSUSPENDED\020\004By\n\033com.google.cloud.chann"
64-
+ "el.v1B\030ChannelPartnerLinksProtoP\001Z>googl"
65-
+ "e.golang.org/genproto/googleapis/cloud/c"
66-
+ "hannel/v1;channelb\006proto3"
45+
+ "google/api/field_behavior.proto\032\031google/"
46+
+ "api/resource.proto\032$google/cloud/channel"
47+
+ "/v1/common.proto\032\037google/protobuf/timest"
48+
+ "amp.proto\032\034google/api/annotations.proto\""
49+
+ "\217\004\n\022ChannelPartnerLink\022\021\n\004name\030\001 \001(\tB\003\340A"
50+
+ "\003\022\'\n\032reseller_cloud_identity_id\030\002 \001(\tB\003\340"
51+
+ "A\002\022I\n\nlink_state\030\003 \001(\01620.google.cloud.ch"
52+
+ "annel.v1.ChannelPartnerLinkStateB\003\340A\002\022\034\n"
53+
+ "\017invite_link_uri\030\004 \001(\tB\003\340A\003\0224\n\013create_ti"
54+
+ "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A"
55+
+ "\003\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf"
56+
+ ".TimestampB\003\340A\003\022\026\n\tpublic_id\030\007 \001(\tB\003\340A\003\022"
57+
+ "\\\n#channel_partner_cloud_identity_info\030\010"
58+
+ " \001(\0132*.google.cloud.channel.v1.CloudIden"
59+
+ "tityInfoB\003\340A\003:r\352Ao\n.cloudchannel.googlea"
60+
+ "pis.com/ChannelPartnerLink\022=accounts/{ac"
61+
+ "count}/channelPartnerLinks/{channel_part"
62+
+ "ner_link}*>\n\026ChannelPartnerLinkView\022\017\n\013U"
63+
+ "NSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*z\n\027Cha"
64+
+ "nnelPartnerLinkState\022*\n&CHANNEL_PARTNER_"
65+
+ "LINK_STATE_UNSPECIFIED\020\000\022\013\n\007INVITED\020\001\022\n\n"
66+
+ "\006ACTIVE\020\002\022\013\n\007REVOKED\020\003\022\r\n\tSUSPENDED\020\004By\n"
67+
+ "\033com.google.cloud.channel.v1B\030ChannelPar"
68+
+ "tnerLinksProtoP\001Z>google.golang.org/genp"
69+
+ "roto/googleapis/cloud/channel/v1;channel"
70+
+ "b\006proto3"
6771
};
6872
descriptor =
6973
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
7074
descriptorData,
7175
new com.google.protobuf.Descriptors.FileDescriptor[] {
7276
com.google.api.FieldBehaviorProto.getDescriptor(),
77+
com.google.api.ResourceProto.getDescriptor(),
7378
com.google.cloud.channel.v1.CommonProto.getDescriptor(),
7479
com.google.protobuf.TimestampProto.getDescriptor(),
7580
com.google.api.AnnotationsProto.getDescriptor(),
@@ -92,9 +97,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
9297
com.google.protobuf.ExtensionRegistry registry =
9398
com.google.protobuf.ExtensionRegistry.newInstance();
9499
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
100+
registry.add(com.google.api.ResourceProto.resource);
95101
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
96102
descriptor, registry);
97103
com.google.api.FieldBehaviorProto.getDescriptor();
104+
com.google.api.ResourceProto.getDescriptor();
98105
com.google.cloud.channel.v1.CommonProto.getDescriptor();
99106
com.google.protobuf.TimestampProto.getDescriptor();
100107
com.google.api.AnnotationsProto.getDescriptor();

proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/channel_partner_links.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.channel.v1;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
2021
import "google/cloud/channel/v1/common.proto";
2122
import "google/protobuf/timestamp.proto";
2223
import "google/api/annotations.proto";
@@ -62,6 +63,11 @@ enum ChannelPartnerLinkState {
6263
// Entity representing a link between distributors and their indirect
6364
// resellers in an n-tier resale channel.
6465
message ChannelPartnerLink {
66+
option (google.api.resource) = {
67+
type: "cloudchannel.googleapis.com/ChannelPartnerLink"
68+
pattern: "accounts/{account}/channelPartnerLinks/{channel_partner_link}"
69+
};
70+
6571
// Output only. Resource name for the channel partner link, in the format
6672
// accounts/{account_id}/channelPartnerLinks/{id}.
6773
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

0 commit comments

Comments
 (0)