示例#1
0
 /// <summary>Snippet for GetSetting</summary>
 public void GetSetting()
 {
     // Snippet: GetSetting(string, CallSettings)
     // Create client
     ResourceSettingsServiceClient resourceSettingsServiceClient = ResourceSettingsServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT_NUMBER]/settings/[SETTING_NAME]";
     // Make the request
     Setting response = resourceSettingsServiceClient.GetSetting(name);
     // End snippet
 }
示例#2
0
 /// <summary>Snippet for GetSetting</summary>
 public void GetSettingResourceNames()
 {
     // Snippet: GetSetting(SettingName, CallSettings)
     // Create client
     ResourceSettingsServiceClient resourceSettingsServiceClient = ResourceSettingsServiceClient.Create();
     // Initialize request argument(s)
     SettingName name = SettingName.FromProjectNumberSettingName("[PROJECT_NUMBER]", "[SETTING_NAME]");
     // Make the request
     Setting response = resourceSettingsServiceClient.GetSetting(name);
     // End snippet
 }
示例#3
0
 /// <summary>Snippet for GetSetting</summary>
 public void GetSettingRequestObject()
 {
     // Snippet: GetSetting(GetSettingRequest, CallSettings)
     // Create client
     ResourceSettingsServiceClient resourceSettingsServiceClient = ResourceSettingsServiceClient.Create();
     // Initialize request argument(s)
     GetSettingRequest request = new GetSettingRequest
     {
         SettingName = SettingName.FromProjectNumberSettingName("[PROJECT_NUMBER]", "[SETTING_NAME]"),
         View        = SettingView.Unspecified,
     };
     // Make the request
     Setting response = resourceSettingsServiceClient.GetSetting(request);
     // End snippet
 }