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

Commit

Permalink
feat: add resource type to ChannelPartnerLink (#210)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 405947781

Source-Link: googleapis/googleapis@daf9c98

Source-Link: googleapis/googleapis-gen@d84824c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg0ODI0Yzc4NTYzZDU5YjBlNThkNTY2NGJmYWE0MzBlOWFkN2U3YSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 3, 2021
1 parent b2261de commit 53df617
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 22 deletions.
Expand Up @@ -42,34 +42,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n3google/cloud/channel/v1/channel_partne"
+ "r_links.proto\022\027google.cloud.channel.v1\032\037"
+ "google/api/field_behavior.proto\032$google/"
+ "cloud/channel/v1/common.proto\032\037google/pr"
+ "otobuf/timestamp.proto\032\034google/api/annot"
+ "ations.proto\"\233\003\n\022ChannelPartnerLink\022\021\n\004n"
+ "ame\030\001 \001(\tB\003\340A\003\022\'\n\032reseller_cloud_identit"
+ "y_id\030\002 \001(\tB\003\340A\002\022I\n\nlink_state\030\003 \001(\01620.go"
+ "ogle.cloud.channel.v1.ChannelPartnerLink"
+ "StateB\003\340A\002\022\034\n\017invite_link_uri\030\004 \001(\tB\003\340A\003"
+ "\0224\n\013create_time\030\005 \001(\0132\032.google.protobuf."
+ "TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.go"
+ "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tpublic_i"
+ "d\030\007 \001(\tB\003\340A\003\022\\\n#channel_partner_cloud_id"
+ "entity_info\030\010 \001(\0132*.google.cloud.channel"
+ ".v1.CloudIdentityInfoB\003\340A\003*>\n\026ChannelPar"
+ "tnerLinkView\022\017\n\013UNSPECIFIED\020\000\022\t\n\005BASIC\020\001"
+ "\022\010\n\004FULL\020\002*z\n\027ChannelPartnerLinkState\022*\n"
+ "&CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED\020"
+ "\000\022\013\n\007INVITED\020\001\022\n\n\006ACTIVE\020\002\022\013\n\007REVOKED\020\003\022"
+ "\r\n\tSUSPENDED\020\004By\n\033com.google.cloud.chann"
+ "el.v1B\030ChannelPartnerLinksProtoP\001Z>googl"
+ "e.golang.org/genproto/googleapis/cloud/c"
+ "hannel/v1;channelb\006proto3"
+ "google/api/field_behavior.proto\032\031google/"
+ "api/resource.proto\032$google/cloud/channel"
+ "/v1/common.proto\032\037google/protobuf/timest"
+ "amp.proto\032\034google/api/annotations.proto\""
+ "\217\004\n\022ChannelPartnerLink\022\021\n\004name\030\001 \001(\tB\003\340A"
+ "\003\022\'\n\032reseller_cloud_identity_id\030\002 \001(\tB\003\340"
+ "A\002\022I\n\nlink_state\030\003 \001(\01620.google.cloud.ch"
+ "annel.v1.ChannelPartnerLinkStateB\003\340A\002\022\034\n"
+ "\017invite_link_uri\030\004 \001(\tB\003\340A\003\0224\n\013create_ti"
+ "me\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A"
+ "\003\0224\n\013update_time\030\006 \001(\0132\032.google.protobuf"
+ ".TimestampB\003\340A\003\022\026\n\tpublic_id\030\007 \001(\tB\003\340A\003\022"
+ "\\\n#channel_partner_cloud_identity_info\030\010"
+ " \001(\0132*.google.cloud.channel.v1.CloudIden"
+ "tityInfoB\003\340A\003:r\352Ao\n.cloudchannel.googlea"
+ "pis.com/ChannelPartnerLink\022=accounts/{ac"
+ "count}/channelPartnerLinks/{channel_part"
+ "ner_link}*>\n\026ChannelPartnerLinkView\022\017\n\013U"
+ "NSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*z\n\027Cha"
+ "nnelPartnerLinkState\022*\n&CHANNEL_PARTNER_"
+ "LINK_STATE_UNSPECIFIED\020\000\022\013\n\007INVITED\020\001\022\n\n"
+ "\006ACTIVE\020\002\022\013\n\007REVOKED\020\003\022\r\n\tSUSPENDED\020\004By\n"
+ "\033com.google.cloud.channel.v1B\030ChannelPar"
+ "tnerLinksProtoP\001Z>google.golang.org/genp"
+ "roto/googleapis/cloud/channel/v1;channel"
+ "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.channel.v1.CommonProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
Expand All @@ -92,9 +97,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.ResourceProto.resource);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.channel.v1.CommonProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
Expand Down
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.channel.v1;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/channel/v1/common.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
Expand Down Expand Up @@ -62,6 +63,11 @@ enum ChannelPartnerLinkState {
// Entity representing a link between distributors and their indirect
// resellers in an n-tier resale channel.
message ChannelPartnerLink {
option (google.api.resource) = {
type: "cloudchannel.googleapis.com/ChannelPartnerLink"
pattern: "accounts/{account}/channelPartnerLinks/{channel_partner_link}"
};

// Output only. Resource name for the channel partner link, in the format
// accounts/{account_id}/channelPartnerLinks/{id}.
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down

0 comments on commit 53df617

Please sign in to comment.